Message ID | 20230320154841.327908-16-brgl@bgdev.pl |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp1309412wrt; Mon, 20 Mar 2023 09:25:54 -0700 (PDT) X-Google-Smtp-Source: AK7set++4BtTOj41yVIDHOUi4c634FqhiuNq10rORLEj9twwoGlilAC2vObUCBTzw4eU4zFz/3/N X-Received: by 2002:a05:6a20:baa0:b0:da:6602:790 with SMTP id fb32-20020a056a20baa000b000da66020790mr212869pzb.52.1679329553908; Mon, 20 Mar 2023 09:25:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679329553; cv=none; d=google.com; s=arc-20160816; b=jKpO2hiSlMyNTrXmWFzc/dN/AkWitkq/UwvvpNm2Zo7wI5S4QxjmYPyDyXlBFdra7A jLnfJuvCicntNAeBhlS8ijMfBLIhncFNo7GbHE+xGnzEt5SyeBfr66QhKjV9ZMgbRy+n TAlubLW+F8hXCW6q48GjdGsQunilb7EL4GWx4618j2Yyua9RSkaMRjjfAzen98n/HCjH L7UAGjcfL9n1hTsyiW+v/Ual7g0BM9Sv77rhSNnvjauipexia6UeqMxrHCulRpIf4vmX dCHeJjtswGKQR9KYpYdqQLThkGzwCh9dnKXDGU35jZ7qNGdayNdGCQZXfnp7oru8DSQR bSOQ== 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=7EuK8D3JNAqpny7OspN8xAc6Jzm+Cu/RZugCo6caMi4=; b=Vyw5sGzY5Y8xFmnTv6bUmV1QZ+J2TWFv6I8OMeMVgaz26NJkImemAYyZIz1XP/hnGc 7xb6NqDBvTqla1/6mA3d9piLh4KTcIrJKy93eOLgzGLBAnOgMTnDsIm72JfEGAjynzbi DvK5RN372FzVeS2EZyEsUCT5eehFyC2dcLdHDQ2jU2Quk1qbr0VK1Ud5VkdRXBYWGF/l +9rvkxWADjNSWNl9MP+zGPyS/7JoBSdqkxKr7FXlEq7T+O6lQg1hS8LN4olaTqLhE486 rmpUKQPrKAJZokJLgKoWvmgRnUbi5+Xz+FYvM1+HbCIMwRf5g0o5xOIVog766P7MSINy RgVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=Bq8A9y2+; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j72-20020a638b4b000000b0050c03f47eefsi11292616pge.190.2023.03.20.09.25.41; Mon, 20 Mar 2023 09:25:53 -0700 (PDT) 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=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=Bq8A9y2+; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233389AbjCTP7X (ORCPT <rfc822;pusanteemu@gmail.com> + 99 others); Mon, 20 Mar 2023 11:59:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232230AbjCTP6T (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 20 Mar 2023 11:58:19 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1DD14202 for <linux-kernel@vger.kernel.org>; Mon, 20 Mar 2023 08:49:28 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id d17so2388880wrb.11 for <linux-kernel@vger.kernel.org>; Mon, 20 Mar 2023 08:49:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1679327345; 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=7EuK8D3JNAqpny7OspN8xAc6Jzm+Cu/RZugCo6caMi4=; b=Bq8A9y2+rcSkmKUYGbL7WaVyx448VKVw1TdbSyaIyIsH181EUbUC9IAxrPin2XtvWt k1hOqArE/bJcnYFfEZIpD2gayLjRO/beCUj8Yk11HWnc1ySFlXs2fpymtbSpMaUZ45If k/8CqL0nXFNh2Dr0OOT5p5YpMdLVaOB2+1tXPWqEigpHQRNAvn07f4VQurZXQG0oaEHy CxO493qK3dQqv0mH/HupPC2HARC9hMV+cKboZScWsd8oHdCHieFjzGYW2Bxs07TEuewn o05WAVHz8DdmryzXOUpt6Z4jB0t0nkWyMZwDqLNuJZLqDVjXzMmGyR6D9BDVr4icEKmH dcGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679327345; 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=7EuK8D3JNAqpny7OspN8xAc6Jzm+Cu/RZugCo6caMi4=; b=mCwVkdUYBnp7tg3KHsi3s30PpKrnnBo2I+cg+VeNakUkEeGpE1ts6aS18uyulKBBFF uqDm9X1rBrVGB3SyFjQQ6wIGUWZGjdsA3RGaDUwI6hot3J0l3T/fOjUuhRmP9Gb0H7SA xrYyiTTN852S6cCBX9SqcnUu8huUYYfMHEmmVKV5QEkX4bfudjbksyOCcJa7J8HhS6Zs A6WxeinCLKgExXKCrnfgdBSWvYC6DHoEMvR76BjKV+g62+x9JqkqrHve3ARKHLRdoY+4 CkpLh4qA1cmXOBGw/owfXnCcBSXu9jAe21B4DzIugfRuMQRXtmvRIjmPhV5JqioyprNQ XRaw== X-Gm-Message-State: AO0yUKUHQe6TAcX14B65y1pVbVT1SjWFA/OWm3dicq3hJeHzf/82hLWG dxrWaKWfTAhLfAIni4T4IBfV3Q== X-Received: by 2002:a5d:4650:0:b0:2d0:cf21:a40d with SMTP id j16-20020a5d4650000000b002d0cf21a40dmr12150282wrs.10.1679327345625; Mon, 20 Mar 2023 08:49:05 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:d7d9:4f38:38b4:82b4]) by smtp.gmail.com with ESMTPSA id o6-20020adfeac6000000b002c71a32394dsm9202578wrn.64.2023.03.20.08.49.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 08:49:05 -0700 (PDT) From: Bartosz Golaszewski <brgl@bgdev.pl> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Subject: [PATCH v2 15/15] arm64: dts: qcom: sa8775p: add PMIC GPIO controller nodes Date: Mon, 20 Mar 2023 16:48:41 +0100 Message-Id: <20230320154841.327908-16-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230320154841.327908-1-brgl@bgdev.pl> References: <20230320154841.327908-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760904665993669125?= X-GMAIL-MSGID: =?utf-8?q?1760904665993669125?= |
Series |
arm64: dts: qcom: sa8775p: add basic PMIC support
|
|
Commit Message
Bartosz Golaszewski
March 20, 2023, 3:48 p.m. UTC
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Add GPIO controller nodes to PMICs that have the GPIO hooked up on sa8775p-ride. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> --- arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)
Comments
On 20.03.2023 16:48, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > > Add GPIO controller nodes to PMICs that have the GPIO hooked up on > sa8775p-ride. > > Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > --- Only on 2 out of 4 SIDs? Konrad > arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi | 20 ++++++++++++++++++++ > 1 file changed, 20 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi > index 276070b62ccd..574c20caf9eb 100644 > --- a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi > +++ b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi > @@ -78,6 +78,16 @@ pmm8654au_0_pon_resin: resin { > status = "disabled"; > }; > }; > + > + pmm8654au_0_gpios: gpio@8800 { > + compatible = "qcom,pmm8654au-gpio", "qcom,spmi-gpio"; > + reg = <0x8800>; > + gpio-controller; > + gpio-ranges = <&pmm8654au_0_gpios 0 0 12>; > + #gpio-cells = <2>; > + interrupt-controller; > + #interrupt-cells = <2>; > + }; > }; > > pmm8654au_1: pmic@2 { > @@ -99,6 +109,16 @@ pmm8654au_2: pmic@4 { > reg = <0x4 SPMI_USID>; > #address-cells = <1>; > #size-cells = <0>; > + > + pmm8654au_2_gpios: gpio@8800 { > + compatible = "qcom,pmm8654au-gpio", "qcom,spmi-gpio"; > + reg = <0x8800>; > + gpio-controller; > + gpio-ranges = <&pmm8654au_2_gpios 0 0 12>; > + #gpio-cells = <2>; > + interrupt-controller; > + #interrupt-cells = <2>; > + }; > }; > > pmm8654au_3: pmic@6 {
diff --git a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi index 276070b62ccd..574c20caf9eb 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi @@ -78,6 +78,16 @@ pmm8654au_0_pon_resin: resin { status = "disabled"; }; }; + + pmm8654au_0_gpios: gpio@8800 { + compatible = "qcom,pmm8654au-gpio", "qcom,spmi-gpio"; + reg = <0x8800>; + gpio-controller; + gpio-ranges = <&pmm8654au_0_gpios 0 0 12>; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; }; pmm8654au_1: pmic@2 { @@ -99,6 +109,16 @@ pmm8654au_2: pmic@4 { reg = <0x4 SPMI_USID>; #address-cells = <1>; #size-cells = <0>; + + pmm8654au_2_gpios: gpio@8800 { + compatible = "qcom,pmm8654au-gpio", "qcom,spmi-gpio"; + reg = <0x8800>; + gpio-controller; + gpio-ranges = <&pmm8654au_2_gpios 0 0 12>; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; }; pmm8654au_3: pmic@6 {