From patchwork Mon Dec 11 15:44:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 752584 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="kRblFCtQ" Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83431CD for ; Mon, 11 Dec 2023 07:44:49 -0800 (PST) Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-50bf26b677dso4358266e87.2 for ; Mon, 11 Dec 2023 07:44:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702309488; x=1702914288; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=bSK6mZ8dw5NPtYdF0SRIR2pFCQDMWgaic2V9yiXRbes=; b=kRblFCtQ9E7dVNB4QULppxR64rUSx5msOMDbyZKv8a6BNOVfXdDupgVzD2gMPZ6IZh lnP4bTiuh+B5/Zxk/lcMTMLjM7S6XIynigdNk5/l9ZH/mQmHwDRW1WCLv81OqZQVvosV R2ZbjpQRIZYVTf0BNkkDNwjk1uk4wOVvGCf1z7iVyiPw+uVN0F+pSUjCWIsTKp67AH3E 4KfmZ0ta60A50vqt4+2o0/TlopIoyq8S3J4UKtFLB+vWCU8n0UDP2wA4BNn9uiTQgzXu gxi2E4w51UbNPXlq9qzEzdAzQ3kFI6ZOdCZ6/ZYPchXBt44dqkeR46jjmg9u/WgUlKX7 BOjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702309488; x=1702914288; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bSK6mZ8dw5NPtYdF0SRIR2pFCQDMWgaic2V9yiXRbes=; b=lSLobhaUcwBzt7w6/6b0DQafWU9mtKGulGX/S0uUgLRNyMvK4QUY0PUa/uWsmHHLKn N0u6vW53j9Sz4u4IrnrrKUEApqnerxTLOVlMEtSXUU9k0vqGAxJSxMQR4D2D9XfSaRAd oXf3oE5iOWfkroeUKHJDbmh5mx1oAXLO9jESnpwTgQY90sfWbpPqEDtB/3CEEUuvPC3n wGxK4p3pum51rXhztRFcQi1b0hqTgGL3HtZjtIxGEAj9MMlyw5Vih+6WXGLvRLHHZTuS 6e9gMJ1ZCpQ98NP0UYo2CeSYq9X7B3jGRxO7ONrP3dFsFn/znHAy1iCtrCi26VAuDVhy lgZg== X-Gm-Message-State: AOJu0YwNbnPwScwD0bJnl8Mgg7QIywidVNQ2IzhMmd7OuIhHE5eAbNuh djZBf/kECT8m1TPd033qLDrGlw== X-Google-Smtp-Source: AGHT+IFswBGhPJF8OSSb4EYKPIsJHib8hdzLokZ9b6fqCBPavnujwJZYpKaaXCUUP0UheLDOZEjz1g== X-Received: by 2002:ac2:491a:0:b0:50b:d764:290b with SMTP id n26-20020ac2491a000000b0050bd764290bmr1115916lfi.163.1702309487906; Mon, 11 Dec 2023 07:44:47 -0800 (PST) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id c5-20020ac244a5000000b0050aa6e2ae87sm1109646lfm.2.2023.12.11.07.44.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 07:44:47 -0800 (PST) From: Dmitry Baryshkov To: Rob Clark , Sean Paul , Abhinav Kumar , Marijn Suijten Cc: Stephen Boyd , David Airlie , Daniel Vetter , Bjorn Andersson , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: [PATCH v2 1/8] dt-bindings: display: msm: dp: declare compatible string for sm8150 Date: Mon, 11 Dec 2023 18:44:38 +0300 Message-Id: <20231211154445.3666732-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231211154445.3666732-1-dmitry.baryshkov@linaro.org> References: <20231211154445.3666732-1-dmitry.baryshkov@linaro.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add compatible string for the DisplayPort controller found on the Qualcomm SM8150 platform. Signed-off-by: Dmitry Baryshkov --- Documentation/devicetree/bindings/display/msm/dp-controller.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/msm/dp-controller.yaml b/Documentation/devicetree/bindings/display/msm/dp-controller.yaml index dbe398f84ffb..f850bd9b8263 100644 --- a/Documentation/devicetree/bindings/display/msm/dp-controller.yaml +++ b/Documentation/devicetree/bindings/display/msm/dp-controller.yaml @@ -28,6 +28,7 @@ properties: - qcom,sm8350-dp - items: - enum: + - qcom,sm8150-dp - qcom,sm8250-dp - qcom,sm8450-dp - qcom,sm8550-dp From patchwork Mon Dec 11 15:44:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 752583 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="qGmxqV/U" Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54378A1 for ; Mon, 11 Dec 2023 07:44:51 -0800 (PST) Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-50c0f6b1015so5379191e87.3 for ; Mon, 11 Dec 2023 07:44:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702309489; x=1702914289; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=3EHFkEQ27U+4FuL/p3mfN4ceRCyXdPDrWkGkrGBViEo=; b=qGmxqV/UqJ7kLgZQHLX3+aeNU6flulLIiS9ZPBY0MJ6Tyo5uxliJMpDe9U3hN94/ip sUFUgbrdo8jJeFse/+9gT52I5fDo4HSg/aYaGKaeoSoQMQwZ5jFTunyXjcox37wkQP2w u48PMCCB7AEbZmZ3UzoLvnJ0XSPX/RltVeT48tPb8e6tQz7inpdn52oEYE0I7iDOqzlP ELCZyKW3S2idiWDRDPod0G7ZutmtWjiR4nmVupfffkRRaRh8xAr/Eu+fcAm/9y3yjRyu u+nsXiVtyS8EyKpuwuf0UfL0XAJBhNa4w1LrFQrvKnaHHJQWxPv+iRpgMzw/aC7fMVgM yocQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702309489; x=1702914289; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3EHFkEQ27U+4FuL/p3mfN4ceRCyXdPDrWkGkrGBViEo=; b=g2+WjgdfszuyKBD2LBAxrJ0Kroulu/KIWtqu+ESlkwQcxgRI2PjjmHtSHvpzm4xU+r pa0ZlzHFZ9K477jOddwTxK5qACWJ8Ywqzthd2rYhCmBRefP81TyMahDouGRauy6qOBmn d2NgtVT2dFDSoPJm/4B8KCzDa+98fXLdJzOJ8K5ZKmRRMwXoRoB6YIJ6Ig+DPjovVb6g U8nwcfKa78FvVmNyj++A8rL4A1I2C+GiRERDev8YqfevzGc/sgsKGSXWUD6afBBRUR+g 4ut+uTZZCyIBuYdIyDO0zk6mqWueU+v3WtRTgwziBvP8e8qPgUvivqtL/gQ8GxHz/NfD f3zg== X-Gm-Message-State: AOJu0YxAgCNTjQEFpl/p3fUvWDJX2N/AridLaGcA50T4InW9+Vrj/ZyA kH86CwrucwzqmgUWd8xIAdmCNQ== X-Google-Smtp-Source: AGHT+IEam9fZdsdP7QrV4Gd0KMwsyDVoSVVfAV9Zjzne67TnyppEtLORztpSC/Ow1E1UoDACb0dtcA== X-Received: by 2002:a05:6512:3e1f:b0:50d:1a14:3e79 with SMTP id i31-20020a0565123e1f00b0050d1a143e79mr2363359lfv.112.1702309489583; Mon, 11 Dec 2023 07:44:49 -0800 (PST) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id c5-20020ac244a5000000b0050aa6e2ae87sm1109646lfm.2.2023.12.11.07.44.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 07:44:48 -0800 (PST) From: Dmitry Baryshkov To: Rob Clark , Sean Paul , Abhinav Kumar , Marijn Suijten Cc: Stephen Boyd , David Airlie , Daniel Vetter , Bjorn Andersson , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: [PATCH v2 3/8] arm64: dts: qcom: sm8150-hdk: enable HDMI output Date: Mon, 11 Dec 2023 18:44:40 +0300 Message-Id: <20231211154445.3666732-4-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231211154445.3666732-1-dmitry.baryshkov@linaro.org> References: <20231211154445.3666732-1-dmitry.baryshkov@linaro.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add DSI outputs and link them to the onboard Lontium LT9611 DSI-to-HDMI bridge, enabling HDMI output on this board. While adding the display resources, also drop the headless ("amd,imageon") compat string from the GPU node, since the board now has output. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8150-hdk.dts | 128 +++++++++++++++++++++++- 1 file changed, 123 insertions(+), 5 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8150-hdk.dts b/arch/arm64/boot/dts/qcom/sm8150-hdk.dts index bb161b536da4..6a036f9ba1c9 100644 --- a/arch/arm64/boot/dts/qcom/sm8150-hdk.dts +++ b/arch/arm64/boot/dts/qcom/sm8150-hdk.dts @@ -54,6 +54,17 @@ key-vol-up { gpios = <&pm8150_gpios 6 GPIO_ACTIVE_LOW>; }; }; + + hdmi-out { + compatible = "hdmi-connector"; + type = "a"; + + port { + hdmi_con: endpoint { + remote-endpoint = <<9611_out>; + }; + }; + }; }; &apps_rsc { @@ -359,12 +370,112 @@ &gmu { status = "okay"; }; +&gpi_dma1 { + status = "okay"; +}; + &gpu { - /* - * NOTE: "amd,imageon" makes Adreno start in headless mode, remove it - * after display support is added on this board. - */ - compatible = "qcom,adreno-640.1", "qcom,adreno", "amd,imageon"; + status = "okay"; +}; + +&i2c9 { + status = "okay"; + clock-frequency = <400000>; + + lt9611_codec: hdmi-bridge@3b { + compatible = "lontium,lt9611"; + reg = <0x3b>; + #sound-dai-cells = <1>; + + interrupts-extended = <&tlmm 9 IRQ_TYPE_EDGE_FALLING>; + + reset-gpios = <&tlmm 7 GPIO_ACTIVE_HIGH>; + + vdd-supply = <&vreg_s4a_1p8>; + vcc-supply = <&vreg_bob>; + + pinctrl-names = "default"; + pinctrl-0 = <<9611_irq_pin>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + lt9611_a: endpoint { + remote-endpoint = <&mdss_dsi0_out>; + }; + }; + + port@1 { + reg = <1>; + + lt9611_b: endpoint { + remote-endpoint = <&mdss_dsi1_out>; + }; + }; + + port@2 { + reg = <2>; + + lt9611_out: endpoint { + remote-endpoint = <&hdmi_con>; + }; + }; + }; + }; +}; + +&mdss { + status = "okay"; +}; + +&mdss_dsi0 { + status = "okay"; + vdda-supply = <&vreg_l3c_1p2>; + + qcom,dual-dsi-mode; + qcom,master-dsi; + + ports { + port@1 { + endpoint { + remote-endpoint = <<9611_a>; + data-lanes = <0 1 2 3>; + }; + }; + }; +}; + +&mdss_dsi0_phy { + status = "okay"; + vdds-supply = <&vreg_l5a_0p875>; +}; + +&mdss_dsi1 { + vdda-supply = <&vreg_l3c_1p2>; + + qcom,dual-dsi-mode; + + /* DSI1 is slave, so use DSI0 clocks */ + assigned-clock-parents = <&mdss_dsi0_phy 0>, <&mdss_dsi0_phy 1>; + + status = "okay"; + + ports { + port@1 { + endpoint { + remote-endpoint = <<9611_b>; + data-lanes = <0 1 2 3>; + }; + }; + }; +}; + +&mdss_dsi1_phy { + vdds-supply = <&vreg_l5a_0p875>; status = "okay"; }; @@ -402,6 +513,13 @@ &remoteproc_slpi { &tlmm { gpio-reserved-ranges = <0 4>, <126 4>; + + lt9611_irq_pin: lt9611-irq-state { + pins = "gpio9"; + function = "gpio"; + bias-disable; + }; + }; &uart2 { From patchwork Mon Dec 11 15:44:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 752582 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="RzP/+6pi" Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32C97DC for ; Mon, 11 Dec 2023 07:44:53 -0800 (PST) Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-50bee606265so4780174e87.2 for ; Mon, 11 Dec 2023 07:44:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702309491; x=1702914291; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=MNYp3d1ic8j7Eae+I7H4QEOmaR7sG5mmr/TaRL+G3z8=; b=RzP/+6piVt8ToHWqTbixGPd9TIzAHYv+spPxoMHxw19KtVI2nco2pyeSzJ5Ozbb6Tz MT4vUFz0EntTncFEE3BeQqhOcCLNoJsTCVNIe6MP8lc+nT2pgRMNH5YEmNyUD+S2fRsu 9yt8ImeiBpsH71EUojVIua4BlKamECZkACz2gJFVBS/IxLLRzPZ/dwk8sSU7s5hMR0nk vxo4bx8XWoCtsN1JGQNJewK7YVFQKWM5U3ox3Ur+0KsBDXyEDmcAImwbLTZCcOwUForq ysQMTXK7Rz5YcMB0Y9qZU4nlpUGF/qxw48kK/GG/PDoGJF+2poAHRdGSUwmwXwKZAUx8 Gk+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702309491; x=1702914291; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MNYp3d1ic8j7Eae+I7H4QEOmaR7sG5mmr/TaRL+G3z8=; b=nQ5HzQfsmclh8Bt4LO26+SoamX751uwNr7EoEPUXvYX5JhoRn4KyKd8Yy7zsYeGG52 NMf0qM6TuD/mWHWd700Oyu2zKcDlVQ1vOnMNT8wg4ONOtBl4T2bqY2z5hC/WQOCK3Ule tbihSAofl5/9js5Im0qP95BDEEaG8HdAXf9BiA+Hqm5sz4N3vGyqqf4K+c70MmdpViWd 4Pv7ozpoyODsQ828OaLmlWW5tbLFf9clOT2XMXCzfPaDAMkdygxuqa4yeEgCrIGObAzh zJ05encpi1UyZBL9Y/ZpTKcWGei+XyQ0FHkyjAZjhfr2NGKcPjGSreEeE3P++/THCFNr x7mQ== X-Gm-Message-State: AOJu0YxS16zL8+s1A3kKKnMDFXFlQm/8ibme1rfLWc27Ndp9cDmrzQ/A OlBeMysEc406RqZO2XycxK1YAQ== X-Google-Smtp-Source: AGHT+IEPhjRdxX0vWq+O/5MYm7iFvVBoRYb1DWpclK2rqE2+cX1sDsaLSrwyBXh97IRC8C9TGc+J6g== X-Received: by 2002:a05:6512:4025:b0:50d:f85c:49f0 with SMTP id br37-20020a056512402500b0050df85c49f0mr1561785lfb.130.1702309491494; Mon, 11 Dec 2023 07:44:51 -0800 (PST) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id c5-20020ac244a5000000b0050aa6e2ae87sm1109646lfm.2.2023.12.11.07.44.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 07:44:50 -0800 (PST) From: Dmitry Baryshkov To: Rob Clark , Sean Paul , Abhinav Kumar , Marijn Suijten Cc: Stephen Boyd , David Airlie , Daniel Vetter , Bjorn Andersson , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: [PATCH v2 5/8] arm64: dts: qcom: sm8150: add DisplayPort controller Date: Mon, 11 Dec 2023 18:44:42 +0300 Message-Id: <20231211154445.3666732-6-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231211154445.3666732-1-dmitry.baryshkov@linaro.org> References: <20231211154445.3666732-1-dmitry.baryshkov@linaro.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add device tree node for the DisplayPort controller and link it to the display controller interface. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 87 ++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index 153c531c1d41..ea7c92c0e405 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -3712,6 +3712,13 @@ dpu_intf2_out: endpoint { remote-endpoint = <&mdss_dsi1_in>; }; }; + + port@2 { + reg = <2>; + dpu_intf0_out: endpoint { + remote-endpoint = <&mdss_dp_in>; + }; + }; }; mdp_opp_table: opp-table { @@ -3739,6 +3746,86 @@ opp-460000000 { }; }; + mdss_dp: displayport-controller@ae90000 { + compatible = "qcom,sm8150-dp", "qcom,sm8350-dp"; + reg = <0 0xae90000 0 0x200>, + <0 0xae90200 0 0x200>, + <0 0xae90400 0 0x600>, + <0 0x0ae90a00 0 0x600>, + <0 0x0ae91000 0 0x600>; + + interrupt-parent = <&mdss>; + interrupts = <12>; + clocks = <&dispcc DISP_CC_MDSS_AHB_CLK>, + <&dispcc DISP_CC_MDSS_DP_AUX_CLK>, + <&dispcc DISP_CC_MDSS_DP_LINK_CLK>, + <&dispcc DISP_CC_MDSS_DP_LINK_INTF_CLK>, + <&dispcc DISP_CC_MDSS_DP_PIXEL_CLK>; + clock-names = "core_iface", + "core_aux", + "ctrl_link", + "ctrl_link_iface", + "stream_pixel"; + + assigned-clocks = <&dispcc DISP_CC_MDSS_DP_LINK_CLK_SRC>, + <&dispcc DISP_CC_MDSS_DP_PIXEL_CLK_SRC>; + assigned-clock-parents = <&usb_1_qmpphy QMP_USB43DP_DP_LINK_CLK>, + <&usb_1_qmpphy QMP_USB43DP_DP_VCO_DIV_CLK>; + + phys = <&usb_1_qmpphy QMP_USB43DP_DP_PHY>; + phy-names = "dp"; + + #sound-dai-cells = <0>; + + operating-points-v2 = <&dp_opp_table>; + power-domains = <&rpmhpd SM8250_MMCX>; + + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + mdss_dp_in: endpoint { + remote-endpoint = <&dpu_intf0_out>; + }; + }; + + port@1 { + reg = <1>; + + mdss_dp_out: endpoint { + }; + }; + }; + + dp_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-160000000 { + opp-hz = /bits/ 64 <160000000>; + required-opps = <&rpmhpd_opp_low_svs>; + }; + + opp-270000000 { + opp-hz = /bits/ 64 <270000000>; + required-opps = <&rpmhpd_opp_svs>; + }; + + opp-540000000 { + opp-hz = /bits/ 64 <540000000>; + required-opps = <&rpmhpd_opp_svs_l1>; + }; + + opp-810000000 { + opp-hz = /bits/ 64 <810000000>; + required-opps = <&rpmhpd_opp_nom>; + }; + }; + }; + mdss_dsi0: dsi@ae94000 { compatible = "qcom,sm8150-dsi-ctrl", "qcom,mdss-dsi-ctrl"; reg = <0 0x0ae94000 0 0x400>; From patchwork Mon Dec 11 15:44:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 752581 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="BxufRkNt" Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 831A4A1 for ; Mon, 11 Dec 2023 07:44:54 -0800 (PST) Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-50dfac6c0beso1643922e87.2 for ; Mon, 11 Dec 2023 07:44:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702309493; x=1702914293; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4rRpPZt2SIJA5F3cMHV1T35kXBcvXzQb5IQ83qE8OmA=; b=BxufRkNt5iWw7YXltiIpONzGsgwFUiKcyCxfso5xS7d5/HyeEFBF1WOroUO+OQPMUB NDio7cqpSx10FXjSG7A5bVMExjjGZxGFRLLNj03Tlyp1/ZDX5qwLLdjvnlfXNmkP/wM/ 2bPXssjdM5RZLz+1eoccDxH2saeiuxn1nHCQPjRahEsi2s23WL4j5A+zPxi2HFs3dQ1W IUTylrLQM/j8VC+JMt1laafNPquh+pqKxYzrDti12hyHzG3foS3i2V20go0xlRY/JCjn Mr/VHNNZfEKajawiXVEB05K7JX2ULbamjPa9fTFb2cqSVS6O3OIGQQ+VsUloD0l5c7rq LdWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702309493; x=1702914293; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4rRpPZt2SIJA5F3cMHV1T35kXBcvXzQb5IQ83qE8OmA=; b=DEhPI4XT7wepG2JmAODcA9yeXNtrBuuwMJPSFlbkd7XDZwFM8klTP4Lfb8p0gvfz2o x4PTylemeYFEDf6IPMx8ttgId6ZJ5X+topyYjzcy2B0RgXL6rL0brqhIxfZ4bkFDm/a5 c5NAEcLIzx1Hv8LJkEbOHQ0p/MCpKBS74oz0WSMprTJeSS9x4qMX/ekOlQlYD+49Hvpt HPq/vtjxlPizqV0092jz7XdOFoYKBuLxFzsQAeLg+PFNa43Jusd4QYDeaYXNSuPcaGVh 9uHrThqL7gwJZAmYWSCX2le1Ir1MyzQLM4Xi48zioNV8G5zwkbC9ZGCkd8GsrVb9eVgR 2ZlA== X-Gm-Message-State: AOJu0YzerH5ptII9gfXwrduFIAJ0OcZ3OvlwzpMa80PmlCHKLocenCg+ +UFjUpzL78xQXtZpT1dvJ5M23A== X-Google-Smtp-Source: AGHT+IFUQ7tenzLmGboSIZEJbzghc3TiEVAs0ezbRXq678xu7S9Thy7y/lL/0Q2no+4vGl12ga2xGA== X-Received: by 2002:a05:6512:3d22:b0:50b:c4f1:9058 with SMTP id d34-20020a0565123d2200b0050bc4f19058mr2981841lfv.12.1702309492912; Mon, 11 Dec 2023 07:44:52 -0800 (PST) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id c5-20020ac244a5000000b0050aa6e2ae87sm1109646lfm.2.2023.12.11.07.44.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 07:44:52 -0800 (PST) From: Dmitry Baryshkov To: Rob Clark , Sean Paul , Abhinav Kumar , Marijn Suijten Cc: Stephen Boyd , David Airlie , Daniel Vetter , Bjorn Andersson , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: [PATCH v2 7/8] arm64: dts: qcom: sm8150: add USB-C ports to the OTG USB host Date: Mon, 11 Dec 2023 18:44:44 +0300 Message-Id: <20231211154445.3666732-8-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231211154445.3666732-1-dmitry.baryshkov@linaro.org> References: <20231211154445.3666732-1-dmitry.baryshkov@linaro.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Expand first USB host controller device node with the OF ports required to support USB-C / DisplayPort switching. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index 77d32f4fe7da..168d49b01807 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -3608,6 +3608,25 @@ usb_1_dwc3: usb@a600000 { snps,dis_enblslpm_quirk; phys = <&usb_1_hsphy>, <&usb_1_qmpphy QMP_USB43DP_USB3_PHY>; phy-names = "usb2-phy", "usb3-phy"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + usb_1_dwc3_hs: endpoint { + }; + }; + + port@1 { + reg = <1>; + + usb_1_dwc3_ss: endpoint { + }; + }; + }; }; };