Skip to content

Instantly share code, notes, and snippets.

@hanetzer
Created June 9, 2022 14:14
Show Gist options
  • Save hanetzer/99ee0ad045e46cc4a01ea8917204514e to your computer and use it in GitHub Desktop.
Save hanetzer/99ee0ad045e46cc4a01ea8917204514e to your computer and use it in GitHub Desktop.
stdin
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright (C) 2017-2022 Marty Plummer <[email protected]>
*/
#include "hi3521a.dtsi"
/ {
model = "RaySharp RS-DM-290E DVR Board";
compatible = "raysharp,rs-dm-290e", "hisilicon,hi3521a";
aliases {
serial0 = &uart0;
serial1 = &uart1;
serial2 = &uart2;
};
chosen {
stdout-path = "serial0:115200n8";
};
memory@800000000 {
device_type = "memory";
reg = <0x80000000 0xf00000>;
};
};
&hi_sfc {
status = "okay";
spi-nor@0 {
// compatible = "jedec,spi-nor";
compatible = "macronix,mx25l25635e", "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <150000000>;
// spi-rx-bus-width = <1>;
// spi-tx-bus-width = <1>;
// m25p,default-addr-width = <4>;
// spi-max-frequency = <160000000>;
m25p,fast-read;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
u-boot@0 {
label = "u-boot";
reg = <0x0 0x50000>;
read-only;
};
u-boot-env@50000 {
label = "u-boot-env";
reg = <0x50000 0x20000>;
};
kernel@70000 {
label = "kernel";
reg = <0x70000 0x700000>;
};
rootfs@770000 {
label = "rootfs";
reg = <0x800000 0x300000>;
read-only;
};
extra@b00000 {
label = "extra";
reg = <0xb00000 0x1500000>;
};
};
};
};
&dual_timer0 {
status = "okay";
};
&uart0 {
pinctrl-names = "default";
pinctrl-0 = <&uart0_pmx_func &uart0_cfg_func>;
status = "okay";
};
&pmx0 {
pinctrl-names = "default";
pinctrl-0 = <&sfc_pmx_func>;
uart0_pmx_func: uart0_pmx_func {
pinctrl-single,pins = <
0x00e8 0x0
0x00ec 0x0
>;
};
sfc_pmx_func: sfc_pmx_func {
pinctrl-single,pins = <
0x00c4 0x1
0x00c8 0x1
0x00cc 0x1
0x00d0 0x1
0x00d4 0x1
>;
};
};
&pmx1 {
pinctrl-names = "default";
pinctrl-0 = <&sfc_cfg_func>;
uart0_cfg_func: uart0_cfg_func {
pinctrl-single,pins = <
0x00e8 0x0
0x00ec 0x0
>;
};
sfc_cfg_func: sfc_cfg_func {
pinctrl-single,pins = <
0x00c4 0x58
0x00c8 0x28
0x00cc 0x38
0x00d0 0x38
0x00d4 0x38
>;
};
};
&gmac0 {
#address-cells = <1>;
#size-cells = <0>;
phy-handle = <&phy3>;
phy-mode = "rgmii";
mac-address = [00 00 00 00 00 00];
status = "okay";
phy3: ethernet-phy@3 {
reg = <3>;
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment