From patchwork Mon Mar 20 15:48:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13181508 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 50513C6FD1D for ; Mon, 20 Mar 2023 15:57:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232037AbjCTP5v (ORCPT ); Mon, 20 Mar 2023 11:57:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232042AbjCTP50 (ORCPT ); Mon, 20 Mar 2023 11:57:26 -0400 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95B373CE37 for ; Mon, 20 Mar 2023 08:48:53 -0700 (PDT) Received: by mail-wr1-x42b.google.com with SMTP id y14so10820178wrq.4 for ; Mon, 20 Mar 2023 08:48:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1679327332; 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=wQBrWOWMRyJ3wjDq0yJMqRO2YdabzJXcF1JUT5g0hCM=; b=oWcV8JzzdxXip4NBl0sEP1Becezov8gw6ttzDvqXSH6tTN70W+tSfKmnWq2C/Ne8of FJzS3UBntdhrl/ZyM2y6+tL2Kyp37kKMFoD0/kkf/ntd4ndn9eVz1fS89r3Jnk1A9SOG tzuOuJp7xpPC3lNN9WK8bnS/d744gu+GxLyOMKLSzPvqOZnfKFo5H7iPsdcmCZdpJhfu uyXY+1Cq9tsJTdphfRf2Nz18zxPBVY1WOcjLQk6Pe6q2Y64wKgHP9Kre+KpcaFWRHM8l biiF0MArvAuc6AzhZlulI6puI1KG4J7FYdf9hC0kqn3lmoNkOwj5XKlhYfgfs0bpsssR xYTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679327332; 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=wQBrWOWMRyJ3wjDq0yJMqRO2YdabzJXcF1JUT5g0hCM=; b=sOUbM30TZmGUkUQyxMKQ4nFXnMsag6SnJL2aWdP0PqpvwJAN2bT0u7KVff4q4SJsz1 COPANixfQqe1onptnVd9MWVnzCpvNEV+El+2QQYZBZlI1kOUyypEILKUk8OGF4uYJsuQ 4mlhgBNJzxvkQMWRevLJg38vQ3hMpR7MQENJPhYYKpDrOsvqqAJIBjpmF3TaFLIAYDtA 4W4RQtLg5XiJO2GzidKRzcErLaZ++l5gR2XhOHoLYlaZCyMSf+ppPzoRByJqjQ+rILEB dgn5WQ55zLmPJWddurYKqITagJFpAPQaoa6MB8z+vzBcAm7Z4HqgCxwdSQXvaKu6MO9n YjJw== X-Gm-Message-State: AO0yUKX7URa/j8IFbomVfGg/MqwS5y/wiKYq/+t3MfFKCYfkJ7Ox68SL 1CQnrGP4vjwBU00t/avQLYZcSw== X-Google-Smtp-Source: AK7set+lvmuy/Fsjw3E59GUjp5+8DqDwzar9JJBlr6msE6Roi3Nf9qP6DN//uhEZD3bUgm8Tym30lA== X-Received: by 2002:adf:dc51:0:b0:2cf:ea5d:f607 with SMTP id m17-20020adfdc51000000b002cfea5df607mr13953804wrj.17.1679327331794; Mon, 20 Mar 2023 08:48:51 -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.48.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 08:48:51 -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 v2 01/15] arm64: dts: qcom: sa8775p: pad reg properties to 8 digits Date: Mon, 20 Mar 2023 16:48:27 +0100 Message-Id: <20230320154841.327908-2-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 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Bartosz Golaszewski The file has inconsistent padding of the address part of soc node children's reg properties. Fix it. Signed-off-by: Bartosz Golaszewski Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi index c5b73c591e0f..5aa28a3b12ae 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi @@ -440,7 +440,7 @@ soc: soc@0 { gcc: clock-controller@100000 { compatible = "qcom,sa8775p-gcc"; - reg = <0x0 0x100000 0x0 0xc7018>; + reg = <0x0 0x00100000 0x0 0xc7018>; #clock-cells = <1>; #reset-cells = <1>; #power-domain-cells = <1>; @@ -464,7 +464,7 @@ gcc: clock-controller@100000 { ipcc: mailbox@408000 { compatible = "qcom,sa8775p-ipcc", "qcom,ipcc"; - reg = <0x0 0x408000 0x0 0x1000>; + reg = <0x0 0x00408000 0x0 0x1000>; interrupts = ; interrupt-controller; #interrupt-cells = <3>; @@ -473,7 +473,7 @@ ipcc: mailbox@408000 { qupv3_id_1: geniqup@ac0000 { compatible = "qcom,geni-se-qup"; - reg = <0x0 0xac0000 0x0 0x6000>; + reg = <0x0 0x00ac0000 0x0 0x6000>; #address-cells = <2>; #size-cells = <2>; ranges; @@ -485,7 +485,7 @@ qupv3_id_1: geniqup@ac0000 { uart10: serial@a8c000 { compatible = "qcom,geni-uart"; - reg = <0x0 0xa8c000 0x0 0x4000>; + reg = <0x0 0x00a8c000 0x0 0x4000>; interrupts = ; clock-names = "se"; clocks = <&gcc GCC_QUPV3_WRAP1_S3_CLK>; @@ -735,7 +735,7 @@ rpmhpd_opp_turbo_l1: opp-9 { tcsr_mutex: hwlock@1f40000 { compatible = "qcom,tcsr-mutex"; - reg = <0x0 0x1f40000 0x0 0x20000>; + reg = <0x0 0x01f40000 0x0 0x20000>; #hwlock-cells = <1>; }; @@ -754,7 +754,7 @@ cpufreq_hw: cpufreq@18591000 { tlmm: pinctrl@f000000 { compatible = "qcom,sa8775p-tlmm"; - reg = <0x0 0xf000000 0x0 0x1000000>; + reg = <0x0 0x0f000000 0x0 0x1000000>; interrupts = ; gpio-controller; #gpio-cells = <2>; From patchwork Mon Mar 20 15:48:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13181509 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 4E626C7619A for ; Mon, 20 Mar 2023 15:57:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232304AbjCTP5x (ORCPT ); Mon, 20 Mar 2023 11:57:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229696AbjCTP52 (ORCPT ); Mon, 20 Mar 2023 11:57:28 -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 57A483B239 for ; Mon, 20 Mar 2023 08:48:54 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id i9so10824310wrp.3 for ; Mon, 20 Mar 2023 08:48:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1679327333; 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=SsKc7FFFdalJIV9dCkij4wY4vcv7EXBiScT7/uI+2a0=; b=w09DTQq6RRzT1IAc25UmK6hdK8XeWr/LvBYlvt1Dw1A65MqzZL/dk6TGJ4rXJTcVyZ AHkKni0wj4aizsqy+VEoJLADXOLWkgbVUfOktL07OTpRzr+5TY7V8ardqqV80U41U3zX nXpC589j7yP7t83h280D6WxMSWJg3/vECy9mrYMVdRabMmQkg5PcZ3Vw7NMGp5J88E6y wfOT6rHZNbTejDfLojE3yO6FgT1sFM2PvW4uJGJXv7yhnHf62rP3aFDfxBQc2rqzfrN0 6Yg4I3YK2D4MVaPytrKMQy9pmEz5rqBa82+9QNFa28shcguB7qYlc0VrIV42/tptPKZo lyOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679327333; 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=SsKc7FFFdalJIV9dCkij4wY4vcv7EXBiScT7/uI+2a0=; b=fx1VyC4Sh9u5z1cQFsF6DzTAZwyUkZYJELGoeGLFrAI0FpziSvkiap1DZ3606VVwu5 nSg2y0FxyQPJMzLt5zA6vlcnD8JZsJVDu2IMcLDprLqConPFKHo6psv+rWRCoHkZkORZ xSM+jglDtwMknH6hSsvukCxBmXNz/+jFhtu9fEKtDNHyML4RC9jQTtgbLtWbrA3vmHfz pkgteVSMp+pMHPOc9pDsbvWNNUMQwwIeKNbrqkKcIpXHUk9DNBAzERoOHDs9rYOI1rZ8 DuOE/dgCutwc7fzcOOMrvx9ej923Rlu41o6ecjOBLgSxsvJhRONZasXt3VP+N7I/gOmx 5ToQ== X-Gm-Message-State: AO0yUKVKNLaVzWL9jIt5oLPxENlPWR2zinvHmXqGIHXd8AoXB8mrK8xS X6CKcaUbV1XQA25Y60wYkM1nRQ== X-Google-Smtp-Source: AK7set/P/5bd4ZLSTK8UIhwgqiSGSvZkbXGOC9n5sJmP7yy11KzEya16YPHulcsAxz+C6+/aQfhGzg== X-Received: by 2002:adf:db43:0:b0:2d1:5698:3f6e with SMTP id f3-20020adfdb43000000b002d156983f6emr12227488wrj.58.1679327332742; Mon, 20 Mar 2023 08:48:52 -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.48.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 08:48:52 -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 v2 02/15] arm64: dts: qcom: sa8775p: sort soc nodes by reg property Date: Mon, 20 Mar 2023 16:48:28 +0100 Message-Id: <20230320154841.327908-3-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 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Bartosz Golaszewski Sort all children of the soc node by the first address in their reg property. This was mostly already the case but there were some nodes that didn't follow it so fix it now for consistency. Signed-off-by: Bartosz Golaszewski Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 394 +++++++++++++------------- 1 file changed, 197 insertions(+), 197 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi index 5aa28a3b12ae..296ba69b81ab 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi @@ -471,50 +471,6 @@ ipcc: mailbox@408000 { #mbox-cells = <2>; }; - qupv3_id_1: geniqup@ac0000 { - compatible = "qcom,geni-se-qup"; - reg = <0x0 0x00ac0000 0x0 0x6000>; - #address-cells = <2>; - #size-cells = <2>; - ranges; - clock-names = "m-ahb", "s-ahb"; - clocks = <&gcc GCC_QUPV3_WRAP_1_M_AHB_CLK>, - <&gcc GCC_QUPV3_WRAP_1_S_AHB_CLK>; - iommus = <&apps_smmu 0x443 0x0>; - status = "disabled"; - - uart10: serial@a8c000 { - compatible = "qcom,geni-uart"; - reg = <0x0 0x00a8c000 0x0 0x4000>; - interrupts = ; - clock-names = "se"; - clocks = <&gcc GCC_QUPV3_WRAP1_S3_CLK>; - interconnect-names = "qup-core", "qup-config"; - interconnects = <&clk_virt MASTER_QUP_CORE_1 0 - &clk_virt SLAVE_QUP_CORE_1 0>, - <&gem_noc MASTER_APPSS_PROC 0 - &config_noc SLAVE_QUP_1 0>; - power-domains = <&rpmhpd SA8775P_CX>; - operating-points-v2 = <&qup_opp_table_100mhz>; - status = "disabled"; - }; - - uart12: serial@a94000 { - compatible = "qcom,geni-uart"; - reg = <0x0 0x00a94000 0x0 0x4000>; - interrupts = ; - clocks = <&gcc GCC_QUPV3_WRAP1_S5_CLK>; - clock-names = "se"; - interconnects = <&clk_virt MASTER_QUP_CORE_1 QCOM_ICC_TAG_ALWAYS - &clk_virt SLAVE_QUP_CORE_1 QCOM_ICC_TAG_ALWAYS>, - <&gem_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ALWAYS - &config_noc SLAVE_QUP_1 QCOM_ICC_TAG_ALWAYS>; - interconnect-names = "qup-core", "qup-config"; - power-domains = <&rpmhpd SA8775P_CX>; - status = "disabled"; - }; - }; - qupv3_id_2: geniqup@8c0000 { compatible = "qcom,geni-se-qup"; reg = <0x0 0x008c0000 0x0 0x6000>; @@ -585,173 +541,56 @@ &config_noc SLAVE_QUP_2 QCOM_ICC_TAG_ALWAYS>, }; }; - intc: interrupt-controller@17a00000 { - compatible = "arm,gic-v3"; - reg = <0x0 0x17a00000 0x0 0x10000>, /* GICD */ - <0x0 0x17a60000 0x0 0x100000>; /* GICR * 8 */ - interrupt-controller; - #interrupt-cells = <3>; - interrupts = ; - #redistributor-regions = <1>; - redistributor-stride = <0x0 0x20000>; - }; - - memtimer: timer@17c20000 { - compatible = "arm,armv7-timer-mem"; - reg = <0x0 0x17c20000 0x0 0x1000>; - ranges = <0x0 0x0 0x0 0x20000000>; - #address-cells = <1>; - #size-cells = <1>; - - frame@17c21000 { - reg = <0x17c21000 0x1000>, - <0x17c22000 0x1000>; - interrupts = , - ; - frame-number = <0>; - }; - - frame@17c23000 { - reg = <0x17c23000 0x1000>; - interrupts = ; - frame-number = <1>; - status = "disabled"; - }; - - frame@17c25000 { - reg = <0x17c25000 0x1000>; - interrupts = ; - frame-number = <2>; - status = "disabled"; - }; - - frame@17c27000 { - reg = <0x17c27000 0x1000>; - interrupts = ; - frame-number = <3>; - status = "disabled"; - }; - - frame@17c29000 { - reg = <0x17c29000 0x1000>; - interrupts = ; - frame-number = <4>; - status = "disabled"; - }; + qupv3_id_1: geniqup@ac0000 { + compatible = "qcom,geni-se-qup"; + reg = <0x0 0x00ac0000 0x0 0x6000>; + #address-cells = <2>; + #size-cells = <2>; + ranges; + clock-names = "m-ahb", "s-ahb"; + clocks = <&gcc GCC_QUPV3_WRAP_1_M_AHB_CLK>, + <&gcc GCC_QUPV3_WRAP_1_S_AHB_CLK>; + iommus = <&apps_smmu 0x443 0x0>; + status = "disabled"; - frame@17c2b000 { - reg = <0x17c2b000 0x1000>; - interrupts = ; - frame-number = <5>; + uart10: serial@a8c000 { + compatible = "qcom,geni-uart"; + reg = <0x0 0x00a8c000 0x0 0x4000>; + interrupts = ; + clock-names = "se"; + clocks = <&gcc GCC_QUPV3_WRAP1_S3_CLK>; + interconnect-names = "qup-core", "qup-config"; + interconnects = <&clk_virt MASTER_QUP_CORE_1 0 + &clk_virt SLAVE_QUP_CORE_1 0>, + <&gem_noc MASTER_APPSS_PROC 0 + &config_noc SLAVE_QUP_1 0>; + power-domains = <&rpmhpd SA8775P_CX>; + operating-points-v2 = <&qup_opp_table_100mhz>; status = "disabled"; }; - frame@17c2d000 { - reg = <0x17c2d000 0x1000>; - interrupts = ; - frame-number = <6>; + uart12: serial@a94000 { + compatible = "qcom,geni-uart"; + reg = <0x0 0x00a94000 0x0 0x4000>; + interrupts = ; + clocks = <&gcc GCC_QUPV3_WRAP1_S5_CLK>; + clock-names = "se"; + interconnects = <&clk_virt MASTER_QUP_CORE_1 QCOM_ICC_TAG_ALWAYS + &clk_virt SLAVE_QUP_CORE_1 QCOM_ICC_TAG_ALWAYS>, + <&gem_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ALWAYS + &config_noc SLAVE_QUP_1 QCOM_ICC_TAG_ALWAYS>; + interconnect-names = "qup-core", "qup-config"; + power-domains = <&rpmhpd SA8775P_CX>; status = "disabled"; }; }; - apps_rsc: rsc@18200000 { - compatible = "qcom,rpmh-rsc"; - reg = <0x0 0x18200000 0x0 0x10000>, - <0x0 0x18210000 0x0 0x10000>, - <0x0 0x18220000 0x0 0x10000>; - reg-names = "drv-0", "drv-1", "drv-2"; - interrupts = , - , - ; - qcom,tcs-offset = <0xd00>; - qcom,drv-id = <2>; - qcom,tcs-config = , - , - , - ; - label = "apps_rsc"; - - apps_bcm_voter: bcm-voter { - compatible = "qcom,bcm-voter"; - }; - - rpmhcc: clock-controller { - compatible = "qcom,sa8775p-rpmh-clk"; - #clock-cells = <1>; - clock-names = "xo"; - clocks = <&xo_board_clk>; - }; - - rpmhpd: power-controller { - compatible = "qcom,sa8775p-rpmhpd"; - #power-domain-cells = <1>; - operating-points-v2 = <&rpmhpd_opp_table>; - - rpmhpd_opp_table: opp-table { - compatible = "operating-points-v2"; - - rpmhpd_opp_ret: opp-0 { - opp-level = ; - }; - - rpmhpd_opp_min_svs: opp-1 { - opp-level = ; - }; - - rpmhpd_opp_low_svs: opp2 { - opp-level = ; - }; - - rpmhpd_opp_svs: opp3 { - opp-level = ; - }; - - rpmhpd_opp_svs_l1: opp-4 { - opp-level = ; - }; - - rpmhpd_opp_nom: opp-5 { - opp-level = ; - }; - - rpmhpd_opp_nom_l1: opp-6 { - opp-level = ; - }; - - rpmhpd_opp_nom_l2: opp-7 { - opp-level = ; - }; - - rpmhpd_opp_turbo: opp-8 { - opp-level = ; - }; - - rpmhpd_opp_turbo_l1: opp-9 { - opp-level = ; - }; - }; - }; - }; - tcsr_mutex: hwlock@1f40000 { compatible = "qcom,tcsr-mutex"; reg = <0x0 0x01f40000 0x0 0x20000>; #hwlock-cells = <1>; }; - cpufreq_hw: cpufreq@18591000 { - compatible = "qcom,sa8775p-cpufreq-epss", - "qcom,cpufreq-epss"; - reg = <0x0 0x18591000 0x0 0x1000>, - <0x0 0x18593000 0x0 0x1000>; - reg-names = "freq-domain0", "freq-domain1"; - - clocks = <&rpmhcc RPMH_CXO_CLK>, <&gcc GCC_GPLL0>; - clock-names = "xo", "alternate"; - - #freq-domain-cells = <1>; - }; - tlmm: pinctrl@f000000 { compatible = "qcom,sa8775p-tlmm"; reg = <0x0 0x0f000000 0x0 0x1000000>; @@ -900,6 +739,167 @@ apps_smmu: iommu@15000000 { , ; }; + + intc: interrupt-controller@17a00000 { + compatible = "arm,gic-v3"; + reg = <0x0 0x17a00000 0x0 0x10000>, /* GICD */ + <0x0 0x17a60000 0x0 0x100000>; /* GICR * 8 */ + interrupt-controller; + #interrupt-cells = <3>; + interrupts = ; + #redistributor-regions = <1>; + redistributor-stride = <0x0 0x20000>; + }; + + memtimer: timer@17c20000 { + compatible = "arm,armv7-timer-mem"; + reg = <0x0 0x17c20000 0x0 0x1000>; + ranges = <0x0 0x0 0x0 0x20000000>; + #address-cells = <1>; + #size-cells = <1>; + + frame@17c21000 { + reg = <0x17c21000 0x1000>, + <0x17c22000 0x1000>; + interrupts = , + ; + frame-number = <0>; + }; + + frame@17c23000 { + reg = <0x17c23000 0x1000>; + interrupts = ; + frame-number = <1>; + status = "disabled"; + }; + + frame@17c25000 { + reg = <0x17c25000 0x1000>; + interrupts = ; + frame-number = <2>; + status = "disabled"; + }; + + frame@17c27000 { + reg = <0x17c27000 0x1000>; + interrupts = ; + frame-number = <3>; + status = "disabled"; + }; + + frame@17c29000 { + reg = <0x17c29000 0x1000>; + interrupts = ; + frame-number = <4>; + status = "disabled"; + }; + + frame@17c2b000 { + reg = <0x17c2b000 0x1000>; + interrupts = ; + frame-number = <5>; + status = "disabled"; + }; + + frame@17c2d000 { + reg = <0x17c2d000 0x1000>; + interrupts = ; + frame-number = <6>; + status = "disabled"; + }; + }; + + apps_rsc: rsc@18200000 { + compatible = "qcom,rpmh-rsc"; + reg = <0x0 0x18200000 0x0 0x10000>, + <0x0 0x18210000 0x0 0x10000>, + <0x0 0x18220000 0x0 0x10000>; + reg-names = "drv-0", "drv-1", "drv-2"; + interrupts = , + , + ; + qcom,tcs-offset = <0xd00>; + qcom,drv-id = <2>; + qcom,tcs-config = , + , + , + ; + label = "apps_rsc"; + + apps_bcm_voter: bcm-voter { + compatible = "qcom,bcm-voter"; + }; + + rpmhcc: clock-controller { + compatible = "qcom,sa8775p-rpmh-clk"; + #clock-cells = <1>; + clock-names = "xo"; + clocks = <&xo_board_clk>; + }; + + rpmhpd: power-controller { + compatible = "qcom,sa8775p-rpmhpd"; + #power-domain-cells = <1>; + operating-points-v2 = <&rpmhpd_opp_table>; + + rpmhpd_opp_table: opp-table { + compatible = "operating-points-v2"; + + rpmhpd_opp_ret: opp-0 { + opp-level = ; + }; + + rpmhpd_opp_min_svs: opp-1 { + opp-level = ; + }; + + rpmhpd_opp_low_svs: opp2 { + opp-level = ; + }; + + rpmhpd_opp_svs: opp3 { + opp-level = ; + }; + + rpmhpd_opp_svs_l1: opp-4 { + opp-level = ; + }; + + rpmhpd_opp_nom: opp-5 { + opp-level = ; + }; + + rpmhpd_opp_nom_l1: opp-6 { + opp-level = ; + }; + + rpmhpd_opp_nom_l2: opp-7 { + opp-level = ; + }; + + rpmhpd_opp_turbo: opp-8 { + opp-level = ; + }; + + rpmhpd_opp_turbo_l1: opp-9 { + opp-level = ; + }; + }; + }; + }; + + cpufreq_hw: cpufreq@18591000 { + compatible = "qcom,sa8775p-cpufreq-epss", + "qcom,cpufreq-epss"; + reg = <0x0 0x18591000 0x0 0x1000>, + <0x0 0x18593000 0x0 0x1000>; + reg-names = "freq-domain0", "freq-domain1"; + + clocks = <&rpmhcc RPMH_CXO_CLK>, <&gcc GCC_GPLL0>; + clock-names = "xo", "alternate"; + + #freq-domain-cells = <1>; + }; }; arch_timer: timer { From patchwork Mon Mar 20 15:48:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13181511 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 D0721C6FD1D for ; Mon, 20 Mar 2023 15:58:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231477AbjCTP55 (ORCPT ); Mon, 20 Mar 2023 11:57:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231479AbjCTP5a (ORCPT ); Mon, 20 Mar 2023 11:57:30 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D1903847D for ; Mon, 20 Mar 2023 08:49:01 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id j24so1907727wrd.0 for ; Mon, 20 Mar 2023 08:49:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1679327333; 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=TFagH7Wy467yArlN8PfToUzWlF73GJmp8tPyB6uSnJQ=; b=vnmRwAYvwZyssqyU9wLZpzq8nIWxTaGZXQlRnxm1fXwsQ593+tpR2tkU5vE+7zlbAi sGVK89/px4tfIjb4mW5gn7a8lG1okwSze+/7lk2aiCQHFlsNLiJfKacOCf7MajHNFg7Q y0+j2bA79u8J++dxDeOTkWVqhzKZgZ56OUu+oLm2PHYxPHEh/YtbW6/dexC3w5NbdxZR NF14xScb1aSpHH7lf8/bd4OZ0+ln98QhkaT/XYx99aw2YHw1n0mBS/q5N0xi1qECW5JQ btClEg8KgYN4BunpWAvboGjvLVvN2fksb7DF6OssZ0h2ayAmnPJ+97lnhxnwkjNUsq7c 4WRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679327333; 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=TFagH7Wy467yArlN8PfToUzWlF73GJmp8tPyB6uSnJQ=; b=EfLFS1prEdnznCE1+7O2n9V6Fot+Ad0qY4tIdBmUwv3KewobMyQlYjf4aJxO8WHrtP 0Qoc+TjhvtXBouiSxJTnunZcYvFmEUeCxcBrghas7+HJEEWbHRvpEVz7n0HjZ7jZUdzf I/J8YZi5mEfuk/XkLPLxmLsBk5b/pWeTai/4gpuYIv2Zyb+uTjWhE6rAkrNLwRYe6WOc Dpa3HtOQDofpNrF8QZ3Y8VH9NMpU8Z1KqJKtG1K1WGLj1OzJVlEZRdUplMQZpTDuvlJC 6cfAqO6zrthlwl1xEiRAh2yR8xOKUeLZcFMzs8+i96H6bwKgJ4ApqRcj8BxcEf/w46NE Oe5g== X-Gm-Message-State: AO0yUKWCXE2XL4QNGsL6GmdxK8EYrlbfkt2EJWR8H1SIPrPMdEEQWjFv d1wTp++qaEepwgfxuzVFSti2BA== X-Google-Smtp-Source: AK7set8VjWoOGZp5xF04nkSq+DWMPKhBwqP/Ha8x+7e4jjE+1/rOXUm2nzJZNtKSqaXjPHP6a1dHRw== X-Received: by 2002:adf:e4d2:0:b0:2c7:fc61:12d4 with SMTP id v18-20020adfe4d2000000b002c7fc6112d4mr13373767wrm.47.1679327333782; Mon, 20 Mar 2023 08:48:53 -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.48.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 08:48:53 -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 , Krzysztof Kozlowski Subject: [PATCH v2 03/15] dt-bindings: interrupt-controller: qcom-pdc: add compatible for sa8775p Date: Mon, 20 Mar 2023 16:48:29 +0100 Message-Id: <20230320154841.327908-4-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 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 Mon Mar 20 15:48: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: 13181512 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 F41E4C7619A for ; Mon, 20 Mar 2023 15:58:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231398AbjCTP57 (ORCPT ); Mon, 20 Mar 2023 11:57:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231745AbjCTP5c (ORCPT ); Mon, 20 Mar 2023 11:57:32 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BAEB38654 for ; Mon, 20 Mar 2023 08:49:01 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id m2so10817063wrh.6 for ; Mon, 20 Mar 2023 08:49:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1679327334; 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=XQr/OUg3XddVb1DIA1hszXHQGXx64+DAC9AKsawwCi0=; b=gbu7wnyZ1SMWjQkKZ9UlUaFuhu6gvYQY3R3aitHzbK2C7yOjgrGprYwoex8URZunTM eckEYo/fotUblWFgg/QGGXyqu/jf3K8WYt6cVmOHnv0TI8x1bv5SRgOeAWa2XV8/3AZ8 E3mdhaTAqjiETh/P35Tkj5E4F5UStDVw8DrqUa0T4i5qwnWCxwe8A5u765MFj6oUkpBu HcSujLr3VniVMW5dc6nZ6s+DKTUcNjzOYqUyh2PLvHXugCYjaPPWJA+OvqOCewu7QPoV HqIGhHgQdNYPOqo9HR2uJwsPbHcMYa/m95UU8u68epK8/2qxqWMFT5zHISo3JVS1mM3k QOFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679327334; 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=XQr/OUg3XddVb1DIA1hszXHQGXx64+DAC9AKsawwCi0=; b=wbv3/TZbMyF8iiH5NOgGLRyXbr8IOTMvHcXJX0j0tiE8wG1aHE04xtwAN76E7UusH4 2JmtdFT9bYzmo8PRMjFcEBxgVS5O+nDE5CSawrKfG8INW9Pq8H0u+De687EmlGBe3GKz WQK4+sSU0bTbmhTb2HFLrFexNOfUhOM8gDXul/+DFMMC1gWuT/8BiFs7S92+ADfhb2In BwjPtjuVPL06eEHUh4R/ne+czFub55eKvM0BfogYilRNIV8sNTxql8msWhK19JHHN5Fc 2lVHYeAV9ZfqMYe/Zf/8L5UZ16ci87QB3rGwn9mWSiF5kqpofwj/CcRKVFBjNLDdrdZ5 EZVg== X-Gm-Message-State: AO0yUKWIy3mD2V3LWaAhst5W7gh44fEEjToZ07+KWdb/JcqW/fH7ZyMr v9CkdXnvn0FqQUQ5JtUB8QKcyw== X-Google-Smtp-Source: AK7set89ybRH+53v7phmMdibqdCHdLP3lqCNFkZoXdTE2UZkK3YMwBan2/1sIbpER1dZbzz8/lRe1A== X-Received: by 2002:adf:de10:0:b0:2cf:ea38:ef29 with SMTP id b16-20020adfde10000000b002cfea38ef29mr14344325wrm.44.1679327334698; Mon, 20 Mar 2023 08:48:54 -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.48.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 08:48: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 Subject: [PATCH v2 04/15] arm64: dts: qcom: sa8775p: add the pdc node Date: Mon, 20 Mar 2023 16:48:30 +0100 Message-Id: <20230320154841.327908-5-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 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 296ba69b81ab..797af99227e4 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi @@ -591,6 +591,47 @@ tcsr_mutex: hwlock@1f40000 { #hwlock-cells = <1>; }; + 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; + }; + tlmm: pinctrl@f000000 { compatible = "qcom,sa8775p-tlmm"; reg = <0x0 0x0f000000 0x0 0x1000000>; From patchwork Mon Mar 20 15:48: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: 13181513 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 7953CC7618D for ; Mon, 20 Mar 2023 15:58:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232956AbjCTP6S (ORCPT ); Mon, 20 Mar 2023 11:58:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232206AbjCTP5j (ORCPT ); Mon, 20 Mar 2023 11:57:39 -0400 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16FF93D093 for ; Mon, 20 Mar 2023 08:49:03 -0700 (PDT) Received: by mail-wr1-x42b.google.com with SMTP id t15so10813647wrz.7 for ; Mon, 20 Mar 2023 08:49:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1679327335; 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=x6CTb+E4iu+Wlou9LJQ1pTKkWHscAfoc40/YJaJmIXE=; b=qUfLrUyhH2rLg+UyNN/4l1+SWqTgH5QXoHzlKS6UjDttBZfYR7KNeFz3t4U0WyxbZ4 otnRIS8jlvcoin2AyJDDNU6/umzPDpy0+wm8G0nwy6aOEaEWVNKT0zFBk9dGucXcgfkq w/5KE+J+CBmkpwP7D0MY7rd73nP0cKsCoalXQIhE087NP7wK/aN7ZjRs/T5N1yZIXUuC yP8/pfLdMz5B1hlPdQFfwCwjbwKscuCzN0UKmFfzTB5eutCByqcAjyz6/nFtUjsts4mI 5tchU7eixBmlUREN8mcrMJeLUU8aujcAtrfGmoVfVSnnCLGvyPQAIm53LJcJb28z2Uwc FIbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679327335; 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=x6CTb+E4iu+Wlou9LJQ1pTKkWHscAfoc40/YJaJmIXE=; b=G9jvUz7gI9+z3ISeqRl3W3pMGaDr1Ne82rzLs1nzQvPPPRBukHCxzzCGjhyylylhOR kTTbz4+++Pf7kHeJ4/DGCWuYYcazLM5efHpKIY9UmYi2YdDnnTsQbEAOfifkz5Axgxsk yXg0cMlGb7d/PVabSh4Y+B01b5/tRkIEds0mzua6BBa2v8dMNvu3yfEfTar7+q78Uaov j+mk1EHp1/WW7J98N2oxlWoerJHJW5IDcate0Upv8OVPch5LrMeZM3XOpl87WFpTuE5k iAJnhJQwHI1EGV0jvKmVO3DuFNPbfUVCufztE4XNWcPjjLOrnZ85MDL/nbwXCqxhX9lV fORg== X-Gm-Message-State: AO0yUKX/CnxG5qz2u7NKwbcQqRbt6e155qWlHEyMp/Ae2n2UE93WC6Hd ogcvh+xXxoNUWXm2IlUU1tcwyQ== X-Google-Smtp-Source: AK7set/IoNEYCxHdPIJraTb1CpVMDBaM19UEOSkiNAtltgpUlmbwPk1OO+YfqqEFuStU41x+1Xb0UA== X-Received: by 2002:adf:e344:0:b0:2d6:6d24:7636 with SMTP id n4-20020adfe344000000b002d66d247636mr3825979wrj.7.1679327335615; Mon, 20 Mar 2023 08:48:55 -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.48.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 08:48: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 v2 05/15] arm64: dts: qcom: sa8775p: add the spmi node Date: Mon, 20 Mar 2023 16:48:31 +0100 Message-Id: <20230320154841.327908-6-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 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 Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi index 797af99227e4..8218abb78ace 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi @@ -632,6 +632,28 @@ pdc: interrupt-controller@b220000 { interrupt-controller; }; + 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>; + }; + tlmm: pinctrl@f000000 { compatible = "qcom,sa8775p-tlmm"; reg = <0x0 0x0f000000 0x0 0x1000000>; From patchwork Mon Mar 20 15:48: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: 13181514 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 1DCBAC6FD1D for ; Mon, 20 Mar 2023 15:58:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233131AbjCTP6W (ORCPT ); Mon, 20 Mar 2023 11:58:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231896AbjCTP5m (ORCPT ); Mon, 20 Mar 2023 11:57:42 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 610223D0BA for ; Mon, 20 Mar 2023 08:49:07 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id i9so10824547wrp.3 for ; Mon, 20 Mar 2023 08:49:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1679327336; 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=OdWVdTE/8Dyw4hqegkINdb1CQZwRDCkTAUWJC3MHmmA=; b=HbZIY2NdCdPKdS/eMgjJPDUChurWWyqnsYaZHbvocxmHV+SczCkGA6ipcEmv4BmFx/ HovX1je2YpAh2yyHyxSXtwTtPlbYqFHKqwBYpUAkT/EP3ioZJAbRKTqJtJK+2B/oiuRH TBR7AH6zcZeNZ1wLYldKF/0oV0e0puF16U1k6+GB/tulJ6PDox/9oUi+6K40SiaV3ArN D9bIbyFGhJ6ASVrAYOslO78YfxlxwVAHmUOKDYyyjhpod7TG2dU3z4tT9DZ8iuRyAZO8 LrtSEstcL2w+lvwzcNVDcpEOTExiC5Fe9dZcTXV/bPegCv9AD9RhJUNgbArW29mP+uo+ VHiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679327336; 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=OdWVdTE/8Dyw4hqegkINdb1CQZwRDCkTAUWJC3MHmmA=; b=7xTV596FMdOGp969uZEkxkJP+JjBk1vTq9mqUlaO4dNyfuh/WLc+XeFoGyqpjsUIMd 3LmU1g+vYtiVck9HNKU/iqWZIS0xTRGkC5WA2NmI7uWILv3ofTt5VOimbRzn4T26tCWv nJjtNNBeLEdbhCbgWq0khbbFIkqHdlkrqt+VyDsc4lM+yyPuIl4Jw/sHO5+dlVgNuzIR smcuL9AGEVgeLmG2QirHe4BxevPYMyN2w/JOG8QZOr9gzgK17ByPYQNNbmRHhO3Hl9L1 Uh3I7sKQHA1o/+3+7hA1/LYUvcHV9YFy3NgJCGJx6afdZpruV5sWf2Q5CBs6kt3+uZM5 xfuA== X-Gm-Message-State: AO0yUKXbY2/ToKSReDY83eoRFRcDHCVdvmLAGzMQEk8pxBOeUw/zGUUB S3M7z09dAVC38Smvi1oYWwz5cg== X-Google-Smtp-Source: AK7set9E67ofym2tdvwZKNWb7xackDONhnSE74H9a20p2Ud3bmZk/yDap+TexwNKGRarhLayPEkGxw== X-Received: by 2002:a5d:448c:0:b0:2d0:bba8:3901 with SMTP id j12-20020a5d448c000000b002d0bba83901mr13538417wrq.62.1679327336593; Mon, 20 Mar 2023 08:48:56 -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.48.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 08:48: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 , Lee Jones , Rob Herring Subject: [PATCH v2 06/15] dt-bindings: mfd: qcom,spmi-pmic: add compatible for pmm8654au Date: Mon, 20 Mar 2023 16:48:32 +0100 Message-Id: <20230320154841.327908-7-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 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 975c30aad23c..0f7dd7ac9630 100644 --- a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml +++ b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml @@ -79,6 +79,7 @@ properties: - qcom,pmk8350 - qcom,pmk8550 - qcom,pmm8155au + - qcom,pmm8654au - qcom,pmp8074 - qcom,pmr735a - qcom,pmr735b From patchwork Mon Mar 20 15:48: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: 13181515 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 76F3AC6FD1D for ; Mon, 20 Mar 2023 15:58:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232034AbjCTP6c (ORCPT ); Mon, 20 Mar 2023 11:58:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232026AbjCTP5u (ORCPT ); Mon, 20 Mar 2023 11:57:50 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B60933D905 for ; Mon, 20 Mar 2023 08:49:07 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id t15so10813765wrz.7 for ; Mon, 20 Mar 2023 08:49:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1679327337; 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=DOGGFNiRJEuMjhJtfyo06CFlZ9jQ7DwjlMMoJqx1/zY=; b=SnqRqAXL6AK6aJJVnSr6uVSgZnneUYWZaDafiDfpI+ZuS6dbhMUsh1mxxXDhKRO5d+ vbKLnJyqlREz6EbbiyHVP4Hhsv4/x5l8fLTIyx2r6ninqqRWMK7sdBqagvA9pXCX8j8N +fUlHZvXyjVmJ1fANuowmw4ZVKFQSX5DOZ/ODX1EXJSFcZyQWn0dubXhxxWuiTcpuV1z IvYCxKjuFdqpqruvrtIm601irUzw4Y2A1T1efpAoRAeKFFbRDY7v8Jv+j1z2t7KfLYJS AXhiI7IBTw5PaBtcOBwL9xfWbGA+Ny04GB/H6xNZ7ZVGcoOedqvBmywNgVM9dZXXdwOl buMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679327337; 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=DOGGFNiRJEuMjhJtfyo06CFlZ9jQ7DwjlMMoJqx1/zY=; b=FIa4N3ZZGSQPBoBM+RaFbf2YFYnLTjfa0YzEgY1v1+osNBI6JBkzcknYs37loZINIB B8D6fFNs5zsaGediT2R2dU9DPgyGOPcSmb5pCscY277L8Plk6dbhfYoOP+MSY6AgPbeF Ebqz8gm9f6kxYlXzI6k9oHHKzHVVVtCppyewTx4vcs24MBWHNAriWjB3d/9ImJXCQfUl Pe0BBQbKv88Za1OhS8NSdJvwiPyErXPEAhn2nGIaU9P5qEPnQqT8ioBohvcguXbYGsX/ tiKP+Q1/SxI/T2D/UqGrx7fusnbxIbPIxII3aJdW/0nANPtDyv4P7zIYiiuQqfWnIsB4 o5ng== X-Gm-Message-State: AO0yUKUEwR8MMNdinkZtqWxGZ5HfU3WClH/Umcx21NeSDpFirZsyFeHG 8QGe4/6mHUylIFW8YTKmEUtmPQ== X-Google-Smtp-Source: AK7set/8wu6gTQyH8qNsDqPt4F0vVoW7STePOGp+0cBDL/CDwLG1WYBxUyxOPNd0025L/PLwyYJYhQ== X-Received: by 2002:a5d:4381:0:b0:2ce:a8e2:f89e with SMTP id i1-20020a5d4381000000b002cea8e2f89emr12788838wrq.46.1679327337601; Mon, 20 Mar 2023 08:48:57 -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.48.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 08:48: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 Subject: [PATCH v2 07/15] arm64: dts: qcom: sa8775p: add support for the on-board PMICs Date: Mon, 20 Mar 2023 16:48:33 +0100 Message-Id: <20230320154841.327908-8-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 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 Reviewed-by: Konrad Dybcio --- 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..afe220b374c2 --- /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 { + pmm8654au_0: pmic@0 { + compatible = "qcom,pmm8654au", "qcom,spmi-pmic"; + reg = <0x0 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + }; + + pmm8654au_1: pmic@2 { + compatible = "qcom,pmm8654au", "qcom,spmi-pmic"; + reg = <0x2 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + }; + + pmm8654au_2: pmic@4 { + compatible = "qcom,pmm8654au", "qcom,spmi-pmic"; + reg = <0x4 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + }; + + pmm8654au_3: pmic@6 { + compatible = "qcom,pmm8654au", "qcom,spmi-pmic"; + reg = <0x6 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + }; +}; From patchwork Mon Mar 20 15:48: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: 13181519 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 E627DC6FD1D for ; Mon, 20 Mar 2023 15:59:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233337AbjCTP67 (ORCPT ); Mon, 20 Mar 2023 11:58:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230332AbjCTP54 (ORCPT ); Mon, 20 Mar 2023 11:57:56 -0400 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 073BC38472 for ; Mon, 20 Mar 2023 08:49:08 -0700 (PDT) Received: by mail-wr1-x42d.google.com with SMTP id i9so10824647wrp.3 for ; Mon, 20 Mar 2023 08:49:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1679327338; 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=q88V4GL+E1vQ/bHN+zeLAv+QcGxuAQPcfJaJOzetHXhl0pjJuU9CQEjqiJY7PyDiwO N/jJSlYo3J6yL0XrTdyTTxghmTr00gqk9rrPzCWR8UF3THHiXi4TtIUzaJd/0KaWSbJp bXI7Eo0PQ0OHaMmobZ2HC+sGxF0wgOlSNX4JLmo/AxYvgcJcC/7x7aFLbdrjmCFpzq4f HkgG28YEh19fhqOafwqCxB35pk0BVIBZcAA6qugnJYEeZ6nAFPQJWYrCxFyRjgueroSo EUEnSx2o+x1YTkVPDVDJSRzfS+lMz1cj7T9KQYiDH5/uTnqz9XDWozxc7o9r74TpL4tk 3LTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679327338; 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=ygx+PeDOVyuIrBP/Y3+jVXYDCya8ablxCesnc/5m3F8h0bDABQUwglbLspem5c4KmI UTTkqnI0vMWI/1uu/b+ITPqBDP9iWqmWJqBPkfLb3S+s1E2UjlfW/nXh/I2GfC/OU7Nn onpuEH2B8gjIJmjZCWrhaIwc2hgal5wk1GzHXNMA1TKQrni/TfvIlVVOfSSKyr8nme6Y 8xC9QtAR1m7CwTXIh95ncXDoskzF4Zkl7jAqAKhoe1LZ6wDbNCn3mvLSyQT/K/KQ4jUq e9Nw1VpfAOCEAsOqPC0vJ4nB8PWKFfvx+Iw3k05NKal7HuHtVlOvPDu23KyA8xASbLrN sBJQ== X-Gm-Message-State: AO0yUKVCZjaUBkXyuzZjOXfaEXyMzborDZJFjCYzlDXqgcwqLIWzWuDY gkM0Rnw0BKL9g+BZjqMctXSaHqcD/mMCtviNeuk= X-Google-Smtp-Source: AK7set8J7aJZqSQ67pSg3XGy00Mialw4KBQ9UAZFJFSx47qid1zi1AcZPSW94/dphPVVK2YuFXb7sw== X-Received: by 2002:adf:e74b:0:b0:2c7:1324:dba8 with SMTP id c11-20020adfe74b000000b002c71324dba8mr12235569wrn.49.1679327338602; Mon, 20 Mar 2023 08:48:58 -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.48.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 08:48: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 v2 08/15] arm64: dts: qcom: sa8775p-ride: enable PMIC support Date: Mon, 20 Mar 2023 16:48:34 +0100 Message-Id: <20230320154841.327908-9-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 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 Reviewed-by: KonradDybcio --- 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 Mon Mar 20 15:48: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: 13181518 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 00CC0C6FD1D for ; Mon, 20 Mar 2023 15:58:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232250AbjCTP6l (ORCPT ); Mon, 20 Mar 2023 11:58:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232294AbjCTP5w (ORCPT ); Mon, 20 Mar 2023 11:57:52 -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 2E59B36479 for ; Mon, 20 Mar 2023 08:49:09 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id v25so7357191wra.12 for ; Mon, 20 Mar 2023 08:49:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1679327339; 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=3I8JHWxkV4zS/edhgEAN6ofRvNqacLGpGveGxbNakgc=; b=nrJEnSSJgR1KEh+kXFyLl08hzoCamFbR7CuE+/w8o+9miw0AymkbXwyWEYMDKvPkuS tohkvPpQaf/PMvTpeYFXbZtqCqn/lqbUe6jcx7Rtu2Ky6+JXh8JPIL91+7Vy36jRiRMj 3wDrD9e2Fa6hV0ieoxeLae53e8WqwzvPtLSWEIbEUW6mEoQf2huI5EEGUcdwduF4P5Xg bVRgO307yGNH7msfsJcy+leARDEJAHBnvYTahHNNrMHep8JBJa208m02nJ5+civAtVgI OZLb5y6Nv3Q86nNUjXIwirIQsuS9TkWiNoEwH7iomM1Pyw3wRe5NULCZT+7iNxFZfgtf 3WJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679327339; 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=3I8JHWxkV4zS/edhgEAN6ofRvNqacLGpGveGxbNakgc=; b=ChUtb0xyBxHUdXFJPwFYbZuJD5ORSloJa0VeRMUN1/sdrzzKQKKuzLb/oAaLutveIx AqlTJvsb5/1crldLbikqe2XDV6+CjCP1UP9LeqXXEPuWUqoPsQFLUnvBTEBRUkPqd24h +V4y6NRbXzXdnIZ7dQp7x4rmNVUCL1yWl1e6hwvcmtre+jQYnP2Tl77+vMhQRKSc66Ho EhVsYYBPX1iLbU6At1iqzEZc5rKEsGuByG8OZclSf7wmS+IAwua0j9FNH+kiIDf29DT3 o//INlb5k/NDDoP53RZgml9jHzhhIWKY8wqCR0ht+jULfjrfvbvLOLl0Bm9cp16CA38r j/jg== X-Gm-Message-State: AO0yUKW7ppP38s13W+vjbgghYgkezrvj3WuTDfSHOZp8a25/wR/VEatQ wbcz4CF9bi4azeKK2RAn1lcvLQ== X-Google-Smtp-Source: AK7set+J5vQN14kh9/yAib+9JKm05aHPz4N9yTfjDRKYXEDmiYFi9tn/YGTCIyrmQhtqSnPeHXWz+A== X-Received: by 2002:adf:f209:0:b0:2d0:27dd:9c40 with SMTP id p9-20020adff209000000b002d027dd9c40mr14563231wro.26.1679327339520; Mon, 20 Mar 2023 08:48:59 -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.48.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 08:48: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 v2 09/15] arm64: dts: qcom: sa8775p: add the Power On device node Date: Mon, 20 Mar 2023 16:48:35 +0100 Message-Id: <20230320154841.327908-10-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 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 Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi index afe220b374c2..dbc596e32253 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi @@ -12,6 +12,14 @@ pmm8654au_0: pmic@0 { reg = <0x0 SPMI_USID>; #address-cells = <1>; #size-cells = <0>; + + pmm8654au_0_pon: pon@1200 { + compatible = "qcom,pmk8350-pon"; + reg = <0x1200>, <0x800>; + reg-names = "hlos", "pbs"; + mode-recovery = <0x1>; + mode-bootloader = <0x2>; + }; }; pmm8654au_1: pmic@2 { From patchwork Mon Mar 20 15:48: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: 13181517 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 79FE6C76195 for ; Mon, 20 Mar 2023 15:58:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232051AbjCTP6k (ORCPT ); Mon, 20 Mar 2023 11:58:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231645AbjCTP5v (ORCPT ); Mon, 20 Mar 2023 11:57:51 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF61217143 for ; Mon, 20 Mar 2023 08:49:14 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id o7so10822574wrg.5 for ; Mon, 20 Mar 2023 08:49:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1679327340; 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=1nLJZiXwqxY+Yg8uo1itt5FvWTiY9tzGpl6uBO3+sbw=; b=L0VbHTASXTj1ZTPH7+wXYtsqSDLLvo2z9/zb2/zNwQ+c5LqE0xoarKw8VzouIoTmFX yocEjeOSJduPvn2KmbgDj/5uNsXhxLiRE3IAdVqpYcveUr497TiD4IT0UDi5qTAbdPoW H7HeIHGohEepPEZmZuwoVp4rmbfqo+brW3oX6Eaz3/QH3WRHt6jka6nTLP/5Nf3JiFbo QQnn6B0hVHDpvQu10EZVj+fOxwZap9XOWWXrasLGPMD5+1IjdRcxifK1ouoLF4n5/y89 5p9nej7/lhFRF7swFN+cnzIb3mL+ppL/v9pf2C12BMxbxoO2S2nIRJ3YywpUEBgr1eAV R/KQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679327340; 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=1nLJZiXwqxY+Yg8uo1itt5FvWTiY9tzGpl6uBO3+sbw=; b=2Es4lfAnnEjy1Qbr2tV/XQkUy4ifwTFonxCYGitcihHwAsbGtBd2PLj5G/kPwOG29W 5WZu+goo6JlMzreSmflkaqVLtMHdgo3qM7EA+uYWbRFz1Ul6pbzk+uD9fN12yOYTn11g Qqiq5aRq6ZHBOgbjsPVQuI5bpIjZRg23pKRKP2tEsPRtYLD6nhTAY+VfN3C53iEbAY+L /HxcdoSlajWjFFj9xlTuZh47qWM79MHl0bnV3EjxwjVB2QcA/eKRbYwjoYMg3GpSKcYY GZrtBiJ3p0wD6R5ALyB71iY1eRwhYllKUzAGu4Zz13OosMYlidzwQ2BOR0G5COWGxrlU sEfQ== X-Gm-Message-State: AO0yUKVbV4OtL3Lr/zvEHoq6MsE4hUvU+42zJHVCiVjguJH5m5ZDFNf+ PH+T04vzYSybdVbNxR4G0TU8Mw== X-Google-Smtp-Source: AK7set/cU+7TX57GWSvWUxLDkVx3inW/+e4//elvHr8NJ/fWaGpe5DmxaXggIBfdtRcOJ6gGOm+2LQ== X-Received: by 2002:a5d:6990:0:b0:2ce:a898:a896 with SMTP id g16-20020a5d6990000000b002cea898a896mr14773032wru.30.1679327340679; Mon, 20 Mar 2023 08:49:00 -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.48.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 08:49: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 v2 10/15] arm64: dts: qcom: sa8775p: pmic: add the power key Date: Mon, 20 Mar 2023 16:48:36 +0100 Message-Id: <20230320154841.327908-11-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 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 Reviewed-by: Konrad Dybcio --- 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 dbc596e32253..f421d4d64c8e 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi @@ -19,6 +19,13 @@ pmm8654au_0_pon: pon@1200 { reg-names = "hlos", "pbs"; mode-recovery = <0x1>; mode-bootloader = <0x2>; + + pmm8654au_0_pon_pwrkey: pwrkey { + compatible = "qcom,pmk8350-pwrkey"; + interrupts-extended = <&spmi_bus 0x0 0x12 0x7 IRQ_TYPE_EDGE_BOTH>; + linux,code = ; + debounce = <15625>; + }; }; }; From patchwork Mon Mar 20 15:48: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: 13181520 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 F0686C6FD1D for ; Mon, 20 Mar 2023 15:59:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232075AbjCTP7C (ORCPT ); Mon, 20 Mar 2023 11:59:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231829AbjCTP6J (ORCPT ); Mon, 20 Mar 2023 11:58:09 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE38E9EF9 for ; Mon, 20 Mar 2023 08:49:21 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id r29so10796087wra.13 for ; Mon, 20 Mar 2023 08:49:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1679327341; 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=bRiWX/hg2WHOlY5Q4SxUV8r3xOlR6eC5PLcwIju2Pjs=; b=U8Mt6W8drFShZryD8lCf6PZgzBtdwxFTZVnm2NC4vD7xXp4fBbWHn6a8R38Ahmh2rL oMMW3/JsyUJfHI0YlJx0A4KIxzksKV2EY9Srp7gdkZuTlhuXOtG1ARrUmy/GavRScCYi 7fAVLjMWScnmxLSFcZuiMliQc1RQLCExD0k7cgZr7B2IIljsr+IhyS9ua2zL7jYUEI+q QhOCQd9/KEM5PTSnLzD13vqwu7jy1T+a9sJILDMCGnQEFwNbO8u3rH3aNqPxLBejHtGh F3v/506njXf9+Oo+bAyIQUmcMXRp3xmcYLwEH/80ij/9L35yn08EmP6oPCZFaoysomNI LKew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679327341; 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=bRiWX/hg2WHOlY5Q4SxUV8r3xOlR6eC5PLcwIju2Pjs=; b=XPdKp9np/WBa0Q4namaJ/wHkphTBha7zZTnF+tvO0H/j/Nqt09Ngs5fv+z8HTfby73 pkQ6mws2qKiZBDVIped2tFRnVmRcNqp+G0+NnOZB5k3lN02NScsuC37mDmHFUdt5OYHv VmFgs2tUEEkpRzKHoeE1fVvEZL4XfJnBTkMawGA/UQLrY5hA7HF2Uee1qvBGWlye2496 2lyzm+2vqoy6P+c4N88/l2GBLhWkqeZuB6OaP9iBjggE9UmYSjJD4eL/DOwwM9PKVJd9 xLNxdcXK3cGCczxRojo7C43gTdtpI8eCcDtXPRtQxociH7trhgpevVgfDI6WsWU77lyX r7KQ== X-Gm-Message-State: AO0yUKXh+HI5rYOCrDjqxUTDoTO7/qXQnWmT3GFYSCL0rcZ0LKaw4f8d R/as1lSzrCOypGo4KgO8GuWObw== X-Google-Smtp-Source: AK7set+DTVHoL1ftwnf+wJIKCKTr8DEkGX9fZuqkLtT5NCQUtEC/w4N4Aqs+i2lluCmv0p0hLXCLzw== X-Received: by 2002:a5d:5686:0:b0:2c5:4af3:3d26 with SMTP id f6-20020a5d5686000000b002c54af33d26mr14387094wrv.9.1679327341666; Mon, 20 Mar 2023 08:49:01 -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.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 08:49: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 v2 11/15] arm64: dts: qcom: sa8775p: pmic: add support for the pmm8654 RESIN input Date: Mon, 20 Mar 2023 16:48:37 +0100 Message-Id: <20230320154841.327908-12-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 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 Reviewed-by: Konrad Dybcio --- 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 f421d4d64c8e..8616ead3daf5 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi @@ -26,6 +26,13 @@ pmm8654au_0_pon_pwrkey: pwrkey { linux,code = ; debounce = <15625>; }; + + pmm8654au_0_pon_resin: resin { + compatible = "qcom,pmk8350-resin"; + interrupts-extended = <&spmi_bus 0x0 0x12 0x6 IRQ_TYPE_EDGE_BOTH>; + debounce = <15625>; + status = "disabled"; + }; }; }; From patchwork Mon Mar 20 15:48: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: 13181522 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 27F28C761AF for ; Mon, 20 Mar 2023 15:59:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231873AbjCTP7G (ORCPT ); Mon, 20 Mar 2023 11:59:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231717AbjCTP6J (ORCPT ); Mon, 20 Mar 2023 11:58:09 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 479382F044 for ; Mon, 20 Mar 2023 08:49:23 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id v25so7357377wra.12 for ; Mon, 20 Mar 2023 08:49:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1679327342; 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=IV/5gf3WuHS5WSbPyj0Moqs6nXNECY+AJ0WjEElkQo8=; b=U04Eg/UE/GvHsB3PJEkXCYzKKl633WkkmhWvrwAkuPXvqf9cqu9lHQX7BDVH8pkujH 5htRWF74ADACFKWUT71UKengwFkV1MOxaMuNu6cqnutWL7TyHZOw2RUB4629y7Wfqjib AGmb44Z+cetgwyssRLAL1wZF3oCixfYCsHHd0BsUla9Scu9LH54c39u0UaGw3Zh/oS2o p5nqeyajzuUxOAxGHRivWQ3iGwKwtA9mPiCOm2mIHlpfTyPhftt9GZW4CDprQseTdxET XNm+M3QBQ1tpLOQfKAepjm9zJKCi7KfbctM7reh/qbOzeCYn7mH0KEzLJu2c0VAVa1kk b0Wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679327342; 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=IV/5gf3WuHS5WSbPyj0Moqs6nXNECY+AJ0WjEElkQo8=; b=EqzDBYzdcTX+ghE5rLeTXOiV4lU0ndm0ADWEkSp1QF8wD3IEwzU1nWAQ8Q82mf/uE2 x+K2IBra4RpM+/j6ZVIBakrM3k0MKa6CliwzWeZO3Rf2F5opo7qV6xmJ8GhIkgnzXuJg 6jLalhAtJaOubNmSVfqXhO3pYfcrFoRY30nxXBvBDIlUM0CCmUXsbpvezPUiAvb+y6gx WCfWTM4YQoO3HGFvbEKZRA/tvsTZv5rdyicGIs6hfbCfN6oBLTxeKIRiZN4S30L2uCho J+D9iEhO2G+SPnpj6RkvJL8I7S5CxptLLPFxdTqku4EJ7XU6G7kPmdESq0PhTyabn1af Ym9A== X-Gm-Message-State: AO0yUKXEfLtHGQ7SyhM8sdxKywFvx+Jq0L0R0V+u6v+0HUxV7Fuz9sH5 D/hdIKwEd4db5Yr1gwoLBDAZjA== X-Google-Smtp-Source: AK7set+lb5fjsl03ZnYIL/Mgm+EDOV21Xc69FH7FdvPo46Cc4VLFOeNr4Xvvt6PcbL/RYaKJMk9dxg== X-Received: by 2002:a5d:6b0e:0:b0:2c3:db98:3e87 with SMTP id v14-20020a5d6b0e000000b002c3db983e87mr14679713wrw.20.1679327342696; Mon, 20 Mar 2023 08:49:02 -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.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 08:49: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 v2 12/15] arm64: dts: qcom: sa8775p: pmic: add thermal zones Date: Mon, 20 Mar 2023 16:48:38 +0100 Message-Id: <20230320154841.327908-13-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 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 | 58 +++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi index 8616ead3daf5..276070b62ccd 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 { + pmm8654au_1_thermal: pm8775-1-thermal { + polling-delay-passive = <100>; + polling-delay = <0>; + thermal-sensors = <&pmm8654au_1_temp_alarm>; + + trips { + trip0 { + temperature = <105000>; + hysteresis = <0>; + type = "passive"; + }; + + trip1 { + temperature = <125000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + + pmm8654au_3_thermal: pm8775-3-thermal { + polling-delay-passive = <100>; + polling-delay = <0>; + thermal-sensors = <&pmm8654au_3_temp_alarm>; + + trips { + trip0 { + temperature = <105000>; + hysteresis = <0>; + type = "passive"; + }; + + trip1 { + temperature = <125000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + }; +}; + &spmi_bus { pmm8654au_0: pmic@0 { compatible = "qcom,pmm8654au", "qcom,spmi-pmic"; @@ -41,6 +85,13 @@ pmm8654au_1: pmic@2 { reg = <0x2 SPMI_USID>; #address-cells = <1>; #size-cells = <0>; + + pmm8654au_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>; + }; }; pmm8654au_2: pmic@4 { @@ -55,5 +106,12 @@ pmm8654au_3: pmic@6 { reg = <0x6 SPMI_USID>; #address-cells = <1>; #size-cells = <0>; + + pmm8654au_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 Mon Mar 20 15:48: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: 13181521 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 64C1BC7618A for ; Mon, 20 Mar 2023 15:59:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233355AbjCTP7E (ORCPT ); Mon, 20 Mar 2023 11:59:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232542AbjCTP6J (ORCPT ); Mon, 20 Mar 2023 11:58:09 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D32A1FDA for ; Mon, 20 Mar 2023 08:49:25 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id l27so2501909wrb.2 for ; Mon, 20 Mar 2023 08:49:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1679327344; 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=6xRNDjKLu/qtHRgpSQobAlJCFssXXVfJ8ZXiT2IEFPU=; b=yJoMzdUsI2UywRktpSCtzJYc2bgWfldiJnS2JSSWUb1T2dV4wFgV1gdX9gpL0aTRg8 RzKyvwAZDFaGOH90yYTsb/GPwKH5lqt7mc4D50zxAObLJMboMoJXPQKddFImLh03a3pg 33+2GIqEWJh9II4+XP7H9oXDEZn/cPgVuVh5URyHk5Lz6cht6zwAaE3pW2DQMLzdLqWz fTavmhLFdVaorvx4v24epXdqEotbe4wXaysh/t+/s+k+mpFTuxiMHp384ulXbUnzLO/I bXTpqr3F8EQhe92sEc/M5vYiFcsU6VsZ5bhGLNRT1ruDCnBUni/18mz4xcJNBCQ8ItLI PvvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679327344; 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=6xRNDjKLu/qtHRgpSQobAlJCFssXXVfJ8ZXiT2IEFPU=; b=tzGqWGijZqrhUnqE5udjND21eZcigCh/Ph2G0GW7YK4knVJBNnjJrvLhxMwK9dQRtO WH4L6rRGAy95F/VFgQuuMnH9P6fXw4O9ntn4BC49KrR0gml7tfN1l52Ld2MhDOw3YoNX rAHnxvfVyZdj46utvLyPM3W5OkfejSNWU+1vk5wWF+2c84tD/E/U2UwYa30LS8JGIVU+ RidZL6gD7HIpmOd36X1D3W6VvdWr9rJBvcGHFXvMCpvp1tOeAElCpHwNZ2SApkrL4HlQ Eorp/WtL7GV3Huiq8z15F94WUx/8fq4K/9A1a3CX2KCVtJTmrL+El40549ZaclBX4avH h0OQ== X-Gm-Message-State: AO0yUKWmc/xdOnhC7McTWbLz1ZC711RUi56eNVXbeboVJDeSUwB6aF3U lCAVojKHS4GzoS4s09rMvDJi2w== X-Google-Smtp-Source: AK7set+pZutuMENHNrd18kVq8CFM7/djdz09/3nCkCKq4vSnCIiTBENabcnDSJOCCij5Algury1YXQ== X-Received: by 2002:a05:6000:1a54:b0:2cf:ef5e:eae5 with SMTP id t20-20020a0560001a5400b002cfef5eeae5mr15597951wry.25.1679327343715; Mon, 20 Mar 2023 08:49:03 -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.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 08:49: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 , Linus Walleij , Rob Herring Subject: [PATCH v2 13/15] dt-bindings: pinctrl: qcom,pmic-gpio: add compatible for pmm8654au-gpio Date: Mon, 20 Mar 2023 16:48:39 +0100 Message-Id: <20230320154841.327908-14-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 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 --- 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 Mon Mar 20 15:48: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: 13181523 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 81125C6FD1D for ; Mon, 20 Mar 2023 15:59:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233369AbjCTP7L (ORCPT ); Mon, 20 Mar 2023 11:59:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232983AbjCTP6S (ORCPT ); Mon, 20 Mar 2023 11:58:18 -0400 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 819F311654 for ; Mon, 20 Mar 2023 08:49:26 -0700 (PDT) Received: by mail-wr1-x42b.google.com with SMTP id l12so10810187wrm.10 for ; Mon, 20 Mar 2023 08:49:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1679327344; 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=q61Md8IvJXQikmFB0pYYtxgmDqCGyiiP94Vufuo9bl96lJUqWNOCYqENi9xncctpci 5OAkxdJCe/sqBQuaGjfTb6s/iXmZTO97GGKBPlG66oguwBP4AHKtDHNfNOg2ZctkW4wp /qAPUICABdole7almsISyZBOVudOPkXxXVSo9hdDDpeDGq/dRoUuVH7ij9LX0O9FF7LC jIBAJ3NYOtWNyz6PSlQChXBHOj1tNIlC6d8ljCbRsrwfwal21YINv0wj/zZpVaL7ZXA5 8s3wQDzrrMCxgPjhg2QYDvCfoOljhc/BEmW4HVJCBks9BO9DPYPgB4TxW2yKW7xGf/ru 6PXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679327344; 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=V4bYOGCOXs9Ojuc9x8Z5Wyfk4Jl9jIhnKenVn2YVisXh6/+VXmDUJokOFvKQhWk1ea IXHuTF0Kj0Bb35NCicjXDrOihHU4qjVmhWw0B02Glk1SYw1ZO18CPOlyltIGCFJsfeil TUsSJaf26hufQUYIEth5jR9rihUWwEy3nlLBA19zuvCgq8HJ2w4yREB4/tZyIUZ7c87b y4WTJEJ7yRwDEtEw6JqQnP/2FWuA6ZmRmQP13EYDpTxI2LZVGvt3ORUtrygAnkgJL6Mn Y/E4M4KRS+aBiUeGEhUMlRUQXhsRzuNc0QzPzE1o9e0pH4+GG09ork6b4LOkMJBlc8el m8/A== X-Gm-Message-State: AO0yUKU7I8HP9XCgv0o0IP/J6g425IkmTXHX3yWKvL/cCXmq2MFbfRG0 QkvhjyYlFxAZ5e0FjNYUszh0Cg== X-Google-Smtp-Source: AK7set/iBJFELyZp11oxeT37u5rLByKe0WwlwqpWZ5lsSXJO0XwarPzFjMGpuNY93TomXXh01sb4MA== X-Received: by 2002:a5d:618c:0:b0:2d7:3d7c:19cb with SMTP id j12-20020a5d618c000000b002d73d7c19cbmr45082wru.4.1679327344729; Mon, 20 Mar 2023 08:49:04 -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.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 08:49: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 v2 14/15] pinctrl: qcom: spmi-gpio: add support for pmm8654au-gpio Date: Mon, 20 Mar 2023 16:48:40 +0100 Message-Id: <20230320154841.327908-15-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 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 Reviewed-by: Konrad Dybcio --- 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 Mon Mar 20 15:48: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: 13181524 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 204C7C7618A for ; Mon, 20 Mar 2023 15:59:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231827AbjCTP7c (ORCPT ); Mon, 20 Mar 2023 11:59:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231635AbjCTP6T (ORCPT ); Mon, 20 Mar 2023 11:58:19 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6E207EE0 for ; Mon, 20 Mar 2023 08:49:28 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id l12so10810233wrm.10 for ; 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=h7sZ4P5IaoORh1qkkuCvburmiB2QUY4a4ROoDREZrsAliB0LwVjGQhErBU/uVHR/rq mo8XqFOXm7/n5COH8xpYPW0gKzeSsGE93Z3c6JJKqhSqOR19ifdY1LDCwmr0rEAxL6z3 PusEEcySw85rNxZdRnPzAkh9mqttlKp9CiGZJgPH4UsXzt3c4m+wzGN0UMtdZ1EzwdTe WemgZHOcW2IJEWJCXgJKdDu0DIrvbBRKXDAJRRcLxpb1YZ7CZzKU6/6pek0fqbISkdXr C8icZyvLDWohD71ui79pfX4kEpkUwaJz40cXTH5r442Nlx7W3Y9YAa4e+5MaFxCuz1ES UvnQ== X-Gm-Message-State: AO0yUKWhsjam1S65qbre+s7DpBxwknW9jaIzSlxTWtkAwLMPEbRFhcjY 32cKuYKgmciHWEM6GomBnpsUpP2VONeXmor4WPk= X-Google-Smtp-Source: AK7set9mZKHf1/y1jc5gy9GO+0fgH6vMkUru3AVb/QoZV/aDdSqUOz8LghLGSE9LBvicyh5a0SF3Yg== 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 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 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 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 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 {