ramips: use consistent naming scheme for LEDs
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / MZK-DP150N.dts
1 /dts-v1/;
2
3 /include/ "rt5350.dtsi"
4
5 / {
6 compatible = "MZK-DP150N", "ralink,rt5350-soc";
7 model = "Planex MZK-DP150N";
8
9 palmbus@10000000 {
10 gpio1: gpio@660 {
11 status = "okay";
12 };
13
14 spi@b00 {
15 status = "okay";
16
17 m25p80@0 {
18 #address-cells = <1>;
19 #size-cells = <1>;
20 compatible = "s25fl064k";
21 reg = <0>;
22 linux,modalias = "m25p80", "s25fl064k";
23 spi-max-frequency = <10000000>;
24
25 partition@0 {
26 label = "uboot";
27 reg = <0x0 0x30000>;
28 read-only;
29 };
30
31 partition@30000 {
32 label = "uboot-env";
33 reg = <0x30000 0x10000>;
34 read-only;
35 };
36
37 factory: partition@40000 {
38 label = "factory";
39 reg = <0x40000 0x10000>;
40 read-only;
41 };
42
43 partition@50000 {
44 label = "firmware";
45 reg = <0x50000 0x3b0000>;
46 };
47 };
48
49 spidev@1 {
50 compatible = "linux,spidev";
51 spi-max-frequency = <10000000>;
52 reg = <1>;
53 };
54 };
55 };
56
57 pinctrl {
58 state_default: pinctrl0 {
59 gpio {
60 ralink,group = "jtag", "uartf", "led";
61 ralink,function = "gpio";
62 };
63 };
64 };
65
66 ethernet@10100000 {
67 mtd-mac-address = <&factory 0x4>;
68 };
69
70 esw@10110000 {
71 ralink,portmap = <0x17>;
72 };
73
74 wmac@10180000 {
75 ralink,mtd-eeprom = <&factory 0>;
76 ralink,led-polarity = <1>;
77 };
78
79 gpio-leds {
80 compatible = "gpio-leds";
81
82 power {
83 label = "mzk-dp150n:green:power";
84 gpios = <&gpio0 9 1>;
85 };
86 };
87
88 gpio-keys-polled {
89 compatible = "gpio-keys-polled";
90 #address-cells = <1>;
91 #size-cells = <0>;
92 poll-interval = <20>;
93
94 reset {
95 label = "reset";
96 gpios = <&gpio0 10 1>;
97 linux,code = <0x198>;
98 };
99 };
100 };