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