kernel: bump 4.9 to 4.9.65
[oweals/openwrt.git] / target / linux / ramips / dts / DCH-M225.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 = "dlink,dch-m225", "ralink,mt7620a-soc";
10         model = "D-Link DCH-M225";
11
12         gpio-keys-polled {
13                 compatible = "gpio-keys-polled";
14                 #address-cells = <1>;
15                 #size-cells = <0>;
16                 poll-interval = <100>;
17
18                 wps {
19                         label = "wps";
20                         gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
21                         linux,code = <KEY_RFKILL>;
22                 };
23
24                 reset {
25                         label = "reset";
26                         gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
27                         linux,code = <KEY_RESTART>;
28                 };
29         };
30
31         gpio-leds {
32                 compatible = "gpio-leds";
33
34                 power {
35                         label = "dch-m225:green:power";
36                         gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
37                 };
38
39                 status {
40                         label = "dch-m225:red:status";
41                         gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
42                 };
43         };
44
45         sound {
46                 compatible = "simple-audio-card";
47                 simple-audio-card,name = "Audio-I2S";
48                 simple-audio-card,format = "i2s";
49                 simple-audio-card,bitclock-master = <&dailink0_master>;
50                 simple-audio-card,frame-master = <&dailink0_master>;
51                 simple-audio-card,widgets =
52                         "Headphone", "Headphones";
53                 simple-audio-card,routing =
54                         "Headphones", "HP_L",
55                         "Headphones", "HP_R";
56                 simple-audio-card,mclk-fs = <256>;
57                 simple-audio-card,hp-det-gpio = <&gpio0 14 GPIO_ACTIVE_LOW>;
58
59                 simple-audio-card,cpu {
60                         sound-dai = <&i2s>;
61                 };
62
63                 dailink0_master: simple-audio-card,codec {
64                         sound-dai = <&codec>;
65                 };
66         };
67 };
68
69 &gpio0 {
70         status = "okay";
71 };
72
73 &gpio1 {
74         status = "okay";
75 };
76
77 &i2c {
78         status = "okay";
79
80         codec: wm8960@1a {
81                 #sound-dai-cells = <0>;
82                 compatible = "wlf,wm8960";
83                 reg = <0x1a>;
84
85                 wlf,shared-lrclk;
86         };
87 };
88
89 &i2s {
90         #sound-dai-cells = <0>;
91         status = "okay";
92         pinctrl-names = "default";
93         pinctrl-0 = <&mdio_refclk_pins>;
94 };
95
96 &spi0 {
97         status = "okay";
98
99         m25p80@0 {
100                 #address-cells = <1>;
101                 #size-cells = <1>;
102                 compatible = "jedec,spi-nor";
103                 reg = <0>;
104                 spi-max-frequency = <80000000>;
105                 m25p,fast-read;
106
107                 partition@0 {
108                         label = "u-boot";
109                         reg = <0x0 0x30000>;
110                         read-only;
111                 };
112
113                 partition@30000 {
114                         label = "u-boot-env";
115                         reg = <0x30000 0x4000>;
116                         read-only;
117                 };
118
119                 factory: partition@34000 {
120                         label = "factory";
121                         reg = <0x34000 0x4000>;
122                         read-only;
123                 };
124
125                 nvram: partition@38000 {
126                         label = "nvram";
127                         reg = <0x38000 0x8000>;
128                         read-only;
129                 };
130
131                 partition@40000 {
132                         label = "devconf";
133                         reg = <0x40000 0x10000>;
134                         read-only;
135                 };
136
137                 partition@50000 {
138                         label = "upgrade_rec";
139                         reg = <0x50000 0x100000>;
140                         read-only;
141                 };
142
143                 partition@150000 {
144                         label = "firmware";
145                         reg = <0x150000 0x6b0000>;
146                 };
147         };
148 };
149
150 &gdma {
151         status = "okay";
152 };
153
154 &pinctrl {
155         state_default: pinctrl0 {
156                 gpio {
157                         ralink,group = "wdt", "rgmii1";
158                         ralink,function = "gpio";
159                 };
160
161                 gpio_i2s {
162                         ralink,group = "uartf";
163                         ralink,function = "gpio i2s";
164                 };
165         };
166 };
167
168 &ethernet {
169         mtd-mac-address = <&factory 0x4>;
170 };
171
172 &gsw {
173         ralink,port4 = "ephy";
174 };
175
176 &wmac {
177         ralink,mtd-eeprom = <&factory 0>;
178         pinctrl-names = "default";
179         pinctrl-0 = <&pa_pins>;
180 };