These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / arch / mips / boot / dts / qca / ar9132_tl_wr1043nd_v1.dts
1 /dts-v1/;
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 #include "ar9132.dtsi"
7
8 / {
9         compatible = "tplink,tl-wr1043nd-v1", "qca,ar9132";
10         model = "TP-Link TL-WR1043ND Version 1";
11
12         alias {
13                 serial0 = "/ahb/apb/uart@18020000";
14         };
15
16         memory@0 {
17                 device_type = "memory";
18                 reg = <0x0 0x2000000>;
19         };
20
21         extosc: oscillator {
22                 compatible = "fixed-clock";
23                 #clock-cells = <0>;
24                 clock-frequency = <40000000>;
25         };
26
27         ahb {
28                 apb {
29                         uart@18020000 {
30                                 status = "okay";
31                         };
32
33                         pll-controller@18050000 {
34                                 clocks = <&extosc>;
35                         };
36                 };
37
38                 spi@1f000000 {
39                         status = "okay";
40                         num-cs = <1>;
41
42                         flash@0 {
43                                 #address-cells = <1>;
44                                 #size-cells = <1>;
45                                 compatible = "s25sl064a";
46                                 reg = <0>;
47                                 spi-max-frequency = <25000000>;
48
49                                 partition@0 {
50                                         label = "u-boot";
51                                         reg = <0x000000 0x020000>;
52                                 };
53
54                                 partition@1 {
55                                         label = "firmware";
56                                         reg = <0x020000 0x7D0000>;
57                                 };
58
59                                 partition@2 {
60                                         label = "art";
61                                         reg = <0x7F0000 0x010000>;
62                                         read-only;
63                                 };
64                         };
65                 };
66         };
67
68         gpio-keys {
69                 compatible = "gpio-keys-polled";
70                 #address-cells = <1>;
71                 #size-cells = <0>;
72
73                 poll-interval = <20>;
74                 button@0 {
75                         label = "reset";
76                         linux,code = <KEY_RESTART>;
77                         gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
78                         debounce-interval = <60>;
79                 };
80
81                 button@1 {
82                         label = "qss";
83                         linux,code = <KEY_WPS_BUTTON>;
84                         gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
85                         debounce-interval = <60>;
86                 };
87         };
88
89         leds {
90                 compatible = "gpio-leds";
91                 led@0 {
92                         label = "tp-link:green:usb";
93                         gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
94                 };
95
96                 led@1 {
97                         label = "tp-link:green:system";
98                         gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
99                         linux,default-trigger = "heartbeat";
100                 };
101
102                 led@2 {
103                         label = "tp-link:green:qss";
104                         gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
105                 };
106
107                 led@3 {
108                         label = "tp-link:green:wlan";
109                         gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
110                 };
111         };
112 };