]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/gnu/dts/mips/HG255D.dts
MFC r316907: 1300 filename normalization doesn't work for removes
[FreeBSD/FreeBSD.git] / sys / gnu / dts / mips / HG255D.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 / {
6         compatible = "HG255D", "ralink,rt3052-soc";
7         model = "HuaWei HG255D";
8
9         cfi@1f000000 {
10                 compatible = "cfi-flash";
11                 reg = <0x1f000000 0x1000000>;
12                 bank-width = <2>;
13                 device-width = <2>;
14                 #address-cells = <1>;
15                 #size-cells = <1>;
16
17                 partition@0 {
18                         label = "u-boot";
19                         reg = <0x0 0x40000>;
20                         read-only;
21                 };
22
23                 partition@30000 {
24                         label = "u-boot-env";
25                         reg = <0x40000 0x20000>;
26                         read-only;
27                 };
28
29                 factory: partition@60000 {
30                         label = "factory";
31                         reg = <0x60000 0x20000>;
32                         read-only;
33                 };
34
35                 partition@80000 {
36                         label = "firmware";
37                         reg = <0x80000 0xf60000>;
38                 };
39
40                 partition@fa0000 {
41                         label = "factory-orig";
42                         reg = <0xfa0000 0x20000>;
43                         read-only;
44                 };
45         };
46
47         gpio-leds {
48                 compatible = "gpio-leds";
49
50                 power {
51                         label = "hg255d:green:power";
52                         gpios = <&gpio0 8 1>;
53                 };
54
55                 internet {
56                         label = "hg255d:green:internet";
57                         gpios = <&gpio0 13 1>;
58                 };
59
60                 wifi {
61                         label = "hg255d:green:wlan";
62                         gpios = <&gpio0 14 1>;
63                 };
64
65                 usb {
66                         label = "hg255d:green:usb";
67                         gpios = <&gpio0 9 1>;
68                 };
69
70                 wps {
71                         label = "hg255d:green:wps";
72                         gpios = <&gpio0 12 1>;
73                 };
74
75                 voice {
76                         label = "hg255d:green:voice";
77                         gpios = <&gpio0 5 1>;
78                 };
79         };
80
81         gpio-keys-polled {
82                 compatible = "gpio-keys-polled";
83                 #address-cells = <1>;
84                 #size-cells = <0>;
85                 poll-interval = <10>;
86
87                 reset {
88                         label = "reset";
89                         gpios = <&gpio0 4 1>;
90                         linux,code = <0x198>;
91                 };
92
93                 wps {
94                         label = "wps";
95                         gpios = <&gpio0 10 1>;
96                         linux,code = <0x211>;
97                 };
98
99                 rfkill {
100                         label = "rfkill";
101                         gpios = <&gpio0 0 1>;
102                         linux,code = <0xf7>;
103                 };
104         };
105 };
106
107 &pinctrl {
108         state_default: pinctrl0 {
109                 gpio {
110                         ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
111                         ralink,function = "gpio";
112                 };
113         };
114 };
115
116 &ethernet {
117         mtd-mac-address = <&factory 0x28>;
118 };
119
120 &esw {
121         mediatek,portmap = <0x2f>;
122 };
123
124 &wmac {
125         ralink,mtd-eeprom = <&factory 0>;
126 };
127
128 &otg {
129         status = "okay";
130 };