xref: /freebsd/sys/contrib/device-tree/src/arm64/qcom/sc7280-crd.dts (revision e67e85659c0de33e617e5fbf1028c6e8b49eee53)
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
26ap_tp_i2c: &i2c0 {
27	status = "okay";
28	clock-frequency = <400000>;
29
30	trackpad: trackpad@15 {
31		compatible = "hid-over-i2c";
32		reg = <0x15>;
33		pinctrl-names = "default";
34		pinctrl-0 = <&tp_int_odl>;
35
36		interrupt-parent = <&tlmm>;
37		interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
38
39		post-power-on-delay-ms = <20>;
40		hid-descr-addr = <0x0001>;
41		vdd-supply = <&vreg_l18b_1p8>;
42
43		wakeup-source;
44	};
45};
46
47ap_ts_pen_1v8: &i2c13 {
48	status = "okay";
49	clock-frequency = <400000>;
50
51	ap_ts: touchscreen@5c {
52		compatible = "hid-over-i2c";
53		reg = <0x5c>;
54		pinctrl-names = "default";
55		pinctrl-0 = <&ts_int_l>, <&ts_reset_l>;
56
57		interrupt-parent = <&tlmm>;
58		interrupts = <55 IRQ_TYPE_LEVEL_LOW>;
59
60		post-power-on-delay-ms = <500>;
61		hid-descr-addr = <0x0000>;
62
63		vdd-supply = <&vreg_l19b_1p8>;
64	};
65};
66
67&nvme_3v3_regulator {
68	gpio = <&tlmm 51 GPIO_ACTIVE_HIGH>;
69};
70
71&nvme_pwren {
72	pins = "gpio51";
73};
74
75&tlmm {
76	tp_int_odl: tp-int-odl {
77		pins = "gpio7";
78		function = "gpio";
79		bias-disable;
80	};
81
82	ts_int_l: ts-int-l {
83		pins = "gpio55";
84		function = "gpio";
85		bias-pull-up;
86	};
87
88	ts_reset_l: ts-reset-l {
89		pins = "gpio54";
90		function = "gpio";
91		bias-disable;
92	};
93};
94