ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / rt3052_hauppauge_broadway.dts
1 #include "rt3050.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "hauppauge,broadway", "ralink,rt3052-soc";
8 model = "Hauppauge Broadway";
9
10 flash@1f000000 {
11 compatible = "cfi-flash";
12 reg = <0x1f000000 0x800000>;
13 bank-width = <2>;
14 device-width = <2>;
15
16 partitions {
17 compatible = "fixed-partitions";
18 #address-cells = <1>;
19 #size-cells = <1>;
20
21 partition@0 {
22 label = "bootloader";
23 reg = <0x0 0x30000>;
24 read-only;
25 };
26
27 partition@30000 {
28 label = "config";
29 reg = <0x30000 0x10000>;
30 read-only;
31 };
32
33 factory: partition@40000 {
34 label = "factory";
35 reg = <0x40000 0x10000>;
36 read-only;
37 };
38
39 partition@50000 {
40 compatible = "denx,uimage";
41 label = "firmware";
42 reg = <0x50000 0x790000>;
43 };
44 };
45 };
46
47 leds {
48 compatible = "gpio-leds";
49
50 diskmounted {
51 label = "red:diskmounted";
52 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
53 trigger-sources = <&otg_port1>;
54 linux,default-trigger = "usbport";
55 };
56
57 wps_active {
58 label = "red:wps_active";
59 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
60 };
61 };
62
63 keys {
64 compatible = "gpio-keys-polled";
65 poll-interval = <20>;
66
67 factory {
68 label = "Factory Reset button";
69 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
70 linux,code = <KEY_RESTART>;
71 };
72 };
73 };
74
75 &state_default {
76 gpio {
77 groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
78 function = "gpio";
79 };
80 };
81
82 &ethernet {
83 nvmem-cells = <&macaddr_factory_4>;
84 nvmem-cell-names = "mac-address";
85 };
86
87 &esw {
88 mediatek,portmap = <0x3e>;
89 };
90
91 &wmac {
92 ralink,mtd-eeprom = <&factory 0x0>;
93 };
94
95 &otg {
96 status = "okay";
97 };
98
99 &factory {
100 compatible = "nvmem-cells";
101 #address-cells = <1>;
102 #size-cells = <1>;
103
104 macaddr_factory_4: macaddr@4 {
105 reg = <0x4 0x6>;
106 };
107 };