kernel: bump 4.9 to 4.9.65
[oweals/openwrt.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         gpio-leds {
12                 compatible = "gpio-leds";
13
14                 indicator {
15                         label = "wrtnode:blue:indicator";
16                         gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
17                 };
18         };
19 };
20
21 &gpio1 {
22         status = "okay";
23 };
24
25 &gpio2 {
26         status = "okay";
27 };
28
29 &gpio3 {
30         status = "okay";
31 };
32
33 &spi0 {
34         status = "okay";
35
36         m25p80@0 {
37                 #address-cells = <1>;
38                 #size-cells = <1>;
39                 compatible = "jedec,spi-nor";
40                 reg = <0>;
41                 spi-max-frequency = <10000000>;
42
43                 partition@0 {
44                         label = "u-boot";
45                         reg = <0x0 0x30000>;
46                         read-only;
47                 };
48
49                 partition@30000 {
50                         label = "u-boot-env";
51                         reg = <0x30000 0x10000>;
52                         read-only;
53                 };
54
55                 factory: partition@40000 {
56                         label = "factory";
57                         reg = <0x40000 0x10000>;
58                         read-only;
59                 };
60
61                 partition@50000 {
62                         label = "firmware";
63                         reg = <0x50000 0xfb0000>;
64                 };
65         };
66 };
67
68 &ehci {
69         status = "okay";
70 };
71
72 &ohci {
73         status = "okay";
74 };
75
76 &ethernet {
77         mtd-mac-address = <&factory 0x4>;
78         mediatek,portmap = "wllll";
79 };
80
81 &wmac {
82         ralink,mtd-eeprom = <&factory 0>;
83 };
84
85 &pinctrl {
86         state_default: pinctrl0 {
87                 default {
88                         ralink,group = "ephy", "wled", "pa", "i2c", "wdt", "uartf", "spi refclk";
89                         ralink,function = "gpio";
90                 };
91         };
92 };