ramips: Disable all ethernet ports except port 4 on HT-TM02.
[15.05/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                 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                 ralink,portdisable = <0x2f>;
61         };
62
63         wmac@10180000 {
64                 ralink,mtd-eeprom = <&factory 0>;
65         };
66
67         ehci@101c0000 {
68                 status = "okay";
69         };
70
71         ohci@101c1000 {
72                 status = "okay";
73         };
74
75         gpio-leds {
76                 compatible = "gpio-leds";
77                 wlan {
78                         label = "ht-tm02:blue:wlan";
79                         gpios = <&gpio0 7 1>;
80                 };
81                 lan {
82                         label = "ht-tm02:green:lan";
83                         gpios = <&gpio0 12 1>;
84                 };
85
86         };
87
88         gpio-keys-polled {
89                 compatible = "gpio-keys-polled";
90                 #address-cells = <1>;
91                 #size-cells = <0>;
92                 poll-interval = <20>;
93                 reset {
94                         label = "reset";
95                         gpios = <&gpio0 10 1>;
96                         linux,code = <0x198>;
97                 };
98                 modeswitch {
99                         label = "modeswitch";
100                         gpios = <&gpio0 14 1>;
101                         linux,code = <0x100>;
102                         linux,input-type = <5>;
103                 };
104         };
105 };