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: 638089 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 5C0F7C4332F for ; Thu, 29 Dec 2022 10:32:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232753AbiL2KcT (ORCPT ); Thu, 29 Dec 2022 05:32:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231182AbiL2KcS (ORCPT ); Thu, 29 Dec 2022 05:32:18 -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 67B1D6581 for ; Thu, 29 Dec 2022 02:32:17 -0800 (PST) Received: by mail-lf1-x12f.google.com with SMTP id y25so26974117lfa.9 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=YlJanJAxfiRX+8R54JkmyPOeN3M01QVEfwIKtPFysOcRxDWJKzcLJgKrfFoxWfLprx rV1mQYysUxln0nX18Mi5iRWjAuKUkSBbRORX/PAtXwCBhhglobi5XzzFRdjTLsqS8GR+ OzVJKxpWMTNRRKp4L6GDe8Jlu2qjeapVOLWibBtYJar1UiKXRiF/PMoczAIDzQ3hb3ZA 9o+CtvQOv918ZyPmqN9gxWMe2VPUGddiEbPm8to17lNTyPvsn6cVtHd2aY5EGiKPSb5U JIUz2n7Bmc4Z0l3BS6/iL1WdEK6Jwl5Fk7RsJCAcbnxahxJC2b2ILgE6ozRv2SKxF5Jg i/QA== X-Gm-Message-State: AFqh2kpkDmWFGRS6C70UBEzTi0Po/nNBPXBH/3j3aUEvkaH+eDFuGF6f Fo2EQSkWRgg9vkjjCITG6SPlTQ== 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: devicetree@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: 637681 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 1CDC7C3DA79 for ; Thu, 29 Dec 2022 10:32:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232749AbiL2KcU (ORCPT ); Thu, 29 Dec 2022 05:32:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231182AbiL2KcU (ORCPT ); Thu, 29 Dec 2022 05:32:20 -0500 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F63595B5 for ; Thu, 29 Dec 2022 02:32:19 -0800 (PST) Received: by mail-lf1-x135.google.com with SMTP id j17so17465732lfr.3 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=anes1WQVolrA0xjaeqqFLMzmI3Rdf2/HLtOKwrSpkWqSPRWG0NPoZSK0B9Ts9i61AE Jm8EfmJAltJtDjJ8+ckKa7Mhh1uXOPci075niMBXR9gwqli8y0mJwx6O668f7nlqRSZn vX4Ghj6Ct4fcB1w5ERFZRrqF83bLPMeX2TVGW28g9yTBB3rH5Z3yvexKFg+TCq0YvPEb RHaiTttlvttygMy3exB0Ed04A+fuAA975HFt7yxMDpzLeqI6liW5o59qFFZQvh7WUimj +XZHznEFZNFAg8OKa6jSQ+maHXwTNcljisGn5K6iMIZTvSrPrea01/CeKYYLuZaYYac2 RHDg== X-Gm-Message-State: AFqh2kpqr85XHlFLRVybAeMFs+S81sOdZz6MkqDc5HCUJkCaGWk7IN3w oxiJpiEDLQK1ZQ3IA19jtrCWYQ== 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: devicetree@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: 638088 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 9DB2CC3DA79 for ; Thu, 29 Dec 2022 10:32:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233118AbiL2KcX (ORCPT ); Thu, 29 Dec 2022 05:32:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230214AbiL2KcV (ORCPT ); Thu, 29 Dec 2022 05:32:21 -0500 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BCA06581 for ; Thu, 29 Dec 2022 02:32:20 -0800 (PST) Received: by mail-lf1-x129.google.com with SMTP id m6so16582574lfj.11 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=D0zX1Sl1xMoj4Pd5MGrDnQt7m6A/Ys5hZkunrbSylHGqnsGuyCG8xTu6wntRUiTBKk We9+9K5dZvoEVDsA75LdA0QkXxWsJ1fFYOECyw1p3t8nfaFgP6hLRBlRdNdZSjcBSa3K 6MXSi8eDXXhHD7QRcroNHOON7cH1P19dQ8F6ugPpPXLDXIbVtL9PZyGrLDBdRPkUwxxl RyuJRNvNO8AEAEV8WrjPvW6k69/4eMB9C0xQ/TSCCjXkCdGk1FSyF5kTScLbs7wLaSF6 a8Dtb+27sHDOCeeR3jLaEPFh1DQsG7to6+cRpBxNJocM+T6D7bRTSbSL/2gcu1rzk+Rt Ex+Q== X-Gm-Message-State: AFqh2kqpMf/2yOFXo2thxSkFRBFYmeefYdAy1rmwD9VwzLI1OM6ZIkiA WzlLCiKE1pHK140ESQ/EiK+gnA== 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: devicetree@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: 637680 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 4D064C4332F for ; Thu, 29 Dec 2022 10:32:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233148AbiL2KcY (ORCPT ); Thu, 29 Dec 2022 05:32:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233090AbiL2KcW (ORCPT ); Thu, 29 Dec 2022 05:32:22 -0500 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA6ACBC27 for ; Thu, 29 Dec 2022 02:32:20 -0800 (PST) Received: by mail-lf1-x129.google.com with SMTP id bf43so26968046lfb.6 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=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=LElxV/kgnJ027gG2A9hq2Kf4P+AfUfhfAI4qbDRu1HKBkv56IiORSZUU5z31o/42yI f91k4FgpFgTD2jFIqNA6eGNqoeW4PqJnOhfqQokYmFDshEXgKNMEuhHv7Lu833vJ0RMg XIqnzdnPOryiAmIWEnluUjcV/DtQNWtHnWgULnNQpGaJ/+lgTFnFqcYoC3oq573T9skU 1y89yXf4NOw6Ek/CcF5Y0lv5ldu9dEa0/hYZJBHPWIklqxQiyJPPTuOfV4MLkDkWAszw sd4fDbwCJcAnmQVSjC5QVv36o6/mN1HtOrDEjTitEPa80mCHo5UgCF8vS4g6PsC7kMZl kdwg== X-Gm-Message-State: AFqh2ko6ogsYD5YxL1NwxaDyjYdVv4g9ODIMLn4HMjDN98BbQqzYyNY1 ZGz0fUhpCazixDfAISTRAYu1qA== 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: devicetree@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: 638087 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 61DC4C4332F for ; Thu, 29 Dec 2022 10:33:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233403AbiL2Kcq (ORCPT ); Thu, 29 Dec 2022 05:32:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233142AbiL2KcX (ORCPT ); Thu, 29 Dec 2022 05:32:23 -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 430829FE3 for ; Thu, 29 Dec 2022 02:32:22 -0800 (PST) Received: by mail-lf1-x12f.google.com with SMTP id y25so26974395lfa.9 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=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=wx7G+YEBTLeFwTJ/pUssjCSeHfxvJVluZSKOckI2hG9gXkVG9l8R31qltyRH8HqKXr lrftXj7FW94x6lypffJ+wT79/7IH7Nmd65pZhHmttNbbcAYFy6RswEcZbGFbBelVYAzO 2636vkCXRGTDIZneh1fRIcZ4IVdUL7AT1kaAlT5iweXZZyuk0WHUl8z0D9buONj0lmQ6 dBWoVHyijUkzbiQKNnfDb1ZGDtEBmwWptLR53zAVMaaBY/Pab4q37aD61sxi9DVO96ZW Pcfe2v2Hg81Oo3A0cNP7Jz7sE1Su07aLaOTLffTkqIvJbuqZawR4NyVgMQ05icu7f51p PGEQ== X-Gm-Message-State: AFqh2kpdubXIKwJu0rpBOj5L0DKG8XeS1hpTAQIujJNURNso4gT2NmbH /E5lreE8XJ8/wAr9x61jnKogzw== 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: devicetree@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: 637679 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 EE423C4708E for ; Thu, 29 Dec 2022 10:33:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233099AbiL2Kcr (ORCPT ); Thu, 29 Dec 2022 05:32:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233085AbiL2KcY (ORCPT ); Thu, 29 Dec 2022 05:32:24 -0500 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C5DBBE18 for ; Thu, 29 Dec 2022 02:32:23 -0800 (PST) Received: by mail-lf1-x129.google.com with SMTP id bf43so26968184lfb.6 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=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=dwuWtMvOcGLTuHjuA6tHBp0GArVNcJwY19RF+ut6c7WsP+P0hsku2oWnPMWsiz0+t/ s8CiIL5gDXurRX5BJ8xb6+YessbVkbRPUWJVr5mFP+GbmK2ezcVOw+xBu9QqqxqWT/ec pPxcg0K6jxnk3GcXIAmAMYrytvTBbil7VmPpumByaTfuhP2prp3BiikjRGurDO4sIO/v pgWtfNoQigT7II8aFnU1qOreGECZhAig81CaAM8JAM3VKPyd34514CAfwaMwRwwCHH4U odZCLRjb8X6hv1TsPgLCg/utdlm3HiJX1BzDg/zWGQwwibKiuf+gtADvqUp4VIez/yxY JjKw== X-Gm-Message-State: AFqh2kpfpJyAVsv4imuBVXoxnA/ahDwfS2eljvYpgD/xlqEq8rgyIz6O fg5IIu5RUklSoKxHWh8oEahpHg== 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: devicetree@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: 638086 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 102C9C4708D for ; Thu, 29 Dec 2022 10:33:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233085AbiL2Kct (ORCPT ); Thu, 29 Dec 2022 05:32:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233201AbiL2Kc3 (ORCPT ); Thu, 29 Dec 2022 05:32:29 -0500 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F107EE27 for ; Thu, 29 Dec 2022 02:32:26 -0800 (PST) Received: by mail-lf1-x135.google.com with SMTP id b3so26988160lfv.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=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=FMri7mWTfQTNplZt6i+A/0C+df1gZHCgxQvAHVFlgsoT431MFEfGu8pkfdCuz4BXQy eeM/2p/Zg+alvtiE7eNVCHcG2RKbiXr9KEkNun/e7VXjxYCcy6N91jXpkw8IKMxj6BgN GJUq4Jvp47zhF9ak6gGRQs2c17WZxocJg81IWpVm5YrhTI2VaPJGQQMDMRd+K5j7x+t9 WXikz8GhFaeN/ACNq6x1pZxBI+zCKFI0Dmsna4xwaRfpEWMR/6KQZoy8uI7bA7wWCH+u tCoITxKq1QD22NKKqsB3puTm3dPIyr64TK06Lfy1ivI2W/9YrHPHA+FeF4AX1DvKGtfS Yv9w== X-Gm-Message-State: AFqh2kopFOLyQSdVdMNZW1GddL+XMyK8c3f3NdGLlTX8A1Fq4HqXqoKP KSMaytFo5gphEIhgbq5f9L6uxw== 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: devicetree@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";