From patchwork Wed Aug 10 03:54:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 596477 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A3551C28B2B for ; Wed, 10 Aug 2022 03:55:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230366AbiHJDyl (ORCPT ); Tue, 9 Aug 2022 23:54:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230085AbiHJDy2 (ORCPT ); Tue, 9 Aug 2022 23:54:28 -0400 Received: from mail-oa1-x32.google.com (mail-oa1-x32.google.com [IPv6:2001:4860:4864:20::32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EFA86613B for ; Tue, 9 Aug 2022 20:54:27 -0700 (PDT) Received: by mail-oa1-x32.google.com with SMTP id 586e51a60fabf-10ea9ef5838so16434533fac.3 for ; Tue, 09 Aug 2022 20:54:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=+hXeqbfCui9YdYkTLylnam0ju3zV31ixDbAl5c/vAHk=; b=pXwTzNpyHE31N4UgHP7zgfoqnMIbSFrHnr4hlNDgNj+3NfesQW5VeKWwCM7QqVV0L+ sXnw5pRdJIbtiJ8C0T/kz5O+5UPLhkeRX5QxJR2yg2tPHQxI1QYMO1jd5Bff6xJJWNgO bDW7+yk0nTDn2Y4USvLDmHjopqARv3J95R+e61YXPc0G4/fPpbhCJ2wxPqjx3Jw44unj Ilvf/xBaOzu5Lg9h4m8mWZoOZ8wTprjizU08aVasmrBsVG4CQWWvteUP3wjloPkU8mTn bxhOa+LM0TPyGySOh5OYN9JFuFwpnNN2iFEdBOrwY5FqT+qin+NChKcGNFpo/baf72/F o+Qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=+hXeqbfCui9YdYkTLylnam0ju3zV31ixDbAl5c/vAHk=; b=FQebvfi7ek0icSSdoeHi5Z3FR1+qRj8Bli2AP9eQGc3vLBFKozwfPNiPSp5zGldjo8 hsXxznfe5GFvQSJOGiCygIsey58gdu4lApdyt0p6CYTqY7KXPre0AiKtwdYvWoTsdZEo DQHRSwoc+8WfnjANxG9MOMWx4Y/46l8GiKU9XY9Xed+m30TZqtxXHct25hWXs5+w80Ms K1myMyHC5LNU9O2KwVfWw42I5kD+8b4EKVSqq7GTXdo2auuFbLLKwfhNAeaV/0QLB47u jF00diQsaPXS/EvoXwEJDeOQFbjSXEGY+nXux3i5nxbl4aQS9pU+WaqsByWh4XL+vDaG ZeiA== X-Gm-Message-State: ACgBeo2yQGq5fby+joA4nEk5v8zLV2bBYusslGA3GekfWXpl6H8vpO/t X9UaXyJ5DaslGr2V1h13Uy9E5M5L43ZlRA== X-Google-Smtp-Source: AA6agR4mLrLrQtI0x86uYrurjRPM1cSgFGkDBZmmJ5TWr80FYg9BTYYOUcA+AAzpXBakzcl9E9ljyg== X-Received: by 2002:a05:6870:6389:b0:10e:6438:a8ed with SMTP id t9-20020a056870638900b0010e6438a8edmr661665oap.199.1660103666824; Tue, 09 Aug 2022 20:54:26 -0700 (PDT) Received: from builder.lan (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id r13-20020a056871088d00b000f5f4ad194bsm3569732oaq.25.2022.08.09.20.54.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Aug 2022 20:54:26 -0700 (PDT) From: Bjorn Andersson To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/4] arm64: dts: qcom: sdm845: switch usb_1 phy to use combo usb+dp phy Date: Tue, 9 Aug 2022 22:54:21 -0500 Message-Id: <20220810035424.2796777-2-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220810035424.2796777-1-bjorn.andersson@linaro.org> References: <20220810035424.2796777-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Dmitry Baryshkov Change sdm845's usb_1_qmpphy to use combo usb+dp phy bindings, rather than just usb phy. Signed-off-by: Dmitry Baryshkov Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index f0e286715d1b..eae307a4babf 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -3922,9 +3922,10 @@ usb_2_hsphy: phy@88e3000 { }; usb_1_qmpphy: phy@88e9000 { - compatible = "qcom,sdm845-qmp-usb3-phy"; + compatible = "qcom,sdm845-qmp-usb3-dp-phy"; reg = <0 0x088e9000 0 0x18c>, - <0 0x088e8000 0 0x10>; + <0 0x088e8000 0 0x38>, + <0 0x088ea000 0 0x40>; status = "disabled"; #address-cells = <2>; #size-cells = <2>; @@ -3936,11 +3937,11 @@ usb_1_qmpphy: phy@88e9000 { <&gcc GCC_USB3_PRIM_PHY_COM_AUX_CLK>; clock-names = "aux", "cfg_ahb", "ref", "com_aux"; - resets = <&gcc GCC_USB3_DP_PHY_PRIM_BCR>, - <&gcc GCC_USB3_PHY_PRIM_BCR>; + resets = <&gcc GCC_USB3_PHY_PRIM_BCR>, + <&gcc GCC_USB3_DP_PHY_PRIM_BCR>; reset-names = "phy", "common"; - usb_1_ssphy: phy@88e9200 { + usb_1_ssphy: usb3-phy@88e9200 { reg = <0 0x088e9200 0 0x128>, <0 0x088e9400 0 0x200>, <0 0x088e9c00 0 0x218>, @@ -3953,6 +3954,16 @@ usb_1_ssphy: phy@88e9200 { clock-names = "pipe0"; clock-output-names = "usb3_phy_pipe_clk_src"; }; + + dp_phy: dp-phy@88ea200 { + reg = <0 0x088ea200 0 0x200>, + <0 0x088ea400 0 0x200>, + <0 0x088eaa00 0 0x200>, + <0 0x088ea600 0 0x200>, + <0 0x088ea800 0 0x200>; + #clock-cells = <1>; + #phy-cells = <0>; + }; }; usb_2_qmpphy: phy@88eb000 { @@ -4775,8 +4786,8 @@ dispcc: clock-controller@af00000 { <&dsi0_phy 1>, <&dsi1_phy 0>, <&dsi1_phy 1>, - <0>, - <0>; + <&dp_phy 0>, + <&dp_phy 1>; clock-names = "bi_tcxo", "gcc_disp_gpll0_clk_src", "gcc_disp_gpll0_div_clk_src", From patchwork Wed Aug 10 03:54:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 597099 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34AFCC19F2A for ; Wed, 10 Aug 2022 03:55:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229915AbiHJDyh (ORCPT ); Tue, 9 Aug 2022 23:54:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230208AbiHJDya (ORCPT ); Tue, 9 Aug 2022 23:54:30 -0400 Received: from mail-ot1-x329.google.com (mail-ot1-x329.google.com [IPv6:2607:f8b0:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72D016613D for ; Tue, 9 Aug 2022 20:54:28 -0700 (PDT) Received: by mail-ot1-x329.google.com with SMTP id cb12-20020a056830618c00b00616b871cef3so9845008otb.5 for ; Tue, 09 Aug 2022 20:54:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=ry+ibPoPjFsGLqx07kgp5fWkflkrTbeFQgZo2EyqkqE=; b=tw/iUHjUhBM1Jb0bsYEVv6P9HbZT21GNFQmSCWk4eLKD4mkBXqKwVGPJyvb1hddl4X 9G42R6frr8FSAsgHfBHBpAzNxOd+LN6XSws1vIzWGDmgEWz1XnUQsrrtBmhbzS3q4ojZ gXnf4I0xyq9fASqWKTCnSINPY0QkCXPMxuxeTqFC9S27j2RjBQZswzvNs2nzc+RtstLJ mL9PwTzcZigQWfVtMNUoa2U6XuNkOSz39Xq4p/orcurCQGYnuLowRao1o2SzGoaei5wx L2NUBIw+R2CkNdMvyQHzgnZdxMsER3Oncl81qvrFtZqfw12/9ZpaX6SAL1ToQkzRb68z 9FSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=ry+ibPoPjFsGLqx07kgp5fWkflkrTbeFQgZo2EyqkqE=; b=xFYFqDmX4w61T0n5/6EPxmvMt412W3AcpNW3s03iJzxSOZ8jHcb7ND9hDpsj0R2xzR 2ZYQqbL59ipHaVFqGW2BFSuZKtPO7ZBFa28OEyO52/p4dMfR+9A5mK7uLpcNPzNtuLo9 hYHCDZ0A7ZZQbbPmJT0vvY9ddTkCIzxjSBg2kM0BibZytEnNC95AZCl0X+djLX+nYzS1 zkD2uSdf94r5OzTl1GKH/OngNAgiig2xIJmnZYdr2bsW1RKeQ1foW4dUkN8qETqlCvAa TNe8YVexaoxVNgn6vjDpYcrkRvqMeX8IwQiFgHr1igTod0Sz/+u029LWwumQmvAZ9tIw f2SQ== X-Gm-Message-State: ACgBeo1WCz2v3JQE+tcHtK6QFg/LM+SAQyHhPXUYT6HGlmZShdRuR5w2 F3OTQNVe5wyrdHY96nvVWs6oJy9m1WO9aA== X-Google-Smtp-Source: AA6agR7AC3Nx3L/Jc8GUrjAPqdz3P8KG7jVDlTu2KGz8zpD9uwar7E9OOC8m11GCpTOS5QCH3k9cpg== X-Received: by 2002:a9d:5383:0:b0:61c:6ca8:c68 with SMTP id w3-20020a9d5383000000b0061c6ca80c68mr9706838otg.303.1660103667797; Tue, 09 Aug 2022 20:54:27 -0700 (PDT) Received: from builder.lan (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id r13-20020a056871088d00b000f5f4ad194bsm3569732oaq.25.2022.08.09.20.54.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Aug 2022 20:54:27 -0700 (PDT) From: Bjorn Andersson To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] arm64: dts: qcom: sdm845: add displayport node Date: Tue, 9 Aug 2022 22:54:22 -0500 Message-Id: <20220810035424.2796777-3-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220810035424.2796777-1-bjorn.andersson@linaro.org> References: <20220810035424.2796777-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Dmitry Baryshkov Add displayport controller device node, describing DisplayPort hardware block on SDM845. Signed-off-by: Dmitry Baryshkov Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 82 +++++++++++++++++++++++++++- 1 file changed, 80 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index eae307a4babf..a8ba6ebc714f 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -4457,13 +4457,20 @@ ports { port@0 { reg = <0>; - dpu_intf1_out: endpoint { - remote-endpoint = <&dsi0_in>; + dpu_intf0_out: endpoint { + remote-endpoint = <&dp_in>; }; }; port@1 { reg = <1>; + dpu_intf1_out: endpoint { + remote-endpoint = <&dsi0_in>; + }; + }; + + port@2 { + reg = <2>; dpu_intf2_out: endpoint { remote-endpoint = <&dsi1_in>; }; @@ -4495,6 +4502,77 @@ opp-430000000 { }; }; + mdss_dp: displayport-controller@ae90000 { + status = "disabled"; + compatible = "qcom,sdm845-dp"; + + reg = <0 0xae90000 0 0x200>, + <0 0xae90200 0 0x200>, + <0 0xae90400 0 0x600>, + <0 0xae90a00 0 0x600>, + <0 0xae91000 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"; + #clock-cells = <1>; + assigned-clocks = <&dispcc DISP_CC_MDSS_DP_LINK_CLK_SRC>, + <&dispcc DISP_CC_MDSS_DP_PIXEL_CLK_SRC>; + assigned-clock-parents = <&dp_phy 0>, <&dp_phy 1>; + phys = <&dp_phy>; + phy-names = "dp"; + + operating-points-v2 = <&dp_opp_table>; + power-domains = <&rpmhpd SDM845_CX>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + port@0 { + reg = <0>; + dp_in: endpoint { + remote-endpoint = <&dpu_intf0_out>; + }; + }; + + port@1 { + reg = <1>; + dp_out: endpoint { }; + }; + }; + + dp_opp_table: dp-opp-table { + compatible = "operating-points-v2"; + + opp-162000000 { + opp-hz = /bits/ 64 <162000000>; + 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>; + }; + }; + }; + dsi0: dsi@ae94000 { compatible = "qcom,mdss-dsi-ctrl"; reg = <0 0x0ae94000 0 0x400>; From patchwork Wed Aug 10 03:54:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 597098 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 68C51C25B07 for ; Wed, 10 Aug 2022 03:55:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229999AbiHJDyi (ORCPT ); Tue, 9 Aug 2022 23:54:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230273AbiHJDyb (ORCPT ); Tue, 9 Aug 2022 23:54:31 -0400 Received: from mail-ot1-x32b.google.com (mail-ot1-x32b.google.com [IPv6:2607:f8b0:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F25C6613B for ; Tue, 9 Aug 2022 20:54:29 -0700 (PDT) Received: by mail-ot1-x32b.google.com with SMTP id p22-20020a9d6956000000b00636a088b2aeso9812781oto.9 for ; Tue, 09 Aug 2022 20:54:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=7rU8bDr39Wos4pPlp5rDHY4O2R+eG5nyVtErR7bxkgQ=; b=jN9MOdWDI/Rb19CdE9nA8Rw19kEKGJXLGI6QMin1iEM03ACk31Sm0RnYqYHsxuX3ku gw8l6PZzL81YmIPr1G+rDByM1EVybyUvVwH/BBBDzIWSiDujXTMHdOYe4Omf+p9i3cxo P+7i6zA3CUWW+Mojj0JiOqDwbVSg3zs3DlYRP/Bf0HL634Lp6tmOnzL9qL3IExYA0y8o 7ygRdYxo0/GnWcQNrOzoYhEOV8v57eo5Wn38uwfCEFKySVHjLQ6kIq6Zsv0rTR45TQgB dNGEEYgSt//Dd/IOCenNlKpAruUyg9KxV5NP+BBDlAMEEXSJr2W6EWiMY/x1KDAnCyV3 9qAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=7rU8bDr39Wos4pPlp5rDHY4O2R+eG5nyVtErR7bxkgQ=; b=pQW3Vn5xTO8nEjXXpRDWXzNczaztn7iHTDjB9XwElAK3SfL6/Y7K5fOQpcKnN6HTxe wLQCUu4V/iHYAxN5ivE2wuoaFpVjklM+TFCauwF7+mLZgm5FtFoKWHjDJmv45rgDuQy6 JI9hgMBsdPyfmQoTuHOYlDxQw4EVGGKJkrl9Psna913EJh9kn3wiP5f2fUMtjXi+gECp utwzCQG+ZqlH9bZzv3STngE4DNFghwjv9IpSP4eQ7NAxluBnvxzUUADo9mJ/N6rYpFBv BBrAyTnE04YG75vpJ19KcVRkVGPSc0f5x2hs1qPdAOd/O28iOs9lCNK8R2K/uptIyo1e pMVQ== X-Gm-Message-State: ACgBeo0BSG1rzofoEcbk9jAENUh4v52yAkBrxmguHMXjRVJi+vWTp+Pi 3hVN37AjRp8Ff7s0ie5KuJ1aGQ== X-Google-Smtp-Source: AA6agR52u71mq4gR0xhKvUZjvRBcpyjsvD4wjJZOe6Ml/U3mAwQDbMyFlLSB8zRTOV2mQfHtFzyX/g== X-Received: by 2002:a9d:1b21:0:b0:61d:2e19:4566 with SMTP id l30-20020a9d1b21000000b0061d2e194566mr9818467otl.11.1660103668834; Tue, 09 Aug 2022 20:54:28 -0700 (PDT) Received: from builder.lan (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id r13-20020a056871088d00b000f5f4ad194bsm3569732oaq.25.2022.08.09.20.54.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Aug 2022 20:54:28 -0700 (PDT) From: Bjorn Andersson To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] arm64: dts: qcom: c630: Add Embedded Controller node Date: Tue, 9 Aug 2022 22:54:23 -0500 Message-Id: <20220810035424.2796777-4-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220810035424.2796777-1-bjorn.andersson@linaro.org> References: <20220810035424.2796777-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The Embedded Controller in the Lenovo Yoga C630 is accessible on &i2c1 and provides battery and adapter status, as well as altmode notifications for the second USB Type-C port. Add a definition for the EC. Signed-off-by: Bjorn Andersson --- .../boot/dts/qcom/sdm850-lenovo-yoga-c630.dts | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts b/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts index a7af1bed4312..1b9b36faea27 100644 --- a/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts +++ b/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts @@ -352,6 +352,33 @@ zap-shader { &i2c1 { status = "okay"; clock-frequency = <400000>; + + embedded-controller@70 { + compatible = "lenovo,yoga-c630-ec"; + reg = <0x70>; + + interrupts-extended = <&tlmm 20 IRQ_TYPE_LEVEL_HIGH>; + + pinctrl-names = "default"; + pinctrl-0 = <&ec_int_state>; + + #address-cells = <1>; + #size-cells = <0>; + + connector@0 { + compatible = "usb-c-connector"; + reg = <0>; + power-role = "source"; + data-role = "host"; + }; + + connector@1 { + compatible = "usb-c-connector"; + reg = <1>; + power-role = "source"; + data-role = "host"; + }; + }; }; &i2c3 { @@ -676,6 +703,14 @@ mode_pin_active: mode-pin { input-enable; bias-disable; }; + + ec_int_state: ec-int-state { + pins = "gpio20"; + function = "gpio"; + + input-enable; + bias-disable; + }; }; &uart6 { From patchwork Wed Aug 10 03:54:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 597097 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D61BFC28B2C for ; Wed, 10 Aug 2022 03:55:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230396AbiHJDyj (ORCPT ); Tue, 9 Aug 2022 23:54:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230366AbiHJDyb (ORCPT ); Tue, 9 Aug 2022 23:54:31 -0400 Received: from mail-oa1-x29.google.com (mail-oa1-x29.google.com [IPv6:2001:4860:4864:20::29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 981B767147 for ; Tue, 9 Aug 2022 20:54:30 -0700 (PDT) Received: by mail-oa1-x29.google.com with SMTP id 586e51a60fabf-10e615a36b0so16460787fac.1 for ; Tue, 09 Aug 2022 20:54:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=iRmS9eiX84T3Eljq6nFBiYGemoOHkrIHDqMiXTc5WkY=; b=i76f7LSTmC2x3191zfAwPlIX3DHmSK1SSpHrmfuk0aveIhp3EAf0a8rat4UNfyrZNm dsyiLOQPGQlck0KIqOtoUe/FludXJXUb9g0ZumMbSH4JqkIAKzSBEp7Qtts0qxHQd6zu Jl8l/R48RpgDh3CM8/Db0wBa8B23u4/MGJ3a1E0ZBGZ00gG6D9CAtJDl8457yXdfEywm IwPWZcJgP3W0ahtlfXKufJoGAthkRpzuUxPmnkqy6CsaU9CdBLSMJ5TbM9ajQq7Iy9RW qLz93HOvWNlFK6y2Od5Mq7i5UaPj3ue/Z+vz+vROY5nod5rPXQvT/7+Gb8WT8+Xs2aUy FYEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=iRmS9eiX84T3Eljq6nFBiYGemoOHkrIHDqMiXTc5WkY=; b=txFok8emLuRvpsxWnL46g75MFrsR+492zpNH2pcZ1o9cVMz1uijYk36sqfWe/mNk8e 5VK5SbOK/5p7Xvk2CbSawinjTzpO2RjkwwuLIeHAOY6B0d2kStHK0aYhxHlY/XvmvA5K pJylYY0iqrfHt2waot24Oq+FhEloj3q3oQd5zQ0CUe61BfDJsculVAD7Bo6DLgO97foF LCwhikdHVz8Ht1Q0+rMwPcKf1bduwA3ujHh6ghmDBg3q+odXxsu2ziGrr11UzDXwkgCO cSnm4/I3MVvKWhuggvYXTht0NyecFUq/qXdNbd6UDiz278BBolYDqH3Vs7+3/u9hqumB sCHQ== X-Gm-Message-State: ACgBeo25Wxpis+UWgZ/SzqmHM/+2AY768GM3kvG2/b4Ua6+pCRRbWkGq FWJ43M2qb5qenvr5Tqte5WiluRMsDb9Vhw== X-Google-Smtp-Source: AA6agR6ybtnb3nnuOWfKEttcZflNL02RQ1P+Cg6d/WG7ASEGFg1dOw5IGpBPhZlMHsc0WXBNI1DKKQ== X-Received: by 2002:a05:6871:411:b0:10e:a23c:65b6 with SMTP id d17-20020a056871041100b0010ea23c65b6mr626373oag.93.1660103669926; Tue, 09 Aug 2022 20:54:29 -0700 (PDT) Received: from builder.lan (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id r13-20020a056871088d00b000f5f4ad194bsm3569732oaq.25.2022.08.09.20.54.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Aug 2022 20:54:29 -0700 (PDT) From: Bjorn Andersson To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/4] arm64: dts: qcom: c630: Add DisplayPort controller Date: Tue, 9 Aug 2022 22:54:24 -0500 Message-Id: <20220810035424.2796777-5-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220810035424.2796777-1-bjorn.andersson@linaro.org> References: <20220810035424.2796777-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add and enable the DisplayPort controller found in the Lenovo Yoga C630 and wire this up to the Embedded Controller for HPD notifications. Signed-off-by: Bjorn Andersson --- .../boot/dts/qcom/sdm850-lenovo-yoga-c630.dts | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts b/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts index 1b9b36faea27..0e4d086cd64e 100644 --- a/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts +++ b/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts @@ -377,6 +377,17 @@ connector@1 { reg = <1>; power-role = "source"; data-role = "host"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + port@1 { + reg = <1>; + lenovo_ec_dp_in: endpoint { + remote-endpoint = <&mdss_dp_out>; + }; + }; + }; }; }; }; @@ -500,6 +511,20 @@ &mdss { status = "okay"; }; +&mdss_dp { + status = "okay"; + data-lanes = <0 1>; + + ports { + port@1 { + reg = <1>; + mdss_dp_out: endpoint { + remote-endpoint = <&lenovo_ec_dp_in>; + }; + }; + }; +}; + &mss_pil { status = "okay"; firmware-name = "qcom/LENOVO/81JL/qcdsp1v2850.mbn", "qcom/LENOVO/81JL/qcdsp2850.mbn";