ramips: remove model name from LED labels
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7620a_phicomm_psg1218.dtsi
1 #include "mt7620a.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "phicomm,psg1218", "ralink,mt7620a-soc";
8
9 aliases {
10 led-boot = &led_blue;
11 led-failsafe = &led_blue;
12 led-running = &led_blue;
13 led-upgrade = &led_blue;
14 };
15
16 keys {
17 compatible = "gpio-keys";
18
19 reset {
20 label = "reset";
21 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
22 linux,code = <KEY_RESTART>;
23 };
24 };
25
26 leds {
27 compatible = "gpio-leds";
28
29 led_blue: blue {
30 label = "blue:status";
31 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
32 default-state = "on";
33 };
34
35 yellow {
36 label = "yellow:status";
37 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
38 };
39
40 red {
41 label = "red:status";
42 gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
43 };
44 };
45 };
46
47 &gpio0 {
48 status = "okay";
49 };
50
51 &spi0 {
52 status = "okay";
53
54 flash@0 {
55 compatible = "jedec,spi-nor";
56 reg = <0>;
57 spi-max-frequency = <10000000>;
58
59 partitions {
60 compatible = "fixed-partitions";
61 #address-cells = <1>;
62 #size-cells = <1>;
63
64 partition@0 {
65 label = "u-boot";
66 reg = <0x0 0x30000>;
67 read-only;
68 };
69
70 partition@20000 {
71 label = "u-boot-env";
72 reg = <0x30000 0x10000>;
73 read-only;
74 };
75
76 factory: partition@30000 {
77 label = "factory";
78 reg = <0x40000 0x10000>;
79 read-only;
80 };
81
82 partition@40000 {
83 compatible = "denx,uimage";
84 label = "firmware";
85 reg = <0x50000 0x7b0000>;
86 };
87 };
88 };
89 };
90
91 &pcie {
92 status = "okay";
93 };
94
95 &pcie0 {
96 mt76@0,0 {
97 reg = <0x0000 0 0 0 0>;
98 mediatek,mtd-eeprom = <&factory 0x8000>;
99 ieee80211-freq-limit = <5000000 6000000>;
100 };
101 };
102
103 &wmac {
104 ralink,mtd-eeprom = <&factory 0x0>;
105 };