ramips: convert rt2x00 EEPROM to NVMEM format
[openwrt/staging/jow.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 compatible = "nvmem-cells";
35 label = "factory";
36 reg = <0x40000 0x10000>;
37 #address-cells = <1>;
38 #size-cells = <1>;
39 read-only;
40
41 eeprom_factory_0: eeprom@0 {
42 reg = <0x0 0x200>;
43 };
44
45 macaddr_factory_4: macaddr@4 {
46 reg = <0x4 0x6>;
47 };
48 };
49
50 partition@50000 {
51 compatible = "denx,uimage";
52 label = "firmware";
53 reg = <0x50000 0x790000>;
54 };
55 };
56 };
57
58 leds {
59 compatible = "gpio-leds";
60
61 diskmounted {
62 label = "red:diskmounted";
63 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
64 trigger-sources = <&otg_port1>;
65 linux,default-trigger = "usbport";
66 };
67
68 wps_active {
69 label = "red:wps_active";
70 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
71 };
72 };
73
74 keys {
75 compatible = "gpio-keys-polled";
76 poll-interval = <20>;
77
78 factory {
79 label = "Factory Reset button";
80 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
81 linux,code = <KEY_RESTART>;
82 };
83 };
84 };
85
86 &state_default {
87 gpio {
88 groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
89 function = "gpio";
90 };
91 };
92
93 &ethernet {
94 nvmem-cells = <&macaddr_factory_4>;
95 nvmem-cell-names = "mac-address";
96 };
97
98 &esw {
99 mediatek,portmap = <0x3e>;
100 };
101
102 &wmac {
103 nvmem-cells = <&eeprom_factory_0>;
104 nvmem-cell-names = "eeprom";
105 };
106
107 &otg {
108 status = "okay";
109 };