ipq806x: Initial TP-Link and ASUS OnHub support
[openwrt/openwrt.git] / target / linux / ipq806x / files-5.15 / arch / arm / boot / dts / qcom-ipq8064-asus-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 = "ASUS OnHub";
13 compatible = "asus,onhub", "google,arkham", "qcom,ipq8064";
14
15 chosen {
16 bootargs-append = " rootwait";
17 };
18 };
19
20 &qcom_pinmux {
21 ap3223_pins: ap3223_pinmux {
22 pins = "gpio22";
23 function = "gpio";
24 bias-none;
25 };
26
27 i2c7_pins: i2c7_pinmux {
28 mux {
29 pins = "gpio8", "gpio9";
30 function = "gsbi7";
31 };
32 data {
33 pins = "gpio8";
34 bias-disable;
35 };
36 clk {
37 pins = "gpio9";
38 bias-disable;
39 };
40 };
41 };
42
43 &gsbi7 {
44 status = "okay";
45 qcom,mode = <GSBI_PROT_I2C_UART>;
46 };
47
48 &gsbi7_i2c {
49 status = "okay";
50 clock-frequency = <100000>;
51 pinctrl-0 = <&i2c7_pins>;
52 pinctrl-names = "default";
53
54 ap3223@1c {
55 compatible = "dynaimage,ap3223";
56 reg = <0x1c>;
57
58 pinctrl-0 = <&ap3223_pins>;
59 pinctrl-names = "default";
60
61 int-gpio = <&qcom_pinmux 22 GPIO_ACTIVE_LOW>;
62 };
63
64 led-controller@32 {
65 compatible = "national,lp5523";
66 reg = <0x32>;
67 clock-mode = /bits/ 8 <1>;
68 #address-cells = <1>;
69 #size-cells = <0>;
70
71 led@4 {
72 reg = <4>;
73 color = <LED_COLOR_ID_GREEN>;
74 chan-name = "green:status";
75 linux,default-trigger = "default-on";
76 led-cur = /bits/ 8 <0xfa>;
77 max-cur = /bits/ 8 <0xff>;
78 };
79
80 led@5 {
81 reg = <5>;
82 color = <LED_COLOR_ID_BLUE>;
83 chan-name = "blue:status";
84 led-cur = /bits/ 8 <0xfa>;
85 max-cur = /bits/ 8 <0xff>;
86 };
87
88 led@8 {
89 reg = <8>;
90 color = <LED_COLOR_ID_RED>;
91 chan-name = "red:status";
92 led-cur = /bits/ 8 <0xfa>;
93 max-cur = /bits/ 8 <0xff>;
94 };
95 };
96 };