From patchwork Thu Dec 29 10:32:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13083413 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 67CA5C3DA7D for ; Thu, 29 Dec 2022 10:32:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232967AbiL2KcT (ORCPT ); Thu, 29 Dec 2022 05:32:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232749AbiL2KcS (ORCPT ); Thu, 29 Dec 2022 05:32:18 -0500 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A43AF95A3 for ; Thu, 29 Dec 2022 02:32:17 -0800 (PST) Received: by mail-lf1-x12e.google.com with SMTP id 1so26965422lfz.4 for ; Thu, 29 Dec 2022 02:32:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=qjoW8U49t0MENbj+T08nhJ9chgSRAiBnlKUnJphbMdo=; b=Szgo241JMMmrAzd+ZeXQ3nqtyB/LkaZdbVAVyNiKThaG4REZRdvFcrotRSVRAltFvY O/CTiJznC6GaWA30ykgrD+xWB8/h4K5Cvbvbfhwor7292buyK9rKvzIjkOTuJ947hLch oEDbIGyGKbdHRLSfN4yHmfCmBuPSFXOiXm0fBL+WqNQLeGPtcxU4an8jIR4Afsc3fghZ VPFQ2w81zQiiPxBnQdY70dqKxhiVnK+j9FdVon+pJ3kXouifkwQdPC6f8TXKuljfDCEn naiJgueBA17GkPGkm9QMGe/1Aszkf3ou7SLnNrY9u2A+WTmuF3rZK4Dp2whn9XDvvkSK WMRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qjoW8U49t0MENbj+T08nhJ9chgSRAiBnlKUnJphbMdo=; b=HN1qOwMMOls23uG/rLRzzi96xAA34TJP5rMBULDYrJtKF7mInUNj2iJGTyhnSccQc9 lj+w47WinJ9LvGwqz1ZCCyC/J/0wRbvBBabf0O0I/iMOLr7OejgEmAJLLqjDH3iREmtw NH1M34zvl3BGod2Jpw9cXS8MRcYi5AeE+OvzINCmYugMgkeHfi+zp2HXlHk2YvO5PNFr NbqejcuFTiFnSc2vEAqXWGbXG65dYGPHgmxO8iSi5VGihBjCOMiGBistHB5NB+wpiEOJ xUnzlQVLfZtdxQDO3xfGnfMb1hjHZlemIJFEEKmKEbVzqPSvoOPsj/7Vw3DiiHlOw/AU bhVg== X-Gm-Message-State: AFqh2kpfx/fza+0X0RRDhs0gzKBqScZSxr8wk6+KnOq9p9EnXjVxwpyT ch8o5eS9zXy55mqmit5gO/R9ikirBUKrfDuc X-Google-Smtp-Source: AMrXdXsBeG33ksyx7B4mMZnu32t/Tctr7VcZlHsIPF/KpdmaLijkyawcxzzmYxi1T2mqhDhOR3MfDA== X-Received: by 2002:a05:6512:3d9e:b0:4b5:5efe:966e with SMTP id k30-20020a0565123d9e00b004b55efe966emr10416789lfv.15.1672309935791; Thu, 29 Dec 2022 02:32:15 -0800 (PST) Received: from localhost.localdomain (abyl184.neoplus.adsl.tpnet.pl. [83.9.31.184]) by smtp.gmail.com with ESMTPSA id m1-20020a056512114100b004a478c2f4desm2993526lfg.163.2022.12.29.02.32.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Dec 2022 02:32:15 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: marijn.suijten@somainline.org, Vinod Koul , Konrad Dybcio , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/7] arm64: dts: qcom: sm8450: add spmi node Date: Thu, 29 Dec 2022 11:32:06 +0100 Message-Id: <20221229103212.984324-1-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Vinod Koul Add the spmi bus as found in the SM8450 SoC Signed-off-by: Vinod Koul Reviewed-by: Konrad Dybcio [Konrad: 0x0 -> 0, move #cells down, make reg-names a vertical list] Signed-off-by: Konrad Dybcio --- v1 -> v2: No changes arch/arm64/boot/dts/qcom/sm8450.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi index 570475040d95..b9b59c5223eb 100644 --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi @@ -2715,6 +2715,28 @@ aoss_qmp: power-controller@c300000 { #clock-cells = <0>; }; + spmi_bus: spmi@c42d000 { + compatible = "qcom,spmi-pmic-arb"; + reg = <0 0x0c400000 0 0x00003000>, + <0 0x0c500000 0 0x00400000>, + <0 0x0c440000 0 0x00080000>, + <0 0x0c4c0000 0 0x00010000>, + <0 0x0c42d000 0 0x00010000>; + reg-names = "core", + "chnls", + "obsrvr", + "intr", + "cnfg"; + interrupt-names = "periph_irq"; + interrupts-extended = <&pdc 1 IRQ_TYPE_LEVEL_HIGH>; + qcom,ee = <0>; + qcom,channel = <0>; + interrupt-controller; + #interrupt-cells = <4>; + #address-cells = <2>; + #size-cells = <0>; + }; + ipcc: mailbox@ed18000 { compatible = "qcom,sm8450-ipcc", "qcom,ipcc"; reg = <0 0x0ed18000 0 0x1000>; From patchwork Thu Dec 29 10:32:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13083414 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 19DD2C4332F for ; Thu, 29 Dec 2022 10:32:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233045AbiL2KcV (ORCPT ); Thu, 29 Dec 2022 05:32:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229669AbiL2KcU (ORCPT ); Thu, 29 Dec 2022 05:32:20 -0500 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 6CF12764E for ; Thu, 29 Dec 2022 02:32:19 -0800 (PST) Received: by mail-lf1-x131.google.com with SMTP id g13so26958297lfv.7 for ; Thu, 29 Dec 2022 02:32:19 -0800 (PST) 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:subject:date :message-id:reply-to; bh=v/QfAo8E7L28subqXqlEzDaHoTOHQ8vrUh6riymjZqc=; b=qPP2N2TZvF9wIBDjKBV0Zb+B55qDdY+2GeNjI+B1VZrpmmyZ4i/uV8PbqdJxBFd8cF zldx3FETS7ooZDgSvVn95Rx+Qkv4AW7uiyF7GoRGtl4OSrewfZyQAXCc2xYgBmP6AhsU LFiDf23CvnTP6IBX6hODW27jlexaEoRynawNUfidtDTa5D7xz5600iB6HxBOLNenNNRT 9QvNyVEjkfPTsGg/epunlnExV/GSoMOumoN/07VA9Fi4k0TOAYyehi12e0BEqG4rH3nd NxV/DGDy2cK0uPEFEOVAWNs1cTtr7zcD2WVHOgKo7u748By8RJ7XmxYVq18xOcdJIyLO e9Cw== 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 :subject:date:message-id:reply-to; bh=v/QfAo8E7L28subqXqlEzDaHoTOHQ8vrUh6riymjZqc=; b=jbN+fA+ji1mCL2XLldfOgkAi3DIeC5S46hJtsxghVOSfD2h2eRyLwX+bate1sv9IxE X4qF9sThRDg+zRZrG6DxhMIyQV5kUXmSwvUXbqF4SLURNOPIZQo8oFEA80nYG7TNxIh2 xh5B5puspuJn87yEFWnrzWvbVFhM1fg9Vx8TChIKTQQRm+sOW+LioXfuTI9dAAk9NrpI tAlxtzz7oaKpLXZj75Y/GdTa03cbpQNfRgebtIE0OdXGPmiuPZLFuAPBimETnPT3oqsu BQKwuzMBU5rFCooLjsaylBxlIq9Xpum2FnujNqbJicvpGsNaOcWJKufcb1S12wGt2GvX 9fCw== X-Gm-Message-State: AFqh2koCOkO1zYH9V22wNYdlBTgfcfxaErmWMzSyerwDGlogWBM3Zs6n Ws0lhB59A8A/BFZqY1dZZy1umQAz7eZt3Gqi X-Google-Smtp-Source: AMrXdXss2v+IEBmgJFFRNEN66Wxr2S/gJ2lFz7Kz8D0BSOsxBhQIDYLZ51cKA5ZOHS1lKstuWMitlQ== X-Received: by 2002:a05:6512:c24:b0:4b5:964d:499b with SMTP id z36-20020a0565120c2400b004b5964d499bmr9299298lfu.34.1672309937580; Thu, 29 Dec 2022 02:32:17 -0800 (PST) Received: from localhost.localdomain (abyl184.neoplus.adsl.tpnet.pl. [83.9.31.184]) by smtp.gmail.com with ESMTPSA id m1-20020a056512114100b004a478c2f4desm2993526lfg.163.2022.12.29.02.32.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Dec 2022 02:32:17 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: marijn.suijten@somainline.org, Vinod Koul , Konrad Dybcio , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/7] arm64: dts: qcom: sm8450-nagara: Include PMIC DTSIs Date: Thu, 29 Dec 2022 11:32:07 +0100 Message-Id: <20221229103212.984324-2-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221229103212.984324-1-konrad.dybcio@linaro.org> References: <20221229103212.984324-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Now that SPMI is finally in place, include the DTSIs of PMICs present on Nagara. Signed-off-by: Konrad Dybcio Reviewed-by: Vinod Koul --- v1 -> v2: No changes arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara.dtsi b/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara.dtsi index 45ee922de4e8..e29fb7adc780 100644 --- a/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara.dtsi @@ -5,6 +5,12 @@ #include #include "sm8450.dtsi" +#include "pm8350.dtsi" +#include "pm8350b.dtsi" +#include "pm8350c.dtsi" +#include "pm8450.dtsi" +#include "pmk8350.dtsi" +#include "pmr735a.dtsi" /delete-node/ &adsp_mem; /delete-node/ &rmtfs_mem; From patchwork Thu Dec 29 10:32:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13083415 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 C816FC3DA7D for ; Thu, 29 Dec 2022 10:32:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233150AbiL2KcY (ORCPT ); Thu, 29 Dec 2022 05:32:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233067AbiL2KcW (ORCPT ); Thu, 29 Dec 2022 05:32:22 -0500 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8BFAB85D for ; Thu, 29 Dec 2022 02:32:20 -0800 (PST) Received: by mail-lf1-x130.google.com with SMTP id bq39so19180670lfb.0 for ; Thu, 29 Dec 2022 02:32:20 -0800 (PST) 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:subject:date :message-id:reply-to; bh=pIHLGg2xFvRaIIRDrENEcScT78jL8etGRuVIB/vkvhQ=; b=V1/oX4zaRlj7HBFDxkLNtTX8zWbk5wm3CEkbkfIUDm+KiIhvZSWCbzMnDrwmpCQQ17 5czt8e3ez+/uiqiiLbabYmI34ugB2GSmG0yAlZc0rtUYlKAnmndMl8TO3t8CSmw2jUfp 0X9nMBeZr1BMS14w0P90u9vBimRY/paVV0FBigy4cnkYj2Xi0J1wlPuJWqoIlXZFTnhH 7+Q1wP6WvikVO8reBQu/wUGkvaFlq630vdl6eKjQfZlElGVQMM6ORFOcaUw/qmkFQkTW 7T7b0b9gWQomQF03Lrg/B3SU6NeKxHHrJWs9iml+MJfjKrJVThNUKKuAqf/J2SpqjoCb 8uRA== 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 :subject:date:message-id:reply-to; bh=pIHLGg2xFvRaIIRDrENEcScT78jL8etGRuVIB/vkvhQ=; b=P7PUgQiXoe0snPXT6t3Cn6gZew05Afe3PjgQT66UTT/biIDpnxeRZa39DVWupRglhg ou4SmwsjKkSE+9wvFr+bIrQtKI68ty5YwOW+MXMRbLxJTAvAmpvflHcosk0riPgFMjGt X8pBESsYLrbF6v4hYCQNq71RjFjm/sVKzVGX+w8lM1X1Zp39pipB3Wc8SWF5HbD3yPKR jL826hq2vRGSJWfPmD3EZ2uP1IM+IFs4F2N5O5VmJBppyTAPwpPDN63ZVy4URJV/PxEW LtW9nbVU8aMR37THZCAO+Kkf4ab6Dz+2FihUiNlGVs53qpSbMGAILGLr4fpxZ9SnhdXH azgQ== X-Gm-Message-State: AFqh2kqMRaMBf+6sSH59/u3ImUSyGrJ/6S2lTTl5FqBAzE1Bd1rex8fm 1w07pWTzQr4IN4EHm57o8Kvf21EyB752G++j X-Google-Smtp-Source: AMrXdXttHeHRrSKBoaS2EjIRxwtXauHV+MDc7bxFUyp4cDIHI9pVLxbmhhZ08L554AEpHEtT+d+Vdw== X-Received: by 2002:ac2:51b6:0:b0:4b6:ed8b:4f16 with SMTP id f22-20020ac251b6000000b004b6ed8b4f16mr7414470lfk.52.1672309938958; Thu, 29 Dec 2022 02:32:18 -0800 (PST) Received: from localhost.localdomain (abyl184.neoplus.adsl.tpnet.pl. [83.9.31.184]) by smtp.gmail.com with ESMTPSA id m1-20020a056512114100b004a478c2f4desm2993526lfg.163.2022.12.29.02.32.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Dec 2022 02:32:18 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: marijn.suijten@somainline.org, Vinod Koul , Konrad Dybcio , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/7] arm64: dts: qcom: sm8450-nagara: Add GPIO line names for PMIC GPIOs Date: Thu, 29 Dec 2022 11:32:08 +0100 Message-Id: <20221229103212.984324-3-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221229103212.984324-1-konrad.dybcio@linaro.org> References: <20221229103212.984324-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Sony ever so graciously provides GPIO line names in their downstream kernel (though sometimes they are not 100% accurate and you can judge that by simply looking at them and with what drivers they are used). Add these to the PDX223&224 DTSIs to better document the hardware. Diff between 223 and 224: pm8350b < "CAM_PWR_LD_EN", > "NC", pm8350c < "RGBC_IR_PWR_EN", > "NC", Which is due to different camera power wiring on 223 and lack of a ToF sensor on 224. Signed-off-by: Konrad Dybcio --- v1 -> v2: No changes .../qcom/sm8450-sony-xperia-nagara-pdx223.dts | 23 ++++++++++++++++ .../qcom/sm8450-sony-xperia-nagara-pdx224.dts | 23 ++++++++++++++++ .../dts/qcom/sm8450-sony-xperia-nagara.dtsi | 27 +++++++++++++++++++ 3 files changed, 73 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara-pdx223.dts b/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara-pdx223.dts index b83500316a81..561cd4f09ab7 100644 --- a/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara-pdx223.dts +++ b/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara-pdx223.dts @@ -13,6 +13,29 @@ / { compatible = "sony,pdx223", "qcom,sm8450"; }; +&pm8350b_gpios { + gpio-line-names = "CAM_PWR_A_CS", /* GPIO_1 */ + "NC", + "NC", + "NC", + "SNAPSHOT_N", + "CAM_PWR_LD_EN", + "NC", + "FOCUS_N"; +}; + +&pm8350c_gpios { + gpio-line-names = "FL_STROBE_TRIG_WIDE", /* GPIO_1 */ + "FL_STROBE_TRIG_TELE", + "WLC_ID", + "WLC_TXPWR_EN", + "NC", + "RGBC_IR_PWR_EN", + "NC", + "NC", + "WIDEC_PWR_EN"; +}; + &tlmm { gpio-line-names = "NC", /* GPIO_0 */ "NC", diff --git a/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara-pdx224.dts b/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara-pdx224.dts index 13c2fc4bccfc..fc9d74d0f227 100644 --- a/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara-pdx224.dts +++ b/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara-pdx224.dts @@ -20,6 +20,29 @@ imx563_vdig_vreg: imx563-vdig-regulator { }; }; +&pm8350b_gpios { + gpio-line-names = "CAM_PWR_A_CS", /* GPIO_1 */ + "NC", + "NC", + "NC", + "SNAPSHOT_N", + "NC", + "NC", + "FOCUS_N"; +}; + +&pm8350c_gpios { + gpio-line-names = "FL_STROBE_TRIG_WIDE", /* GPIO_1 */ + "FL_STROBE_TRIG_TELE", + "WLC_ID", + "WLC_TXPWR_EN", + "NC", + "NC", /* RGBCIR uses a PMIC vreg, so it's most likely NC. */ + "NC", + "NC", + "WIDEC_PWR_EN"; +}; + &tlmm { gpio-line-names = "TELE_SPI_MISO", /* GPIO_0 */ "TELE_SPI_MOSI", /* SONY says NC, but it only makes sense this way.. */ diff --git a/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara.dtsi b/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara.dtsi index e29fb7adc780..8e128efcb128 100644 --- a/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara.dtsi @@ -551,6 +551,33 @@ &pcie0_phy { status = "okay"; }; +&pm8350_gpios { + gpio-line-names = "ASSIGN1_THERM", /* GPIO_1 */ + "LCD_ID", + "SDR_MMW_THERM", + "RF_ID", + "NC", + "VOL_DOWN_N", + "NC", + "NC", + "NC", + "PM8350_OPTION"; /* GPIO_10 */ +}; + +&pm8450_gpios { + gpio-line-names = "FP_LDO_EN", /* GPIO_1 */ + "", + "", + ""; +}; + +&pmk8350_gpios { + gpio-line-names = "NC", /* GPIO_1 */ + "NC", + "DISP_THERM", + "PMK8350_OPTION"; +}; + &remoteproc_adsp { firmware-name = "qcom/sm8350/Sony/nagara/adsp.mbn"; status = "okay"; From patchwork Thu Dec 29 10:32:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13083416 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 BD9D3C3DA7D for ; Thu, 29 Dec 2022 10:33:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233401AbiL2Kcq (ORCPT ); Thu, 29 Dec 2022 05:32:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233111AbiL2KcX (ORCPT ); Thu, 29 Dec 2022 05:32:23 -0500 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 374A3764E for ; Thu, 29 Dec 2022 02:32:22 -0800 (PST) Received: by mail-lf1-x132.google.com with SMTP id p36so26944436lfa.12 for ; Thu, 29 Dec 2022 02:32:22 -0800 (PST) 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:subject:date :message-id:reply-to; bh=VHanGwSynG3aJ8MgOjQFcgeBuUBWc0OK0AqB0H99D9A=; b=a4XC2KdC6rbpuiEOnN+0RJCv+E9FxYdvUUialvoSNzL8JrAGBDd4ACwvu8BHudLBSQ GFKX3NyYL+BERBoOqv3ui4G3q85Z7Mcdvoj54HRgg6X7OUXLiXRV2q7+8zC34cidQoXj RQD2N7lXX8hJ5z9ybrQgSPvkhNJtq++4l8ia+uxTsFy/DEac/MG1pJIKrPUocEfO4h5f QmNLeVDynGSxkeAUMJ2jT00iYEJo/gfrI8hhJT3kLAdmiENN7hoLZ5MA9nn/LcLIMS0e f0W9sVFLsC42f4/KPlx0fp8kOWwCKTecVytKHqDewAqj4wXmESleiggT9BXFm8zbnTzm xRuQ== 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 :subject:date:message-id:reply-to; bh=VHanGwSynG3aJ8MgOjQFcgeBuUBWc0OK0AqB0H99D9A=; b=oSB7GtGRJ7ldDCjrNIFZDc59iscfHDMjaxIvCXSLmnJNpIcAGQ9Dgg/thjPKtSlQUA Qf3HX848fnZYYZVfnBdf2QqHWVOt9gjylgQ9oILtHNW2O1p7CKWtNYG56inTfcKvB0MZ V/wCRIZxXwpvfTfmn1bFGTBfG+o4cKRmHd50MYYdnd5vfsUcbsHDq3ULzKPqLLnyaY01 apPZ/m9JEn+z6L8g8iz8w4PvMs/2alRpxLZwyuoEVbS1ZJFrCbIiXom18TTuegngBsj4 j7lNTFq0AZUfHWaBZGD24W4x0Tk+zBwJWk5e624yVHnQvvjE89TYpLYyNa1eikE9wjyK ODxQ== X-Gm-Message-State: AFqh2kqAtBfXmvWq64jYfteUkcyZjBBfA4c1efjdqDBfAXd+cjT4BTjh 0YAscFG3/cIchThucAZJWBuUL1Snr5VwJAs9 X-Google-Smtp-Source: AMrXdXtVXdRTpK+WQir2fyof5eRgo02ErS5v+LPeOfFaEcuNT+U/2NI5en98FaoeZ6nOI3Rt8FWxhQ== X-Received: by 2002:a05:6512:398c:b0:4b5:7a91:70f5 with SMTP id j12-20020a056512398c00b004b57a9170f5mr9076858lfu.63.1672309940348; Thu, 29 Dec 2022 02:32:20 -0800 (PST) Received: from localhost.localdomain (abyl184.neoplus.adsl.tpnet.pl. [83.9.31.184]) by smtp.gmail.com with ESMTPSA id m1-20020a056512114100b004a478c2f4desm2993526lfg.163.2022.12.29.02.32.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Dec 2022 02:32:20 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: marijn.suijten@somainline.org, Vinod Koul , Konrad Dybcio , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 4/7] arm64: dts: qcom: sm8450-nagara: Add GPIO keys Date: Thu, 29 Dec 2022 11:32:09 +0100 Message-Id: <20221229103212.984324-4-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221229103212.984324-1-konrad.dybcio@linaro.org> References: <20221229103212.984324-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org With PMIC GPIOs now available, set up required pin settings and add gpio-keys. Signed-off-by: Konrad Dybcio --- v1 -> v2: - gpio-key,wakeup -> wakeup-source .../dts/qcom/sm8450-sony-xperia-nagara.dtsi | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara.dtsi b/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara.dtsi index 8e128efcb128..0e139921b3e3 100644 --- a/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara.dtsi @@ -27,6 +27,41 @@ chosen { stdout-path = "serial0:115200n8"; }; + gpio-keys { + compatible = "gpio-keys"; + label = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&focus_n &snapshot_n &vol_down_n>; + + key-camera-focus { + label = "Camera Focus"; + linux,code = ; + gpios = <&pm8350b_gpios 8 GPIO_ACTIVE_LOW>; + debounce-interval = <15>; + linux,can-disable; + wakeup-source; + }; + + key-camera-snapshot { + label = "Camera Snapshot"; + linux,code = ; + gpios = <&pm8350b_gpios 5 GPIO_ACTIVE_LOW>; + debounce-interval = <15>; + linux,can-disable; + wakeup-source; + }; + + key-volume-down { + label = "Volume Down"; + linux,code = ; + gpios = <&pm8350_gpios 6 GPIO_ACTIVE_LOW>; + debounce-interval = <15>; + linux,can-disable; + wakeup-source; + }; + }; + reserved-memory { adsp_mem: memory@85700000 { reg = <0x0 0x85700000 0x0 0x2800000>; @@ -562,6 +597,32 @@ &pm8350_gpios { "NC", "NC", "PM8350_OPTION"; /* GPIO_10 */ + + vol_down_n: vol-down-n-state { + pins = "gpio6"; + function = "normal"; + power-source = <1>; + bias-pull-up; + input-enable; + }; +}; + +&pm8350b_gpios { + snapshot_n: snapshot-n-state { + pins = "gpio5"; + function = "normal"; + power-source = <0>; + bias-pull-up; + input-enable; + }; + + focus_n: focus-n-state { + pins = "gpio8"; + function = "normal"; + power-source = <0>; + bias-pull-up; + input-enable; + }; }; &pm8450_gpios { From patchwork Thu Dec 29 10:32:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13083418 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 DD07AC3DA79 for ; Thu, 29 Dec 2022 10:33:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233090AbiL2Kcr (ORCPT ); Thu, 29 Dec 2022 05:32:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233151AbiL2KcY (ORCPT ); Thu, 29 Dec 2022 05:32:24 -0500 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 AE136BF73 for ; Thu, 29 Dec 2022 02:32:23 -0800 (PST) Received: by mail-lf1-x12f.google.com with SMTP id cf42so26987842lfb.1 for ; Thu, 29 Dec 2022 02:32:23 -0800 (PST) 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:subject:date :message-id:reply-to; bh=qV1Dgv8O2EwayZTmXz48p2pGYrprzLa0BjSyB9KzJxM=; b=U8Gj7HaYspeN7GJvJ/rH1zkQtc+Q7dh1GWoieX1qHc3hXtgEGid9/a5nGmEleEwbZe o3/Za6L1CweNWY/FQ6Xzq4VRJAOsHQz40qYZKg2nCXo9gHfke0RfkHXao8bGMYfFXqNh w4CXUJWLw/iJ2SEYSyY/oVL0REmSOzvM6iveP0G7vbfWk6BQfZGUyFUv4mJ35YrzIhSy Gt5Q4qz3ZAfVedea/IU0PlO7SsX8tQWSi2NeAVt3xL2lzPjGkMaRlWOPiBY/W7RatjyK ZPfSczNElk76C0yPkVPcEVY+nO4E6WHmuqAkuc6HbeOx6FJHRlI9GbxB5+y22DmUku1B gwQw== 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 :subject:date:message-id:reply-to; bh=qV1Dgv8O2EwayZTmXz48p2pGYrprzLa0BjSyB9KzJxM=; b=tSR2nkClh4bPBFscsG4fvejmPLYbM3baanEhi/T6S1dX1rAA8xXfFYyY2D1L4YZdpc +padxENBbzt3W8nMW86/cuWmpEGujY/aCLW6+NffZZ7RFFzqBjqzM8/9/HDjjI5SfnoY 275nc5uIXjsTQKXHuKm0IPmj6EQsd5IM4PSNwKFjNUweeGh5eU0ie3dMcFV+SDvJkk0s GyVhhtQusQ57lHvPo5l7y+QDiTT6fnnp5b5QRf5ZxuPa4FnR5wfKeGQBJQe55enNT+Qg 4UuCfhp5M0FZLUs+ynXy4AFNUBVw+AuABZLP3bxqygJ5JqOXjkWLUfoTikBH1x7abb9p lcfQ== X-Gm-Message-State: AFqh2krxbNLDDgbqBzn5xBag4/EUjqmULd3WH3C41OU8ZbYaRZor70/B 0FL0ksUE9ARoZavx0esOs5z8WOGtgWqqDuNs X-Google-Smtp-Source: AMrXdXsHLQYunNRIkzr/Gag3QcH+OooPrJ0zdEyYl/GoQgHzZtORusUc3lgCe+T3ybnhgBQcCajVsA== X-Received: by 2002:a05:6512:2591:b0:4b5:7dd6:4df0 with SMTP id bf17-20020a056512259100b004b57dd64df0mr7992771lfb.32.1672309941792; Thu, 29 Dec 2022 02:32:21 -0800 (PST) Received: from localhost.localdomain (abyl184.neoplus.adsl.tpnet.pl. [83.9.31.184]) by smtp.gmail.com with ESMTPSA id m1-20020a056512114100b004a478c2f4desm2993526lfg.163.2022.12.29.02.32.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Dec 2022 02:32:21 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: marijn.suijten@somainline.org, Vinod Koul , Konrad Dybcio , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 5/7] arm64: dts: qcom: sm8450-nagara: Set up camera regulators Date: Thu, 29 Dec 2022 11:32:10 +0100 Message-Id: <20221229103212.984324-5-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221229103212.984324-1-konrad.dybcio@linaro.org> References: <20221229103212.984324-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Set up gpio-controlled fixed regulators for camera on PDX223 and fix up the existing ones in common and PDX224 trees. Signed-off-by: Konrad Dybcio --- v1 -> v2: No changes .../qcom/sm8450-sony-xperia-nagara-pdx223.dts | 38 +++++++++++++++++++ .../qcom/sm8450-sony-xperia-nagara-pdx224.dts | 15 +++++++- .../dts/qcom/sm8450-sony-xperia-nagara.dtsi | 16 +++++++- 3 files changed, 65 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara-pdx223.dts b/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara-pdx223.dts index 561cd4f09ab7..daf2f91f356e 100644 --- a/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara-pdx223.dts +++ b/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara-pdx223.dts @@ -11,6 +11,26 @@ / { model = "Sony Xperia 1 IV"; compatible = "sony,pdx223", "qcom,sm8450"; + + imx316_lvdd_regulator: imx316-lvdd-regulator { + compatible = "regulator-fixed"; + regulator-name = "imx316_lvdd_regulator"; + gpio = <&pm8350b_gpios 6 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-names = "default"; + pinctrl-0 = <&cam_pwr_ld_en>; + }; + + tcs3490_vdd_regulator: rgbcir-vdd-regulator { + compatible = "regulator-fixed"; + regulator-name = "tcs3490_vdd_regulator"; + gpio = <&pm8350c_gpios 6 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-names = "default"; + pinctrl-0 = <&rgbc_ir_pwr_en>; + }; }; &pm8350b_gpios { @@ -22,6 +42,15 @@ &pm8350b_gpios { "CAM_PWR_LD_EN", "NC", "FOCUS_N"; + + cam_pwr_ld_en: cam-pwr-ld-en-state { + pins = "gpio6"; + function = "normal"; + qcom,drive-strength = ; + power-source = <0>; + drive-push-pull; + output-low; + }; }; &pm8350c_gpios { @@ -34,6 +63,15 @@ &pm8350c_gpios { "NC", "NC", "WIDEC_PWR_EN"; + + rgbc_ir_pwr_en: rgbc-ir-pwr-en-state { + pins = "gpio6"; + function = "normal"; + qcom,drive-strength = ; + power-source = <1>; + drive-push-pull; + output-low; + }; }; &tlmm { diff --git a/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara-pdx224.dts b/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara-pdx224.dts index fc9d74d0f227..dc4de2d3fe48 100644 --- a/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara-pdx224.dts +++ b/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara-pdx224.dts @@ -12,11 +12,14 @@ / { model = "Sony Xperia 5 IV"; compatible = "sony,pdx224", "qcom,sm8450"; - imx563_vdig_vreg: imx563-vdig-regulator { + imx563_vdig_regulator: imx563-vdig-regulator { compatible = "regulator-fixed"; - regulator-name = "imx563_vdig_vreg"; + regulator-name = "imx563_vdig_regulator"; gpio = <&tlmm 22 GPIO_ACTIVE_HIGH>; enable-active-high; + + pinctrl-names = "default"; + pinctrl-0 = <&uwidec_pwr_en>; }; }; @@ -254,4 +257,12 @@ &tlmm { "APPS_I2C_0_SCL", "CCI_I2C3_SDA", "CCI_I2C3_SCL"; + + uwidec_pwr_en: uwidec-pwr-en-state { + pins = "gpio22"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + output-low; + }; }; diff --git a/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara.dtsi b/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara.dtsi index 0e139921b3e3..a8c4df2696e3 100644 --- a/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara.dtsi @@ -3,6 +3,7 @@ * Copyright (c) 2022, Konrad Dybcio */ +#include #include #include "sm8450.dtsi" #include "pm8350.dtsi" @@ -93,11 +94,14 @@ ramoops@ffc00000 { }; /* Sadly, the voltages for these GPIO regulators are unknown. */ - imx650_vana_vreg: imx650-vana-regulator { + imx650_vana_regulator: imx650-vana-regulator { compatible = "regulator-fixed"; - regulator-name = "imx650_vana_vreg"; + regulator-name = "imx650_vana_regulator"; gpio = <&tlmm 23 GPIO_ACTIVE_HIGH>; enable-active-high; + + pinctrl-names = "default"; + pinctrl-0 = <&telec_pwr_en>; }; vph_pwr: vph-pwr-regulator { @@ -703,6 +707,14 @@ ts_int_default: ts-int-default-state { input-enable; }; + telec_pwr_en: telec-pwr-en-state { + pins = "gpio23"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + output-low; + }; + sdc2_card_det_n: sd-card-det-n-state { pins = "gpio92"; function = "gpio"; From patchwork Thu Dec 29 10:32:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13083419 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 5FE2CC54EBC for ; Thu, 29 Dec 2022 10:33:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233111AbiL2Kct (ORCPT ); Thu, 29 Dec 2022 05:32:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230078AbiL2Kc0 (ORCPT ); Thu, 29 Dec 2022 05:32:26 -0500 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22741DFFB for ; Thu, 29 Dec 2022 02:32:25 -0800 (PST) Received: by mail-lf1-x132.google.com with SMTP id b3so26988121lfv.2 for ; Thu, 29 Dec 2022 02:32:25 -0800 (PST) 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:subject:date :message-id:reply-to; bh=P64bH1r0zNwiitNkk4H3h/0XLvclxgYzoaTyBhCDdBs=; b=oVxImu1p5cCn8n67Jxnxd8FIOI1o69vuFEkM8eNH5mvOwlUb1dRa0YuIjnV0Y/ogSM vACfE9QkXjGU8lYHjofsgW22rlPZlRHP+kiaEbSV3LOO8sfdciCB82WqJAbEi+zRplFN u+l8MZCv+srmWfECRjIdON1L4x2uMohXw6pwqt43trhNkFNnNPNX9u5GEYoLWBa/BVIx NcSv5XJxlRjCyZmHdEPbjH6Z74OJgovmXs6AMO2Pu4hnuvdBGtIHgYrdu7ARo+7pC011 epyG8UX4KYCSTFCPwzCi0TwEreJEkttJ1SClgXShSs3DS8EKBgIeCWOmrYolOqumMhFI P4sQ== 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 :subject:date:message-id:reply-to; bh=P64bH1r0zNwiitNkk4H3h/0XLvclxgYzoaTyBhCDdBs=; b=E19t9Emnb4I7sZPGtadGKV7cY4cYkyPNy/5hZchjIOZF/+CTQuo4UeewZn/VwtOHux L8mVbNV5EUwAK0O7jUuJcANjYVMdnuWhEYkvIRYFh85k6mo4XlrTbWkvMqYEZLgA0oJS 1JBiMUV7tFCTX6sOUWsWwuue33ViSPHLS45Oacnjh0D+v2tMyXDxwSCGriw8eiBqYGVy Sp1iHLIIhdTVVdt32DMhZZDAn+71CgU02nu/K25HTstML9D2LpSfDj+fkqv4RDDO87MV eO073kY3NArzU349FOdLACKjq6sBzIeSDlm83KbRQd4dt/fOddvmTBQP5+zICEjKaZh1 E2zg== X-Gm-Message-State: AFqh2kqxwnW6bqFcaUZ+0hHj2xt3U/sVxLhc1sXkxv4ZwTOpvHkjLe+X rfOFd3SLuru9pymXrOiLfCt40diIfSC800p4 X-Google-Smtp-Source: AMrXdXst4XqWFsq1eZP/TLy8rWFEU1HgxLUfaUTqyTQsbh1Hxs1JQGanBlz+gy9AHUQTvNe7tctfhA== X-Received: by 2002:a05:6512:ac2:b0:4cb:1189:285d with SMTP id n2-20020a0565120ac200b004cb1189285dmr2059402lfu.4.1672309943124; Thu, 29 Dec 2022 02:32:23 -0800 (PST) Received: from localhost.localdomain (abyl184.neoplus.adsl.tpnet.pl. [83.9.31.184]) by smtp.gmail.com with ESMTPSA id m1-20020a056512114100b004a478c2f4desm2993526lfg.163.2022.12.29.02.32.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Dec 2022 02:32:22 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: marijn.suijten@somainline.org, Vinod Koul , Konrad Dybcio , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 6/7] arm64: dts: qcom: sm8450-nagara: Enable PMIC RESIN+PON Date: Thu, 29 Dec 2022 11:32:11 +0100 Message-Id: <20221229103212.984324-6-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221229103212.984324-1-konrad.dybcio@linaro.org> References: <20221229103212.984324-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Enable the power and volume up buttons, connected to PON and RESIN respectively. Signed-off-by: Konrad Dybcio --- v1 -> v2: No changes arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara.dtsi b/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara.dtsi index a8c4df2696e3..15709d73b264 100644 --- a/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara.dtsi @@ -643,6 +643,15 @@ &pmk8350_gpios { "PMK8350_OPTION"; }; +&pon_pwrkey { + status = "okay"; +}; + +&pon_resin { + linux,code = ; + status = "okay"; +}; + &remoteproc_adsp { firmware-name = "qcom/sm8350/Sony/nagara/adsp.mbn"; status = "okay"; From patchwork Thu Dec 29 10:32:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13083417 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 405A1C53210 for ; Thu, 29 Dec 2022 10:33:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233129AbiL2Kct (ORCPT ); Thu, 29 Dec 2022 05:32:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230323AbiL2Kc0 (ORCPT ); Thu, 29 Dec 2022 05:32:26 -0500 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C654DFC6 for ; Thu, 29 Dec 2022 02:32:25 -0800 (PST) Received: by mail-lf1-x12e.google.com with SMTP id 1so26965817lfz.4 for ; Thu, 29 Dec 2022 02:32:25 -0800 (PST) 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:subject:date :message-id:reply-to; bh=x5CzpVg95POFzeTwzqnlV+4RYF9UaX7PA+joTg3brhk=; b=o/Kp6wDqmmyOQeik9o1Ct9pTdOkmbqYwMJRctWiKoT69CTeREP1bGaLahI89fua4GL CxF8Bw/aRDDElMGD2yBA8PP32zylu+FHCfDt5B6LgS7mTneVU3EGonCNsOveHZ8ilan6 hpTaTrVBdpypOq57R2ovvbuCQh+mDregK4MKmVRn4rIWCcmT6Q99d2M/ZmnUdnNxaSib 17wPx9C1a/BTdKEfC99OEYYN/ExGHYIAxegGv0Xm7EMgZyTL4ZoEh4HPjUBsGE3oXvY2 5JozILjG6YjC6rvdl4BQI+bnrZOxG/o/GQTUrcTEpeBe7Tn2pXKu+3zXtltjJ5dS/9n4 vaMQ== 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 :subject:date:message-id:reply-to; bh=x5CzpVg95POFzeTwzqnlV+4RYF9UaX7PA+joTg3brhk=; b=7ZuGX4m1Zf3fZNS04O7hH97ef3hQOQ1fKLCnUThA4eAxjhvdksiqATj++Ns62bvzn7 oRjipugu2zWsj/EnzPSdVYnWhtnXn4MlEDvj6XI3JptxADAFGMtknaMIe0PPjSanmRzV zjtEnOKE3ZJCsPMkO2W/3YTWjpYTOZhWCk3Q4rRpTgyGJGizYtTsfKr9TiAJG6m6TkeP 7pdJNj3ypW8R7uHKkyq/HFMX0aMsA1wmfAj5MhtMGrHsDQuTF1AYGHaryLpTcQUwtZKW OcYffsTZE6F+bh/Y3AH6EOMaQK9df/EbuAo5qk6p6Ygc6c46A0W0b7SPS1te/TyCTMC+ SFtg== X-Gm-Message-State: AFqh2kq/SP6OqikPCSRugHUEa7gyrvXrOfWpakFz7Wco3HagSlGxX1dc eefFIJHClpmz8RbsmFUZqM8fZRhiEcHeaHqa X-Google-Smtp-Source: AMrXdXsT3QKQBp99Umq5n7BvdZ9gxZpz+t+mSJf4TJAT/1oTXgPsndAzzCkT1Zituu6YRYY7mQeTvQ== X-Received: by 2002:ac2:5ec9:0:b0:4b5:b6e8:bb53 with SMTP id d9-20020ac25ec9000000b004b5b6e8bb53mr7390757lfq.24.1672309944440; Thu, 29 Dec 2022 02:32:24 -0800 (PST) Received: from localhost.localdomain (abyl184.neoplus.adsl.tpnet.pl. [83.9.31.184]) by smtp.gmail.com with ESMTPSA id m1-20020a056512114100b004a478c2f4desm2993526lfg.163.2022.12.29.02.32.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Dec 2022 02:32:24 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: marijn.suijten@somainline.org, Vinod Koul , Konrad Dybcio , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 7/7] arm64: dts: qcom: sm8450-nagara: Configure SLG51000 PMIC Date: Thu, 29 Dec 2022 11:32:12 +0100 Message-Id: <20221229103212.984324-7-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221229103212.984324-1-konrad.dybcio@linaro.org> References: <20221229103212.984324-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Nagara devices use the Dialog SLG51000 PMIC for powering some camera sensors. Add the required nodes to support it. Signed-off-by: Konrad Dybcio --- v1 -> v2: No changes .../dts/qcom/sm8450-sony-xperia-nagara.dtsi | 62 ++++++++++++++++++- 1 file changed, 61 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara.dtsi b/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara.dtsi index 15709d73b264..8869495c397e 100644 --- a/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara.dtsi @@ -513,7 +513,58 @@ &i2c5 { clock-frequency = <400000>; status = "okay"; - /* Dialog SLG51000 CMIC @ 75 */ + pmic@75 { + compatible = "dlg,slg51000"; + reg = <0x75>; + dlg,cs-gpios = <&pm8350b_gpios 1 GPIO_ACTIVE_HIGH>; + + pinctrl-names = "default"; + pinctrl-0 = <&cam_pwr_a_cs>; + + regulators { + slg51000_a_ldo1: ldo1 { + regulator-name = "slg51000_a_ldo1"; + regulator-min-microvolt = <2400000>; + regulator-max-microvolt = <3300000>; + }; + + slg51000_a_ldo2: ldo2 { + regulator-name = "slg51000_a_ldo2"; + regulator-min-microvolt = <2400000>; + regulator-max-microvolt = <3300000>; + }; + + slg51000_a_ldo3: ldo3 { + regulator-name = "slg51000_a_ldo3"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3750000>; + }; + + slg51000_a_ldo4: ldo4 { + regulator-name = "slg51000_a_ldo4"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3750000>; + }; + + slg51000_a_ldo5: ldo5 { + regulator-name = "slg51000_a_ldo5"; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <1200000>; + }; + + slg51000_a_ldo6: ldo6 { + regulator-name = "slg51000_a_ldo6"; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <1200000>; + }; + + slg51000_a_ldo7: ldo7 { + regulator-name = "slg51000_a_ldo7"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3750000>; + }; + }; + }; }; &i2c9 { @@ -612,6 +663,15 @@ vol_down_n: vol-down-n-state { }; &pm8350b_gpios { + cam_pwr_a_cs: cam-pwr-a-cs-state { + pins = "gpio1"; + function = "normal"; + qcom,drive-strength = ; + power-source = <1>; + drive-push-pull; + output-high; + }; + snapshot_n: snapshot-n-state { pins = "gpio5"; function = "normal";