ramips: set F5D8235 v1 usb led trigger via devicetree
[openwrt/openwrt.git] / target / linux / ramips / dts / A5-V11.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 = "unbranded,a5-v11", "ralink,rt5350-soc";
10 model = "A5-V11";
11
12 aliases {
13 led-status = &led_power;
14 };
15
16 gpio-leds {
17 compatible = "gpio-leds";
18
19 system {
20 label = "a5-v11:blue:system";
21 gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
22 };
23
24 led_power: power {
25 label = "a5-v11:red:power";
26 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
27 };
28 };
29
30 gpio-keys-polled {
31 compatible = "gpio-keys-polled";
32 poll-interval = <20>;
33
34 reset {
35 label = "reset";
36 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RESTART>;
38 };
39 };
40
41 gpio_export {
42 compatible = "gpio-export";
43 #size-cells = <0>;
44
45 usb {
46 gpio-export,name = "usb";
47 gpio-export,output = <1>;
48 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
49 };
50
51 root_hub {
52 gpio-export,name = "root_hub";
53 gpio-export,output = <1>;
54 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
55 };
56 };
57 };
58
59 &spi0 {
60 status = "okay";
61
62 m25p80@0 {
63 compatible = "jedec,spi-nor";
64 reg = <0>;
65 spi-max-frequency = <10000000>;
66
67 partitions {
68 compatible = "fixed-partitions";
69 #address-cells = <1>;
70 #size-cells = <1>;
71
72 partition@0 {
73 label = "u-boot";
74 reg = <0x0 0x30000>;
75 read-only;
76 };
77
78 partition@30000 {
79 label = "u-boot-env";
80 reg = <0x30000 0x10000>;
81 read-only;
82 };
83
84 factory: partition@40000 {
85 label = "factory";
86 reg = <0x40000 0x10000>;
87 read-only;
88 };
89
90 partition@50000 {
91 label = "firmware";
92 reg = <0x50000 0x3b0000>;
93 };
94 };
95 };
96 };
97
98 &gpio1 {
99 status = "okay";
100 };
101
102 &pinctrl {
103 state_default: pinctrl0 {
104 gpio {
105 ralink,group = "i2c", "jtag", "uartf", "led";
106 ralink,function = "gpio";
107 };
108 };
109 };
110
111 &ethernet {
112 mtd-mac-address = <&factory 0x4>;
113 };
114
115 &esw {
116 mediatek,portmap = <0x1>;
117 mediatek,portdisable = <0x3e>;
118 };
119
120 &wmac {
121 ralink,mtd-eeprom = <&factory 0>;
122 };
123
124 &ehci {
125 status = "okay";
126 };
127
128 &ohci {
129 status = "okay";
130 };