xref: /freebsd/sys/contrib/device-tree/src/arm64/qcom/sc7280-crd.dts (revision c7046f76c2c027b00c0e6ba57cfd28f1a78f5e23)
1// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * sc7280 CRD board device tree source
4 *
5 * Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
6 */
7
8/dts-v1/;
9
10#include "sc7280-idp.dtsi"
11#include "sc7280-idp-ec-h1.dtsi"
12
13/ {
14	model = "Qualcomm Technologies, Inc. sc7280 CRD platform";
15	compatible = "qcom,sc7280-crd", "google,hoglin", "qcom,sc7280";
16
17	aliases {
18		serial0 = &uart5;
19	};
20
21	chosen {
22		stdout-path = "serial0:115200n8";
23	};
24};
25
26&apps_rsc {
27	pmg1110-regulators {
28		compatible = "qcom,pmg1110-rpmh-regulators";
29		qcom,pmic-id = "k";
30
31		vreg_s1k_1p0: smps1 {
32			regulator-min-microvolt = <1010000>;
33			regulator-max-microvolt = <1170000>;
34		};
35	};
36};
37
38ap_tp_i2c: &i2c0 {
39	status = "okay";
40	clock-frequency = <400000>;
41
42	trackpad: trackpad@15 {
43		compatible = "hid-over-i2c";
44		reg = <0x15>;
45		pinctrl-names = "default";
46		pinctrl-0 = <&tp_int_odl>;
47
48		interrupt-parent = <&tlmm>;
49		interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
50
51		post-power-on-delay-ms = <20>;
52		hid-descr-addr = <0x0001>;
53		vdd-supply = <&vreg_l18b_1p8>;
54
55		wakeup-source;
56	};
57};
58
59ap_ts_pen_1v8: &i2c13 {
60	status = "okay";
61	clock-frequency = <400000>;
62
63	ap_ts: touchscreen@5c {
64		compatible = "hid-over-i2c";
65		reg = <0x5c>;
66		pinctrl-names = "default";
67		pinctrl-0 = <&ts_int_l>, <&ts_reset_l>;
68
69		interrupt-parent = <&tlmm>;
70		interrupts = <55 IRQ_TYPE_LEVEL_LOW>;
71
72		post-power-on-delay-ms = <500>;
73		hid-descr-addr = <0x0000>;
74
75		vdd-supply = <&vreg_l19b_1p8>;
76	};
77};
78
79&nvme_3v3_regulator {
80	gpio = <&tlmm 51 GPIO_ACTIVE_HIGH>;
81};
82
83&nvme_pwren {
84	pins = "gpio51";
85};
86
87&tlmm {
88	tp_int_odl: tp-int-odl {
89		pins = "gpio7";
90		function = "gpio";
91		bias-disable;
92	};
93
94	ts_int_l: ts-int-l {
95		pins = "gpio55";
96		function = "gpio";
97		bias-pull-up;
98	};
99
100	ts_reset_l: ts-reset-l {
101		pins = "gpio54";
102		function = "gpio";
103		bias-disable;
104	};
105};
106