ramips: Use dts alias based status led
[openwrt/openwrt.git] / target / linux / ramips / dts / WRTNODE.dts
1 /dts-v1/;
2
3 #include "mt7620n.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6
7 / {
8 compatible = "wrtnode,wrtnode", "ralink,mt7620n-soc";
9 model = "WRTNODE";
10
11 aliases {
12 led-status = &led_indicator;
13 };
14
15 gpio-leds {
16 compatible = "gpio-leds";
17
18 led_indicator: indicator {
19 label = "wrtnode:blue:indicator";
20 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
21 };
22 };
23 };
24
25 &gpio1 {
26 status = "okay";
27 };
28
29 &gpio2 {
30 status = "okay";
31 };
32
33 &gpio3 {
34 status = "okay";
35 };
36
37 &spi0 {
38 status = "okay";
39
40 m25p80@0 {
41 #address-cells = <1>;
42 #size-cells = <1>;
43 compatible = "jedec,spi-nor";
44 reg = <0>;
45 spi-max-frequency = <10000000>;
46
47 partition@0 {
48 label = "u-boot";
49 reg = <0x0 0x30000>;
50 read-only;
51 };
52
53 partition@30000 {
54 label = "u-boot-env";
55 reg = <0x30000 0x10000>;
56 read-only;
57 };
58
59 factory: partition@40000 {
60 label = "factory";
61 reg = <0x40000 0x10000>;
62 read-only;
63 };
64
65 partition@50000 {
66 label = "firmware";
67 reg = <0x50000 0xfb0000>;
68 };
69 };
70 };
71
72 &ehci {
73 status = "okay";
74 };
75
76 &ohci {
77 status = "okay";
78 };
79
80 &ethernet {
81 mtd-mac-address = <&factory 0x4>;
82 mediatek,portmap = "wllll";
83 };
84
85 &wmac {
86 ralink,mtd-eeprom = <&factory 0>;
87 };
88
89 &pinctrl {
90 state_default: pinctrl0 {
91 default {
92 ralink,group = "ephy", "wled", "pa", "i2c", "wdt", "uartf", "spi refclk";
93 ralink,function = "gpio";
94 };
95 };
96 };