ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7620a_phicomm_k2x.dtsi
1 #include "mt7620a.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
6
7 / {
8 aliases {
9 led-boot = &led_blue;
10 led-failsafe = &led_blue;
11 led-running = &led_blue;
12 led-upgrade = &led_blue;
13 };
14
15 keys {
16 compatible = "gpio-keys";
17
18 reset {
19 label = "reset";
20 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
21 linux,code = <KEY_RESTART>;
22 };
23 };
24
25 leds {
26 compatible = "gpio-leds";
27
28 led_blue: blue {
29 function = LED_FUNCTION_STATUS;
30 color = <LED_COLOR_ID_BLUE>;
31 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
32 default-state = "on";
33 };
34
35 yellow {
36 function = LED_FUNCTION_STATUS;
37 color = <LED_COLOR_ID_YELLOW>;
38 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
39 };
40
41 red {
42 function = LED_FUNCTION_STATUS;
43 color = <LED_COLOR_ID_RED>;
44 gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
45 };
46 };
47 };
48
49 &spi0 {
50 status = "okay";
51
52 flash@0 {
53 compatible = "jedec,spi-nor";
54 reg = <0>;
55 spi-max-frequency = <80000000>;
56 m25p,fast-read;
57
58 partitions: partitions {
59 compatible = "fixed-partitions";
60 #address-cells = <1>;
61 #size-cells = <1>;
62
63 partition@0 {
64 label = "u-boot";
65 reg = <0x0 0x30000>;
66 read-only;
67 };
68
69 partition@30000 {
70 label = "u-boot-env";
71 reg = <0x30000 0x10000>;
72 read-only;
73 };
74
75 partition@40000 {
76 label = "factory";
77 reg = <0x40000 0x10000>;
78 read-only;
79
80 nvmem-layout {
81 compatible = "fixed-layout";
82 #address-cells = <1>;
83 #size-cells = <1>;
84
85 eeprom_factory_0: eeprom@0 {
86 reg = <0x0 0x200>;
87 };
88
89 eeprom_factory_8000: eeprom@8000 {
90 reg = <0x8000 0x200>;
91 };
92
93 macaddr_factory_28: macaddr@28 {
94 reg = <0x28 0x6>;
95 };
96 };
97 };
98 };
99 };
100 };
101
102 &state_default {
103 gpio {
104 groups = "i2c", "uartf";
105 function = "gpio";
106 };
107 };
108
109 &pcie {
110 status = "okay";
111 };
112
113 &pcie0 {
114 mt76@0,0 {
115 reg = <0x0000 0 0 0 0>;
116 nvmem-cells = <&eeprom_factory_8000>;
117 nvmem-cell-names = "eeprom";
118 ieee80211-freq-limit = <5000000 6000000>;
119 };
120 };
121
122 &ethernet {
123 nvmem-cells = <&macaddr_factory_28>;
124 nvmem-cell-names = "mac-address";
125 };
126
127 &wmac {
128 nvmem-cells = <&eeprom_factory_0>;
129 nvmem-cell-names = "eeprom";
130 };