Bump version to v1.5 and start work on adding 4.19 kernel suppot
[librecmc/librecmc.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                 spi-max-frequency = <10000000>;
58
59                 partition@0 {
60                         label = "u-boot";
61                         reg = <0x0 0x30000>;
62                         read-only;
63                 };
64
65                 partition@30000 {
66                         label = "u-boot-env";
67                         reg = <0x30000 0x10000>;
68                         read-only;
69                 };
70
71                 factory: partition@40000 {
72                         label = "factory";
73                         reg = <0x40000 0x10000>;
74                         read-only;
75                 };
76
77                 partition@50000 {
78                         label = "firmware";
79                         reg = <0x50000 0x1fb0000>;
80                 };
81         };
82 };
83
84 &pinctrl {
85         state_default: pinctrl0 {
86                 gpio {
87                         ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
88                         ralink,function = "gpio";
89                 };
90         };
91 };
92
93 &ethernet {
94         mtd-mac-address = <&factory 0x28>;
95 };
96
97 &esw {
98         mediatek,portmap = <0x3f>;
99 };
100
101 &wmac {
102         ralink,mtd-eeprom = <&factory 0>;
103 };
104
105 &ehci {
106         status = "okay";
107 };
108
109 &ohci {
110         status = "okay";
111 };