From patchwork Tue Dec 13 19:10:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 32930 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp312014wrn; Tue, 13 Dec 2022 11:11:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf5zXeTYGp8VD8xIfe21qBCfWmJ+LI/kd+jTBCLYvBFV6Inx/Y6vP0i48cxo4XFqjZUTFdXx X-Received: by 2002:a62:6495:0:b0:56e:d365:f96d with SMTP id y143-20020a626495000000b0056ed365f96dmr19398590pfb.5.1670958673190; Tue, 13 Dec 2022 11:11:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670958673; cv=none; d=google.com; s=arc-20160816; b=j6hWf4MDmvn33A35W8wPAu9trVRObAoMQYc80M+eChdn6TkA7Y1wmTS+owPyRC7Eoz D2vquzFwJQI8R6Zlca0Z+XK3QZFP+E+JwD9Q2mlNu4k3MIGClEg8tEFR9lDUc9oouEBG orDQGeNeMsSoTd9qzGEvFf/D5axy+fQ+CUnAau56rg/aisPLKy4uE8Bu0t5Y6qGVO+D1 wmfuy/e1OlInSrZhoIOM6segLttpjeYhWYILg7IuaZ4I8GEKmdHlQIpnPKNUjQM/YyMk 6CcRbriwcsBLhZt3mtW680M9XSgc4sGWLcWXhO7s7hzuhTk7a7/mDLamG7WFUrj1/bD0 iFpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=BnF8qsfYu8s9/MwBsflSUh/lykn7aUx7PCtt6alz7i4=; b=QOCtT9bjr2i7d1zq+VZt0gJBW4Ma6M7R7FcIeMV2gtaUDzycwmhURGW5Nddln6Y8UH LzXoGYWqMAhAdJ99kluWc04vcI/qw0ISkGpr1o/9DO8mFkq8tyaErgxk175+Y8Ia6U/H YUtI/0Cilb2cKUciJL8t0XUx4h4ejG6/HJP3eugx2hneG7TKK2+qkeNPF64TcNa9YMlw 1J/ayxM1JBGwmNOUjPB3VXnOB6OafvCpDL3o3+puSthchQU6Mbn/F7T2U0iCeh3gqfLx zjEgNCpDjFWPUBM6bt9P/Pv577fUKOfKeDjRFpxU04zMBoho8eVIv5NGas8kPksc6EAo ulkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oXSEFVPC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t13-20020a056a0021cd00b0056c92bd3c48si13268785pfj.242.2022.12.13.11.11.00; Tue, 13 Dec 2022 11:11:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oXSEFVPC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236719AbiLMTKu (ORCPT + 99 others); Tue, 13 Dec 2022 14:10:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236693AbiLMTKp (ORCPT ); Tue, 13 Dec 2022 14:10:45 -0500 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18CC725C6E for ; Tue, 13 Dec 2022 11:10:42 -0800 (PST) Received: by mail-lj1-x230.google.com with SMTP id n1so4365846ljg.3 for ; Tue, 13 Dec 2022 11:10:42 -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=BnF8qsfYu8s9/MwBsflSUh/lykn7aUx7PCtt6alz7i4=; b=oXSEFVPCgKG1MaGfvlray6dSRizFoy6QMqOB6eoMD6MFHvwPDgH44HxgWbS52QexhZ DrA5///74cOLhQKFJ9iBSDE2qwcTzR6tEwN7IEvjHJeqgtjYxNSpcyiGO9kadp1X2xau qA90u0o5vpz9kiqjk6RpGQKZmF2fJCqdHW45zF7TY3XE/hEeuIUzjk4wOhASwPsR6WmC PHdA576+10dfmnbWobtqeg7AbP5VM/pax/kjf95xjEEHm/Akym8gwxrQB82KCSIFrE1C jx5pFmVqaaTDf281CXZH71LXTvHUAfN3Rram9dxFrCY7/85BmVwBOtZBI3sMpX7ICo8C KAWg== 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=BnF8qsfYu8s9/MwBsflSUh/lykn7aUx7PCtt6alz7i4=; b=U61THeMy0JSxZ43jeMsEG2WMdGNcq7ErhVZs1KjRsKPP5dRIZ4EPV5NjOxqa8wszD4 MUGV3NQHLhSrpiqewIebRF0pQGLSxSnYu+WFjiNpH7zl7bdJjo3vji7Y24/BlBmFfvTl 3Bi9YE7ZHBC8mmdUbdq3IvKPeeG5zAP4GaWo9KQ7g5/KkaAj8HOERFW20Iyczd8fM7br 7RFEzfjS6iot7r0gbxN5xxH9qD5OsQ608YlUqLAQdhhbNLM27diQpAYK1piVg5uULxB4 3WF/zKTVUztpgyhX1NNrEKBOBn/SEv08dWw9ag00k3s/Kfysj1lncS6ZRiZT6XjBZSU5 kV5g== X-Gm-Message-State: ANoB5pksT9PeO5b/PTRXnF0b2o0rEY2/RsZXAtG3hHcvgXc8A0ciutoM 500li0ZS8gPztTAKDqUp2E1kT54UXEXOIaNI X-Received: by 2002:a2e:a551:0:b0:26f:eb10:1a2b with SMTP id e17-20020a2ea551000000b0026feb101a2bmr6934373ljn.23.1670958640460; Tue, 13 Dec 2022 11:10:40 -0800 (PST) Received: from localhost.localdomain (abxh44.neoplus.adsl.tpnet.pl. [83.9.1.44]) by smtp.gmail.com with ESMTPSA id w28-20020a05651c119c00b0026dfbdfc1ddsm372023ljo.11.2022.12.13.11.10.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Dec 2022 11:10:39 -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 1/7] arm64: dts: qcom: sm8450: add spmi node Date: Tue, 13 Dec 2022 20:10:30 +0100 Message-Id: <20221213191036.611241-1-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752127161686882276?= X-GMAIL-MSGID: =?utf-8?q?1752127161686882276?= 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 --- I took over this patch from Vinod, it was submitted long long ago: https://lore.kernel.org/lkml/20211209103505.197453-1-vkoul@kernel.org/ 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 Tue Dec 13 19:10:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 32931 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp312154wrn; Tue, 13 Dec 2022 11:11:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf6TqehcX8aqZEXbHelYpbkrL/IE5nEdQDkNHVgRQ9Dg8VxjiIgeXVtsKBMg7p4TQlpiOOin X-Received: by 2002:a17:903:ca:b0:18f:6cb:1730 with SMTP id x10-20020a17090300ca00b0018f06cb1730mr13000087plc.26.1670958688958; Tue, 13 Dec 2022 11:11:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670958688; cv=none; d=google.com; s=arc-20160816; b=ExaDrB8sICC/MxcwOq76lR81BD2CxDZ0M05pyo+PtP1xgE29RBz7ROdCuM09u+iNxI 6lMev629bAxk3RvBnNfE4L1s+VXfteddku9IsUzt2OkOnrJLPSpzWWCA7v/Ywal7mgkL WVOXjbgdKzzNCrVxrsNlWJlrpwKgnafN4z31eiUHIodFxduaJ5qWg/bohpHcpZomul4k 3BM+9Gj11FJyOBSfhgOQxtfMug7+W2nZGwh4+CTfv8Lu5b8Yoa3GIgU3VWSDG1HTahBc VcTZQUDesTE2o2BghDn26fTS5Y7JPxI5pZoV++wm6DNp+ej9+5s9E8A3D561c/6hcsBx hWog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=08W4M5ecrrhDdw881i3P0twnVzROKcZey0x07rUUL38=; b=Bbr7iLAyaKYppBiHmb/uqPAFggoO5EjxeME50Y2O/+zMsZs1t03zEhn9rken1T/+VC oGaULIQTbKzyUnNO2rHXmbogV+GcjcC1oXwgQn8isGmcKM5Mdtuadryg3WfjUs1/JOIg I9HPVgTz72oGPRlboFeGTvh0GFaRHBapeHcx+b+MAiqqQKi8DHwML+3e9dzqnA1c8Fof PsZh2RI8qCYUyo81bemfQBregS0C0Eq51XjhMOIixcJjUiH8SBKpNGfOQXdMTvwuT7kB RPwdXrY1EtEewP0+i4tyzNFMOItjRjW0cMrE2gL/L0hOFVRryQmSB4XzgfgkL8f45t8d 4gNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tHKiLpkK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g6-20020a1709026b4600b001787f1922a7si501111plt.19.2022.12.13.11.11.15; Tue, 13 Dec 2022 11:11:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tHKiLpkK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236656AbiLMTKy (ORCPT + 99 others); Tue, 13 Dec 2022 14:10:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236686AbiLMTKp (ORCPT ); Tue, 13 Dec 2022 14:10:45 -0500 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A06F525C6A for ; Tue, 13 Dec 2022 11:10:43 -0800 (PST) Received: by mail-lj1-x22c.google.com with SMTP id s10so4387304ljg.1 for ; Tue, 13 Dec 2022 11:10:43 -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=08W4M5ecrrhDdw881i3P0twnVzROKcZey0x07rUUL38=; b=tHKiLpkK7CqXBNo391zBO1Wqcc37AhhKYcicBLSW3SDI4wuxZbmQd8GlAm7K5MiG2H irSBilrVT5VUk+3NmAZnAK/HpLZ/yk4M3HTOUmmLgwj4lBYg2gGgBvvdEJQx1whFyEVv TpjsFJQ2EWvtZY2uikg+zsf3OvnW7MoM1vcn6w4TxKDM1Pb2f2/SbA/bGdq802UxG1sB dtxzbgrv3ITnxXZYFuvsMj+pMCZt1g3Y8X4ppWgFPRh0P31XURZ39gb2VQrg0n9actaV g8AbheiFDFU//qX32kbk8WA49Bsa3XQA8xF6v3LKkk+vzfP34ndZ9pPbaY1UHpGi2da0 /MCg== 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=08W4M5ecrrhDdw881i3P0twnVzROKcZey0x07rUUL38=; b=d+lCtDqcnR1V92QEtZYe04cQj0dOVgI8PmVPWPLnnz3HhM9vI1JgTcag5qTCfqP1jx 7akV11XzmOXQr7iET1bdGSnAixPHlPaKoTpHdChu1zIdLbwIZ46TW+Rok63VXer8AEvL Fv0QgFzupf2egtjTnrzSjW2Zuykwpyxg4UXav6Qkvao/F7EHA3potHSxjKWW3R55WXjD WfuoeHON3S1FomUKxWEcvfZbbKCj1EVofUAM9j56spKxY7B7ADmMmueM4h1S1rGdAkOs xFyVtLTBNv4qOfex1eglqu6HQUg3rH2n7XLf0VXUKw6x3V60uYJnnJGzLg6cBIbywefZ 7wHQ== X-Gm-Message-State: ANoB5pk/3vvEOqA+HfMYlzgePjWMZqptTtt0RJrjQ8iLAjwFJHrBJM/a wLwIvHdDaZI5Mh9e2zAKE0th6w== X-Received: by 2002:a2e:854b:0:b0:279:eb16:5bb5 with SMTP id u11-20020a2e854b000000b00279eb165bb5mr5388032ljj.40.1670958642014; Tue, 13 Dec 2022 11:10:42 -0800 (PST) Received: from localhost.localdomain (abxh44.neoplus.adsl.tpnet.pl. [83.9.1.44]) by smtp.gmail.com with ESMTPSA id w28-20020a05651c119c00b0026dfbdfc1ddsm372023ljo.11.2022.12.13.11.10.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Dec 2022 11:10:41 -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 2/7] arm64: dts: qcom: sm8450-nagara: Include PMIC DTSIs Date: Tue, 13 Dec 2022 20:10:31 +0100 Message-Id: <20221213191036.611241-2-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221213191036.611241-1-konrad.dybcio@linaro.org> References: <20221213191036.611241-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752127178373434950?= X-GMAIL-MSGID: =?utf-8?q?1752127178373434950?= Now that SPMI is finally in place, include the DTSIs of PMICs present on Nagara. Signed-off-by: Konrad Dybcio --- 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 Tue Dec 13 19:10:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 32932 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp312176wrn; Tue, 13 Dec 2022 11:11:31 -0800 (PST) X-Google-Smtp-Source: AA0mqf5RXAN8iIA9FJhDgLMNsqZ4RSDpbIMRGivVeLy4AYVF2nOXCt7XxI6wQJIBMAFchHxsdhWs X-Received: by 2002:a17:903:3255:b0:189:86cd:d7c0 with SMTP id ji21-20020a170903325500b0018986cdd7c0mr22303388plb.18.1670958691065; Tue, 13 Dec 2022 11:11:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670958691; cv=none; d=google.com; s=arc-20160816; b=QOnG5COwaevWD4NDFcZLXoKZLNio3LqQpyIRCA9QJfrOZoUQBP6i+AWQSsMpq8k7Mc RXKecYvHoO1CKWSU/chrnadyeMmOZYi1Mc6t1E8A/3qCSbp6ftuKAG0tgR5BtkuaBz+B tJzvFpPCPxXlZK1JixlLQdLxVwqsBnkwebEa3uJ0OlYYqcX271BVmDJIOkZVGKFJj+9J ns9NBjpVq+XAEpJOUIuTDQgE68R3QpLK6HaYDwDHwf5xukB8amuQW297ZP1c3WG2qD8X W8K59wITg3QtaJyWMjl7FqFl0A3lyaj+keHTk1q437VOkfGpgLtbJCCV48Eb2wIprzFX hbSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=f9MORplhhfdi/jL2+RcflqsTy0dwAHC7rMffa/ngD80=; b=k9J85455RyJPMsmZlD8lzJVgJmlBp/AvBoGjkc0rt6+brmaeBlCfRi85JDa3Cwdx2o uJyUlVPeAcu8Mq+63tohmbjg9DMFvFFiftR4XPCRHQrrh8EVbgi0ROwjfoUbZnSKHyRm SkkLN0o8EVyCl4w/DmME/UX6/fKHZezxtscLt0Z3RTcuDA4E9QBzfO+LfUMS7TJULwTr S5xm1o4IZHWP1/gsMjih9CYLNtOAbyidfV1258ikKmxLhRiQRu8OP6JnhxMf8kZkwawO UG+4T0Xauaf6I2ZS3hilkyiltVpdtp7kTt9tsZXTsUuk98tP1lrI/NdAN6ImfQ+HeKVU S73A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="c46V/vZq"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p17-20020a170902e75100b00189684c7c79si589987plf.293.2022.12.13.11.11.18; Tue, 13 Dec 2022 11:11:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="c46V/vZq"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236758AbiLMTK7 (ORCPT + 99 others); Tue, 13 Dec 2022 14:10:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236698AbiLMTKq (ORCPT ); Tue, 13 Dec 2022 14:10:46 -0500 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0470A25C68 for ; Tue, 13 Dec 2022 11:10:43 -0800 (PST) Received: by mail-lj1-x233.google.com with SMTP id y4so4348698ljc.9 for ; Tue, 13 Dec 2022 11:10:43 -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=f9MORplhhfdi/jL2+RcflqsTy0dwAHC7rMffa/ngD80=; b=c46V/vZqZwivcFoi24votpdSH3QEBmnIV14/WlnWj1uZcMB4+FO2DyzoZZCW09mXH7 rsisuLq0mcdPAcTZvPVRxATCiw7FtR2NVctUEWRMj6tePOXZizO8hbWtiaAYF4vzpERk mGN/OhpS9jFp78XT7hec5bJ1tslMhQR9xEwPRaeFboyvDeIPIhAFRwbCGBo1FYLJu9vB DpXJbeOJd5i23U7UJucXoYUDNso8w5qVqtdkh9dLX4CAVEi0yZx0eCzxWw6xQGpmWHwz /P/gzbaAqwEWTirj4Etm7METQDzstZsYVyRhDdiBKJKrZcJq6Y4v+szyLqFHT1JxSuGO H4LQ== 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=f9MORplhhfdi/jL2+RcflqsTy0dwAHC7rMffa/ngD80=; b=wIOYq3EaezSuoK0ESqENU5cw/L0NkOyxcgzTSqDPKxC7xolYskSlMcvccBBSnuXztT QLsr97TVWcJ7biJWVKnqBSor4VytjC3Sxw6EtpCx/L5V1+kXKQy8C7aGC7bKqdc1z+ua vmtDqmInQsAfuTr8ZdI8LcaOYSUBa/7nFbZntr/eIfeIBC4I7EyV0S/JeRlyYUqhO2BS U1KVdUPDZNvnKRw2Su3JWMLoQnVPweYczkYDp2O2BQKWR45WK5MIqA5BShQDDBew7NIE BK7j3XcQ7LHSTA19B/it1ntTda11d4suDH6BI1lDW8fKokN6ZKxCDVsnJdKDDTDZuGUM pgJg== X-Gm-Message-State: ANoB5pmveAVBxqeuRjD6JyVlGCtVl7SYMkTC+9jStsQSTBumDYxshnF0 4hgH0uAkE8i4sKh/yaYZurXogA== X-Received: by 2002:a2e:b889:0:b0:278:fe64:12e8 with SMTP id r9-20020a2eb889000000b00278fe6412e8mr6805001ljp.38.1670958643565; Tue, 13 Dec 2022 11:10:43 -0800 (PST) Received: from localhost.localdomain (abxh44.neoplus.adsl.tpnet.pl. [83.9.1.44]) by smtp.gmail.com with ESMTPSA id w28-20020a05651c119c00b0026dfbdfc1ddsm372023ljo.11.2022.12.13.11.10.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Dec 2022 11:10:43 -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 3/7] arm64: dts: qcom: sm8450-nagara: Add GPIO line names for PMIC GPIOs Date: Tue, 13 Dec 2022 20:10:32 +0100 Message-Id: <20221213191036.611241-3-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221213191036.611241-1-konrad.dybcio@linaro.org> References: <20221213191036.611241-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752127180499213473?= X-GMAIL-MSGID: =?utf-8?q?1752127180499213473?= 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 --- .../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 Tue Dec 13 19:10:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 32933 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp312206wrn; Tue, 13 Dec 2022 11:11:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf6RbgpFBkfLfTHGLvTZt+RpSkhzGhks0duFuxYYECnuD0Uto9DOI5HMh3GaXzYJpqzri/1K X-Received: by 2002:a17:90a:5d16:b0:218:bb2b:9beb with SMTP id s22-20020a17090a5d1600b00218bb2b9bebmr22308730pji.23.1670958694663; Tue, 13 Dec 2022 11:11:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670958694; cv=none; d=google.com; s=arc-20160816; b=uYKrwwiEtRu13WcoYGttby+Kr7PXwAekAWLnnBo3/a7hlePl3td0acyP7/6Rsa0NVW wRBTgdUnC5lcTtXUNWP//55I5Fo9GpGxpJshBsWcrlO1+dTjK4sbFW2DcJE0ZiSrrsRX byQ0mYvL+sBY1axi8Vx9beCr+JQc6cx0XU7GvP5SLZWdtJNHlbTb7xgGCtqbhxF8IZ0o oCNjKf/B1nNAM85sUaOIqSciWXVV0xtuGB90heXGsvjwyRuxEkBdTnGh/iAf2iXqFaXP j76X7LTcGXyzK8QKtMNwbvWKkE9I6HHFk5oOCfzUjp20gA4thCvIZBmWEmu/XBkBHbne 8Eig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/t+rBbRgiSp1H+BSs+HFKH8stRiXimoBLtWD4wzdfGk=; b=K9qyBklxD6BND+S2QIHQpPDjNGcPHIwYRMWHxBSCZ5br9kmcvBYSetcApNms6TaBM9 epLeezLMIvwxKjE4habhxD+EjOUG8r62UgDSHDlqlXVaYE+TyPzf7J3uz9CSODHPmsyv ZevSdDMWb3t2cVJzUHMXqm3LgyWziyISM3J2So6MWCtZhFCrIZ7C8QUpq0Am6TWJqbwI gBul07GBanBDxynQ+188+Muwl6U1Rpt0ILrQxYd1dMTzwlvWlp3GheJziEImMLDbcdEX cuol4p0eFA9NHd5l+kOP1LgIcgr5EvvCbTKf4fiWBA1jb5Q28k9wtobMA/eDCt1COC3H YKkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lRlup79T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o4-20020a17090a744400b00219866a29e9si12847040pjk.144.2022.12.13.11.11.21; Tue, 13 Dec 2022 11:11:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lRlup79T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236768AbiLMTLC (ORCPT + 99 others); Tue, 13 Dec 2022 14:11:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236707AbiLMTKs (ORCPT ); Tue, 13 Dec 2022 14:10:48 -0500 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94B4923BD8 for ; Tue, 13 Dec 2022 11:10:46 -0800 (PST) Received: by mail-lj1-x229.google.com with SMTP id s10so4387460ljg.1 for ; Tue, 13 Dec 2022 11:10:46 -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=/t+rBbRgiSp1H+BSs+HFKH8stRiXimoBLtWD4wzdfGk=; b=lRlup79Tm7c71KHSvIb3NtZaXYQX9g1mU9RSmT0LgtEz/D9x5XljnB/zttTUtLxm67 gmVhy/pHaYpCJ1MKgX4tSBCtiuH/ncw7wV2vEr6SuqEB6Tta6c+AZdIPNMz+HZzKx9h1 djVe5zaJN/rJH4NL+VfL2+IPMo39dnTBubq8n9357RhGUa2tbwW7FMLqt4j/rgyf22GM bcaPHvDIT+aWsgl8KWwwo0TQUlqtIBqZCBN521rau4Wm7NuYhPGMugnz2o4HGcarpmDs +zJxxtXJvRAOkIXEpSbgg0OPOv1RovVXp/Io64a0OIThxUNNo6rLVhEt5j/W39cmLb/x 9rBg== 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=/t+rBbRgiSp1H+BSs+HFKH8stRiXimoBLtWD4wzdfGk=; b=MfQjgUAJO0pL1IRksIrU3Cpjhk0U7EpKXYsk7hDXvu1q7TZRT39ac6tGtewZIvnPQw zXWruT518VqGlEFZT7+jgPvswfUuu0rssRpZs2JX63CRzZPzLJlacCANoiEEvx7JuIKV A3uECio6KkGV/eIFT5oz1w0tBCFHkLuuIOhpFQSBDTyEaweiO6LjY5W2Gh3RenxVMrKG whk6kYswwqIVxO7dExw6LdXH/oj7Zv+b0GVURslgcBuiCUa6c+ulKlIq6KcggrP+0vrL o7bUO1UYAmXgGkJm1zyohuVHhjKoyiCrS4wrTbN2FD36J8BPtt4Wz8aJaBHe+krZ/828 VY6w== X-Gm-Message-State: ANoB5pnkhmrwzmaTBhhyNpOdKC0lLWIBTDbJr4TGIC+ChMlnW+xHit2z 1KtXEFa7WUsKXbos2JdHBbNZTQ== X-Received: by 2002:a05:651c:1144:b0:277:1888:cfb3 with SMTP id h4-20020a05651c114400b002771888cfb3mr4914239ljo.16.1670958645028; Tue, 13 Dec 2022 11:10:45 -0800 (PST) Received: from localhost.localdomain (abxh44.neoplus.adsl.tpnet.pl. [83.9.1.44]) by smtp.gmail.com with ESMTPSA id w28-20020a05651c119c00b0026dfbdfc1ddsm372023ljo.11.2022.12.13.11.10.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Dec 2022 11:10:44 -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 4/7] arm64: dts: qcom: sm8450-nagara: Add GPIO keys Date: Tue, 13 Dec 2022 20:10:33 +0100 Message-Id: <20221213191036.611241-4-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221213191036.611241-1-konrad.dybcio@linaro.org> References: <20221213191036.611241-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752127184121899898?= X-GMAIL-MSGID: =?utf-8?q?1752127184121899898?= With PMIC GPIOs now available, set up required pin settings and add gpio-keys. Signed-off-by: Konrad Dybcio --- .../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..3d96b6757aa3 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; + gpio-key,wakeup; + }; + + key-camera-snapshot { + label = "Camera Snapshot"; + linux,code = ; + gpios = <&pm8350b_gpios 5 GPIO_ACTIVE_LOW>; + debounce-interval = <15>; + linux,can-disable; + gpio-key,wakeup; + }; + + key-volume-down { + label = "Volume Down"; + linux,code = ; + gpios = <&pm8350_gpios 6 GPIO_ACTIVE_LOW>; + debounce-interval = <15>; + linux,can-disable; + gpio-key,wakeup; + }; + }; + 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 Tue Dec 13 19:10:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 32934 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp312290wrn; Tue, 13 Dec 2022 11:11:45 -0800 (PST) X-Google-Smtp-Source: AA0mqf7q13gfSho+Dg6F1CNVfZARWBzBVtPtfjhsMPLYKTgMdAXPD1BhNmoDgoPSRz2/90nXliVi X-Received: by 2002:a17:902:da87:b0:186:91e8:8a5b with SMTP id j7-20020a170902da8700b0018691e88a5bmr33558176plx.48.1670958705369; Tue, 13 Dec 2022 11:11:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670958705; cv=none; d=google.com; s=arc-20160816; b=pawD4dYHQZPVAtLVXE4mTdt16CbAd4T6TKfjJdCuzok0C9fFu1mNdPStiFwhRoWoB6 H9Fvlmgt2+DtfDIC3ZolrWhkTgRWdDM+xVhIT7LVWJsis7xlokGxZRkWm+FhS6Wezci0 mcZBq7cvlwtyro/EXpVBnT3PPONXwBARDd5O124aceR1eQnkL6SP+3jIuqRmv6CkkqDQ czAtbfynApiBB3/s2ZOsl0yN9Hr2PWIpGXOrNq0M9BSBKY9Z9Trjm8pJdgpa7sgQ//z8 i/5rdGytofL9CwJfoNT1eywEqKRe0lU6TpeBN3mBaqkWAOy6h+DTvSAm55+wJ5ZQiKpg h0Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ts/j2CHYg1kPm6cKPUq2V9hf2EsZAdlZm5xdzR+Qb20=; b=0/CwpHK2qy4tmAq9MzQUGZmPx+RHnpiT9A4dHJVuEKygHNKFtR11am2Wp/Aj5SB3uz GEpyzTqcdne8srqfnCPUG6xrRCztn1kqmjKk0o38e2ovf80V3d0LOmr+1iM6El2uvBg8 qzUXo11msKkuxfuth+ws9HAoC1bf+gyq6mBGAj0k6vq28ZbaYQvr2XEwLwHWMIPNpScT t6/PbhgndZb1CpWeVNTikZwZWqDBE0dHr3knIPkQSSk80ARbkLrdSsYiUX15xT0481j7 wQkFVVZ2iO6BAaobfz2gU/jqRU9sSQATNqQ8Mb+GLctbygE+Nc3L38IdTW0DSzPCPo5F Zm9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F61no4iB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id az1-20020a170902a58100b00189db2e76f1si458245plb.389.2022.12.13.11.11.32; Tue, 13 Dec 2022 11:11:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F61no4iB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236801AbiLMTLR (ORCPT + 99 others); Tue, 13 Dec 2022 14:11:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236712AbiLMTKt (ORCPT ); Tue, 13 Dec 2022 14:10:49 -0500 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C689248F4 for ; Tue, 13 Dec 2022 11:10:48 -0800 (PST) Received: by mail-lj1-x233.google.com with SMTP id x11so4359011ljh.7 for ; Tue, 13 Dec 2022 11:10:48 -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=ts/j2CHYg1kPm6cKPUq2V9hf2EsZAdlZm5xdzR+Qb20=; b=F61no4iBYe7WADg1b5OwnJFFwNtT9IxMVRaCN4JwLtW7bINFK3JVPwj4fbgGE4lcv2 fsRThwY7svqFVHUk+PJE5EuU0bLGxF/vRRy7CKw8f+1YmcOx67gIbBlEHcoCRyv9+nMM WWzHM8dGwc5gtS/wX2RZC76Hge1DxEG34cZqxYBOoWBXHLRYYm1S+p2kBWmaZWUZ2QhJ R4U/pAsR4ImQBGcCsrZKQDavD/sJnhuZEO2oziqDE+wVpEeEY4217kIJo6USUA0nfmbm Ywl6PgxfXyHl0LHHKAxGEzIaL+2pEsM/rH3dNkt8PgqSM1D9G61gvmG6Zov7TZYfrOx+ t4bQ== 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=ts/j2CHYg1kPm6cKPUq2V9hf2EsZAdlZm5xdzR+Qb20=; b=a/xJwcAhVbIv8lRf4XUVYmV/GLAET/YIwYWKa1kNhjw6THsa/gqQ5iM4hQu6qtqh9P pklhIj+LrnXV0piL4aJ+Nth41VSMqRiF5CJzzu4dhpLi3xkTAWl3RrVOIPDDRPkRRczz LGeEQ5OYgS7gAqJKLcTEM5507r42mCunGIFSnkpmkEDny6UmVEx7jZRg1MAI/t/I2qBB ef+kZgBWsMZZ9T8WBOLb+WAOzIDVztmrq7qrwhF3Xq8lbla+GMA1HFKrt6gzGIl9N++x Y8A4jNlCG3YFEhqTaKQtAYYvgPqeatL8s3DK5fzBdFez/+096CFyo28Jfa7x4cJ/BC2I kCHg== X-Gm-Message-State: ANoB5pnrFc8ZiQrQVo2unFAVasLx6ZwvNZ+oqA2jjVhTnW9uPLksgiLV ymREydPspmaJzvHVQ/T6Y0rLgA== X-Received: by 2002:a2e:be85:0:b0:26f:db34:a151 with SMTP id a5-20020a2ebe85000000b0026fdb34a151mr6879475ljr.20.1670958646572; Tue, 13 Dec 2022 11:10:46 -0800 (PST) Received: from localhost.localdomain (abxh44.neoplus.adsl.tpnet.pl. [83.9.1.44]) by smtp.gmail.com with ESMTPSA id w28-20020a05651c119c00b0026dfbdfc1ddsm372023ljo.11.2022.12.13.11.10.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Dec 2022 11:10:46 -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 5/7] arm64: dts: qcom: sm8450-nagara: Set up camera regulators Date: Tue, 13 Dec 2022 20:10:34 +0100 Message-Id: <20221213191036.611241-5-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221213191036.611241-1-konrad.dybcio@linaro.org> References: <20221213191036.611241-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752127195381521657?= X-GMAIL-MSGID: =?utf-8?q?1752127195381521657?= 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 --- .../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 3d96b6757aa3..e26bd077d3d9 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 Tue Dec 13 19:10:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 32935 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp312759wrn; Tue, 13 Dec 2022 11:12:45 -0800 (PST) X-Google-Smtp-Source: AA0mqf457/gWRjA20ZdOyNhIeC8WQf+8WWDWUkj4p6UuRJs+rPfLAk3avId/HsG47SGjrdPExP8z X-Received: by 2002:a17:90a:eb0e:b0:21a:67f:5d34 with SMTP id j14-20020a17090aeb0e00b0021a067f5d34mr21515688pjz.16.1670958764955; Tue, 13 Dec 2022 11:12:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670958764; cv=none; d=google.com; s=arc-20160816; b=VNP2k9gyPJ0cVKgRWvRLK3F0KBy9CZYuNo3QuaPgQioD0A/+9BDK5US3DzSP5tl5E4 jbE2Jds3DfeC3taETQi7dIBWmGSiuejKHK2pqE9nVKR5MIkJHka86qk0mF/rGvj4vCeD LDTBe1/PU3GVM8SPbWq625o5wF3pUvvjfoEX916VbHI0MnBtyVuUrdduOBy8aPBFInHX jBNDlNu3O2X6IEYtQF+/MN98Yzmc01mOhf6Ft2L8LFV1SDOEbIik8m782I29KKDIVHBZ zUy42y/dkp+FlR91/Nv+DBQnaFX31HbxEdtzpwOtRS21StbW7bLuVRxCFc8480OSrBRq fbLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Vk8myMSZixEpFm7TSq22NpEC9ZPyK1WEgfZ1nKeoUI0=; b=ml2RXbelPEa6X9V3hm7JIJ1Qlwwx21YbdvR98KvwPO3RFq+IHp7W8BIRRPPNTBPl2x giX0V/Q/KXFhFdWMwtPai2YqJGUfRbd/P6MtkS5wfzJSZYI6c1xOChk59FYi254GoEfX iAhlgn0n+1J70Rsk6HELKudrQevfWIeDeZaXePw/geyDplzoZLY1WR2pPzGWf9VGdodB BEwNeN4ORIha9MffpcUFMTNoUvwOTTBJXp0fb8deKmELJLUPaCbA2c09CCkPwjs1c+HR rXPLGRKRVhFpDmmr7YbxPWjV+8B1L8qi+EMYUQ8iNc0h5Ohvhk0AcGquZkF0uQLRivCD 46UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="LBivIO/x"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p9-20020a17090a748900b00218a37dc58dsi12354971pjk.27.2022.12.13.11.12.31; Tue, 13 Dec 2022 11:12:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="LBivIO/x"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235762AbiLMTLU (ORCPT + 99 others); Tue, 13 Dec 2022 14:11:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236720AbiLMTKu (ORCPT ); Tue, 13 Dec 2022 14:10:50 -0500 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DC6925C44 for ; Tue, 13 Dec 2022 11:10:49 -0800 (PST) Received: by mail-lj1-x22a.google.com with SMTP id y4so4348929ljc.9 for ; Tue, 13 Dec 2022 11:10:49 -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=Vk8myMSZixEpFm7TSq22NpEC9ZPyK1WEgfZ1nKeoUI0=; b=LBivIO/xpTg0SgheLpW6nkV0gFksPw2fYej+MmIKLvy1qqUqyQxJeJrWIpSMQvex+0 Um5DNqhVlKdLwfzxrh8PitybZB4WQzP9/fD+8pIpJaJxV4fK1u3ZDJyVv18FKLYSx064 QYbslSZq7/aGYdTh20Xmuc/Rzy+JMNWAx8ZeWGkBfzKT5rrbP0e8tzwJzO+/ScHvNQSc Z4XnHtvkJOBuAIt3GHC1Ukp9wzyM5DR0QtJxFW+R0rNxS7kTcX1/jyCXsSPp5eEgAgd/ knV7bux63l3QrXMuzzkS2Gm+FEqGOH2KsCCWwMlfEW+jLbThpu4M65pD2QY+Mg2OBlut aFXQ== 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=Vk8myMSZixEpFm7TSq22NpEC9ZPyK1WEgfZ1nKeoUI0=; b=pq5+ZbPKQmfpU4WN3ngdRpT/0XIuGR3DnEBGnPkXrX3B4H6NDCd/N03E2I1XWIsdRL butSZOjIHCPBYN8QCRc/mrHJ3JxlDEeSoOjt76KpEEJ+bYjyj8GGzt7MKNI8jNOTMjnK ggMnz7lhw4GgFJjhwl68DYyu5cmUK0J3xBYmtP5xb2ibW5sTjo/TBqpWFPY5UZ5G+Ctk vuxICrkPNiGM6vaEjSRlbhr8Y4IiLJMjk+/ghbJg5+bx5Y8ltcgxZZW5/wcmP0z3Zoko teyhKXLnoOP4xFmprThxap3QNj9dSBpXjo/z8cQ7KvjHF5adq8SO+HPAZHwTzycnIvNg uQRw== X-Gm-Message-State: ANoB5pk0axw+o84MJyW+xZym0J4wTg9M+j7wjDBvnM5bCP2cCJAqyF+d QmfWDGkkdgKIPXno4vMMyBI84w== X-Received: by 2002:a2e:6e13:0:b0:279:d056:21cf with SMTP id j19-20020a2e6e13000000b00279d05621cfmr7406288ljc.18.1670958648012; Tue, 13 Dec 2022 11:10:48 -0800 (PST) Received: from localhost.localdomain (abxh44.neoplus.adsl.tpnet.pl. [83.9.1.44]) by smtp.gmail.com with ESMTPSA id w28-20020a05651c119c00b0026dfbdfc1ddsm372023ljo.11.2022.12.13.11.10.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Dec 2022 11:10:47 -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 6/7] arm64: dts: qcom: sm8450-nagara: Enable PMIC RESIN+PON Date: Tue, 13 Dec 2022 20:10:35 +0100 Message-Id: <20221213191036.611241-6-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221213191036.611241-1-konrad.dybcio@linaro.org> References: <20221213191036.611241-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752127257507972881?= X-GMAIL-MSGID: =?utf-8?q?1752127257507972881?= Enable the power and volume up buttons, connected to PON and RESIN respectively. Signed-off-by: Konrad Dybcio --- 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 e26bd077d3d9..1a0c26d84b4f 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 Tue Dec 13 19:10:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 32936 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp312963wrn; Tue, 13 Dec 2022 11:13:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf6ljYCuiuuQuRUD5+WP005iPD2a0hgItUVhc0QS6jSlEGwatNAuQVv++QZwU9lMOxnV/6GW X-Received: by 2002:a62:1c14:0:b0:577:898b:6a6b with SMTP id c20-20020a621c14000000b00577898b6a6bmr22668885pfc.12.1670958790581; Tue, 13 Dec 2022 11:13:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670958790; cv=none; d=google.com; s=arc-20160816; b=WmjKa9kie+uSKPOfoAqg62WQw+iL7wItqgya6sszYK6mJl2L6DCTmn+BzpI85rdA4c CAgulxu6VbOef6lt26bOmralWrGB8/CVLnRMNy/nnWyXcHAq9zRCrNiccVjsS0CHcxCQ 3GujVAzu5l8lLGCdXOU8xFJpQ7fOLV+0NnSD6LNtsoDfmjh9akxSgL9l80sXpcw6FqZc rqvZx8eI/66cF21kGRKJYoHDvw5UFyzcvRBczdPcruVPz+uFEp2ZT/9d5FnDPYXnkwts YdZkSJaKY56uUisdUipEJarvA9/WsOR2x7anOp4XgSCcFjLqye38nPyGdyZr/OI9eiF0 Q9QA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=EaTjX9kmXgk2NSbnDVcg70Dryb8H2MzA5DwqvOQCmlU=; b=wanLK0CC6ZYCCfd2HLdhTi1NhOp7fStzh5byssJctkSDvrc2bnZfHjqrXSoNimPDZ0 VKBcfZuJRDvl0XCMkn/m54VVeoahUgPMfsVCgghKPwXY0PWi2jbtB0v9JR+59RshjKWy wFTUe/YG/rP7sKWHVb5DwImAhCNfswaOyD9H+OwSGoJFyM+9IOU6WtgqLRFLRbtjqA6/ S7axIiEIAPsT9Q7wNLxG6hIigW4WnJ4G1ETAiK1DmS34A7n7woT7gli9AVua9dV5THi9 AKjsTze20NYPzl6rOwWAXDhnm5jRRMer8LhZsi5R1nIEKkVDHU191tk8W4h8d7ynUxMZ Nj0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S4Mu0HNJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u18-20020a056a00159200b005788695bef5si5882157pfk.154.2022.12.13.11.12.57; Tue, 13 Dec 2022 11:13:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S4Mu0HNJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236731AbiLMTLc (ORCPT + 99 others); Tue, 13 Dec 2022 14:11:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236655AbiLMTKw (ORCPT ); Tue, 13 Dec 2022 14:10:52 -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 7A83B25C7D for ; Tue, 13 Dec 2022 11:10:51 -0800 (PST) Received: by mail-lf1-x130.google.com with SMTP id c1so6558649lfi.7 for ; Tue, 13 Dec 2022 11:10:51 -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=EaTjX9kmXgk2NSbnDVcg70Dryb8H2MzA5DwqvOQCmlU=; b=S4Mu0HNJknq8RSnPK3OQ/I62oGoS3brj3sZFSwXZFdqGW0v+0UUYArj3ZHUnZv5FRH KPlxvHqxxQCLTY+nmaSB5lFHuNAtY5utvDvVs5WVE8F3YCGdPD0NBTi68oiUiBiNyO85 Zi50RmnwAVYBMZPtaTYU0564qEKYxpMvpRq+DOdW+DxFO9cebjneByIw1PAuwQzgqNgL MEY4Gch/G4JIKjcNDhRSlk+BpuC/EfILwWIBVkcQRdLrqnCEE+a3lpGq9YAUYEm96Plz ffuE/FwzdXRmztwWX2nqcKmLxDE5GbGfsLYFaecZHmWNMHxhP3I1jc74yujL1vwTWNcj 5ecA== 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=EaTjX9kmXgk2NSbnDVcg70Dryb8H2MzA5DwqvOQCmlU=; b=aiJNfMotne5juJDpIOlkNpm5NaVvLO0uPdxcBAxI4s4SfftJUOjKz1tjSUjUVKNa7j IQ+hOvkHUFCUJqtMLNzpHHmxIj1Dd9GUxCNAqcgSGd7aF49UeOxwzNMhQWAbLZeyim2e kxJNfyQDOLm/VksxWpHQ2SGdoClDZQo4CpFeYCgZ8KC1vyqo24jqfnaYZM7iVaXfGq8y GL2x0sE+WXYN8Cal2s1oAJGlnHWD+aGmK2Bme5cpzb4l4Wy7K1hT6XtrpTjGg75HjMYm C50Xgl7OEfP/5uULx4SD7AiWidX+2KYtnI8HsRqTk8SMfgHHL0Am615hQowHj83ZpZcO Y5YQ== X-Gm-Message-State: ANoB5pmJipFIm70/zB5BJWt2lPW9hGVhwO17633MN2Xna3k3ZPJ1grD1 fpPgTkM8WoFiTtJpSYeYTlDo5w== X-Received: by 2002:a05:6512:b91:b0:4b6:ed8b:4f16 with SMTP id b17-20020a0565120b9100b004b6ed8b4f16mr3400571lfv.52.1670958649892; Tue, 13 Dec 2022 11:10:49 -0800 (PST) Received: from localhost.localdomain (abxh44.neoplus.adsl.tpnet.pl. [83.9.1.44]) by smtp.gmail.com with ESMTPSA id w28-20020a05651c119c00b0026dfbdfc1ddsm372023ljo.11.2022.12.13.11.10.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Dec 2022 11:10:49 -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 7/7] arm64: dts: qcom: sm8450-nagara: Configure SLG51000 PMIC Date: Tue, 13 Dec 2022 20:10:36 +0100 Message-Id: <20221213191036.611241-7-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221213191036.611241-1-konrad.dybcio@linaro.org> References: <20221213191036.611241-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752127284858220241?= X-GMAIL-MSGID: =?utf-8?q?1752127284858220241?= Nagara devices use the Dialog SLG51000 PMIC for powering some camera sensors. Add the required nodes to support it. Signed-off-by: Konrad Dybcio --- .../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 1a0c26d84b4f..e7017e6b5435 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";