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