generic: rtl8366rb: fix compatible string
[openwrt/openwrt.git] / target / linux / ramips / dts / WL-351.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "WL-351", "ralink,rt3052-soc";
9 model = "Sitecom WL-351 v1 002";
10
11 cfi@1f000000 {
12 compatible = "cfi-flash";
13 reg = <0x1f000000 0x800000>;
14 bank-width = <2>;
15 device-width = <2>;
16 #address-cells = <1>;
17 #size-cells = <1>;
18
19 partition@0 {
20 label = "u-boot";
21 reg = <0x0 0x30000>;
22 read-only;
23 };
24
25 partition@30000 {
26 label = "u-boot-env";
27 reg = <0x30000 0x10000>;
28 read-only;
29 };
30
31 factory: partition@40000 {
32 label = "factory";
33 reg = <0x40000 0x10000>;
34 read-only;
35 };
36
37 partition@50000 {
38 label = "firmware";
39 reg = <0x50000 0x3b0000>;
40 };
41 };
42
43 gpio-leds {
44 compatible = "gpio-leds";
45
46 power {
47 label = "wl-351:amber:power";
48 gpios = <&gpio0 8 1>;
49 };
50
51 unpopulated {
52 label = "wl-351:amber:unpopulated";
53 gpios = <&gpio0 12 1>;
54 };
55
56 unpopulated2 {
57 label = "wl-351:blue:unpopulated";
58 gpios = <&gpio0 13 1>;
59 };
60 };
61
62 gpio-keys-polled {
63 compatible = "gpio-keys-polled";
64 #address-cells = <1>;
65 #size-cells = <0>;
66 poll-interval = <20>;
67
68 reset {
69 label = "reset";
70 gpios = <&gpio0 10 1>;
71 linux,code = <KEY_RESTART>;
72 };
73
74 wps {
75 label = "wps";
76 gpios = <&gpio0 0 1>;
77 linux,code = <KEY_WPS_BUTTON>;
78 };
79 };
80
81 rtl8366rb {
82 compatible = "realtek,rtl8366rb";
83 gpio-sda = <&gpio0 1 0>;
84 gpio-sck = <&gpio0 2 0>;
85 };
86 };
87
88 &pinctrl {
89 state_default: pinctrl0 {
90 gpio {
91 ralink,group = "spi", "i2c", "jtag", "mdio", "uartf";
92 ralink,function = "gpio";
93 };
94 rgmii {
95 ralink,group = "rgmii";
96 ralink,function = "rgmii";
97 };
98 };
99 };
100
101 &ethernet {
102 mtd-mac-address = <&factory 0x4>;
103 };
104
105 &esw {
106 ralink,rgmii = <1>;
107 mediatek,portmap = <0x3f>;
108 ralink,fct2 = <0x0002500c>;
109 /*
110 * ext phy base addr 31, rx/tx clock skew 0,
111 * turbo mii off, rgmi 3.3v off, port 5 polling off
112 * port5: enabled, gige, full-duplex, rx/tx-flow-control
113 * port6: enabled, gige, full-duplex, rx/tx-flow-control
114 */
115 ralink,fpa2 = <0x1f003fff>;
116 };
117
118 &wmac {
119 ralink,mtd-eeprom = <&factory 0>;
120 };
121
122 &otg {
123 status = "okay";
124 };