Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2824325rwl; Mon, 27 Mar 2023 05:58:08 -0700 (PDT) X-Google-Smtp-Source: AK7set98kZ4n5bvUzpM90oUWZdZwOlPmrkVomVlkwxMw1Ntak6xVCAhjl0dAgCVdbG8q/RZfXWAU X-Received: by 2002:a05:6402:d6b:b0:500:58cb:3afd with SMTP id ec43-20020a0564020d6b00b0050058cb3afdmr19355608edb.3.1679921888820; Mon, 27 Mar 2023 05:58:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679921888; cv=none; d=google.com; s=arc-20160816; b=ZBqZj9eg9CUUxfIF5VMbEPKXkpUy8JjPNYG1qW1pl0wo20HxmuRFdtuFbhX2VxKRxQ a9lUV1hcGAV22+gqf5Qb7xDpdmtKdy67QxX7fI13tqWlUHE2QRHprY8rvmSBzs4cfvju k5+5OxMW97IaG07cVyueIa7FYxoVqWqiQ7U2QNlZabsADXGFDbhyqMsTR0sIHhq3SERx Wd9h0kBX/q77IfY4gxASa19SHivMthSUcBjigdda9IXqB91IonRqIYzZjn3fx2nZPpyC yApN00tz0e4RoIjiiA6KI4x9HjkbdUjb3QvRoIH/4eZhXwZnz8XJnrpZdQTsPNolXY8K oKYg== 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=48DD7pEvZ/2eHfxI/22xeFC054/nof7NI4mSTltG1IA=; b=XED7ZtXrrLUXja8OYWYaGPYcDh7weYsaHQx1S53C71aixox+F/f897wmRiH9zhcRXo wuA71Mw5IlXoXFkacBJ3LSdDszQvfaPSRJSdvQWbO94kup82/MLVY4EtxvCWcgI0jhzy 17LPB+RK61C85Cs7mLuUCjR1f2Wk+KvsZ1RLU/AnTUB7yiJzaTDX/y+dC3cVDdix3fK/ 7qdODZpoCGxFtoSDFYk3DMTtEd4QbD+IjdeA3Onjk6AKlQPX1iePx7SA/bBZ57chLXIz gjKYG1hRvdr3f57Ek79LdFZ3qc7C4ZRmQVcTA2XKE1rHB8lUBYOl15cKvrRxmVkP/quB uXFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=0qkewywT; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e9-20020a056402148900b0050050f6e7a6si7083641edv.602.2023.03.27.05.57.37; Mon, 27 Mar 2023 05:58:08 -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=0qkewywT; 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 S232754AbjC0Myc (ORCPT + 99 others); Mon, 27 Mar 2023 08:54:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232170AbjC0Mxe (ORCPT ); Mon, 27 Mar 2023 08:53:34 -0400 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF41D1724 for ; Mon, 27 Mar 2023 05:53:32 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id o32so4992873wms.1 for ; Mon, 27 Mar 2023 05:53:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1679921612; 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=48DD7pEvZ/2eHfxI/22xeFC054/nof7NI4mSTltG1IA=; b=0qkewywTMq3zwtAVbPsYdKJrT9Ha7uSKUBImwC3OtE5INrByAV8rNEuVqACE6cfzKD 0D/4jKGq6j2FIE2za5gXd+CRGYuzp7hQfZDzTygogRYUuwrU53IE3t0ZFh/dDth4CzS4 M5yzO79Q8VgoDzskRsLxjHpfuixeAtB9dKmIjaCZi1slEnxWLiiPgXbSH9iUy6GXC2Jf urnqrfFkOAHOBgcR674PiX4fbzuXG9Sp011O1SAs+Tz7/UsRiUTHLRaZaCKnG8ABOOeW fzeNzh1Ug1GCZRrcxXOb2yAsMAvDr/kuwsmZ5bQTFYJr3ITCjHn4p9lD1K+1EXAwQQhV o1XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679921612; 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=48DD7pEvZ/2eHfxI/22xeFC054/nof7NI4mSTltG1IA=; b=satFs1ogBbojThL20bIX6UJbt0eYyBc7i/uAQ71ppAb7PusBKmaT2VkVfGKUqK6cEC wL8xryfvQMYjb8UqtNoDlwkJNGBjVUaPzi30vCCXNHHTjHCF/nVGwJ/GeT36Q83tcZos zI7TCh3aT8jevFcRZuDl5XEBzPEDI4I3gn7NEJkTxa1mKwhMa0N0ScJZkeNux2Q1nkxp +wLymdVfkXSv6XyXW//jOShvNJdIVxdg8dFKHIEL81XCx/jxgU5YVTg0Ttf2q6Aq4R7v i4HjGjGV86GDUc4pwPUveoBASFkyBCvzObFwCHce2PMfjAbAQ2MhdfVJxdHgWcMAHM+C I8xA== X-Gm-Message-State: AO0yUKXyM1NQq0vKd5X47uyUSO0+X3HXVnukHE3LKbPq4Zs3L9bZ4u1c dVoTHaodqFq4y09hfRg7GVc6fA== X-Received: by 2002:a05:600c:4f91:b0:3ee:501f:c795 with SMTP id n17-20020a05600c4f9100b003ee501fc795mr13082362wmq.1.1679921612541; Mon, 27 Mar 2023 05:53:32 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:313d:a304:2790:a949]) by smtp.gmail.com with ESMTPSA id q25-20020a1ce919000000b003ee58e8c971sm13572220wmc.14.2023.03.27.05.53.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 05:53:32 -0700 (PDT) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v3 14/18] arm64: dts: qcom: sa8775p: add PMIC GPIO controller nodes Date: Mon, 27 Mar 2023 14:53:12 +0200 Message-Id: <20230327125316.210812-15-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230327125316.210812-1-brgl@bgdev.pl> References: <20230327125316.210812-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.0 required=5.0 tests=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: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski Add GPIO controller nodes to PMICs that have the GPIO hooked up on sa8775p-ride. Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi | 40 +++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi index be12997a080c..7602cca47bae 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi @@ -125,6 +125,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 { @@ -139,6 +149,16 @@ pmm8654au_1_temp_alarm: temp-alarm@a00 { interrupts-extended = <&spmi_bus 0x2 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; #thermal-sensor-cells = <0>; }; + + pmm8654au_1_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_2: pmic@4 { @@ -153,6 +173,16 @@ pmm8654au_2_temp_alarm: temp-alarm@a00 { interrupts-extended = <&spmi_bus 0x4 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; #thermal-sensor-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 { @@ -167,5 +197,15 @@ pmm8654au_3_temp_alarm: temp-alarm@a00 { interrupts-extended = <&spmi_bus 0x6 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; #thermal-sensor-cells = <0>; }; + + pmm8654au_3_gpios: gpio@8800 { + compatible = "qcom,pmm8654au-gpio", "qcom,spmi-gpio"; + reg = <0x8800>; + gpio-controller; + gpio-ranges = <&pmm8654au_3_gpios 0 0 12>; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; }; }; -- 2.37.2