ramips: move partitions into partition table node
[openwrt/staging/jogo.git] / target / linux / ramips / dts / DIR-620-D1.dts
1 /dts-v1/;
2
3 #include "rt3352.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "dlink,dir-620-d1", "ralink,rt3352-soc";
10 model = "D-Link DIR-620 D1";
11
12 aliases {
13 led-status = &led_status;
14 };
15
16 gpio-leds {
17 compatible = "gpio-leds";
18
19 led_status: status {
20 label = "dir-620-d1:green:status";
21 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
22 };
23
24 wifi {
25 label = "dir-620-d1:green:wifi";
26 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
27 };
28 };
29
30 gpio-keys-polled {
31 compatible = "gpio-keys-polled";
32 poll-interval = <20>;
33
34 reset_wps {
35 label = "reset_wps";
36 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RESTART>;
38 };
39 };
40 };
41
42 &spi0 {
43 status = "okay";
44
45 m25p80@0 {
46 compatible = "jedec,spi-nor";
47 reg = <0>;
48 spi-max-frequency = <10000000>;
49
50 partitions {
51 compatible = "fixed-partitions";
52 #address-cells = <1>;
53 #size-cells = <1>;
54
55 partition@0 {
56 label = "u-boot";
57 reg = <0x0 0x30000>;
58 read-only;
59 };
60
61 partition@30000 {
62 label = "u-boot-env";
63 reg = <0x30000 0x10000>;
64 read-only;
65 };
66
67 factory: partition@40000 {
68 label = "factory";
69 reg = <0x40000 0x10000>;
70 read-only;
71 };
72
73 partition@50000 {
74 label = "firmware";
75 reg = <0x50000 0x7b0000>;
76 };
77 };
78 };
79 };
80
81 &pinctrl {
82 state_default: pinctrl0 {
83 gpio {
84 ralink,group = "i2c", "jtag", "uartf";
85 ralink,function = "gpio";
86 };
87 };
88 };
89
90 &ethernet {
91 mtd-mac-address = <&factory 0x4>;
92 pinctrl-names = "default";
93 pinctrl-0 = <&rgmii_pins &mdio_pins>;
94 };
95
96 &esw {
97 mediatek,portmap = <0x2f>;
98 };
99
100 &wmac {
101 ralink,mtd-eeprom = <&factory 0>;
102 };
103
104 &ehci {
105 status = "okay";
106 };
107
108 &ohci {
109 status = "okay";
110 };