ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / rt3050_asus_rt-g32-b1.dts
1 #include "rt3050.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "asus,rt-g32-b1", "ralink,rt3050-soc";
8 model = "Asus RT-G32 B1";
9
10 keys {
11 compatible = "gpio-keys-polled";
12 poll-interval = <20>;
13
14 reset {
15 label = "reset";
16 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
17 linux,code = <KEY_RESTART>;
18 };
19
20 wps {
21 label = "wps";
22 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_WPS_BUTTON>;
24 };
25 };
26 };
27
28 &spi0 {
29 status = "okay";
30
31 flash@0 {
32 compatible = "jedec,spi-nor";
33 reg = <0>;
34 spi-max-frequency = <10000000>;
35
36 partitions {
37 compatible = "fixed-partitions";
38 #address-cells = <1>;
39 #size-cells = <1>;
40
41 partition@0 {
42 label = "u-boot";
43 reg = <0x0 0x30000>;
44 read-only;
45 };
46
47 partition@30000 {
48 label = "devdata";
49 reg = <0x30000 0x10000>;
50 read-only;
51 };
52
53 partition@40000 {
54 label = "devconf";
55 reg = <0x40000 0x10000>;
56 read-only;
57
58 nvmem-layout {
59 compatible = "fixed-layout";
60 #address-cells = <1>;
61 #size-cells = <1>;
62
63 eeprom_devconf_0: eeprom@0 {
64 reg = <0x0 0x200>;
65 };
66
67 macaddr_devconf_4: macaddr@4 {
68 reg = <0x4 0x6>;
69 };
70 };
71 };
72
73 partition@50000 {
74 compatible = "denx,uimage";
75 label = "firmware";
76 reg = <0x50000 0x3b0000>;
77 };
78 };
79 };
80 };
81
82 &state_default {
83 gpio {
84 groups = "i2c", "jtag", "rgmii", "mdio", "uartf";
85 function = "gpio";
86 };
87 };
88
89 &ethernet {
90 nvmem-cells = <&macaddr_devconf_4>;
91 nvmem-cell-names = "mac-address";
92 };
93
94 &esw {
95 mediatek,portmap = <0x2f>;
96 };
97
98 &wmac {
99 nvmem-cells = <&eeprom_devconf_0>;
100 nvmem-cell-names = "eeprom";
101 };