Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: BSD-3-Clause
0002 /*
0003  * sc7280 CRD board device tree source
0004  *
0005  * Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
0006  */
0007 
0008 /dts-v1/;
0009 
0010 #include "sc7280-idp.dtsi"
0011 #include "sc7280-idp-ec-h1.dtsi"
0012 
0013 / {
0014         model = "Qualcomm Technologies, Inc. sc7280 CRD platform (rev3 - 4)";
0015         compatible = "qcom,sc7280-crd",
0016                      "google,hoglin-rev3", "google,hoglin-rev4",
0017                      "google,piglin-rev3", "google,piglin-rev4",
0018                      "qcom,sc7280";
0019 
0020         aliases {
0021                 serial0 = &uart5;
0022         };
0023 
0024         chosen {
0025                 stdout-path = "serial0:115200n8";
0026         };
0027 };
0028 
0029 &apps_rsc {
0030         pmg1110-regulators {
0031                 compatible = "qcom,pmg1110-rpmh-regulators";
0032                 qcom,pmic-id = "k";
0033 
0034                 vreg_s1k_1p0: smps1 {
0035                         regulator-min-microvolt = <1010000>;
0036                         regulator-max-microvolt = <1170000>;
0037                 };
0038         };
0039 };
0040 
0041 ap_tp_i2c: &i2c0 {
0042         status = "okay";
0043         clock-frequency = <400000>;
0044 
0045         trackpad: trackpad@15 {
0046                 compatible = "hid-over-i2c";
0047                 reg = <0x15>;
0048                 pinctrl-names = "default";
0049                 pinctrl-0 = <&tp_int_odl>;
0050 
0051                 interrupt-parent = <&tlmm>;
0052                 interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
0053 
0054                 post-power-on-delay-ms = <20>;
0055                 hid-descr-addr = <0x0001>;
0056                 vdd-supply = <&vreg_l18b_1p8>;
0057 
0058                 wakeup-source;
0059         };
0060 };
0061 
0062 ap_ts_pen_1v8: &i2c13 {
0063         status = "okay";
0064         clock-frequency = <400000>;
0065 
0066         ap_ts: touchscreen@5c {
0067                 compatible = "hid-over-i2c";
0068                 reg = <0x5c>;
0069                 pinctrl-names = "default";
0070                 pinctrl-0 = <&ts_int_l>, <&ts_reset_l>;
0071 
0072                 interrupt-parent = <&tlmm>;
0073                 interrupts = <55 IRQ_TYPE_LEVEL_LOW>;
0074 
0075                 post-power-on-delay-ms = <500>;
0076                 hid-descr-addr = <0x0000>;
0077 
0078                 vdd-supply = <&vreg_l19b_1p8>;
0079         };
0080 };
0081 
0082 &nvme_3v3_regulator {
0083         gpio = <&tlmm 51 GPIO_ACTIVE_HIGH>;
0084 };
0085 
0086 &nvme_pwren {
0087         pins = "gpio51";
0088 };
0089 
0090 &tlmm {
0091         tp_int_odl: tp-int-odl {
0092                 pins = "gpio7";
0093                 function = "gpio";
0094                 bias-disable;
0095         };
0096 
0097         ts_int_l: ts-int-l {
0098                 pins = "gpio55";
0099                 function = "gpio";
0100                 bias-pull-up;
0101         };
0102 
0103         ts_reset_l: ts-reset-l {
0104                 pins = "gpio54";
0105                 function = "gpio";
0106                 bias-disable;
0107         };
0108 };