kernel: bump 4.9 to 4.9.65
[oweals/openwrt.git] / target / linux / ramips / dts / DB-WRT01.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         compatible = "planex,db-wrt01", "ralink,mt7620a-soc";
10         model = "Planex DB-WRT01";
11
12         gpio-leds {
13                 compatible = "gpio-leds";
14
15                 power {
16                         label = "db-wrt01:orange:power";
17                         gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
18                 };
19         };
20
21         gpio-keys-polled {
22                 compatible = "gpio-keys-polled";
23                 #address-cells = <1>;
24                 #size-cells = <0>;
25                 poll-interval = <20>;
26
27                 s1 {
28                         label = "wps";
29                         gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
30                         linux,code = <KEY_WPS_BUTTON>;
31                 };
32         };
33 };
34
35 &gpio1 {
36         status = "okay";
37 };
38
39 &spi0 {
40         status = "okay";
41
42         m25p80@0 {
43                 #address-cells = <1>;
44                 #size-cells = <1>;
45                 compatible = "jedec,spi-nor";
46                 reg = <0>;
47                 spi-max-frequency = <10000000>;
48
49                 partition@0 {
50                         label = "u-boot";
51                         reg = <0x0 0x30000>;
52                         read-only;
53                 };
54
55                 partition@30000 {
56                         label = "u-boot-env";
57                         reg = <0x30000 0x10000>;
58                         read-only;
59                 };
60
61                 factory: partition@40000 {
62                         label = "factory";
63                         reg = <0x40000 0x10000>;
64                         read-only;
65                 };
66
67                 partition@50000 {
68                         label = "firmware";
69                         reg = <0x50000 0x7b0000>;
70                 };
71         };
72 };
73
74 &pinctrl {
75         state_default: pinctrl0 {
76                 gpio {
77                         ralink,group = "i2c", "spi refclk", "rgmii1";
78                         ralink,function = "gpio";
79                 };
80         };
81 };
82
83 &ethernet {
84         pinctrl-names = "default";
85         pinctrl-0 = <&ephy_pins>;
86         mtd-mac-address = <&factory 0x4>;
87         mediatek,portmap = "llllw";
88 };
89
90 &gsw {
91         mediatek,port4 = "ephy";
92 };
93
94 &wmac {
95         ralink,mtd-eeprom = <&factory 0>;
96 };
97
98 &pcie {
99         status = "okay";
100 };