treewide: dts: fix dtc compiler warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / ALL5002.dts
1 /dts-v1/;
2
3 #include "rt3352.dtsi"
4
5 / {
6 compatible = "ALL5002", "ralink,rt3352-soc";
7 model = "Allnet ALL5002";
8
9 i2c-gpio {
10 #address-cells = <1>;
11 #size-cells = <0>;
12
13 compatible = "i2c-gpio";
14 gpios = <&gpio0 1 0 &gpio0 2 0>;
15 i2c-gpio,delay-us = <10>;
16
17 pcf0: iexp@38 {
18 #gpio-cells = <2>;
19 compatible = "inxp,pcf8574a";
20 reg = <0x38>;
21 gpio-controller;
22 };
23
24 hwmon@4b {
25 compatible = "national,lm92";
26 reg = <0x4b>;
27 };
28 };
29
30 gpio-leds {
31 compatible = "gpio-leds";
32
33 ld1 {
34 label = "all5002:green:ld1";
35 gpios = <&pcf0 0 1>;
36 };
37
38 ld2 {
39 label = "all5002:green:ld2";
40 gpios = <&pcf0 1 1>;
41 };
42 };
43 };
44
45 &gpio0 {
46 status = "okay";
47 };
48
49 &spi0 {
50 status = "okay";
51
52 m25p80@0 {
53 #address-cells = <1>;
54 #size-cells = <1>;
55 compatible = "jedec,spi-nor";
56 reg = <0>;
57 linux,modalias = "m25p80", "mx25l25635e";
58 spi-max-frequency = <10000000>;
59
60 partition@0 {
61 label = "u-boot";
62 reg = <0x0 0x30000>;
63 read-only;
64 };
65
66 partition@30000 {
67 label = "u-boot-env";
68 reg = <0x30000 0x10000>;
69 read-only;
70 };
71
72 factory: partition@40000 {
73 label = "factory";
74 reg = <0x40000 0x10000>;
75 read-only;
76 };
77
78 partition@50000 {
79 label = "firmware";
80 reg = <0x50000 0x1fb0000>;
81 };
82 };
83 };
84
85 &pinctrl {
86 state_default: pinctrl0 {
87 gpio {
88 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
89 ralink,function = "gpio";
90 };
91 };
92 };
93
94 &ethernet {
95 mtd-mac-address = <&factory 0x28>;
96 };
97
98 &esw {
99 mediatek,portmap = <0x3f>;
100 };
101
102 &wmac {
103 ralink,mtd-eeprom = <&factory 0>;
104 };
105
106 &ehci {
107 status = "okay";
108 };
109
110 &ohci {
111 status = "okay";
112 };