Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003  * Google CoachZ board device tree source
0004  *
0005  * Copyright 2020 Google LLC.
0006  */
0007 
0008 #include "sc7180-trogdor.dtsi"
0009 #include "sc7180-trogdor-ti-sn65dsi86.dtsi"
0010 
0011 /* Deleted nodes from sc7180-trogdor.dtsi */
0012 
0013 /delete-node/ &alc5682;
0014 /delete-node/ &pp3300_codec;
0015 
0016 / {
0017         /* BOARD-SPECIFIC TOP LEVEL NODES */
0018 
0019         adau7002: audio-codec-1 {
0020                 compatible = "adi,adau7002";
0021                 IOVDD-supply = <&pp1800_l15a>;
0022                 wakeup-delay-ms = <80>;
0023                 #sound-dai-cells = <0>;
0024         };
0025 
0026         thermal-zones {
0027                 skin_temp_thermal: skin-temp-thermal {
0028                         polling-delay-passive = <250>;
0029                         polling-delay = <0>;
0030 
0031                         thermal-sensors = <&pm6150_adc_tm 1>;
0032                         sustainable-power = <965>;
0033 
0034                         trips {
0035                                 skin_temp_alert0: trip-point0 {
0036                                         temperature = <42000>;
0037                                         hysteresis = <1000>;
0038                                         type = "passive";
0039                                 };
0040 
0041                                 skin_temp_alert1: trip-point1 {
0042                                         temperature = <45000>;
0043                                         hysteresis = <1000>;
0044                                         type = "passive";
0045                                 };
0046 
0047                                 skin-temp-crit {
0048                                         temperature = <60000>;
0049                                         hysteresis = <1000>;
0050                                         type = "critical";
0051                                 };
0052                         };
0053 
0054                         cooling-maps {
0055                                 map0 {
0056                                         trip = <&skin_temp_alert0>;
0057                                         cooling-device = <&CPU6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
0058                                                          <&CPU7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
0059                                 };
0060 
0061                                 map1 {
0062                                         trip = <&skin_temp_alert1>;
0063                                         cooling-device = <&CPU6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
0064                                                          <&CPU7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
0065                                 };
0066                         };
0067                 };
0068         };
0069 };
0070 
0071 &ap_spi_fp {
0072         status = "okay";
0073 };
0074 
0075 &backlight {
0076         pwms = <&cros_ec_pwm 0>;
0077 };
0078 
0079 &camcc {
0080         status = "okay";
0081 };
0082 
0083 &cros_ec {
0084         keyboard-controller {
0085                 compatible = "google,cros-ec-keyb-switches";
0086         };
0087 
0088         cros_ec_proximity: proximity {
0089                 compatible = "google,cros-ec-mkbp-proximity";
0090                 label = "proximity-wifi";
0091         };
0092 };
0093 
0094 ap_ts_pen_1v8: &i2c4 {
0095         status = "okay";
0096         clock-frequency = <400000>;
0097 
0098         ap_ts: touchscreen@5d {
0099                 compatible = "goodix,gt7375p";
0100                 reg = <0x5d>;
0101                 pinctrl-names = "default";
0102                 pinctrl-0 = <&ts_int_l>, <&ts_reset_l>;
0103 
0104                 interrupt-parent = <&tlmm>;
0105                 interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
0106 
0107                 reset-gpios = <&tlmm 8 GPIO_ACTIVE_LOW>;
0108 
0109                 vdd-supply = <&pp3300_ts>;
0110         };
0111 };
0112 
0113 &i2c9 {
0114         status = "disabled";
0115 };
0116 
0117 &panel {
0118         compatible = "boe,nv110wtm-n61";
0119 };
0120 
0121 &pm6150_adc {
0122         skin-temp-thermistor@4e {
0123                 reg = <ADC5_AMUX_THM2_100K_PU>;
0124                 qcom,ratiometric;
0125                 qcom,hw-settle-time = <200>;
0126         };
0127 };
0128 
0129 &pm6150_adc_tm {
0130         status = "okay";
0131 
0132         skin-temp-thermistor@1 {
0133                 reg = <1>;
0134                 io-channels = <&pm6150_adc ADC5_AMUX_THM2_100K_PU>;
0135                 qcom,ratiometric;
0136                 qcom,hw-settle-time-us = <200>;
0137         };
0138 };
0139 
0140 &pp1800_uf_cam {
0141         status = "okay";
0142 };
0143 
0144 &pp1800_wf_cam {
0145         status = "okay";
0146 };
0147 
0148 &pp2800_uf_cam {
0149         status = "okay";
0150 };
0151 
0152 &pp2800_wf_cam {
0153         status = "okay";
0154 };
0155 
0156 &pp3300_dx_edp {
0157         gpio = <&tlmm 67 GPIO_ACTIVE_HIGH>;
0158 };
0159 
0160 &sdhc_2 {
0161         status = "okay";
0162 };
0163 
0164 &sn65dsi86_out {
0165         data-lanes = <0 1 2 3>;
0166 };
0167 
0168 &sound {
0169         compatible = "google,sc7180-coachz";
0170         model = "sc7180-adau7002-max98357a";
0171         audio-routing = "PDM_DAT", "DMIC";
0172 
0173         pinctrl-names = "default";
0174         pinctrl-0 = <&dmic_clk_en>;
0175 };
0176 
0177 &sound_multimedia0_codec {
0178         sound-dai = <&adau7002>;
0179 };
0180 
0181 /* PINCTRL - modifications to sc7180-trogdor.dtsi */
0182 
0183 &en_pp3300_dx_edp {
0184         pinmux  {
0185                 pins = "gpio67";
0186         };
0187 
0188         pinconf {
0189                 pins = "gpio67";
0190         };
0191 };
0192 
0193 &ts_reset_l {
0194         pinconf {
0195                 /*
0196                  * We want reset state by default and it will be up to the
0197                  * driver to disable this when it's ready.
0198                  */
0199                 output-low;
0200         };
0201 };
0202 
0203 /* PINCTRL - board-specific pinctrl */
0204 
0205 &tlmm {
0206         gpio-line-names = "HUB_RST_L",
0207                           "AP_RAM_ID0",
0208                           "AP_SKU_ID2",
0209                           "AP_RAM_ID1",
0210                           "FP_TO_AP_IRQ_L",
0211                           "AP_RAM_ID2",
0212                           "UF_CAM_EN",
0213                           "WF_CAM_EN",
0214                           "TS_RESET_L",
0215                           "TS_INT_L",
0216                           "FPMCU_BOOT0",
0217                           "EDP_BRIJ_IRQ",
0218                           "AP_EDP_BKLTEN",
0219                           "UF_CAM_MCLK",
0220                           "WF_CAM_CLK",
0221                           "EDP_BRIJ_I2C_SDA",
0222                           "EDP_BRIJ_I2C_SCL",
0223                           "UF_CAM_SDA",
0224                           "UF_CAM_SCL",
0225                           "WF_CAM_SDA",
0226                           "WF_CAM_SCL",
0227                           "WLC_IRQ",
0228                           "FP_RST_L",
0229                           "AMP_EN",
0230                           "WLC_NRST",
0231                           "AP_SAR_SENSOR_SDA",
0232                           "AP_SAR_SENSOR_SCL",
0233                           "",
0234                           "",
0235                           "WF_CAM_RST_L",
0236                           "UF_CAM_RST_L",
0237                           "AP_BRD_ID2",
0238                           "BRIJ_SUSPEND",
0239                           "AP_BRD_ID0",
0240                           "AP_H1_SPI_MISO",
0241                           "AP_H1_SPI_MOSI",
0242                           "AP_H1_SPI_CLK",
0243                           "AP_H1_SPI_CS_L",
0244                           "",
0245                           "",
0246                           "",
0247                           "",
0248                           "H1_AP_INT_ODL",
0249                           "",
0250                           "UART_AP_TX_DBG_RX",
0251                           "UART_DBG_TX_AP_RX",
0252                           "",
0253                           "",
0254                           "FORCED_USB_BOOT",
0255                           "AMP_BCLK",
0256                           "AMP_LRCLK",
0257                           "AMP_DIN",
0258                           "",
0259                           "HP_BCLK",
0260                           "HP_LRCLK",
0261                           "HP_DOUT",
0262                           "HP_DIN",
0263                           "HP_MCLK",
0264                           "AP_SKU_ID0",
0265                           "AP_EC_SPI_MISO",
0266                           "AP_EC_SPI_MOSI",
0267                           "AP_EC_SPI_CLK",
0268                           "AP_EC_SPI_CS_L",
0269                           "AP_SPI_CLK",
0270                           "AP_SPI_MOSI",
0271                           "AP_SPI_MISO",
0272                           /*
0273                            * AP_FLASH_WP_L is crossystem ABI. Schematics
0274                            * call it BIOS_FLASH_WP_L.
0275                            */
0276                           "AP_FLASH_WP_L",
0277                           "EN_PP3300_DX_EDP",
0278                           "AP_SPI_CS0_L",
0279                           "SD_CD_ODL",
0280                           "",
0281                           "",
0282                           "",
0283                           "",
0284                           "EN_FP_RAILS",
0285                           "UIM2_DATA",
0286                           "UIM2_CLK",
0287                           "UIM2_RST",
0288                           "UIM2_PRESENT_L",
0289                           "UIM1_DATA",
0290                           "UIM1_CLK",
0291                           "UIM1_RST",
0292                           "",
0293                           "",
0294                           "HUB_EN",
0295                           "",
0296                           "AP_SPI_FP_MISO",
0297                           "AP_SPI_FP_MOSI",
0298                           "AP_SPI_FP_CLK",
0299                           "AP_SPI_FP_CS_L",
0300                           "AP_SKU_ID1",
0301                           "AP_RST_REQ",
0302                           "",
0303                           "AP_BRD_ID1",
0304                           "AP_EC_INT_L",
0305                           "",
0306                           "",
0307                           "",
0308                           "",
0309                           "",
0310                           "",
0311                           "",
0312                           "",
0313                           "",
0314                           "EDP_BRIJ_EN",
0315                           "",
0316                           "",
0317                           "",
0318                           "",
0319                           "",
0320                           "",
0321                           "",
0322                           "",
0323                           "",
0324                           "",
0325                           "AP_TS_PEN_I2C_SDA",
0326                           "AP_TS_PEN_I2C_SCL",
0327                           "DP_HOT_PLUG_DET",
0328                           "EC_IN_RW_ODL";
0329 
0330         dmic_clk_en: dmic_clk_en {
0331                 pinmux {
0332                         pins = "gpio83";
0333                         function = "gpio";
0334                 };
0335 
0336                 pinconf {
0337                         pins = "gpio83";
0338                         drive-strength = <8>;
0339                         bias-pull-up;
0340                 };
0341         };
0342 };