kernel: bump 4.9 to 4.9.65
[oweals/openwrt.git] / target / linux / ramips / dts / CF-WR800N.dts
1 /dts-v1/;
2
3 #include "mt7620n.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         compatible = "comfast,cf-wr800n", "ralink,mt7620n-soc";
10         model = "Comfast CF-WR800N";
11
12         chosen {
13                 bootargs = "console=ttyS0,115200";
14         };
15
16         gpio-leds {
17                 compatible = "gpio-leds";
18
19                 ethernet {
20                         label = "cf-wr800n:white:ethernet";
21                         gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
22                 };
23
24                 wifi {
25                         label = "cf-wr800n:white:wifi";
26                         gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
27                 };
28
29                 wps {
30                         label = "cf-wr800n:white:wps";
31                         gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
32                 };
33         };
34
35         gpio-keys-polled {
36                 compatible = "gpio-keys-polled";
37                 #address-cells = <1>;
38                 #size-cells = <0>;
39                 poll-interval = <20>;
40
41                 reset {
42                         label = "reset";
43                         gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
44                         linux,code = <KEY_RESTART>;
45                 };
46         };
47 };
48
49 &gpio0 {
50         status = "okay";
51 };
52
53 &gpio1 {
54         status = "okay";
55 };
56
57 &gpio2 {
58         status = "okay";
59 };
60
61 &gpio3 {
62         status = "okay";
63 };
64
65 &spi0 {
66         status = "okay";
67
68         m25p80@0 {
69                 #address-cells = <1>;
70                 #size-cells = <1>;
71                 compatible = "jedec,spi-nor";
72                 reg = <0>;
73                 spi-max-frequency = <10000000>;
74
75                 partition@0 {
76                         label = "u-boot";
77                         reg = <0x0 0x30000>;
78                         read-only;
79                 };
80
81                 partition@30000 {
82                         label = "u-boot-env";
83                         reg = <0x30000 0x10000>;
84                         read-only;
85                 };
86
87                 factory: partition@40000 {
88                         label = "factory";
89                         reg = <0x40000 0x10000>;
90                         read-only;
91                 };
92
93                 partition@50000 {
94                         label = "firmware";
95                         reg = <0x50000 0x7b0000>;
96                 };
97         };
98 };
99
100 &ethernet {
101         mtd-mac-address = <&factory 0x4>;
102 };
103
104 &wmac {
105         ralink,mtd-eeprom = <&factory 0>;
106 };
107
108 &pinctrl {
109         state_default: pinctrl0 {
110                 default {
111                         ralink,group = "ephy", "wled", "spi refclk", "i2c";
112                         ralink,function = "gpio";
113                 };
114         };
115 };