From patchwork Tue Mar 21 22:12:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13183363 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 3B8C0C76195 for ; Tue, 21 Mar 2023 22:12:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230035AbjCUWMy (ORCPT ); Tue, 21 Mar 2023 18:12:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229930AbjCUWMu (ORCPT ); Tue, 21 Mar 2023 18:12:50 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94561567BB for ; Tue, 21 Mar 2023 15:12:48 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id i13so5310774lfe.9 for ; Tue, 21 Mar 2023 15:12:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679436767; 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=BCUJY1Hh2EModZGNwH3Cf81RyZQkzt9KGfduADVwZqc=; b=hLPidQvGUMB5Bz3P75QcMGu89KyHxGgata9Yb0577gCwAgqVZaOj9u6vWxMs6ay8Yz Bs8ShjszRic24iBvTcdihJA0ihybRFyZQIvf44G38klno8DOTDuD18lom2rOLum+fUyQ f/VR8xzcG4cdlMLSXxEJeyqjXJuswiIv8we1LFGE4AzB3Nh7nRQmSqkow4DKT1aupg2l uOyLYc4ev9TyFa1aLFnR5YUD0CO2WVwRGT+8ARLF8D6UxpkzYsRwKPVtbFjnQlFSfQAQ cJ6vDQT0lW5PlnKT2RcFxA4cLBmLueFd34L28A/x2K+nGPSkYPBnk+8Oo14FaJThYVHP CXqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679436767; 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=BCUJY1Hh2EModZGNwH3Cf81RyZQkzt9KGfduADVwZqc=; b=CHEFtVCgvepg39ykjHz0dQcDX4a6pbOec4gZkI3S3VaxPKMoesdkGVC4vlKtfuW0AA MIzjqcmadfUhV1a1kx0vIXTdPfiz8LuJVntZCb/7wn8MPNPwqov72kb6JoTHdgmmC7HG B4SvA7Q3O/1xFoQoZweuz0BfmEl6i9zS3GDqqOZ5fMIQCkVTmblNnsOTEDFVMuGSw5SX s8DKXzHiOqNXXqD/w9C8g+79dFKnUs9eguMNh8bdb2VECis0mF5T7A9FEfWSHQII4SD7 AbmVbG8Efw8YsFUM6TiHbTopP0DSUChzEs4boG/pydM3qowes0dU86J5axi++kTTO2qb RyPw== X-Gm-Message-State: AAQBX9cmEch9quWdxb87DZm7RPpu7aaa4WGjSns7Ne8uNasJQmEXdJuq pEhmq9U+SCDwJS6bIoVb+XZxPw== X-Google-Smtp-Source: AK7set8j50UEJEfSenglA09AC7xT7EpQaTHOGI7NOY4txTgVS53FJNoG+bBaHqIcASRnCcvMKMG+Cg== X-Received: by 2002:ac2:4116:0:b0:4e9:6097:add5 with SMTP id b22-20020ac24116000000b004e96097add5mr1363441lfi.66.1679436766836; Tue, 21 Mar 2023 15:12:46 -0700 (PDT) Received: from [192.168.1.101] (abym238.neoplus.adsl.tpnet.pl. [83.9.32.238]) by smtp.gmail.com with ESMTPSA id o15-20020a056512050f00b004e9c983a007sm1220344lfb.289.2023.03.21.15.12.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Mar 2023 15:12:46 -0700 (PDT) From: Konrad Dybcio Date: Tue, 21 Mar 2023 23:12:28 +0100 Subject: [PATCH 1/4] dt-bindings: usb: gpio-sbu-mux: Add OnSemi NB7VPQ904M mux MIME-Version: 1.0 Message-Id: <20230321-topic-sagami_dp-v1-1-340c8bce4276@linaro.org> References: <20230321-topic-sagami_dp-v1-0-340c8bce4276@linaro.org> In-Reply-To: <20230321-topic-sagami_dp-v1-0-340c8bce4276@linaro.org> To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Bjorn Andersson , Andy Gross Cc: Marijn Suijten , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1679436764; l=1173; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=hofgD3Pg2Wl7Hj4Cs3d2T2t9S7MypKBJJexKG0UTF+4=; b=FVYoL7k1VXDlpelZPfqkyTov5Jj9u4GO0zOfomLqGzPF/uKldcr7iBGllsbkkxNRgpSUK0ceumzo oUlkCHjkB4nxKbFPnVXNCPo3IIkpw6mxUGewhAwXAVu6P6CDhu+8 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org The OnSemi NB7VPQ904M Type-C DP altmode redriver provides SBU signals that can be used in with the gpio-sbu-mux driver. Document it. Note that the -mux suffix is there to indicate that the gpio-sbu-mux driver interacts with the mux part of this otherwise quite sophisticated chip, leaving the "onnn,nb7vpq904m" compatible free for when a proper driver taking care of all of the chip's capabilities is introduced. Ref: https://www.onsemi.com/products/signal-conditioning-control/redrivers/nb7vpq904m Signed-off-by: Konrad Dybcio --- Documentation/devicetree/bindings/usb/gpio-sbu-mux.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/usb/gpio-sbu-mux.yaml b/Documentation/devicetree/bindings/usb/gpio-sbu-mux.yaml index bf4b1d016e1f..a7206009b691 100644 --- a/Documentation/devicetree/bindings/usb/gpio-sbu-mux.yaml +++ b/Documentation/devicetree/bindings/usb/gpio-sbu-mux.yaml @@ -20,6 +20,7 @@ properties: items: - enum: - onnn,fsusb43l10x + - onnn,nb7vpq904m-mux - pericom,pi3usb102 - const: gpio-sbu-mux From patchwork Tue Mar 21 22:12:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13183364 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 C9ED9C6FD1D for ; Tue, 21 Mar 2023 22:12:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230060AbjCUWM5 (ORCPT ); Tue, 21 Mar 2023 18:12:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229991AbjCUWMv (ORCPT ); Tue, 21 Mar 2023 18:12:51 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD983570BD for ; Tue, 21 Mar 2023 15:12:49 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id g17so21003213lfv.4 for ; Tue, 21 Mar 2023 15:12:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679436768; 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=EQE/ZY7onSQ8rUTB/nkJV/hU8qnvId3wEP5blVPG6jI=; b=Gx8XwMWGypKw4hXhmcWKXP05V9Z81AvNK92dreh4f6kuoaZYZsf3gXsNP7chNNloOE Of9TfZUb2HqVwGLyLQuu+HyQ6Uabif260/tlKCNnTljP6goKw6NkSihgiusnn+4X1mdE VY8wvpmkwFvitaH6ZECfgZdmLH9lqaz0resI8WGmc/ArjKvQBk1ohP1BIF9gZtFXeki0 +j8tMxkxD1MaFABGfy3C8JKGEl9dEsKAQOpUlIdm0Cku6z/BcqoyaM/HHkzjkuSeySod bjUd/zBh8ojiXD/UtQkmiXUR/UEhKdMtkV0qDVgllaNWL9SomvxP4h0QjAIQ/azoGHb/ QOfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679436768; 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=EQE/ZY7onSQ8rUTB/nkJV/hU8qnvId3wEP5blVPG6jI=; b=nfJlWV3kkaGAKYofXVP2uzt2O3mySgx2mOFuX1ZdiysRJEKbsc7YeySg1a0I7X/LHQ sbU/+qRKHU3AObh9HKGGSf/R9gSXSMc7Ma3AGoAp1slMg4xBYm8gcjz/es9jZFlvXyc0 +MpQo4QhHNcUQzTLT9kWJAwlkKZ9l8gGUqwt0nXAg9pYiqDPCpyqD9WOBrbwCnC/4uut 8OwQjv/mGWzafw+BkMSyFCluWhTkK/M7fouswQPBQgsnH+f79HNE3Zd7VjaMj1MQXAcB 3wJU+6oYwt8P4ZeO4WOhtV6elnhfj9GRNVaxxDofYjm17+6U4C4owAVKotmGakXNuuU7 erTA== X-Gm-Message-State: AO0yUKUlBwyMEFHx6OPuLJnQo1Jfon7pMo7WsJciE8maRFN1e3gwEq3T 9vTUPB4X4iQkKaaX7eBOOtb8Rw== X-Google-Smtp-Source: AK7set9GQB+oUO08nFChXZ4KqrDMsfaOaQ1Qbd0F7K2rkJG9wOk9KriARJE7DfXlrlKqhbGeBAB7Bw== X-Received: by 2002:ac2:5939:0:b0:4e8:50e8:b96d with SMTP id v25-20020ac25939000000b004e850e8b96dmr1291425lfi.39.1679436768006; Tue, 21 Mar 2023 15:12:48 -0700 (PDT) Received: from [192.168.1.101] (abym238.neoplus.adsl.tpnet.pl. [83.9.32.238]) by smtp.gmail.com with ESMTPSA id o15-20020a056512050f00b004e9c983a007sm1220344lfb.289.2023.03.21.15.12.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Mar 2023 15:12:47 -0700 (PDT) From: Konrad Dybcio Date: Tue, 21 Mar 2023 23:12:29 +0100 Subject: [PATCH 2/4] arm64: dts: qcom: sm8350-sagami: Add PMIC GLINK MIME-Version: 1.0 Message-Id: <20230321-topic-sagami_dp-v1-2-340c8bce4276@linaro.org> References: <20230321-topic-sagami_dp-v1-0-340c8bce4276@linaro.org> In-Reply-To: <20230321-topic-sagami_dp-v1-0-340c8bce4276@linaro.org> To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Bjorn Andersson , Andy Gross Cc: Marijn Suijten , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1679436764; l=2062; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=lp3eRpNyaDm0TqsNi7lANZ1nKsWClV3YhZv72FTFjqk=; b=mfS0ghbAWxBp3havLWO2c/RvDRQxgl5dSZJzaTsqb948DP73mtMZPJxnzrjPpDUMIrvQIwQq56i9 eELx4a/uBGzjbIjCjZKCeo8B158EA4fj0dqjVIOk7sW7CAQqvax5 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Sagami devices, like other 8350s, uses PMIC GLINK for various functionality around battery, charging, TCPM etc. Enable it. Worth noting: My USB mouse is unimpressed when connected to the device via a non-powered USB-C dock. Microsoft HD-500 dock refuses to estalish a PD handshake. Signed-off-by: Konrad Dybcio Reviewed-by: Neil Armstrong --- .../boot/dts/qcom/sm8350-sony-xperia-sagami.dtsi | 60 +++++++++++++++++++++- 1 file changed, 59 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8350-sony-xperia-sagami.dtsi b/arch/arm64/boot/dts/qcom/sm8350-sony-xperia-sagami.dtsi index 89382ad73133..21462b6de686 100644 --- a/arch/arm64/boot/dts/qcom/sm8350-sony-xperia-sagami.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350-sony-xperia-sagami.dtsi @@ -89,6 +89,42 @@ key-vol-down { }; }; + pmic-glink { + compatible = "qcom,sm8350-pmic-glink", "qcom,pmic-glink"; + + #address-cells = <1>; + #size-cells = <0>; + + 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_dwc3_hs_in: endpoint { + remote-endpoint = <&usb_1_dwc3_hs>; + }; + }; + + port@1 { + reg = <1>; + + pmic_glink_dwc3_ss_in: endpoint { + remote-endpoint = <&usb_1_dwc3_ss>; + }; + }; + }; + }; + }; + + reserved-memory { cont_splash_mem: memory@e1000000 { reg = <0 0xe1000000 0 0x2300000>; @@ -904,7 +940,29 @@ &usb_1 { }; &usb_1_dwc3 { - dr_mode = "peripheral"; + dr_mode = "otg"; + usb-role-switch; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + usb_1_dwc3_hs: endpoint { + remote-endpoint = <&pmic_glink_dwc3_hs_in>; + }; + }; + + port@1 { + reg = <1>; + + usb_1_dwc3_ss: endpoint { + remote-endpoint = <&pmic_glink_dwc3_ss_in>; + }; + }; + }; }; &usb_1_hsphy { From patchwork Tue Mar 21 22:12:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13183365 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 63483C6FD20 for ; Tue, 21 Mar 2023 22:13:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229521AbjCUWM7 (ORCPT ); Tue, 21 Mar 2023 18:12:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230018AbjCUWMx (ORCPT ); Tue, 21 Mar 2023 18:12:53 -0400 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 C58D857088 for ; Tue, 21 Mar 2023 15:12:50 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id i13so5310872lfe.9 for ; Tue, 21 Mar 2023 15:12:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679436769; 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=vgZbupn0k37+a4wCBuLR6J1C7AEfEIAI+ys1wz8gGnE=; b=Z/CYlLlhpcaLLmW9gO2Tj2zwHGQsTDfqQG/LiFQ5M/jTiI97kzwwakeIV2Nt4yrRcy lVy5dAd3M4N3HgRa44E6mydVkZpB8AiPeFHdqUG1cD4u9c/hM/1C842YJisdaMM3uEeC kwotOz25RSfIz9kdx3ccetBK8G56AZ+/jarDhgxQZv3W1G8ptAGVEgsd8s9YWp2xKCTg RmLhSZPvtQTYJXJ0nM4qEP7DyuaJ+sEcOMV76RbW3wmmIHzQ5iny2x9mddOvFBvIBw13 7KZdTw43jq9SCzho0mTbn0RKY/mdZXVfTNsOpeL1gWnMR6lnypNEywuIusySYI/l/mF4 /AKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679436769; 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=vgZbupn0k37+a4wCBuLR6J1C7AEfEIAI+ys1wz8gGnE=; b=C5ityo2EzIPnZ757i2KPQ7iGV2uV69VyYYKxDB6aVnFcwW+TTh2L67YmAjZ27/TBCN awx+L+zqo00JAy0VXutQcuWU0iunHhQ0iZrmzHP/UvP8Is1Rxr/ZtsWASsDkp+2uGRyb mjgUqrH2ptNgZYah/jkcqaDpg1Na9SkQ73OFs4iD9u6vUhTZIgDHi56sh7X/QwQtIkWk rMOxOKBlpiDqZV0NW7XeVP5x/r6dgfbmi+0o35W5HIKE3poNVLrXnCBwlYIPC9Cz0y03 E+Xwb7gg97xd/NNxuAjtvubI5F+CC0o0UhvPulf5QXGhq7VqJ7J6UCzWPsFOxl5eyD8r HWLw== X-Gm-Message-State: AO0yUKVr1kfKHlMm/16UoobdzhgS6XBpbaxD22FfWQS7yNfbeHCmnaD4 YshGhgh9nf0HZ8zQK6FrH5zBxg== X-Google-Smtp-Source: AK7set8NC1hHuAr9DZDY1/qyIjOyi6D1y8hG1sM5srS04pt4cLnvMWBC1/yxzqGuooDq7+dOWU5i7w== X-Received: by 2002:ac2:5510:0:b0:4d5:a0d2:f542 with SMTP id j16-20020ac25510000000b004d5a0d2f542mr1366826lfk.18.1679436769199; Tue, 21 Mar 2023 15:12:49 -0700 (PDT) Received: from [192.168.1.101] (abym238.neoplus.adsl.tpnet.pl. [83.9.32.238]) by smtp.gmail.com with ESMTPSA id o15-20020a056512050f00b004e9c983a007sm1220344lfb.289.2023.03.21.15.12.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Mar 2023 15:12:48 -0700 (PDT) From: Konrad Dybcio Date: Tue, 21 Mar 2023 23:12:30 +0100 Subject: [PATCH 3/4] arm64: dts: qcom: sm8350-sagami: Hook up USB-C Display Port MIME-Version: 1.0 Message-Id: <20230321-topic-sagami_dp-v1-3-340c8bce4276@linaro.org> References: <20230321-topic-sagami_dp-v1-0-340c8bce4276@linaro.org> In-Reply-To: <20230321-topic-sagami_dp-v1-0-340c8bce4276@linaro.org> To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Bjorn Andersson , Andy Gross Cc: Marijn Suijten , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1679436764; l=2565; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=JKAzoWwTB0GRos4VagsWq8iTqG3cdlc3p5d9QT8cpTA=; b=KSPF1FGKDbORSghLobT6NXwThP7VyXehthaet7Wg7ls5lLx37QiSElsR+s4SIsYj4Um4ulj310fW +/tN1RoECe+OksWa7HgrcVsI/r4jgHp2d4KK1xuMwtlBgUhI9sFn X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Sagami devices feature Display Port on their USB-C port. Add the necessary nodes to support it. Signed-off-by: Konrad Dybcio --- .../boot/dts/qcom/sm8350-sony-xperia-sagami.dtsi | 72 ++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8350-sony-xperia-sagami.dtsi b/arch/arm64/boot/dts/qcom/sm8350-sony-xperia-sagami.dtsi index 21462b6de686..b2baa81baf5e 100644 --- a/arch/arm64/boot/dts/qcom/sm8350-sony-xperia-sagami.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350-sony-xperia-sagami.dtsi @@ -120,6 +120,23 @@ pmic_glink_dwc3_ss_in: endpoint { remote-endpoint = <&usb_1_dwc3_ss>; }; }; + + port@2 { + reg = <2>; + + #address-cells = <1>; + #size-cells = <0>; + + pmic_glink_dp_in: endpoint@0 { + reg = <0>; + remote-endpoint = <&mdss_dp_altmode>; + }; + + pmic_glink_sbu_mux_out: endpoint@1 { + reg = <1>; + remote-endpoint = <&sbu_mux_in>; + }; + }; }; }; }; @@ -140,6 +157,26 @@ ramoops@ffc00000 { }; }; + sbu-mux { + /* TODO: switch to a proper driver when one gets upstreamed */ + compatible = "onnn,nb7vpq904m-mux", "gpio-sbu-mux"; + + enable-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>; + select-gpios = <&tlmm 55 GPIO_ACTIVE_HIGH>; + svid = /bits/ 16 <0xff01>; + + mode-switch; + orientation-switch; + + pinctrl-0 = <&sbu_sw_oe &sbu_sw_sel>; + + port { + sbu_mux_in: endpoint { + remote-endpoint = <&pmic_glink_sbu_mux_out>; + }; + }; + }; + vph_pwr: vph-pwr-regulator { compatible = "regulator-fixed"; regulator-name = "vph_pwr"; @@ -595,6 +632,25 @@ &ipa { status = "okay"; }; +&mdss { + status = "okay"; +}; + +&mdss_dp { + data-lanes = <0 1 2 3>; + status = "okay"; + + ports { + port@1 { + reg = <1>; + + mdss_dp_altmode: endpoint { + remote-endpoint = <&pmic_glink_dp_in>; + }; + }; + }; +}; + &mpss { status = "okay"; firmware-name = "qcom/sm8350/Sony/sagami/modem.mbn"; @@ -916,6 +972,22 @@ ts_int_default: ts-int-default-state { input-enable; }; + sbu_sw_oe: sbu-sw-oe-state { + pins = "gpio54"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + output-low; + }; + + sbu_sw_sel: sbu-sw-sel-state { + pins = "gpio55"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + output-low; + }; + sdc2_card_det_active: sd-card-det-active-state { pins = "gpio92"; function = "gpio"; From patchwork Tue Mar 21 22:12:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13183366 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 BAB71C761AF for ; Tue, 21 Mar 2023 22:13:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229767AbjCUWNA (ORCPT ); Tue, 21 Mar 2023 18:13:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230021AbjCUWMx (ORCPT ); Tue, 21 Mar 2023 18:12:53 -0400 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 32C2757D21 for ; Tue, 21 Mar 2023 15:12:52 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id t11so21015014lfr.1 for ; Tue, 21 Mar 2023 15:12:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679436770; 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=13Zv1FUEwXx4yLngj7RFNjjKZHhiuq0qCRERwhQpaHM=; b=TVuYpJX2h2hgxrXCaQvHejEwvzDdasb9KPUcqB5a+pdXGkqtqaByqa3QRdPSRyYrC1 yvH/dpUOZk3mt0XFCIEicnwR9snV7o3ElME2ErKL93QqZmBywIfyZxeshol3k3RBVKBa ZWGXn3pmJm+5XGoKFvH/JnrHBIHKQoN4vaYYKGniIDJxq2okgkoxLH4uYicHOgx331mV SOmApg7Vymy+iR8Q4EKrvV0+FcCwzFTUEUPPVwWr5ioCNbZubO3ffdDqXpV2UkHKpOGR kiB+Nh8qD7r0NXNGoW5cxb2mvihMkXHDMMsUu7F9br4Tj6TjfwZ/ycBXuJ3SSfJeGqA4 qIuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679436770; 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=13Zv1FUEwXx4yLngj7RFNjjKZHhiuq0qCRERwhQpaHM=; b=o8jd8X1Dr4RBN6pQXpFesRfC9TX+ysCEZmOIe/PhF7A1AtNa6S1JkYCIpR36+7opNZ o311hz5xkOo8QICP8TGmUeOlgzwyN92SQbBJc3REfVzvhFfwczmbIxXTDiLkGTyr+u1C LxzbzL+EmhGq8lfbcD9e+c3m5bDm7yGjkxYpH21d/ejUFvasm1KvLUXD7CZu/CD3FNk4 2SELyHfIQyKjULyxhN8nPHJYlA+Ag7eLBUetA39kgABGPNhm7fQiebP55cKkMSrjqYNH 9errl8b3VFAf2yg59YsNC3ZhLkCcNRIyzbnfoc7SSHr1JXhw7HE6G2ng0BbKB6paXCPB b3wg== X-Gm-Message-State: AO0yUKVc+j01GELyy+Jh0BYh5+/taFXqGwBHSZhw2lOzLwwNNPc3VKzi IZB5vN4rN79ziqemelSZtZKVlw== X-Google-Smtp-Source: AK7set/HbvRs2o8GvFlrB1PxbxWzkQeDfHexsDnns6zywGT0jmSu8t9oRMx+73W4owCg686i1/pKJg== X-Received: by 2002:a05:6512:11e1:b0:4e9:6033:20d3 with SMTP id p1-20020a05651211e100b004e9603320d3mr1313142lfs.24.1679436770366; Tue, 21 Mar 2023 15:12:50 -0700 (PDT) Received: from [192.168.1.101] (abym238.neoplus.adsl.tpnet.pl. [83.9.32.238]) by smtp.gmail.com with ESMTPSA id o15-20020a056512050f00b004e9c983a007sm1220344lfb.289.2023.03.21.15.12.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Mar 2023 15:12:50 -0700 (PDT) From: Konrad Dybcio Date: Tue, 21 Mar 2023 23:12:31 +0100 Subject: [PATCH 4/4] arm64: dts: qcom: sm8350-nagara: Unify status property placement MIME-Version: 1.0 Message-Id: <20230321-topic-sagami_dp-v1-4-340c8bce4276@linaro.org> References: <20230321-topic-sagami_dp-v1-0-340c8bce4276@linaro.org> In-Reply-To: <20230321-topic-sagami_dp-v1-0-340c8bce4276@linaro.org> To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Bjorn Andersson , Andy Gross Cc: Marijn Suijten , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1679436764; l=3059; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=PVuMTdifNqJ5Z9yoopYhHdxk90HwveOlTjYOQjYaiCQ=; b=a/DZcv2drxELLeAnMNRTKju2/lidHG2b/fLv1uCpGms/QwtibA0s5OuDX897ZdRKlqSiUSqgwWF3 etA5Tt2uDugI33oTmOXhkdCWx2vAtUeB8BBlDdvG6ULSUfDSBXxH X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org As we're heading towards getting the status property last everywhere, take care of it for SM8350 SONY Sagami. Signed-off-by: Konrad Dybcio Reviewed-by: Neil Armstrong --- .../boot/dts/qcom/sm8350-sony-xperia-sagami.dtsi | 30 ++++++++++------------ 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8350-sony-xperia-sagami.dtsi b/arch/arm64/boot/dts/qcom/sm8350-sony-xperia-sagami.dtsi index b2baa81baf5e..95b1ba4ce470 100644 --- a/arch/arm64/boot/dts/qcom/sm8350-sony-xperia-sagami.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350-sony-xperia-sagami.dtsi @@ -189,8 +189,8 @@ vph_pwr: vph-pwr-regulator { }; &adsp { - status = "okay"; firmware-name = "qcom/sm8350/Sony/sagami/adsp.mbn"; + status = "okay"; }; &apps_rsc { @@ -542,27 +542,27 @@ pmr735a_l7: ldo7 { }; &cdsp { - status = "okay"; firmware-name = "qcom/sm8350/Sony/sagami/cdsp.mbn"; + status = "okay"; }; &i2c1 { - status = "okay"; clock-frequency = <1000000>; + status = "okay"; /* Some subset of SONY IMX663 camera sensor @ 38 */ }; &i2c4 { - status = "okay"; clock-frequency = <400000>; + status = "okay"; /* Samsung Touchscreen (needs I2C GPI DMA) @ 48 */ }; &i2c11 { - status = "okay"; clock-frequency = <1000000>; + status = "okay"; cs35l41_l: speaker-amp@40 { compatible = "cirrus,cs35l41"; @@ -596,31 +596,31 @@ cs35l41_r: speaker-amp@41 { }; &i2c12 { - status = "okay"; /* Clock frequency was not specified downstream, let's park it to 100 KHz */ clock-frequency = <100000>; + status = "okay"; /* AMS TCS3490 RGB+IR color sensor @ 72 */ }; &i2c13 { - status = "okay"; /* Clock frequency was not specified downstream, let's park it to 100 KHz */ clock-frequency = <100000>; + status = "okay"; /* Qualcomm PM8008i/PM8008j (?) @ 8, 9, c, d */ }; &i2c15 { - status = "okay"; clock-frequency = <400000>; + status = "okay"; /* NXP SN1X0 NFC @ 28 */ }; &i2c17 { - status = "okay"; clock-frequency = <1000000>; + status = "okay"; /* Cirrus Logic CS40L25A boosted haptics driver @ 40 */ }; @@ -652,8 +652,8 @@ mdss_dp_altmode: endpoint { }; &mpss { - status = "okay"; firmware-name = "qcom/sm8350/Sony/sagami/modem.mbn"; + status = "okay"; }; &pm8350_gpios { @@ -719,8 +719,8 @@ &pon_pwrkey { }; &pon_resin { - status = "okay"; linux,code = ; + status = "okay"; }; &qupv3_id_0 { @@ -748,8 +748,8 @@ &sdhc_2 { }; &slpi { - status = "okay"; firmware-name = "qcom/sm8350/Sony/sagami/slpi.mbn"; + status = "okay"; }; &spi14 { @@ -1038,16 +1038,14 @@ usb_1_dwc3_ss: endpoint { }; &usb_1_hsphy { - status = "okay"; - vdda-pll-supply = <&pm8350_l5>; vdda18-supply = <&pm8350c_l1>; vdda33-supply = <&pm8350_l2>; + status = "okay"; }; &usb_1_qmpphy { - status = "okay"; - vdda-phy-supply = <&pm8350_l6>; vdda-pll-supply = <&pm8350_l1>; + status = "okay"; };