]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/gnu/dts/mips/ZBT-WG3526.dts
Update lldb to trunk r290819 and resolve conflicts.
[FreeBSD/FreeBSD.git] / sys / gnu / dts / mips / ZBT-WG3526.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 / {
6         compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
7         model = "ZBT-WG3526";
8
9         memory@0 {
10                 device_type = "memory";
11                 reg = <0x0 0x1c000000>, <0x20000000 0x4000000>;
12         };
13
14         chosen {
15                 bootargs = "console=ttyS0,115200";
16         };
17
18         palmbus: palmbus@1E000000 {
19                 i2c@900 {
20                         compatible = "ralink,i2c-mt7621";
21                         reg = <0x900 0x100>;
22                         #address-cells = <1>;
23                         #size-cells = <0>;
24                         pinctrl-names = "default";
25                         pinctrl-0 = <&i2c_pins>;
26                         status = "okay";
27                 };
28         };
29
30         gpio-keys-polled {
31                 compatible = "gpio-keys-polled";
32                 #address-cells = <1>;
33                 #size-cells = <0>;
34                 poll-interval = <20>;
35
36                 reset {
37                         label = "reset";
38                         gpios = <&gpio0 18 1>;
39                         linux,code = <0x198>;
40                 };
41         };
42
43         gpio-leds {
44                 compatible = "gpio-leds";
45
46                 status {
47                         label = "zbt-wg3526:green:status";
48                         gpios = <&gpio0 24 1>;
49                 };
50         };
51 };
52
53 &sdhci {
54         status = "okay";
55 };
56
57 &spi0 {
58         status = "okay";
59
60         m25p80@0 {
61                 #address-cells = <1>;
62                 #size-cells = <1>;
63                 compatible = "jedec,spi-nor";
64                 reg = <0>;
65                 linux,modalias = "m25p80";
66                 spi-max-frequency = <10000000>;
67
68                 partition@0 {
69                         label = "u-boot";
70                         reg = <0x0 0x30000>;
71                         read-only;
72                 };
73
74                 partition@30000 {
75                         label = "u-boot-env";
76                         reg = <0x30000 0x10000>;
77                         read-only;
78                 };
79
80                 factory: partition@40000 {
81                         label = "factory";
82                         reg = <0x40000 0x10000>;
83                         read-only;
84                 };
85
86                 partition@50000 {
87                         label = "firmware";
88                         reg = <0x50000 0xfb0000>;
89                 };
90         };
91 };
92
93 &pcie {
94         status = "okay";
95
96         pcie0 {
97                 mt76@0,0 {
98                         reg = <0x0000 0 0 0 0>;
99                         device_type = "pci";
100                         mediatek,mtd-eeprom = <&factory 0x0000>;
101                         mediatek,5ghz = <0>;
102                 };
103         };
104
105         pcie1 {
106                 mt76@1,0 {
107                         reg = <0x0000 0 0 0 0>;
108                         device_type = "pci";
109                         mediatek,mtd-eeprom = <&factory 0x8000>;
110                         mediatek,2ghz = <0>;
111                 };
112         };
113 };
114
115 &ethernet {
116         mtd-mac-address = <&factory 0xe000>;
117 };
118
119 &pinctrl {
120         state_default: pinctrl0 {
121                 gpio {
122                         ralink,group = "wdt", "rgmii2", "wdt rst", "jtag", "mdio";
123                         ralink,function = "gpio";
124                 };
125         };
126 };