ramips: move partitions into partition table node
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / WRTNODE.dts
1 /dts-v1/;
2
3 #include "mt7620n.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6
7 / {
8 compatible = "wrtnode,wrtnode", "ralink,mt7620n-soc";
9 model = "WRTNODE";
10
11 aliases {
12 led-status = &led_indicator;
13 };
14
15 gpio-leds {
16 compatible = "gpio-leds";
17
18 led_indicator: indicator {
19 label = "wrtnode:blue:indicator";
20 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
21 };
22 };
23 };
24
25 &gpio1 {
26 status = "okay";
27 };
28
29 &gpio2 {
30 status = "okay";
31 };
32
33 &gpio3 {
34 status = "okay";
35 };
36
37 &spi0 {
38 status = "okay";
39
40 m25p80@0 {
41 compatible = "jedec,spi-nor";
42 reg = <0>;
43 spi-max-frequency = <10000000>;
44
45 partitions {
46 compatible = "fixed-partitions";
47 #address-cells = <1>;
48 #size-cells = <1>;
49
50 partition@0 {
51 label = "u-boot";
52 reg = <0x0 0x30000>;
53 read-only;
54 };
55
56 partition@30000 {
57 label = "u-boot-env";
58 reg = <0x30000 0x10000>;
59 read-only;
60 };
61
62 factory: partition@40000 {
63 label = "factory";
64 reg = <0x40000 0x10000>;
65 read-only;
66 };
67
68 partition@50000 {
69 label = "firmware";
70 reg = <0x50000 0xfb0000>;
71 };
72 };
73 };
74 };
75
76 &ehci {
77 status = "okay";
78 };
79
80 &ohci {
81 status = "okay";
82 };
83
84 &ethernet {
85 mtd-mac-address = <&factory 0x4>;
86 mediatek,portmap = "wllll";
87 };
88
89 &wmac {
90 ralink,mtd-eeprom = <&factory 0>;
91 };
92
93 &pinctrl {
94 state_default: pinctrl0 {
95 default {
96 ralink,group = "ephy", "wled", "pa", "i2c", "wdt", "uartf", "spi refclk";
97 ralink,function = "gpio";
98 };
99 };
100 };