ramips: fix power LED DTB for wt3020
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / JHR-N805R.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "jcg,jhr-n805r", "ralink,rt3050-soc";
10 model = "JCG JHR-N805R";
11
12 aliases {
13 led-status = &led_system;
14 };
15
16 gpio-leds {
17 compatible = "gpio-leds";
18
19 led_system: system {
20 label = "jhr-n805r:blue:system";
21 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
22 };
23 };
24
25 gpio-keys-polled {
26 compatible = "gpio-keys-polled";
27 poll-interval = <20>;
28
29 reset {
30 label = "reset";
31 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_RESTART>;
33 };
34 };
35 };
36
37 &pinctrl {
38 state_default: pinctrl0 {
39 gpio {
40 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
41 ralink,function = "gpio";
42 };
43 };
44 };
45
46 &spi0 {
47 status = "okay";
48
49 m25p80@0 {
50 compatible = "jedec,spi-nor";
51 reg = <0>;
52 spi-max-frequency = <10000000>;
53
54 partitions {
55 compatible = "fixed-partitions";
56 #address-cells = <1>;
57 #size-cells = <1>;
58
59 partition@0 {
60 label = "u-boot";
61 reg = <0x0 0x30000>;
62 read-only;
63 };
64
65 partition@30000 {
66 label = "u-boot-env";
67 reg = <0x30000 0x10000>;
68 read-only;
69 };
70
71 factory: partition@40000 {
72 label = "factory";
73 reg = <0x40000 0x10000>;
74 read-only;
75 };
76
77 partition@50000 {
78 label = "firmware";
79 reg = <0x50000 0x3b0000>;
80 };
81 };
82 };
83 };
84
85 &ethernet {
86 mtd-mac-address = <&factory 0x2e>;
87 };
88
89 &esw {
90 mediatek,portmap = <0x3e>;
91 };
92
93 &wmac {
94 ralink,mtd-eeprom = <&factory 0>;
95 };