ramips: Change all '/include/' clauses to '#include' so preprocessing can be done...
[openwrt.git] / target / linux / ramips / dts / HT-TM02.dts
1 /dts-v1/;
2
3 #include "rt5350.dtsi"
4
5 / {
6         compatible = "HT-TM02", "ralink,rt5350-soc";
7         model = "HooToo HT-TM02";
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", "mx25l6405d";
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 0x7b0000>;
46                                 };
47                         };
48                 };
49         };
50
51         pinctrl {
52                 state_default: pinctrl0 {
53                         gpio {
54                                 ralink,group = "i2c", "jtag", "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 = <0x10>;
66                 mediatek,portdisable = <0x2f>;
67         };
68
69         wmac@10180000 {
70                 ralink,mtd-eeprom = <&factory 0>;
71         };
72
73         ehci@101c0000 {
74                 status = "okay";
75         };
76
77         ohci@101c1000 {
78                 status = "okay";
79         };
80
81         gpio-leds {
82                 compatible = "gpio-leds";
83
84                 wlan {
85                         label = "ht-tm02:blue:wlan";
86                         gpios = <&gpio0 7 1>;
87                 };
88
89                 lan {
90                         label = "ht-tm02:green:lan";
91                         gpios = <&gpio0 12 1>;
92                 };
93         };
94
95         gpio-keys-polled {
96                 compatible = "gpio-keys-polled";
97                 #address-cells = <1>;
98                 #size-cells = <0>;
99                 poll-interval = <20>;
100
101                 reset {
102                         label = "reset";
103                         gpios = <&gpio0 10 1>;
104                         linux,code = <0x198>;
105                 };
106
107                 modeswitch {
108                         label = "modeswitch";
109                         gpios = <&gpio0 14 1>;
110                         linux,code = <0x100>;
111                         linux,input-type = <5>;
112                 };
113         };
114 };