ramips: Fix support for PBR-M1 board
[openwrt/openwrt.git] / target / linux / ramips / dts / UR-336UN.dts
1 /dts-v1/;
2
3 /include/ "rt3050.dtsi"
4
5 / {
6 compatible = "UR-336UN", "ralink,rt3052-soc";
7 model = "UPVEL UR-336UN";
8
9 pinctrl {
10 state_default: pinctrl0 {
11 gpio {
12 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
13 ralink,function = "gpio";
14 };
15 };
16 };
17
18 cfi@1f000000 {
19 compatible = "cfi-flash";
20 reg = <0x1f000000 0x800000>;
21 bank-width = <2>;
22 device-width = <2>;
23 #address-cells = <1>;
24 #size-cells = <1>;
25 };
26
27 /* FIXME: no partitions defined */
28 /* ethernet@10100000 {
29 mtd-mac-address = <&factory 0x4004>;
30 };
31 */
32 esw@10110000 {
33 ralink,portmap = <0x2f>;
34 };
35
36 /* FIXME: no partitions defined */
37 /* wmac@10180000 {
38 ralink,mtd-eeprom = <&factory 0>;
39 };
40 */
41 gpio-leds {
42 compatible = "gpio-leds";
43
44 3g {
45 label = "ur-336un:green:3g";
46 gpios = <&gpio0 9 1>;
47 };
48
49 gateway {
50 label = "ur-336un:green:gateway";
51 gpios = <&gpio0 11 1>;
52 };
53
54 ap {
55 label = "ur-336un:green:ap";
56 gpios = <&gpio0 12 1>;
57 };
58
59 wps {
60 label = "ur-336un:green:wps";
61 gpios = <&gpio0 14 1>;
62 };
63
64 station {
65 label = "ur-336un:green:station";
66 gpios = <&gpio0 13 1>;
67 };
68 };
69
70 gpio-keys-polled {
71 compatible = "gpio-keys-polled";
72 #address-cells = <1>;
73 #size-cells = <0>;
74 poll-interval = <20>;
75
76 reset_wps {
77 label = "reset_wps";
78 gpios = <&gpio0 10 1>;
79 linux,code = <0x198>;
80 };
81
82 mode {
83 label = "mode";
84 gpios = <&gpio0 7 1>;
85 linux,code = <0x32>;
86 };
87 };
88
89 otg@101c0000 {
90 status = "okay";
91 };
92 };