From patchwork Tue Mar 14 18:30:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13174894 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 46B10C7618D for ; Tue, 14 Mar 2023 18:31:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230340AbjCNSbK (ORCPT ); Tue, 14 Mar 2023 14:31:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230202AbjCNSbI (ORCPT ); Tue, 14 Mar 2023 14:31:08 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05E06166F0 for ; Tue, 14 Mar 2023 11:30:56 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id bg16-20020a05600c3c9000b003eb34e21bdfso13863004wmb.0 for ; Tue, 14 Mar 2023 11:30:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1678818654; 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=/vO0yyz37sCPjmTdBPnxOQssiPwo3vE8UW/JvvEZOCQ=; b=4Gp6JaA+LlrNYraBYA8mWAWkIYN3+2QBmR2ZoCgv8mKrhj6OaBkVzALZZ2IsHQ8rj8 rf/HpQHGt8QAXJ7mTNyCxkSkRiP98EP5KTwCZJtwj18BmHTcbQaqIvfSkQbd4Yxbmxw+ a+xuPPLUPgdZk81+OFWDNm2/OdZQt4CjthOly5yO52BbthRyKKqCboq/icw/GoDwPI6M myseMTmicelOqnfW2JSIvIDIsUMiaOofIMcK3JViQRbZtGo6E+Fpt12ZuM5X7RRSXFz+ ne/Gv6RWef3bgCaK1QtxI3nWAIgk78WFLl9Jar5OQZxHoSTUhqFPFPHC0WxpnyRucP6a FJFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678818654; 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=/vO0yyz37sCPjmTdBPnxOQssiPwo3vE8UW/JvvEZOCQ=; b=Zr0V+piUfaxMcZEQD2Z62tUndRyCFAOtaOpxcFRgwC/3KYFIBe+CmAYJ4kT0bU5k85 xOL0aKMbV6Whn3S1pj/cVv9Nk07qSr4/Dzcc6VrtqNv2aUX7Wv8AF87v8njo6KfZ/r/k iacHXD5OV5kfLvGdDpS1lzz2Y4bTscYFI5M/dKLq6RkCHTLmQiLb/4hVdi0vqmOLgZGE JpIBzl0C/JoRHSBolg6HaLlNEwbyJWqJ7eNKfo3ThB4jS1zd/Jk132p23WGWy9P+sjh6 rGL0fAlID0Qi3I/zktbJQBW9q2Pt5603jKuUdr+5eWY8hmNYQHNahtL0eRXe5dzTLyeY c7oQ== X-Gm-Message-State: AO0yUKVgtdq19rMZBIIZdU0l5fYa6Hz8thEI1zKOhc3n+t4nKAe04eeC Pv9PzH/z/Y2m6PB4nokgNwOj1Q== X-Google-Smtp-Source: AK7set98JiTo2th2oPGQJOngAEPw6VLt3IgHn4vuukzs7XUq7gqA87KwXNTJBZ1jsCbvcr/7apwWvA== X-Received: by 2002:a05:600c:4ecf:b0:3eb:29fe:70ec with SMTP id g15-20020a05600c4ecf00b003eb29fe70ecmr16501913wmq.27.1678818654514; Tue, 14 Mar 2023 11:30:54 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:fd14:bd52:b53b:d94c]) by smtp.gmail.com with ESMTPSA id k28-20020a05600c1c9c00b003e209b45f6bsm4083938wms.29.2023.03.14.11.30.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Mar 2023 11:30:54 -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 , Thomas Gleixner , Marc Zyngier Subject: [PATCH 01/14] dt-bindings: interrupt-controller: qcom-pdc: add compatible for sa8775p Date: Tue, 14 Mar 2023 19:30:30 +0100 Message-Id: <20230314183043.619997-2-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230314183043.619997-1-brgl@bgdev.pl> References: <20230314183043.619997-1-brgl@bgdev.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Bartosz Golaszewski Add a compatible for the Power Domain Controller on SA8775p platforms. Signed-off-by: Bartosz Golaszewski Cc: Thomas Gleixner Cc: Marc Zyngier Acked-by: Krzysztof Kozlowski --- .../devicetree/bindings/interrupt-controller/qcom,pdc.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.yaml b/Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.yaml index 94791e261c42..25c4662a0280 100644 --- a/Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.yaml +++ b/Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.yaml @@ -26,6 +26,7 @@ properties: compatible: items: - enum: + - qcom,sa8775p-pdc - qcom,sc7180-pdc - qcom,sc7280-pdc - qcom,sc8280xp-pdc From patchwork Tue Mar 14 18:30:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13174896 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 E5316C7618B for ; Tue, 14 Mar 2023 18:31:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230398AbjCNSbM (ORCPT ); Tue, 14 Mar 2023 14:31:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230336AbjCNSbJ (ORCPT ); Tue, 14 Mar 2023 14:31:09 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 182AD5BBF for ; Tue, 14 Mar 2023 11:30:57 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id o38-20020a05600c512600b003e8320d1c11so1053623wms.1 for ; Tue, 14 Mar 2023 11:30:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1678818655; 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=fuuEjmrbMj1oVSmMC53YE236zaBmRiKiAfz/V0m6A8g=; b=wNzmctlA1WtK9v028tbq9ylEjdTPyatTxL8veKW1ylMOMx7tN3jbK6zUnnQ86iYWHY L5pjuTrVpyXrVLaqqMD3bhEcoMo+5MFK+OthVb/taJGnIMsdFLzPruA67XHdrDgR9983 RsQe3FPLjpMyhL8LiPuapf8+/fwgRrqd+q6cfNO+Dj2Ei5rO8zSfdqL6cbNUaLRPNWQj PXp+OEsl5PsO24/OA4aQv37NLbRQf8zMpLDMinKQIcqKfXitzii8BeYeX7/tX7CqzaYV qS9GDdmscqjbYVDR0dN4OxkJrgfY0Evz5qOZVGQoRAYCxpqmI2I5++aTxoW3AZbb45nl sDtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678818655; 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=fuuEjmrbMj1oVSmMC53YE236zaBmRiKiAfz/V0m6A8g=; b=qizvO4RoQwUhw6ynUtoHCIwHtfZemfUEWeRUHAsq7fWZbiqZ7XLw8g9oB/xhsrdz7n bffHbegY2v9OFRD1Sg5zrl+FpBilXD6Md7A5iN7Zdw3NYVbyI3UZEbHlL7Z6G6lARl9A rflJRisyWh/0S7W5Aye7gqFY+Tbq7BH0tviCFnmANaPcMCs12QfQ+f+slokaFyLNlXyo +EZuo6ctz2getp0lcHXJlqtVtQIGzcwCE4ER9c3pZ4WKRyp9/p7y6uxfzV70a2IA49rD +IJiLIaFOBZkbRdkwu4ZgVVWY8GmaFxlOKVI3OOBusXWqMORsOHd7Ay+KC2o4PGSxm16 0qPA== X-Gm-Message-State: AO0yUKX91334Gp2Jk7UdiTknvpLIrWijGqZ4fRCznNVN2HEFst+LgFj7 faoVNifSbVxNuYm3YjZjYSKEuQ== X-Google-Smtp-Source: AK7set+DuSjV0TVBYAzpUW5T23+3Dh5B6PpeWaJX6Qu4GYSM7vLMdB6o51w99gLRrR4EhcTYd6O15A== X-Received: by 2002:a05:600c:4ecf:b0:3eb:29fe:70ec with SMTP id g15-20020a05600c4ecf00b003eb29fe70ecmr16501959wmq.27.1678818655642; Tue, 14 Mar 2023 11:30:55 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:fd14:bd52:b53b:d94c]) by smtp.gmail.com with ESMTPSA id k28-20020a05600c1c9c00b003e209b45f6bsm4083938wms.29.2023.03.14.11.30.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Mar 2023 11:30:55 -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 02/14] arm64: dts: qcom: sa8775p: add the pdc node Date: Tue, 14 Mar 2023 19:30:31 +0100 Message-Id: <20230314183043.619997-3-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230314183043.619997-1-brgl@bgdev.pl> References: <20230314183043.619997-1-brgl@bgdev.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Bartosz Golaszewski Add the Power Domain Controller node for SA8775p. Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 41 +++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi index c5b73c591e0f..428d9e0849b8 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi @@ -585,6 +585,47 @@ &config_noc SLAVE_QUP_2 QCOM_ICC_TAG_ALWAYS>, }; }; + pdc: interrupt-controller@b220000 { + compatible = "qcom,sa8775p-pdc", "qcom,pdc"; + reg = <0x0 0x0b220000 0x0 0x30000>, + <0x0 0x17c000f0 0x0 0x64>; + qcom,pdc-ranges = <0 480 40>, + <40 140 14>, + <54 263 1>, + <55 306 4>, + <59 312 3>, + <62 374 2>, + <64 434 2>, + <66 438 2>, + <70 520 1>, + <73 523 1>, + <118 568 6>, + <124 609 3>, + <159 638 1>, + <160 720 3>, + <169 728 30>, + <199 416 2>, + <201 449 1>, + <202 89 1>, + <203 451 1>, + <204 462 1>, + <205 264 1>, + <206 579 1>, + <207 653 1>, + <208 656 1>, + <209 659 1>, + <210 122 1>, + <211 699 1>, + <212 705 1>, + <213 450 1>, + <214 643 2>, + <216 646 5>, + <221 390 5>; + #interrupt-cells = <2>; + interrupt-parent = <&intc>; + interrupt-controller; + }; + intc: interrupt-controller@17a00000 { compatible = "arm,gic-v3"; reg = <0x0 0x17a00000 0x0 0x10000>, /* GICD */ From patchwork Tue Mar 14 18:30:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13174895 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 F3475C7618E for ; Tue, 14 Mar 2023 18:31:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230289AbjCNSbL (ORCPT ); Tue, 14 Mar 2023 14:31:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230326AbjCNSbJ (ORCPT ); Tue, 14 Mar 2023 14:31:09 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27A3E1F5ED for ; Tue, 14 Mar 2023 11:30:58 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id o11-20020a05600c4fcb00b003eb33ea29a8so10842545wmq.1 for ; Tue, 14 Mar 2023 11:30:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1678818656; 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=mfzfaPBvy2iHf+DRsTEsWZvUw3uhdBHb/tIk1eFva8k=; b=jptdwn8EK8j4Em9IgxQcq5UKEO+QZKMjbMGUjGIPOE+hDRjnZbsil+5OpcKsvaWmIY wpSKZEVQ0bapKf9W8tBB267EZfyhgIBFxRSsHfGT4p/3kUgEz+TnjJZMTapxtds18Yyr mzy3AANoRArTrKWenvHq+Kwfz11S1GIA/FxfeCg16sMaIkkZCKNWh/5YHRNeu+B2DG9u CWA7xe13+ske3CO1Frg8aH3S072PnLVkA8LZujcJz4A/pmV32YiPBwKTWtjEx/Si4e2S tVicpz4x3ray/TA+wNCxf7XKS2s+X3KhsB88Nwe3hUzDjklvyNGrGTLGgrvtF3FnmB1e aEOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678818656; 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=mfzfaPBvy2iHf+DRsTEsWZvUw3uhdBHb/tIk1eFva8k=; b=xE+cg4yv/bw5U0VqlrFoBALO5ViCkosgjZE4xv+jYeNtmiu+ZINXle5jT9WL6gXqlR rhG3LWKNo2lz3+tWtX6nqA3IVbZdR+1YkDLOixK4faFCdBIseSCdFI4KNrCMtKRcPDKH Emu5XyjIOJxa6kOZgnJ/j7lUxI1pvT1lmMV2Gk4TWFLkPS1/MrXn0yNohT5ANtieejJc bp9j3Lv0sL5/kEAy3P6pW6BVPfhwhcyVglLnSuAax1stWHx1XruXV7G4aVCkq7Hi6CQe uYv+qGJyPaB/GTYouLb2E1QTMM6ClmzOIS8iV7XLjjBJSFbkD8ifRamQqQINu929WDDz 2hSA== X-Gm-Message-State: AO0yUKUqoZqAAXSplVdv+vBHuI7uXqLcxJ6GL+GFDu+gbgprx67+RH3K z+V29/kqUW6msjl2hPM32/SzcQ== X-Google-Smtp-Source: AK7set/QsBggAASR81HPstv17jWT2SyT/ybiaRFJELtNo/iTKE38tzB+i5v4IdjR0FgMog2gsvyrng== X-Received: by 2002:a05:600c:4448:b0:3dc:1687:9ba2 with SMTP id v8-20020a05600c444800b003dc16879ba2mr15041784wmn.35.1678818656755; Tue, 14 Mar 2023 11:30:56 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:fd14:bd52:b53b:d94c]) by smtp.gmail.com with ESMTPSA id k28-20020a05600c1c9c00b003e209b45f6bsm4083938wms.29.2023.03.14.11.30.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Mar 2023 11:30:56 -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 03/14] arm64: dts: qcom: sa8775p: add the spmi node Date: Tue, 14 Mar 2023 19:30:32 +0100 Message-Id: <20230314183043.619997-4-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230314183043.619997-1-brgl@bgdev.pl> References: <20230314183043.619997-1-brgl@bgdev.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Bartosz Golaszewski Add the SPMI PMIC Arbiter node for SA8775p platforms. Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi index 428d9e0849b8..22c98ebc4c46 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi @@ -943,6 +943,24 @@ apps_smmu: iommu@15000000 { }; }; + spmi_bus: spmi@c440000 { + compatible = "qcom,spmi-pmic-arb"; + reg = <0x0 0x0c440000 0x0 0x1100>, + <0x0 0x0c600000 0x0 0x2000000>, + <0x0 0x0e600000 0x0 0x100000>, + <0x0 0x0e700000 0x0 0xa0000>, + <0x0 0x0c40a000 0x0 0x26000>; + reg-names = "core", "chnls", "obsrvr", "intr", "cnfg"; + qcom,channel = <0>; + qcom,ee = <0>; + interrupts-extended = <&pdc 1 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "periph_irq"; + interrupt-controller; + #interrupt-cells = <4>; + #address-cells = <2>; + #size-cells = <0>; + }; + arch_timer: timer { compatible = "arm,armv8-timer"; interrupts = , From patchwork Tue Mar 14 18:30:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13174897 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 63BF4C05027 for ; Tue, 14 Mar 2023 18:31:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230416AbjCNSbP (ORCPT ); Tue, 14 Mar 2023 14:31:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230374AbjCNSbK (ORCPT ); Tue, 14 Mar 2023 14:31:10 -0400 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B2D02202E for ; Tue, 14 Mar 2023 11:30:59 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id l7-20020a05600c1d0700b003eb5e6d906bso10806633wms.5 for ; Tue, 14 Mar 2023 11:30:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1678818657; 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=kIxBA2zlxML9hOs0dvz6DfCwg7oJrI83UIUnR1uCeBs=; b=EmK746apIdSh2XdjgbFudbJUw7DZowe3fkKEnVOTcm+/waCIPVsMPo5l9XVIZqhEIO QFNPofrD2Wt/8/WEmFgMPOfKG46WUG6a1AgapIsGwUjKpOt/KBWtPBR4QlqpwpZbFzZg 915V6WTJzBBU9t6rcmlxJaWbjy1PC6Z8GY8HtgmGoxQMMRtEumaRbig0x1hYgs9KzMJm zgiEOQC394GKZ+hYtmQ77I4zJ480N9DANqlT9JUtwxGU3AHw2ooJMdDhgIR79U1vQ9Lh GaAb6R+5HZaGdjcacVzUNkE695LrM+TKoXodjCh3ZgioY0UgxFcux1eeH0k15P1H/DFc Myeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678818657; 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=kIxBA2zlxML9hOs0dvz6DfCwg7oJrI83UIUnR1uCeBs=; b=cCUfjjZJcjv8FDzhRMM1i03FFyIVdlHr0pQl/pvRoQ4k/zWWk/6qg0mITIsGDqaFvB E8eelFALBht+Qp2JVU4r7mS5DJwpbmOvAdDBs0eSHa65I54WKQVTuBnEQD0bGHkXS++n eX4h9+gvXT0zIbmpb4GeoAaadU9JccHs5KLEbiUvcQSzgB1TA6IT1meKEZYgpeqoNt2m lmW9zXiqR0ZoRiZtfxxuoRYy9Gp6JvWCAMloRT61Hf1md1gG7gfALrCGe0/ZZmPAKcSm Ddx3HfrvDLJAAeVtW24KLXkg9OWVuKhSuSDASi4/dLIM+aMZ5dq+6iRd+bfgTjWT3cvg XGQw== X-Gm-Message-State: AO0yUKV61axzjR5HQS8PCSM6d4DooKwFn8GSHy7BDkMs7kntKbt0BqJB K7mzOrA3eVGr2AFA9K/vaceNLw== X-Google-Smtp-Source: AK7set84D2+qEChnMMW7hzfFJ0HZv09T5dJ/RFfHz5KNaLX2ov7ZL0fOGx3WxVO4zS+Y8j7bQGU+1w== X-Received: by 2002:a05:600c:4746:b0:3ed:25c4:9 with SMTP id w6-20020a05600c474600b003ed25c40009mr3150753wmo.15.1678818657622; Tue, 14 Mar 2023 11:30:57 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:fd14:bd52:b53b:d94c]) by smtp.gmail.com with ESMTPSA id k28-20020a05600c1c9c00b003e209b45f6bsm4083938wms.29.2023.03.14.11.30.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Mar 2023 11:30:57 -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 , Lee Jones Subject: [PATCH 04/14] dt-bindings: mfd: qcom,spmi-pmic: add compatible for pmm8654au Date: Tue, 14 Mar 2023 19:30:33 +0100 Message-Id: <20230314183043.619997-5-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230314183043.619997-1-brgl@bgdev.pl> References: <20230314183043.619997-1-brgl@bgdev.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Bartosz Golaszewski PMM8654au is the SPMI PMIC variant used on sa8775p-ride. Add a compatible for it. Signed-off-by: Bartosz Golaszewski Cc: Lee Jones Acked-by: Rob Herring --- Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml index 8f076bb622b1..078d47a6ac83 100644 --- a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml +++ b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml @@ -78,6 +78,7 @@ properties: - qcom,pmk8350 - qcom,pmk8550 - qcom,pmm8155au + - qcom,pmm8654au - qcom,pmp8074 - qcom,pmr735a - qcom,pmr735b From patchwork Tue Mar 14 18:30:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13174899 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 1889DC05027 for ; Tue, 14 Mar 2023 18:31:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229905AbjCNSbQ (ORCPT ); Tue, 14 Mar 2023 14:31:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230326AbjCNSbL (ORCPT ); Tue, 14 Mar 2023 14:31:11 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57A2F8A6B for ; Tue, 14 Mar 2023 11:31:00 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id az3-20020a05600c600300b003ed2920d585so3930417wmb.2 for ; Tue, 14 Mar 2023 11:31:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1678818658; 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=7zlKvK/qoHQY6rAwjMUbU+tla4aUvklVHkaE62d6X1o=; b=mAHZfWoHife7osWAwNO1qjf1eVt4tln5Im6PldiMduGLQ+6yF8xbQVPRGTryokoOYM tyDwJvmRrXHKoKmwlLwSuebsVS+SiMCR6np98xw+xyNTllnVxqC5UQRFyLUebAzXVce7 ftS8+C6Qc4XlIC+UOSIMV/6ek8IRbrSpx/BV+pzaLj6mcxHLQyzUndX8C0HLljUFEdJr Pq3g2TmdV8zdbH3GH6BOZEAEX/kZPvPN7vYmX5Rv4MRt1Q7RJcFNValYkbMd4XjXpdRc VvbqwxhkfvVMpw9A5pkufi6nZpqVKa9DOVCXVosNh7DKyOOthkbe9cRUDWJd7TEMyqQz OGLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678818658; 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=7zlKvK/qoHQY6rAwjMUbU+tla4aUvklVHkaE62d6X1o=; b=oTdBVWQ8pk4jQU/2A/iv1nhPUDOTxWCMcO/9PwvVAufVwxh/1nnE+XQVwPzqP83XuJ GRTIQAuKwvw2cet0xheNU60oO1v7sPMhR6SC9c6/8Qf6G44lKvzdiERLyQvicjIGrF5A n3+YR9PDcOxtfqOBTRl5zqlok4zoQRlIWIRDjkeB18N7fouCHZKUazcrmHYLzYLhwI5z M9QDDrFzpyWiIyDv2CznGAfH8VB5JHXGnUXA1LJE/h6KJGE+Y0Zra2MBSO+w7k+47aei f+P0euK9mheD4JU13NIVYOVDPOhCy5JG5aOCTFwSqvmsg3fkuqs9qJXiLQ4LFBVBe0e8 kJow== X-Gm-Message-State: AO0yUKUZnDcGyZjSHgLxaq1Zws1RheyKSSVTos6i8jX7hfBBFfmQG74a mq0TkIS8aaW4TQFUSPcbz3xgPw== X-Google-Smtp-Source: AK7set+2HKkrVGqrTNUg3TAyDMmaIna5LmlK6gJkuIUP2bD5/Hv/QjF56Ha499VKZ5CBqQUCZ2vzgQ== X-Received: by 2002:a05:600c:358a:b0:3e1:e149:b67b with SMTP id p10-20020a05600c358a00b003e1e149b67bmr3037171wmq.18.1678818658568; Tue, 14 Mar 2023 11:30:58 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:fd14:bd52:b53b:d94c]) by smtp.gmail.com with ESMTPSA id k28-20020a05600c1c9c00b003e209b45f6bsm4083938wms.29.2023.03.14.11.30.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Mar 2023 11:30:58 -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 05/14] arm64: dts: qcom: sa8775p: add support for the on-board PMICs Date: Tue, 14 Mar 2023 19:30:34 +0100 Message-Id: <20230314183043.619997-6-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230314183043.619997-1-brgl@bgdev.pl> References: <20230314183043.619997-1-brgl@bgdev.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Bartosz Golaszewski Add a new .dtsi file for sa8775p PMICs and add the four PMICs interfaced to the SoC via SPMI. Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi | 37 +++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi diff --git a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi new file mode 100644 index 000000000000..77e2515a7ab9 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi @@ -0,0 +1,37 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2023, Linaro Limited + */ + +#include +#include + +&spmi_bus { + pmk8775_0: pmic@0 { + compatible = "qcom,pmm8654au", "qcom,spmi-pmic"; + reg = <0x0 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + }; + + pmk8775_1: pmic@2 { + compatible = "qcom,pmm8654au", "qcom,spmi-pmic"; + reg = <0x2 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + }; + + pmk8775_2: pmic@4 { + compatible = "qcom,pmm8654au", "qcom,spmi-pmic"; + reg = <0x4 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + }; + + pmk8775_3: pmic@6 { + compatible = "qcom,pmm8654au", "qcom,spmi-pmic"; + reg = <0x6 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + }; +}; From patchwork Tue Mar 14 18:30:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13174898 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 A421EC76195 for ; Tue, 14 Mar 2023 18:31:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230326AbjCNSbS (ORCPT ); Tue, 14 Mar 2023 14:31:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230393AbjCNSbL (ORCPT ); Tue, 14 Mar 2023 14:31:11 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D4A137558 for ; Tue, 14 Mar 2023 11:31:01 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id o11-20020a05600c4fcb00b003eb33ea29a8so10842656wmq.1 for ; Tue, 14 Mar 2023 11:31:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1678818659; 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=2bIVnlHmt6qvzfXTr0gBom9xZmGvzExFYpzsX6hvpJY=; b=ZewGe8JODcxm8N4lkEAmiZACO9UYNA8LS27Av68xAGVjmTY0Y0qH4+L5NgVK1MKr5k Lw5r98+JhKhss3uxnUSW21Va2cUq9qOyFqYISkZ45yCsQYs7ORGk+0iHQ0WVH9UOp1js qw5reT72dUevLljlqfifNyaf61dLinbFPtB9XNGUNThjlwrvrND7ZPzgIyRPc9ad0VIP SVAErNCyZfNP7619XkHpQn+rkp5xVaMBQwweETgPEMDHejGbmsFWcORJo8+K6t0XsZNP UXeX0zw3pTyJAicF86+JPxsU+yxZJ34hEWVD28ZFDNEb7WvCfAP7myvpvPjHxGugkJAL DVKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678818659; 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=2bIVnlHmt6qvzfXTr0gBom9xZmGvzExFYpzsX6hvpJY=; b=Un64x1aKWLrHwdJiY6ZGfwaZGbnbkioPQOKLCfONRTW6npVFL9gc+XX/gZUyfULZkO fAlTAgb7jLQnkNKrC7VseM+81Cdqvn+l3lKQ2//6nU9BLZJDSECW49BEDtpoDFbwI8Py w4mnZg/Y8fofoLhkLmT0XuFM+k3j/Lev18EWw1kqfr5SmoIfWSzogfocqgYOhz5MXsqA 0yuvEAuLuIeBf4g+eiGvoVxHdEJcaOslKKHzU1pRIMk9blFBB+9+mwC1OUsXNfX8Q2MJ RvqXpPemL5+X8wf8G9ceA+7/ZZ7cn04/OJWXxgUlvmYUgPtZKNJaxp28XrPMddHpdrab 91Ww== X-Gm-Message-State: AO0yUKXzTLTG7SAwFY0hiKP64oREBsf03zRvh6RqCPVuFAnbG6zuJzs+ +5fs5b6Ndc2xQ1hCpMzvoaKXuw== X-Google-Smtp-Source: AK7set/nKHX2wRJy6hNhNP/sgA34E70MD8dHqidIvZL0NhP/gMaiEJgIB8b7sf8ZgG8GrGzmdjOPyQ== X-Received: by 2002:a05:600c:a4c:b0:3e2:589:2512 with SMTP id c12-20020a05600c0a4c00b003e205892512mr14964571wmq.21.1678818659533; Tue, 14 Mar 2023 11:30:59 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:fd14:bd52:b53b:d94c]) by smtp.gmail.com with ESMTPSA id k28-20020a05600c1c9c00b003e209b45f6bsm4083938wms.29.2023.03.14.11.30.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Mar 2023 11:30:59 -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 06/14] arm64: dts: qcom: sa8775p-ride: enable PMIC support Date: Tue, 14 Mar 2023 19:30:35 +0100 Message-Id: <20230314183043.619997-7-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230314183043.619997-1-brgl@bgdev.pl> References: <20230314183043.619997-1-brgl@bgdev.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Bartosz Golaszewski Include the PMIC .dtsi file in the board's .dts to enable PMIC support on sa8775p-ride. Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts index 1020dfd21da2..b7ee4cc676b5 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts +++ b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts @@ -6,6 +6,7 @@ /dts-v1/; #include "sa8775p.dtsi" +#include "sa8775p-pmics.dtsi" / { model = "Qualcomm SA8775P Ride"; From patchwork Tue Mar 14 18:30:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13174900 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 3A326C05027 for ; Tue, 14 Mar 2023 18:31:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230488AbjCNSbY (ORCPT ); Tue, 14 Mar 2023 14:31:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230358AbjCNSbO (ORCPT ); Tue, 14 Mar 2023 14:31:14 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0851F5A904 for ; Tue, 14 Mar 2023 11:31:02 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id bg16-20020a05600c3c9000b003eb34e21bdfso13863189wmb.0 for ; Tue, 14 Mar 2023 11:31:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1678818660; 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=O8nHWyzUWcNj5TqUmFIPsDI0BuBBPY0f4zCvTASv7fA=; b=DaEQJEwR30p7XMMxEdDxMWvcOsfbSnFt0B0M+znt0v1EulXSk9WQGZlMXJx0BmyRiw xm8BWMQ6cP0bBFl4cUmaq7MAOgB34+AB8T6yxhvcBipg9tuKR4wnXBZ8rE9RXt3abjt7 KBXhoLMjcSU33h07HHP8HkOFKNn9LcwuW56fhuzMZ1mkivWjflCAyx7Mrcl7OCTaCn0s J+MI07uUYB4Fiu0qB+Olo0K7lOuYYg+wVLnoQcqwvhIlSYr7hCezeGfJLRq1DPGzTXZn 9VTaf7xdTx+1MaqKOge9T1pKKi5xX9ECPno/XcCSL8H91b+WotVvXwI3yCylHcXdKaNd 9S+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678818660; 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=O8nHWyzUWcNj5TqUmFIPsDI0BuBBPY0f4zCvTASv7fA=; b=0/htX2BcfRbCjtvjyx1VlJMmGgQF8IagIym/jE/N+KjdleInVq5itD3K+ZzrZkZn3J 6nLNI48gDEdDoxyNFRkxo4GhADNHjpyGnCAYS/MmNztOoTqcC+Mupk0OOtF5f/wxbGm0 +koP4coOUvNidZ7a2laNp2GPEnhHA+lWey0Bhw73DewFjS10K//e+vNaDsBLyNTM0Wro XdIt7wAzsTy9iV9dM+pyWkcd3Mstw0Bl7ayZZPUgY9hkmfPsexLUfJ/9e3RYo/GUdMJc xfNFNCAEfMK/Oh5yFGUbATvqfgmlUODuuuhub2L48DlGxvFjOwOsCtzh90MZ0o9WPsiz Cwsg== X-Gm-Message-State: AO0yUKUHQECzTsP9PVXtdc6OIgsU91kBAsBjoAMaPJ8zthlTCWHWTGxN uvasTU3tZXe9nX/9Myxl7F7P2tr3ca0Zk7SuJS8= X-Google-Smtp-Source: AK7set8yLUZp61bF9a/A9A1CuUZehWQDsoqDetDxnDjscJjrxYdgo5bVd3wClgVQWgRxpH75eXD0rQ== X-Received: by 2002:a05:600c:5492:b0:3db:8de:6993 with SMTP id iv18-20020a05600c549200b003db08de6993mr11996731wmb.4.1678818660433; Tue, 14 Mar 2023 11:31:00 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:fd14:bd52:b53b:d94c]) by smtp.gmail.com with ESMTPSA id k28-20020a05600c1c9c00b003e209b45f6bsm4083938wms.29.2023.03.14.11.30.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Mar 2023 11:31:00 -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 07/14] arm64: dts: qcom: sa8775p: add the Power On device node Date: Tue, 14 Mar 2023 19:30:36 +0100 Message-Id: <20230314183043.619997-8-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230314183043.619997-1-brgl@bgdev.pl> References: <20230314183043.619997-1-brgl@bgdev.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Bartosz Golaszewski Add the PON node to PMIC #0 for sa8775p platforms. Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi index 77e2515a7ab9..5d73212fbd16 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi @@ -12,6 +12,13 @@ pmk8775_0: pmic@0 { reg = <0x0 SPMI_USID>; #address-cells = <1>; #size-cells = <0>; + + pmk8775_0_pon: pon@1200 { + compatible = "qcom,pmk8350-pon"; + reg = <0x1200>, <0x800>; + mode-recovery = <0x1>; + mode-bootloader = <0x2>; + }; }; pmk8775_1: pmic@2 { From patchwork Tue Mar 14 18:30:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13174901 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 E39B7C7618E for ; Tue, 14 Mar 2023 18:31:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230511AbjCNSb0 (ORCPT ); Tue, 14 Mar 2023 14:31:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230415AbjCNSbP (ORCPT ); Tue, 14 Mar 2023 14:31:15 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3CCD5F212 for ; Tue, 14 Mar 2023 11:31:02 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id k37so11056080wms.0 for ; Tue, 14 Mar 2023 11:31:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1678818661; 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=dRTaCzYY0Zr8GLr8g1wP4DjAykkl6qzoi7oFjU1DC6s=; b=1iKche64yoAEpkrTLDdKrwTBnwtIxUC0j0z807wsjhXbvqKMTxM7rKFWzGV4Cbj+pf 51feleAWKkPhlbjut4BGYmYgUlO6jJNWQip89ibxb+cWeDRNYdBZ3accu9xIayzI1W8f rnfCw9keND+OKGi61kjHX8T/DrIBn+kI7BdJ1+avPKR1Jg9zqxZtwsZ1/d5qBgyaKS5G eqAAKxeC1K+7a+FQNwmYF0RFF7qoX0n3X+6xqjbQ0p+F6Qp0sgVkgfsG2fLNBPfYo+3P JnZsM9jZaqwR16Tp2HKaebto8KGleqCdMFP+LmX3zSG9LFXmfjlpxoUVUhV7GoXAuLFM K/TQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678818661; 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=dRTaCzYY0Zr8GLr8g1wP4DjAykkl6qzoi7oFjU1DC6s=; b=zljyeDWmBxyk+138SZOzaX3U31lrE7fg6+TQ90pWRJ9jnq0iMuB0Dp+WrpFD+1ZiVM 8sZWTPHHTdeBYrHs42y0iMsiOcDd8n2F+LPkz8NdVJ9QTozE+71aam3BlINW/sVn4rPL kij94R8Z+Lz9nMnhE3TfSZBmcIJ0bQEc22SackJd3IOkxu/m3xJeXJWNssTdgao568aW AkckpY2rLgqpUjWptdS5GdRlCEQnabJVvSp3ifTK5HaWIvAXPv5ADyKzUiNfltnkSX1+ 87DTJ6u97vpFQyvoUicw8c30inYAeypwytPwul6SUFblE90TXAzupjIYWF66u0L+/Cpn nMGQ== X-Gm-Message-State: AO0yUKWluviE5Gzvx6k5Ptpn/Z7y+yhm4Q6/A95U4JVpscY2rqNOuaj9 Z95PMbVF6ULICsbbjIdhkycE0Q== X-Google-Smtp-Source: AK7set9ygbLi5lAPLa6SoEIuFPB4rp3XGRf6Kxb+eyfpg+qEEhTFofTFE4OkREyQDiuRnXuspsWdeg== X-Received: by 2002:a05:600c:4f96:b0:3ed:2702:feea with SMTP id n22-20020a05600c4f9600b003ed2702feeamr5922506wmq.41.1678818661327; Tue, 14 Mar 2023 11:31:01 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:fd14:bd52:b53b:d94c]) by smtp.gmail.com with ESMTPSA id k28-20020a05600c1c9c00b003e209b45f6bsm4083938wms.29.2023.03.14.11.31.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Mar 2023 11:31:00 -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 08/14] arm64: dts: qcom: sa8775p: pmic: add the power key Date: Tue, 14 Mar 2023 19:30:37 +0100 Message-Id: <20230314183043.619997-9-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230314183043.619997-1-brgl@bgdev.pl> References: <20230314183043.619997-1-brgl@bgdev.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Bartosz Golaszewski Add the power key node under the PON node for PMIC #0 on sa8775p. Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi index 5d73212fbd16..874460d087db 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi @@ -18,6 +18,13 @@ pmk8775_0_pon: pon@1200 { reg = <0x1200>, <0x800>; mode-recovery = <0x1>; mode-bootloader = <0x2>; + + pmk8775_0_pon_pwrkey: pwrkey { + compatible = "qcom,pmk8350-pwrkey"; + interrupts-extended = <&spmi_bus 0x0 0x12 0x7 IRQ_TYPE_EDGE_BOTH>; + linux,code = ; + status = "disabled"; + }; }; }; From patchwork Tue Mar 14 18:30:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13174902 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 9B7DFC05027 for ; Tue, 14 Mar 2023 18:31:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231124AbjCNSbd (ORCPT ); Tue, 14 Mar 2023 14:31:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230427AbjCNSbP (ORCPT ); Tue, 14 Mar 2023 14:31:15 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2F4074DCD for ; Tue, 14 Mar 2023 11:31:03 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id c8-20020a05600c0ac800b003ed2f97a63eso948994wmr.3 for ; Tue, 14 Mar 2023 11:31:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1678818662; 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=nMD7g0tqdTqLSKJxM1RNFkLXFG0K4z+6AGBUUNB3lBU=; b=xQmuBuyu/gvlXmwKEoi2t74oInXch4nq4aRaoUskRrHESvcXD4xxkn35CG2y+muY7U 4KszZCMlQwq7Jvy3ArYQ312lmviIG33u9Rswi1G6cLmJogJHdm/cH2uFW/iRb6cMOVV4 8tNcSdbkIlabelZ0XRGsqLwseHmzRrackXXVgate5ZBgqGRZD+kaoTAzu73GzFsFLC7+ ubvkbdzMPYp1ogN4EaPZi8WUbvN4j81yOFJ+aPMNx8Art1IHeBmiBNGULrCGp/Thlt0G 8DKZx18IMCq/GJqEmWCPSQ1/LhzXweq/zzHosNHMe5rXanSHmTDjT9nZQ9OauodaIPYx foDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678818662; 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=nMD7g0tqdTqLSKJxM1RNFkLXFG0K4z+6AGBUUNB3lBU=; b=QFUZgaxTRtzulvgGKlPVGBdNFbbjviWYsJ67YpoGMsed3Pn6Ud2KZhrCRNr+TtiV7N Fh8qjX6kHJMWkIyn81da3eK0uCricbK+pB2wCsOIw+hF+2a4hujdCTWknFNdi9Itsoji Llj7bF+1e9T/6pU91yj0phwf+KGEtLQy4iKalgpQVrfzmQSHczxeevoHeBZbWo1Tmyrc mBxQgaDJpf7Rzzt11QkksGW9MzbqKOYmGCMlOV0Z5ax/1Fa2454iCy/oDoPB2vD0mHjI bhITbv4k3y5a+752Lqt4eMbLRvSaKfmIkmOTQjA9dy4BIDspJaSeYnZ1NC8G0mD4HK9j J1QA== X-Gm-Message-State: AO0yUKXLtpyZ++c6vA0mbUN4kyaT1EmUoAEQjIl5QCxwFrbfJU177wet VknhZwRSQgbd3mbpgy/+Y3BFBg== X-Google-Smtp-Source: AK7set+Y/pYfQIIDKxh9MA8fezE6xjjv+evPe8b7JZ23SqRDScrl7r4KThckS4XzZ0tgGvr5rdr5Kw== X-Received: by 2002:a05:600c:1c27:b0:3ed:2619:6485 with SMTP id j39-20020a05600c1c2700b003ed26196485mr6476108wms.3.1678818662245; Tue, 14 Mar 2023 11:31:02 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:fd14:bd52:b53b:d94c]) by smtp.gmail.com with ESMTPSA id k28-20020a05600c1c9c00b003e209b45f6bsm4083938wms.29.2023.03.14.11.31.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Mar 2023 11:31:01 -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 09/14] arm64: dts: qcom: sa8775p-ride: enable the power key Date: Tue, 14 Mar 2023 19:30:38 +0100 Message-Id: <20230314183043.619997-10-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230314183043.619997-1-brgl@bgdev.pl> References: <20230314183043.619997-1-brgl@bgdev.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Bartosz Golaszewski Enable the power key for sa8775p-ride. Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts index b7ee4cc676b5..396a2543c78a 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts +++ b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts @@ -40,6 +40,10 @@ &qupv3_id_2 { status = "okay"; }; +&pmk8775_0_pon_pwrkey { + status = "okay"; +}; + &sleep_clk { clock-frequency = <32764>; }; From patchwork Tue Mar 14 18:30:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13174903 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 C60FCC74A44 for ; Tue, 14 Mar 2023 18:31:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231153AbjCNSbm (ORCPT ); Tue, 14 Mar 2023 14:31:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230448AbjCNSbP (ORCPT ); Tue, 14 Mar 2023 14:31:15 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B4B596C06 for ; Tue, 14 Mar 2023 11:31:04 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id l12so6961534wrm.10 for ; Tue, 14 Mar 2023 11:31:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1678818663; 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=bxBrX1NWYp+3HnLvrlf897r1N1zZpdXR7rlRu5hhqDg=; b=pICVgj8elx2mFW3eUMi9S092QcWclrWATXpZPnmhUSJXvumj1j249yRmgMGD+cpDDN asU27Etja6slJ5LIWSdErxIUN+Uz5RorT4OW+fUBYXxqOUxKKRP3fCTuUDKJaX20wyBz E6Ym0mhXRSM0arKOtrPRkPct8YnRo3G0IFzKqSW7ngeuyxkmHXuAvrJeDL/9kge1SqTN i3DE+RWkBdxQSqZQPPIv/sjpmxL7vfksw0k8lyOaw7bp0YoZP1GFo4+mwQNLNeebmUsR w+acJ8h2v6w1O/1Sb4SHNjKY0xh7ij/hyivaUtsv2r/PKkmH+CMCZi3cRxTt5e/6KEEK eHBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678818663; 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=bxBrX1NWYp+3HnLvrlf897r1N1zZpdXR7rlRu5hhqDg=; b=G8Ad4HWArM0TSMsTEkXeDtOFOHrrutMBe3/piyv40TeD7Vc5bUw9OJD6kS0DKecqZW Gi+NBjrPmFB4uKJm+btG4chBrLdPsRAbUv6GYISHHLeFL+MfVQ2vRHTo/RQRVAcQ783M afPx6BEhq9LQ+UzMqQeH0OficNHW/nJx7C/3glB2sE14NTfCGVkMX4FgWmKmfl1KVp12 5moC8qKTnp/+T7LkdLUQrA5i11bX81HbeGoVr93AZuEA2heXytXgyHHYeuxJnT6HC8PJ XL6dDn+ra+x6/2zxornSiGE6Xyjla0BzjmBbCxkkwbziDsYHAECSoxS39nSkvUfqtWTL 7Ffg== X-Gm-Message-State: AO0yUKViR3wLi2nponEioClyCpB6jBzhCgJTjglUZCRQpAgx/wl7cn8p 9Ae7s19ODwDjOqNC/2vaYVdW6LTNPWytRAjZKhA= X-Google-Smtp-Source: AK7set+uozuvRtJKYJjlfce49HT6JQqRs8enc2PSqQ6DGStvmUNvbqPQpPsIUkTvTsP8DhpXH85hLg== X-Received: by 2002:adf:e848:0:b0:2ce:ab8b:c29e with SMTP id d8-20020adfe848000000b002ceab8bc29emr7324530wrn.15.1678818663083; Tue, 14 Mar 2023 11:31:03 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:fd14:bd52:b53b:d94c]) by smtp.gmail.com with ESMTPSA id k28-20020a05600c1c9c00b003e209b45f6bsm4083938wms.29.2023.03.14.11.31.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Mar 2023 11:31:02 -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 10/14] arm64: dts: qcom: sa8775p: pmic: add support for the pmm8654 RESIN input Date: Tue, 14 Mar 2023 19:30:39 +0100 Message-Id: <20230314183043.619997-11-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230314183043.619997-1-brgl@bgdev.pl> References: <20230314183043.619997-1-brgl@bgdev.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Bartosz Golaszewski Add the RESIN input for sa8775p platforms' PMIC. Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi index 874460d087db..d55fa5165864 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi @@ -25,6 +25,12 @@ pmk8775_0_pon_pwrkey: pwrkey { linux,code = ; status = "disabled"; }; + + pmk8775_0_pon_resin: resin { + compatible = "qcom,pmk8350-resin"; + interrupts-extended = <&spmi_bus 0x0 0x12 0x6 IRQ_TYPE_EDGE_BOTH>; + status = "disabled"; + }; }; }; From patchwork Tue Mar 14 18:30:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13174904 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 18006C05027 for ; Tue, 14 Mar 2023 18:31:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231173AbjCNSbp (ORCPT ); Tue, 14 Mar 2023 14:31:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230290AbjCNSbQ (ORCPT ); Tue, 14 Mar 2023 14:31:16 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C22FD637E6 for ; Tue, 14 Mar 2023 11:31:05 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id l7-20020a05600c4f0700b003e79fa98ce1so10828880wmq.2 for ; Tue, 14 Mar 2023 11:31:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1678818664; 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=IQCJ+X+YEuYse0CeSshHt8sWYxstXZuzTDTR56rfWH0=; b=wMx91kjMzpT4ihmd6YPGDQBW1ZtNyRDXuEqTIp6J/E8+b5atPQw8p64KjONZ7NneTO F3V2KVC/YZlMyP+AFqzwYnrdFFCnEHr5MpVGeURUGsSICg6WcE3xHBWL+ItA6igjDrFt hOdjKuhC9HdHBWPNwSl9rT7KzFSBOrPcQtX6vBYK5nAeEQzSYPpjYZ70H8CxeyVxUGSI nuiZKuxIsvdgrt97m2JHo8wUrhCc+DpY2F3D4U6NRlb7eTK2m38DC50kVlpjFXBx/Fiw vUM0aHoRel7WOPFK6Y3kIfWxMePr3k5UOXJpWFJvChZHZI4n1K7pEbgIGSdA2GSInZf8 hjoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678818664; 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=IQCJ+X+YEuYse0CeSshHt8sWYxstXZuzTDTR56rfWH0=; b=eeh51X4S3ts0OKRcddm6UvMA84ZWE1XbWU/zSX2gGr3zRe/eYwINS98ouwf2TGYA/p BheOPoc+OM/lSHK6sWzefff8jDJml7Fo3nzRLqqLAzBY7wjuRoJMED1S2+DRfiuvy61i yNHl0ArP/MJElch5AC07tbSYUoZqCeT05PQn60ECX1YwNeoK8keywF0dXTAEsblC7tFr 1prEJSqVqRwf+DZpzWcgwZrZLGYekRfc7I3aRcPvuK374R5rGpk6w4XzagBPpBvQ5dbD yIjZM7yURoqNXoDYo6EB5J1Kpe97CDs+jHZJ/10m0X2OlT6uhGKo7Mjt0SM83WrG0iEG pfcQ== X-Gm-Message-State: AO0yUKUK9wLzEwS5MzPFUBMCnbTX0rOEJHeqgaAnoHvHHi3e69x9IvYK 1G9+HVliPmh7ffBlKomX2Xol5g== X-Google-Smtp-Source: AK7set/qeIP/8mMepwcAWReZMB1wCc+hQ0lBM+LFouWcxDbfUe/Z3N0OOwLjfvtmbsdj9KUOBUW8fA== X-Received: by 2002:a05:600c:1910:b0:3ed:22fb:c87 with SMTP id j16-20020a05600c191000b003ed22fb0c87mr8921801wmq.5.1678818664176; Tue, 14 Mar 2023 11:31:04 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:fd14:bd52:b53b:d94c]) by smtp.gmail.com with ESMTPSA id k28-20020a05600c1c9c00b003e209b45f6bsm4083938wms.29.2023.03.14.11.31.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Mar 2023 11:31:03 -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 11/14] arm64: dts: qcom: sa8775p: pmic: add thermal zones Date: Tue, 14 Mar 2023 19:30:40 +0100 Message-Id: <20230314183043.619997-12-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230314183043.619997-1-brgl@bgdev.pl> References: <20230314183043.619997-1-brgl@bgdev.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Bartosz Golaszewski Add the thermal zones and associated alarm nodes for the PMICs that have them hooked up on sa8775p-ride. Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi | 59 +++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi index d55fa5165864..437cfa8aee2f 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi @@ -6,6 +6,50 @@ #include #include +/ { + thermal-zones { + pm8775_1_thermal: pm8775-1-thermal { + polling-delay-passive = <100>; + polling-delay = <0>; + thermal-sensors = <&pm8775_1_temp_alarm>; + + trips { + trip0 { + temperature = <105000>; + hysteresis = <0>; + type = "passive"; + }; + + trip1 { + temperature = <125000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + + pm8775_3_thermal: pm8775-3-thermal { + polling-delay-passive = <100>; + polling-delay = <0>; + thermal-sensors = <&pm8775_3_temp_alarm>; + + trips { + trip0 { + temperature = <105000>; + hysteresis = <0>; + type = "passive"; + }; + + trip1 { + temperature = <125000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + }; +}; + &spmi_bus { pmk8775_0: pmic@0 { compatible = "qcom,pmm8654au", "qcom,spmi-pmic"; @@ -16,6 +60,7 @@ pmk8775_0: pmic@0 { pmk8775_0_pon: pon@1200 { compatible = "qcom,pmk8350-pon"; reg = <0x1200>, <0x800>; + mode-recovery = <0x1>; mode-bootloader = <0x2>; @@ -39,6 +84,13 @@ pmk8775_1: pmic@2 { reg = <0x2 SPMI_USID>; #address-cells = <1>; #size-cells = <0>; + + pm8775_1_temp_alarm: temp-alarm@a00 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0xa00>; + interrupts-extended = <&spmi_bus 0x2 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; + #thermal-sensor-cells = <0>; + }; }; pmk8775_2: pmic@4 { @@ -53,5 +105,12 @@ pmk8775_3: pmic@6 { reg = <0x6 SPMI_USID>; #address-cells = <1>; #size-cells = <0>; + + pm8775_3_temp_alarm: temp-alarm@a00 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0xa00>; + interrupts-extended = <&spmi_bus 0x6 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; + #thermal-sensor-cells = <0>; + }; }; }; From patchwork Tue Mar 14 18:30:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13174905 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 5B918C6FD1F for ; Tue, 14 Mar 2023 18:31:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231194AbjCNSb5 (ORCPT ); Tue, 14 Mar 2023 14:31:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230396AbjCNSbX (ORCPT ); Tue, 14 Mar 2023 14:31:23 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C18699D52 for ; Tue, 14 Mar 2023 11:31:06 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id m35so1490695wms.4 for ; Tue, 14 Mar 2023 11:31:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1678818665; 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=hnfu4ltYl8F1jZ0009KdabFBU7pxUH3F+Inm6kcRMQ0=; b=485hQ61jDQ8PlsUl9Jqt9Q9N0OVkEnQI8GouysBYgbKWrdeDxnarStmuSf/rUMkEQs fWjESKlmJL0z64Hi7uQ6dSs2euOPhQ7hO+LxUWPYdrG649dE3V1qy+ptdNucj7Zxrg0c QDxd2pOF8p6nmr9MeFVfblqc2Sg6m/GWme6nJAbINFbyH8YixMckULpRrha47zkVCGzQ 3BIlqK/iryIa1HVh5U+QsPfHsNrNF8EObUkmAidNiHWVXTV2DDp2TNw2n9ycFABUPnni n7JLgcbpr4f02lejZFHTYKYGSlFmqOZRZ7k6Nf0dtYtZ2yvA9o0yfJsIe82J9ALjIhJI doAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678818665; 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=hnfu4ltYl8F1jZ0009KdabFBU7pxUH3F+Inm6kcRMQ0=; b=5CDmbg11VgHdXY1/KXZugzH5VaPOwejGjRQ47eicHIB79SFv9MSvigg6Ww0sgO83ML pPxmFYJf4/qFsX3dd6zn4uR1QGJcrRH5VMqlouZZd+X8+aePQ6Jv0BOkGe3m9Dt4EMzY /D+cbu0jKLukKb54HLbxUTBXpWbjsPQAUCnQYSQpX6WoccpcXT9weT8x5boMxFvopDES IOXV5Rq/BHxvLCxJlbxWVAnFaiW0Nctl/rRkVM0h1IffwINHuj+F6v83KTfSs6CiO2Ct OmEM0c/z+X2vFynYjr2666pa417PM59kt1bQ4Lq/pZupS5UH0LStHllpV3OnrI/pimfz Htjg== X-Gm-Message-State: AO0yUKUo2qp8LAmhnC0yjTxoSnwsEhhqtBt3GucDXNBnlOl7O4nxFk5n jnXr/l5UnYvoSutReu4V7BLddQ== X-Google-Smtp-Source: AK7set8fGravp7JJ1UiwqKxbBI6VX8TRvR9oLYuhie5zHE4x/0pn5egOszK7o6QbF7c+d4HNJb9mvw== X-Received: by 2002:a05:600c:4509:b0:3ed:29f7:5b43 with SMTP id t9-20020a05600c450900b003ed29f75b43mr4796338wmo.27.1678818665204; Tue, 14 Mar 2023 11:31:05 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:fd14:bd52:b53b:d94c]) by smtp.gmail.com with ESMTPSA id k28-20020a05600c1c9c00b003e209b45f6bsm4083938wms.29.2023.03.14.11.31.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Mar 2023 11:31:04 -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 , Linus Walleij Subject: [PATCH 12/14] dt-bindings: pinctrl: qcom,pmic-gpio: add compatible for pmm8654au-gpio Date: Tue, 14 Mar 2023 19:30:41 +0100 Message-Id: <20230314183043.619997-13-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230314183043.619997-1-brgl@bgdev.pl> References: <20230314183043.619997-1-brgl@bgdev.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Bartosz Golaszewski Add a new compatible for the GPIO controller on the pm8654au PMIC. It has 12 pins with no holes. Signed-off-by: Bartosz Golaszewski Cc: Linus Walleij Acked-by: Rob Herring Acked-by: Linus Walleij --- Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml index db505fdeac86..512378a2d4fd 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml @@ -58,6 +58,7 @@ properties: - qcom,pmk8350-gpio - qcom,pmk8550-gpio - qcom,pmm8155au-gpio + - qcom,pmm8654au-gpio - qcom,pmp8074-gpio - qcom,pmr735a-gpio - qcom,pmr735b-gpio @@ -439,6 +440,7 @@ $defs: - gpio1-gpio4 for pmk8350 - gpio1-gpio6 for pmk8550 - gpio1-gpio10 for pmm8155au + - gpio1-gpio12 for pmm8654au - gpio1-gpio12 for pmp8074 (holes on gpio1 and gpio12) - gpio1-gpio4 for pmr735a - gpio1-gpio4 for pmr735b From patchwork Tue Mar 14 18:30:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13174906 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 249D4C6FD1F for ; Tue, 14 Mar 2023 18:32:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231243AbjCNScB (ORCPT ); Tue, 14 Mar 2023 14:32:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230521AbjCNSbc (ORCPT ); Tue, 14 Mar 2023 14:31:32 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD05B5D885 for ; Tue, 14 Mar 2023 11:31:07 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id m18-20020a05600c3b1200b003ed2a3d635eso3099269wms.4 for ; Tue, 14 Mar 2023 11:31:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1678818666; 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=JifIy6SXQvMSqoW8+4+hT3YBFsgtzfOOQGnYahfHW4g=; b=W1i3UnlgeTIvRzO2pcQbq1x1SNcmRThsyh1/fsnHrWYmRnPJKGWqlSBW6hqMXUf3DP W44R1ZjxFAmOPsvhf/DKrTs052n6Wcv+d0XqQluFxXs1IoPNhLNGtrXagDpZXnzdFTrR YbfLQF9Jlfq01zm6+yTzZNt/7mvrXdDWxwJ/ghcSdOmIhLpTK9WHzulsbhOylhWLEYt4 zvrHZrcAU1A2ewhzLz9oXUVpNXYd7VWa7ukHG6fnquudpU1/bNQUZJAmszqK06BMdely 9rP5aPjTNIjYPQQlnCNL2uZph0lbFocF4ZeivU16DBJmgrAJlBkmUv8t6qL1p6wZqbbf mdtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678818666; 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=JifIy6SXQvMSqoW8+4+hT3YBFsgtzfOOQGnYahfHW4g=; b=KCfNCjWqhcP0XqhxcZ8W8hqiTlSgsHk/muw2rOe6JQa+VXgXyaB0G/8rAbgUIMuFQh Q5vl9mOKgk7phBGSZeIAAo7SS+ckv9Bm9JQ/ai0WTT2NAkniIXdHhV2duDyhJcV0Yktw /QhPb5haSzND0865Iw7URd1El9d9b3cOGcIYRBJzRwEFGbaXuRCuuOLgYNgR8zulCEOb bMDpRvOBEKKrEzuMAHOSk3Ux5PZeME6Vq1v+9c8FlymIl1VKyfm7xXyZP2oukIbcDXHC 85Xsx6j2YQwpA7ACXjwE+B/HLdRvjVEDY4M4nwyjEGXayyihn/XaeHAo/2rswOhHOM3O oErw== X-Gm-Message-State: AO0yUKXmAKlEUC5+8zu3SXzcuJ6u0VHPJF/14R3njfldH2Ma3FKzTiI3 hRa4hT2QDk6RIsWfhn/iKgll2g== X-Google-Smtp-Source: AK7set+mQKBixNZRuNoiBQ+bXlzTj5JfkNGQJFoVquGVQE9PPzQyxrii4fvTla/n1ikzsD4R20ys/Q== X-Received: by 2002:a05:600c:4452:b0:3e1:374:8b66 with SMTP id v18-20020a05600c445200b003e103748b66mr15026640wmn.40.1678818666079; Tue, 14 Mar 2023 11:31:06 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:fd14:bd52:b53b:d94c]) by smtp.gmail.com with ESMTPSA id k28-20020a05600c1c9c00b003e209b45f6bsm4083938wms.29.2023.03.14.11.31.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Mar 2023 11:31:05 -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 , Linus Walleij Subject: [PATCH 13/14] pinctrl: qcom: spmi-gpio: add support for pmm8654au-gpio Date: Tue, 14 Mar 2023 19:30:42 +0100 Message-Id: <20230314183043.619997-14-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230314183043.619997-1-brgl@bgdev.pl> References: <20230314183043.619997-1-brgl@bgdev.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Bartosz Golaszewski Add support for the GPIO controller present on the pmm8654au PMIC. Signed-off-by: Bartosz Golaszewski Cc: Linus Walleij --- drivers/pinctrl/qcom/pinctrl-spmi-gpio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c index ea3485344f06..0d94175b34f8 100644 --- a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c +++ b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c @@ -1238,6 +1238,7 @@ static const struct of_device_id pmic_gpio_of_match[] = { { .compatible = "qcom,pmk8350-gpio", .data = (void *) 4 }, { .compatible = "qcom,pmk8550-gpio", .data = (void *) 6 }, { .compatible = "qcom,pmm8155au-gpio", .data = (void *) 10 }, + { .compatible = "qcom,pmm8654au-gpio", .data = (void *) 12 }, /* pmp8074 has 12 GPIOs with holes on 1 and 12 */ { .compatible = "qcom,pmp8074-gpio", .data = (void *) 12 }, { .compatible = "qcom,pmr735a-gpio", .data = (void *) 4 }, From patchwork Tue Mar 14 18:30:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13174907 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 C10BCC74A44 for ; Tue, 14 Mar 2023 18:32:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230499AbjCNScD (ORCPT ); Tue, 14 Mar 2023 14:32:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231132AbjCNSbg (ORCPT ); Tue, 14 Mar 2023 14:31:36 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D438DA2C30 for ; Tue, 14 Mar 2023 11:31:08 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id k37so11056255wms.0 for ; Tue, 14 Mar 2023 11:31:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1678818667; 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=G4AMa6Oqf4gT2LvWhoj3//Gdma5toQWQSvKa1CfmIFA=; b=MfpriJTqV7XxmV1DbN+XH1LuZMZxc5ZxvVRiNNADhMQCGEp+jK96jkBJFoiQBmFGwq V7+4ovPI2mAs1NkhnGwuLpI9yppJ5AIq6ZQbKiCNe5ok7nnE+xYFNjeXMvb6xnQd4XW/ EMmfKgKPus/wkcrySLpQgVaDeoNaOMWStIC72e3g298cugZgT8FHqS3CF76ZF4jufZ5z WqVwYsO5V6OiayRQE2hVh03LmPDQCOKsEqTvHjO/SGzWcubnDoNELWWhXtygMehvR1Pe 7LUHwSaKFeP4Vk0cdKadCR9ufs+LEAqCYSATRckai0YwCJlFD6K/xQEEnoAGsMHbLB3p 7GLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678818667; 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=G4AMa6Oqf4gT2LvWhoj3//Gdma5toQWQSvKa1CfmIFA=; b=QPpee4GfnXkyQvZOVjmcjz6f2OxwVepE4VoWIIUubVN6Ju+5JGS87V0LVwmGPDCpxe J/mF3eIjZXS6LgagLJCox+uvNgvyQr2I2MOk16U96P6weCDN2N7m9Ao86Wuw55narOV3 R2ZWzqRfjKvUw3wlY2SKy/2+H5h4PKJ9IYRENOjDo9byZONNkOB5uesef1+N6IUgv4Yv 7jTeEpXJO9xscwxBmKxLjlHicMCQyk+/m0DPVzKdIMrfp6b81u3xqeK76jVkO+sZbGqV 1EQjBl55ZdHOR4MeXnaGIzQWr5s5LTctGrUVq22Y0wg98ZblusEakuA4tW4dHz0tMKAu PPag== X-Gm-Message-State: AO0yUKVBAaTTcaWzujo6gBWVyW3f3oQAHsiACSanID8odcsUkoaoS19s DwgwSHgv1+AxfwyEw6jNr3InYA== X-Google-Smtp-Source: AK7set/sLhpCzzE4tmqIVfeHOmnwAcyar8EBJ+MIbwS2ol79sXUSmUiapA9ffjldZL4BDjOBr9p2CA== X-Received: by 2002:a05:600c:a46:b0:3ed:276d:81a4 with SMTP id c6-20020a05600c0a4600b003ed276d81a4mr6734519wmq.32.1678818666912; Tue, 14 Mar 2023 11:31:06 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:fd14:bd52:b53b:d94c]) by smtp.gmail.com with ESMTPSA id k28-20020a05600c1c9c00b003e209b45f6bsm4083938wms.29.2023.03.14.11.31.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Mar 2023 11:31:06 -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 14/14] arm64: dts: qcom: sa8775p: add PMIC GPIO controller nodes Date: Tue, 14 Mar 2023 19:30:43 +0100 Message-Id: <20230314183043.619997-15-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230314183043.619997-1-brgl@bgdev.pl> References: <20230314183043.619997-1-brgl@bgdev.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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 | 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 437cfa8aee2f..9386a113f1f8 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi @@ -77,6 +77,16 @@ pmk8775_0_pon_resin: resin { status = "disabled"; }; }; + + pm8775_0_gpios: gpio@8800 { + compatible = "qcom,pmm8654au-gpio", "qcom,spmi-gpio"; + reg = <0x8800>; + gpio-controller; + gpio-ranges = <&pm8775_0_gpios 0 0 12>; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; }; pmk8775_1: pmic@2 { @@ -98,6 +108,16 @@ pmk8775_2: pmic@4 { reg = <0x4 SPMI_USID>; #address-cells = <1>; #size-cells = <0>; + + pm8775_2_gpios: gpio@8800 { + compatible = "qcom,pmm8654au-gpio", "qcom,spmi-gpio"; + reg = <0x8800>; + gpio-controller; + gpio-ranges = <&pm8775_2_gpios 0 0 12>; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; }; pmk8775_3: pmic@6 {