Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp1983697rdf; Mon, 6 Nov 2023 00:40:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IFfVh5+R6L0p6SkOGKwe93MdSx+EKbkGs9DHnMOdz7DJ/va77ZTTOh5Awlw+OvJt7+hMgx+ X-Received: by 2002:a05:6a21:998a:b0:15e:ab6:6e24 with SMTP id ve10-20020a056a21998a00b0015e0ab66e24mr35194132pzb.27.1699260000662; Mon, 06 Nov 2023 00:40:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699260000; cv=none; d=google.com; s=arc-20160816; b=0qsc+YlZifoYpl/KU0YLmCkUcY5MDbESaKrwj0SP6TlBjbHFB+ADwRZMjGEUb8g7tf Ja7fneXg0vs8wI+zQjGxFkDYVPo7ydJPUpjHPpgnkMvjr4oxN4jM+nY1q3sUa11x0JCy fgNZsYQvqmaaCbJd95kCfbFnAFMlAep9vhUzV/HS4mDiVaFLMP5HLmMlxOuZ+PDh/la/ sMo6AJrWdPCSZcZumFwhpgun7GLab5N/hEHFS+OXpSO+E/yPpnb8gHSl6oqxRGoFZv5h 0RxFumZiEbK+fmvZFYWbkpzV2Q3/p7YCbKzi/UT54uEY1BLw0ZI+xkn6sQrMq8aLAhAs PbTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=e72mYiGt0FFJIt9QYL6pF2HzAIyFoduNA3ihQ9k9rD0=; fh=sCatITcX+XZ6LvD/s0wz2dK14I7uXwYSPaj41KpRZ1k=; b=C7uzw0jJonLcCH2WClwwss7agBAywcMTEGez5LdXFf+gpFn25EaZgL+v0q5efOMgvR yfjzEkpF2vJKtupG0nbjh/JqvrHspEAyf5EUEmESAAFw6o80A/V9QxoXKCDk5AlgM6Oz pLVOSEP6leOpRQwyYsUs2dx3go0UogghwBZR6LY0xA9B/P6FJdQZxW+jzIMj5l/Dn8ct NI4IJB/ADJUH4KnCjXNE0v7ZyYXo1aD62037i7mlSsMGTsgyXIaN0bxv079CrS/b090R QQ+dSHVszLL9OLvLwfSE7LTe4oSNcKptLt0a8DKP4tDR7iuLf4BX9FgJQNP9TFMOlu3N yUJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=H0+3CYHT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id lo8-20020a170903434800b001cad3a9ff1dsi7222342plb.571.2023.11.06.00.40.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 00:40:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=H0+3CYHT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 76A7D802FD1B; Mon, 6 Nov 2023 00:39:59 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231445AbjKFIju (ORCPT + 99 others); Mon, 6 Nov 2023 03:39:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231304AbjKFIje (ORCPT ); Mon, 6 Nov 2023 03:39:34 -0500 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C27FD4D for ; Mon, 6 Nov 2023 00:39:27 -0800 (PST) Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-32f9268bf8cso2507731f8f.0 for ; Mon, 06 Nov 2023 00:39:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699259966; x=1699864766; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=e72mYiGt0FFJIt9QYL6pF2HzAIyFoduNA3ihQ9k9rD0=; b=H0+3CYHTNaPq5B+bxdyMzeTEhWm9Rq//cJcKGps5PUSdtInmXWy2WOEBLQY+FfyjiN Zf3828k0iIq9+V+EHzjQOfHFDYv1LVsRvTORMg+I5Dtg9il35bVXZfOR2bFy548G5OlK l+M/SuyMsAvytGye4mLiHoZmZVs2DdejnEyEr2l2vcMeIK0I5nK5RIvsGKGHo1JJj+YJ nMbp3mmWQrpb3PgPim3XclfNRktD86HbtjfVa860zGt1bRgRkww4Hd93S1IhKoRE+4ey HOUWsxtHA38ewG2Oa4GMRigrhazMN97gPdvXjcbPogaar0QaVkzZfShQTlDQ3Gt7jfHg pUaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699259966; x=1699864766; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=e72mYiGt0FFJIt9QYL6pF2HzAIyFoduNA3ihQ9k9rD0=; b=uCjatz23WrPDczuP9iszmU9e2e79auGlVpFgF0d/ukNUsa31qs3kWyHQg+AEzrD7V+ WwiZGxxr9bbfiokD+8NeRB4kONVgH2/DyOjd5RxVGr+E8aKccsLE/wa4sfbC8tQpVtMl QbYT9imAi/5ZlpowO5c/fA1yUkq1kxXYaElDNSKqm8WKrNIDwHTP1RSt4QUDS37PRMXW 4NhWhN4afIJzrw3BQyQFCPx+V/l6wSZcWMtQTmApv1Aj+hUh5YrRz2zrk6N0VaXw0uaw 5VuJYVrAQqhEYytzcQn3UBgbYV5lNRIsXrSdRBS0B/qR4Hc8GD6zQFmZkJHaQxyDMlUx 9M8Q== X-Gm-Message-State: AOJu0YweEJSLrtlQBXSAQVoCnltGyJIKn/mEU16JO2JT0agfxfdrKLJB JUbuLb7b7D0pVhVjpdUPX4Qu4g== X-Received: by 2002:adf:eb4a:0:b0:32f:7fa1:7d55 with SMTP id u10-20020adfeb4a000000b0032f7fa17d55mr15512078wrn.56.1699259965778; Mon, 06 Nov 2023 00:39:25 -0800 (PST) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id t5-20020adfe445000000b00323293bd023sm8829830wrm.6.2023.11.06.00.39.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 00:39:25 -0800 (PST) From: Neil Armstrong Date: Mon, 06 Nov 2023 09:39:16 +0100 Subject: [PATCH v2 8/8] arm64: dts: qcom: sm8650-qrd: add interconnect dependent device nodes MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231106-topic-sm8650-upstream-dt-v2-8-44d6f9710fa7@linaro.org> References: <20231106-topic-sm8650-upstream-dt-v2-0-44d6f9710fa7@linaro.org> In-Reply-To: <20231106-topic-sm8650-upstream-dt-v2-0-44d6f9710fa7@linaro.org> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=6570; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=Ln6hwjRGkAUkdaiTzkdiTeTRgXEgZP3Rz5273n6CTLY=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBlSKY0V+pw2TLrMXNkLyVXHypYAqy/W5w6CSnykpui ivSGRXiJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZUimNAAKCRB33NvayMhJ0ZZtD/ 9xCSqBq3WvF4qZfi7AugYqqif6ApPwE9e06R/eVdLGRKV+chLJERP/ILVu2JLoOGqrLtZdbf+RzL9Z 31SVvR6CGscT/UT6K3NNK+KGzMMkU6H6fLTkjVymegiQEIp7fF4eOdIV9RSVmO+Tq/qCJAJ7LwW+OL LU6+SytgSLJhWIPQK/F2cjo0wrSPTZHWV5UpntnubbfufEuDkaYvTOZrL2B9YNZSDrW4XzVG8XY2zJ pvbeoxMNV6kuyCo6T5DYsKt6PR8AlsyGva/hrjic0uG6MQVPn+SAsLtJkLeBdA6NbvuoEB83uAyoXB q9ZseHtrYW/6XNS4ydbHiPr5B8360M2BGsujGfmzHkKPnr4RslfuP0EKc4CFOqECR3y+kp56oZ3jI3 /ix1f/jnfxLjsyc2qjw3Q8R/6m8SGOE1MpyGNLdGbfCHkJx5V1vkp+bV0a0z/AfKt2hVPyU6ahRJQh atkafS5r5Ov5b/UAYAyNAlVgan4lAjfutVzQwRv62auN8ZqQT8aPBjGmD0YNOzKgeoOzlmwoDMjIjO 61iIgLj6DxMIJU58yCG79xUDLgGuv08QOXXXk6kJAToN5pjNA+V9fDiV3XuY/aiMiTmUXjHtxihKR2 m3RoAThOrQ++glNBmlBHo7UViFWJrDmkrnhjI1l0jar37w+Fx5EOpgzcMI3w== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 06 Nov 2023 00:39:59 -0800 (PST) Now interconnect dependent devices are added in sm8650 DTSI, now enable more devices for the Qualcomm SM8650 QRD board: - PCIe - Display - DSPs - SDCard - UFS - USB role switch with PMIC Glink - Bluetooth Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/qcom/sm8650-qrd.dts | 275 +++++++++++++++++++++++++++++++- 1 file changed, 274 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8650-qrd.dts b/arch/arm64/boot/dts/qcom/sm8650-qrd.dts index f5ce4c889680..3147806b4fb2 100644 --- a/arch/arm64/boot/dts/qcom/sm8650-qrd.dts +++ b/arch/arm64/boot/dts/qcom/sm8650-qrd.dts @@ -23,6 +23,7 @@ / { aliases { serial0 = &uart15; + serial1 = &uart14; }; chosen { @@ -45,6 +46,44 @@ key-volume-up { }; }; + pmic-glink { + compatible = "qcom,sm8650-pmic-glink", + "qcom,sm8550-pmic-glink", + "qcom,pmic-glink"; + #address-cells = <1>; + #size-cells = <0>; + orientation-gpios = <&tlmm 29 GPIO_ACTIVE_HIGH>; + + connector@0 { + compatible = "usb-c-connector"; + reg = <0>; + + power-role = "dual"; + data-role = "dual"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + pmic_glink_hs_in: endpoint { + remote-endpoint = <&usb_1_dwc3_hs>; + }; + }; + + port@1 { + reg = <1>; + + pmic_glink_ss_in: endpoint { + remote-endpoint = <&usb_1_dwc3_ss>; + }; + }; + }; + }; + }; + vph_pwr: vph-pwr-regulator { compatible = "regulator-fixed"; @@ -399,6 +438,81 @@ vreg_l3i_1p2: ldo3 { }; }; +&dispcc { + status = "okay"; +}; + +&gpi_dma1 { + status = "okay"; +}; + +&mdss { + status = "okay"; +}; + +&mdss_dsi0 { + vdda-supply = <&vreg_l3i_1p2>; + + status = "okay"; + + panel@0 { + compatible = "visionox,vtdr6130"; + reg = <0>; + + reset-gpios = <&tlmm 133 GPIO_ACTIVE_LOW>; + + vddio-supply = <&vreg_l12b_1p8>; + vci-supply = <&vreg_l13b_3p0>; + vdd-supply = <&vreg_l11b_1p2>; + + pinctrl-0 = <&sde_dsi_active>, <&sde_te_active>; + pinctrl-1 = <&sde_dsi_suspend>, <&sde_te_suspend>; + pinctrl-names = "default", "sleep"; + + port { + panel0_in: endpoint { + remote-endpoint = <&mdss_dsi0_out>; + }; + }; + }; +}; + +&mdss_dsi0_out { + remote-endpoint = <&panel0_in>; + data-lanes = <0 1 2 3>; +}; + +&mdss_dsi0_phy { + vdds-supply = <&vreg_l1i_0p88>; + + status = "okay"; +}; + +&mdss_mdp { + status = "okay"; +}; + +&pcie_1_phy_aux_clk { + clock-frequency = <1000>; +}; + +&pcie0 { + wake-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>; + perst-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>; + + pinctrl-0 = <&pcie0_default_state>; + pinctrl-names = "default"; + + status = "okay"; +}; + +&pcie0_phy { + vdda-phy-supply = <&vreg_l1i_0p88>; + vdda-pll-supply = <&vreg_l3i_1p2>; + + status = "okay"; +}; + &pon_pwrkey { status = "okay"; }; @@ -479,22 +593,172 @@ &pmk8550_rtc { status = "okay"; }; +&qupv3_id_0 { + status = "okay"; +}; + &qupv3_id_1 { status = "okay"; }; +&remoteproc_adsp { + firmware-name = "qcom/sm8650/adsp.mbn", + "qcom/sm8650/adsp_dtb.mbn"; + + status = "okay"; +}; + +&remoteproc_cdsp { + firmware-name = "qcom/sm8650/cdsp.mbn", + "qcom/sm8650/cdsp_dtb.mbn"; + + status = "okay"; +}; + +&remoteproc_mpss { + firmware-name = "qcom/sm8650/modem.mbn", + "qcom/sm8650/modem_dtb.mbn"; + + status = "okay"; +}; + &sleep_clk { clock-frequency = <32000>; }; +&spi4 { + status = "okay"; + + touchscreen@0 { + compatible = "goodix,gt9916"; + reg = <0>; + + interrupt-parent = <&tlmm>; + interrupts = <162 IRQ_TYPE_LEVEL_LOW>; + + reset-gpios = <&tlmm 161 GPIO_ACTIVE_LOW>; + + avdd-supply = <&vreg_l14b_3p2>; + + spi-max-frequency = <1000000>; + + touchscreen-size-x = <1080>; + touchscreen-size-y = <2400>; + + pinctrl-0 = <&ts_irq>, <&ts_reset>; + pinctrl-names = "default"; + }; +}; + &tlmm { gpio-reserved-ranges = <32 8>; + + bt_default: bt-default-state { + bt-en-pins { + pins = "gpio17"; + function = "gpio"; + drive-strength = <16>; + bias-disable; + }; + + sw-ctrl-pins { + pins = "gpio18"; + function = "gpio"; + bias-pull-down; + }; + }; + + sde_dsi_active: sde-dsi-active-state { + pins = "gpio133"; + function = "gpio"; + drive-strength = <8>; + bias-disable; + }; + + sde_dsi_suspend: sde-dsi-suspend-state { + pins = "gpio133"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + }; + + sde_te_active: sde-te-active-state { + pins = "gpio86"; + function = "mdp_vsync"; + drive-strength = <2>; + bias-pull-down; + }; + + sde_te_suspend: sde-te-suspend-state { + pins = "gpio86"; + function = "mdp_vsync"; + drive-strength = <2>; + bias-pull-down; + }; + + ts_irq: ts-irq-state { + pins = "gpio161"; + function = "gpio"; + drive-strength = <8>; + bias-pull-up; + output-disable; + }; + + ts_reset: ts-reset-state { + pins = "gpio162"; + function = "gpio"; + drive-strength = <8>; + bias-pull-up; + }; +}; + +&uart14 { + status = "okay"; + + bluetooth { + compatible = "qcom,wcn7850-bt"; + + clocks = <&rpmhcc RPMH_RF_CLK1>; + + vddio-supply = <&vreg_l3c_1p2>; + vddaon-supply = <&vreg_l15b_1p8>; + vdddig-supply = <&vreg_s3c_0p9>; + vddrfa0p8-supply = <&vreg_s3c_0p9>; + vddrfa1p2-supply = <&vreg_s1c_1p2>; + vddrfa1p9-supply = <&vreg_s6c_1p8>; + + max-speed = <3200000>; + + enable-gpios = <&tlmm 17 GPIO_ACTIVE_HIGH>; + swctrl-gpios = <&tlmm 18 GPIO_ACTIVE_HIGH>; + + pinctrl-0 = <&bt_default>; + pinctrl-names = "default"; + }; }; &uart15 { status = "okay"; }; +&ufs_mem_hc { + reset-gpios = <&tlmm 210 GPIO_ACTIVE_LOW>; + + vcc-supply = <&vreg_l17b_2p5>; + vcc-max-microamp = <1300000>; + vccq-supply = <&vreg_l1c_1p2>; + vccq-max-microamp = <1200000>; + + status = "okay"; +}; + +&ufs_mem_phy { + vdda-phy-supply = <&vreg_l1d_0p88>; + vdda-pll-supply = <&vreg_l3i_1p2>; + + status = "okay"; +}; + /* * DPAUX -> WCD9395 -> USB_SBU -> USB-C * eUSB2 DP/DM -> PM85550HS -> eUSB2 DP/DM -> WCD9395 -> USB-C @@ -506,7 +770,16 @@ &usb_1 { }; &usb_1_dwc3 { - dr_mode = "peripheral"; + dr_mode = "otg"; + usb-role-switch; +}; + +&usb_1_dwc3_hs { + remote-endpoint = <&pmic_glink_hs_in>; +}; + +&usb_1_dwc3_ss { + remote-endpoint = <&pmic_glink_ss_in>; }; &usb_1_hsphy { -- 2.34.1