ipq806x: Initial TP-Link and ASUS OnHub support
[openwrt/openwrt.git] / target / linux / ipq806x / files-5.15 / arch / arm / boot / dts / qcom-ipq8064-tplink-onhub.dts
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * Copyright 2014 The ChromiumOS Authors
4 */
5
6 #include "qcom-ipq8064-onhub.dtsi"
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/leds/common.h>
9 #include <dt-bindings/soc/qcom,gsbi.h>
10
11 / {
12 model = "TP-Link OnHub";
13 compatible = "tplink,onhub", "google,whirlwind-sp5", "qcom,ipq8064";
14
15 chosen {
16 bootargs-append = " rootwait";
17 };
18 };
19
20 &qcom_pinmux {
21 i2c7_pins: i2c7_pinmux {
22 mux {
23 pins = "gpio8", "gpio9";
24 function = "gsbi7";
25 };
26 data {
27 pins = "gpio8";
28 bias-disable;
29 };
30 clk {
31 pins = "gpio9";
32 bias-disable;
33 };
34 };
35 };
36
37 &gsbi7 {
38 status = "okay";
39 qcom,mode = <GSBI_PROT_I2C_UART>;
40 };
41
42 &gsbi7_i2c {
43 status = "okay";
44 clock-frequency = <100000>;
45 pinctrl-0 = <&i2c7_pins>;
46 pinctrl-names = "default";
47
48 led-controller@32 {
49 compatible = "national,lp5523";
50 reg = <0x32>;
51 clock-mode = /bits/ 8 <1>;
52 #address-cells = <1>;
53 #size-cells = <0>;
54
55 led@0 {
56 reg = <0>;
57 color = <LED_COLOR_ID_RED>;
58 chan-name = "red:status-0";
59 linux,default-trigger = "default-on";
60 led-cur = /bits/ 8 <0x64>;
61 max-cur = /bits/ 8 <0x78>;
62 };
63
64 led@1 {
65 reg = <1>;
66 color = <LED_COLOR_ID_GREEN>;
67 chan-name = "green:status-0";
68 led-cur = /bits/ 8 <0x64>;
69 max-cur = /bits/ 8 <0x78>;
70 };
71
72 led@2 {
73 reg = <2>;
74 color = <LED_COLOR_ID_BLUE>;
75 chan-name = "blue:status-0";
76 led-cur = /bits/ 8 <0x64>;
77 max-cur = /bits/ 8 <0x78>;
78 };
79
80 led@3 {
81 reg = <3>;
82 color = <LED_COLOR_ID_RED>;
83 chan-name = "red:status-1";
84 led-cur = /bits/ 8 <0x64>;
85 max-cur = /bits/ 8 <0x78>;
86 };
87
88 led@4 {
89 reg = <4>;
90 color = <LED_COLOR_ID_GREEN>;
91 chan-name = "green:status-1";
92 linux,default-trigger = "default-on";
93 led-cur = /bits/ 8 <0x64>;
94 max-cur = /bits/ 8 <0x78>;
95 };
96
97 led@5 {
98 reg = <5>;
99 color = <LED_COLOR_ID_BLUE>;
100 chan-name = "blue:status-1";
101 led-cur = /bits/ 8 <0x64>;
102 max-cur = /bits/ 8 <0x78>;
103 };
104
105 led@6 {
106 reg = <6>;
107 color = <LED_COLOR_ID_RED>;
108 chan-name = "red:status-2";
109 led-cur = /bits/ 8 <0x64>;
110 max-cur = /bits/ 8 <0x78>;
111 };
112
113 led@7 {
114 reg = <7>;
115 color = <LED_COLOR_ID_GREEN>;
116 chan-name = "green:status-2";
117 led-cur = /bits/ 8 <0x64>;
118 max-cur = /bits/ 8 <0x78>;
119 };
120
121 led@8 {
122 reg = <8>;
123 color = <LED_COLOR_ID_BLUE>;
124 chan-name = "blue:status-2";
125 linux,default-trigger = "default-on";
126 led-cur = /bits/ 8 <0x64>;
127 max-cur = /bits/ 8 <0x78>;
128 };
129 };
130
131 led-controller@33 {
132 compatible = "national,lp5523";
133 reg = <0x33>;
134 clock-mode = /bits/ 8 <1>;
135 #address-cells = <1>;
136 #size-cells = <0>;
137
138 led@0 {
139 reg = <0>;
140 color = <LED_COLOR_ID_RED>;
141 chan-name = "red:status-3";
142 linux,default-trigger = "default-on";
143 led-cur = /bits/ 8 <0x64>;
144 max-cur = /bits/ 8 <0x78>;
145 };
146
147 led@1 {
148 reg = <1>;
149 color = <LED_COLOR_ID_GREEN>;
150 chan-name = "green:status-3";
151 led-cur = /bits/ 8 <0x64>;
152 max-cur = /bits/ 8 <0x78>;
153 };
154
155 led@2 {
156 reg = <2>;
157 color = <LED_COLOR_ID_BLUE>;
158 chan-name = "blue:status-3";
159 led-cur = /bits/ 8 <0x64>;
160 max-cur = /bits/ 8 <0x78>;
161 };
162
163 led@3 {
164 reg = <3>;
165 color = <LED_COLOR_ID_RED>;
166 chan-name = "red:status-4";
167 led-cur = /bits/ 8 <0x64>;
168 max-cur = /bits/ 8 <0x78>;
169 };
170
171 led@4 {
172 reg = <4>;
173 color = <LED_COLOR_ID_GREEN>;
174 chan-name = "green:status-4";
175 linux,default-trigger = "default-on";
176 led-cur = /bits/ 8 <0x64>;
177 max-cur = /bits/ 8 <0x78>;
178 };
179
180 led@5 {
181 reg = <5>;
182 color = <LED_COLOR_ID_BLUE>;
183 chan-name = "blue:status-4";
184 led-cur = /bits/ 8 <0x64>;
185 max-cur = /bits/ 8 <0x78>;
186 };
187
188 led@6 {
189 reg = <6>;
190 color = <LED_COLOR_ID_RED>;
191 chan-name = "red:status-5";
192 led-cur = /bits/ 8 <0x64>;
193 max-cur = /bits/ 8 <0x78>;
194 };
195
196 led@7 {
197 reg = <7>;
198 color = <LED_COLOR_ID_GREEN>;
199 chan-name = "green:status-5";
200 led-cur = /bits/ 8 <0x64>;
201 max-cur = /bits/ 8 <0x78>;
202 };
203
204 led@8 {
205 reg = <8>;
206 color = <LED_COLOR_ID_BLUE>;
207 chan-name = "blue:status-5";
208 linux,default-trigger = "default-on";
209 led-cur = /bits/ 8 <0x64>;
210 max-cur = /bits/ 8 <0x78>;
211 };
212 };
213 };