ramips: update device tree source files
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / DIR-320-B1.dts
1 /dts-v1/;
2
3 #include "rt5350.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "dlink,dir-320-b1", "ralink,rt5350-soc";
10 model = "D-Link DIR-320 B1";
11
12 gpio-leds {
13 compatible = "gpio-leds";
14
15 status {
16 label = "dir-320-b1:green:status";
17 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
18 };
19
20 usb {
21 label = "dir-320-b1:green:usb";
22 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
23 };
24
25 wps {
26 label = "dir-320-b1:green:wps";
27 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
28 };
29 };
30
31 gpio-keys-polled {
32 compatible = "gpio-keys-polled";
33 #address-cells = <1>;
34 #size-cells = <0>;
35 poll-interval = <20>;
36
37 reset {
38 label = "reset";
39 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_RESTART>;
41 };
42
43 wps {
44 label = "wps";
45 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_WPS_BUTTON>;
47 };
48 };
49
50 gpio_export {
51 compatible = "gpio-export";
52 #size-cells = <0>;
53
54 usb {
55 gpio-export,name = "usb";
56 gpio-export,output = <1>;
57 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
58 };
59
60 root_hub {
61 gpio-export,name = "root_hub";
62 gpio-export,output = <1>;
63 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
64 };
65 };
66 };
67
68 &spi0 {
69 status = "okay";
70
71 m25p80@0 {
72 #address-cells = <1>;
73 #size-cells = <1>;
74 compatible = "jedec,spi-nor";
75 reg = <0>;
76 spi-max-frequency = <10000000>;
77
78 partition@0 {
79 label = "u-boot";
80 reg = <0x0 0x30000>;
81 read-only;
82 };
83
84 partition@30000 {
85 label = "u-boot-env";
86 reg = <0x30000 0x10000>;
87 read-only;
88 };
89
90 factory: partition@40000 {
91 label = "factory";
92 reg = <0x40000 0x10000>;
93 read-only;
94 };
95
96 partition@50000 {
97 label = "firmware";
98 reg = <0x50000 0x7b0000>;
99 };
100 };
101 };
102
103 &pinctrl {
104 state_default: pinctrl0 {
105 gpio {
106 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
107 ralink,function = "gpio";
108 };
109 };
110 };
111
112 &ethernet {
113 mtd-mac-address = <&factory 0x4>;
114 };
115
116 &esw {
117 mediatek,portmap = <0x2f>;
118 mediatek,led_polarity = <0x17>;
119 };
120
121 &wmac {
122 ralink,mtd-eeprom = <&factory 0>;
123 };
124
125 &ehci {
126 status = "okay";
127 };
128
129 &ohci {
130 status = "okay";
131 };