lantiq: add 3.18 support
[openwrt/svn-archive/archive.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 spi@b00 {
14 status = "okay";
15 m25p80@0 {
16 #address-cells = <1>;
17 #size-cells = <1>;
18 compatible = "mx25l6405d";
19 reg = <0 0>;
20 linux,modalias = "m25p80", "mx25l6405d";
21 spi-max-frequency = <10000000>;
22 partition@0 {
23 label = "u-boot";
24 reg = <0x0 0x30000>;
25 read-only;
26 };
27 partition@30000 {
28 label = "u-boot-env";
29 reg = <0x30000 0x10000>;
30 read-only;
31 };
32 factory: partition@40000 {
33 label = "factory";
34 reg = <0x40000 0x10000>;
35 read-only;
36 };
37 partition@50000 {
38 label = "firmware";
39 reg = <0x50000 0x7b0000>;
40 };
41 };
42 };
43 };
44
45 pinctrl {
46 state_default: pinctrl0 {
47 gpio {
48 ralink,group = "i2c", "jtag", "uartf";
49 ralink,function = "gpio";
50 };
51 };
52 };
53
54 ethernet@10100000 {
55 mtd-mac-address = <&factory 0x28>;
56 };
57
58 esw@10110000 {
59 ralink,portmap = <0x10>;
60 };
61
62 wmac@10180000 {
63 ralink,mtd-eeprom = <&factory 0>;
64 };
65
66 ehci@101c0000 {
67 status = "okay";
68 };
69
70 ohci@101c1000 {
71 status = "okay";
72 };
73
74 gpio-leds {
75 compatible = "gpio-leds";
76 wlan {
77 label = "ht-tm02:blue:wlan";
78 gpios = <&gpio0 7 1>;
79 };
80 lan {
81 label = "ht-tm02:green:lan";
82 gpios = <&gpio0 12 1>;
83 };
84
85 };
86
87 gpio-keys-polled {
88 compatible = "gpio-keys-polled";
89 #address-cells = <1>;
90 #size-cells = <0>;
91 poll-interval = <20>;
92 reset {
93 label = "reset";
94 gpios = <&gpio0 10 1>;
95 linux,code = <0x198>;
96 };
97 modeswitch {
98 label = "modeswitch";
99 gpios = <&gpio0 14 1>;
100 linux,code = <0x100>;
101 linux,input-type = <5>;
102 };
103 };
104 };