From patchwork Sat May 20 12:19:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Matti_Lehtim=C3=A4ki?= X-Patchwork-Id: 684373 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 13F2DC7EE29 for ; Sat, 20 May 2023 12:19:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231318AbjETMTt (ORCPT ); Sat, 20 May 2023 08:19:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231379AbjETMTr (ORCPT ); Sat, 20 May 2023 08:19:47 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C239C10D; Sat, 20 May 2023 05:19:46 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-4efd6e26585so4688194e87.1; Sat, 20 May 2023 05:19:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684585185; x=1687177185; 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=Nkz39YrJHA4xIA+wIv9InZQXMShtNvAlPjiM6h9FHQQ=; b=oJZL2xeV5jZKi2Zf0gOHAxSMitVyO366EKtNBay2+RRwq8iC8FjvEnuz6Niqb0MIZE 3bg4ATRkJMeIiFgz2fxmU/x2hNsaM7OZo0xLgwYBZB32ZV5quEXUU3PcFSm56ab0odwN sBF1HXgl134CDTVjWnWQDmXnknmnR7cb48vhSL6XSmT4utZtdF7QaXWg2lFP4LzXPN9J JJVm8DNwghVpVgCchsGIvZ4hrTnDNrvj3n8gD387VhnBs8dIk+nXTOOqbQb7HWD/eynM Rpfe/LPe2GRaaiNCIBZ8iuG7EqIRQPaxLRMJ9e2Cp9LpmP0/PmM7F/R0/GVlTJhLDISq t8yQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684585185; x=1687177185; 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=Nkz39YrJHA4xIA+wIv9InZQXMShtNvAlPjiM6h9FHQQ=; b=OHO5+VcLE3nOTSDu7gYAV9GPzhGyhHO9HeW6NqCHMbqwmy2iyHBOr3VbKoqt6oIB7t PUwl/WvgBYP2Lyen0XEQvZwjF8SvKbeJUkXJIn1C1EMl7ju2kCYI/LciEY/LN366xI4k mzWnzbC2OKWxFgo9LwJmgK8GPYUiCSR3S5q6SGhpwb4n7X6vG0738k4bsLxCYfUKPjfp OgBUeuExY2PayR+gNstgd2FrUY5MC5pjvBTgpqluSOJLSiJu61Sd1TCcbS3+u002cQT+ hr2sz8vLs5lkqIxMwedH11dSqJWW27bTrLHcE2NKkOhwxBfEczImrwpqyjnpKnh6VlYl U7nw== X-Gm-Message-State: AC+VfDy5la0VqcNR32dbSsQYiqukpbA9TGuVqBE9zuP1HKaS6ruiT8k7 A+8bpZ+byyqcVwQIqEnnl7HqYOWuxxRgwA== X-Google-Smtp-Source: ACHHUZ4/bsJPqVib7++CjiTgiXi2IxIr1/ObQB2O5YQ0geFqM2sUwJQ2iwohfd9ZPU77cgyJwhoe9w== X-Received: by 2002:a05:6512:21a6:b0:4ef:f3bf:93a6 with SMTP id c6-20020a05651221a600b004eff3bf93a6mr1832282lft.51.1684585184854; Sat, 20 May 2023 05:19:44 -0700 (PDT) Received: from i-vetokaappi.home.lan (dsl-hkibng42-56733b-36.dhcp.inet.fi. [86.115.59.36]) by smtp.gmail.com with ESMTPSA id r11-20020a19ac4b000000b004edafe3f8dbsm260303lfc.11.2023.05.20.05.19.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 May 2023 05:19:44 -0700 (PDT) From: =?utf-8?q?Matti_Lehtim=C3=A4ki?= To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, =?utf-8?q?Matti_Lehtim=C3=A4ki?= , Conor Dooley , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/4] dt-bindings: sram: qcom,imem: Document MSM8226 Date: Sat, 20 May 2023 15:19:30 +0300 Message-Id: <20230520121933.15533-2-matti.lehtimaki@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230520121933.15533-1-matti.lehtimaki@gmail.com> References: <20230520121933.15533-1-matti.lehtimaki@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add compatible for MSM8226 IMEM. Signed-off-by: Matti Lehtimäki Acked-by: Conor Dooley --- Documentation/devicetree/bindings/sram/qcom,imem.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/sram/qcom,imem.yaml b/Documentation/devicetree/bindings/sram/qcom,imem.yaml index ba694ce4a037..318acd129ff9 100644 --- a/Documentation/devicetree/bindings/sram/qcom,imem.yaml +++ b/Documentation/devicetree/bindings/sram/qcom,imem.yaml @@ -18,6 +18,7 @@ properties: items: - enum: - qcom,apq8064-imem + - qcom,msm8226-imem - qcom,msm8974-imem - qcom,qcs404-imem - qcom,sc7180-imem From patchwork Sat May 20 12:19:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Matti_Lehtim=C3=A4ki?= X-Patchwork-Id: 684372 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 A7766C7EE2F for ; Sat, 20 May 2023 12:19:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231593AbjETMTz (ORCPT ); Sat, 20 May 2023 08:19:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231571AbjETMTx (ORCPT ); Sat, 20 May 2023 08:19:53 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A9ED128; Sat, 20 May 2023 05:19:50 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2af24ee004dso19508601fa.0; Sat, 20 May 2023 05:19:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684585188; x=1687177188; 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=UjXc4/GMRnCq9hjwFiP+znUTBS6Bv1a1cDU4Wv6DmUE=; b=epNksI2VmY8Ez7i903ZrYF+/suW8pEzI0SZw0w0auDpl0zYlQA7VX4SK4gcNuBiYUU PPBHQDmdL18IzOviYohdQbmKP5GGvoUoHStkvMkt5O5AK72do1+2XC6rKIxsJbv4HsK4 Nkuy02/JxanfEGTwKQ14ODORHt3BjTrZVizlipdDmZaLklEetr0Scjt08CXr/JCNwL0c Ddura+mcwcPiy7Q4EN6YheVciFzETy/A3/RQdvHxcAxOIchwoKdHDWDDIIqc9oXmw1BF BOqgb5OMswamxwIjdc5LGMfpWmJUHcelwhZxZT2PHddBG5zJ6hVZqMrGkSd95OjM3voI g15A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684585188; x=1687177188; 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=UjXc4/GMRnCq9hjwFiP+znUTBS6Bv1a1cDU4Wv6DmUE=; b=I8vELl+NfSIPEC+tWr211VzUmz0P14MlFvB7hppYzUtWUu330FYLwQViExn871hd5y /WIT+7/wjVCnPv+uh4anT/IyfQE6cn6dXmhATuQkcS5dPuIpllk6InzQhpMlfKm1ihud D54pXDqCxl3XwDmnIORoBCsh/dDeGrgijfNpiAGgnB0mT+jCvVsOHAKG9mkkN3TIA/GI VlXTvumGlQKHjWfLd+GwvbGAtq/UbTF7UGMp/6CfBKEwFneVn2rLHXTrToxEp5yPQ8Vu 3LVShUYRIcUjFdHBFgruIaLnKbr5bGFicijlukBKsxLiWjc0JUQiOq8QtEaM0jVkGp/3 IpDg== X-Gm-Message-State: AC+VfDwnka/jAHox29cGY1KCLAyu0ngVURI27Cnz+q1a2+ouRmDathok bqMtsWCmvR/LIqteKqS1GoJ5cYKJKYexJQ== X-Google-Smtp-Source: ACHHUZ5ACo6eGWA8zQr8lRgaoqODDex8H5V5wannozNzKIqSs2uRRIpkaTLAvifU80uem9xCwgllOw== X-Received: by 2002:ac2:4461:0:b0:4f3:a99f:1e91 with SMTP id y1-20020ac24461000000b004f3a99f1e91mr1631822lfl.52.1684585188423; Sat, 20 May 2023 05:19:48 -0700 (PDT) Received: from i-vetokaappi.home.lan (dsl-hkibng42-56733b-36.dhcp.inet.fi. [86.115.59.36]) by smtp.gmail.com with ESMTPSA id r11-20020a19ac4b000000b004edafe3f8dbsm260303lfc.11.2023.05.20.05.19.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 May 2023 05:19:47 -0700 (PDT) From: =?utf-8?q?Matti_Lehtim=C3=A4ki?= To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, =?utf-8?q?Matti_Lehtim=C3=A4ki?= , Konrad Dybcio , Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/4] ARM: dts: qcom: msm8226: Add rpm-stats device node Date: Sat, 20 May 2023 15:19:32 +0300 Message-Id: <20230520121933.15533-4-matti.lehtimaki@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230520121933.15533-1-matti.lehtimaki@gmail.com> References: <20230520121933.15533-1-matti.lehtimaki@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add device node for the rpm-stats pseudo device. Signed-off-by: Matti Lehtimäki Reviewed-by: Konrad Dybcio --- arch/arm/boot/dts/qcom-msm8226.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8226.dtsi b/arch/arm/boot/dts/qcom-msm8226.dtsi index cb4b4a6d0447..8644540f5aae 100644 --- a/arch/arm/boot/dts/qcom-msm8226.dtsi +++ b/arch/arm/boot/dts/qcom-msm8226.dtsi @@ -592,6 +592,11 @@ frame@f9028000 { }; }; + sram@fc190000 { + compatible = "qcom,msm8226-rpm-stats"; + reg = <0xfc190000 0x10000>; + }; + rpm_msg_ram: sram@fc428000 { compatible = "qcom,rpm-msg-ram"; reg = <0xfc428000 0x4000>; From patchwork Sat May 20 12:19:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Matti_Lehtim=C3=A4ki?= X-Patchwork-Id: 684370 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 1EA40C7EE39 for ; Sat, 20 May 2023 12:20:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231642AbjETMT6 (ORCPT ); Sat, 20 May 2023 08:19:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231592AbjETMTy (ORCPT ); Sat, 20 May 2023 08:19:54 -0400 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BBD7192; Sat, 20 May 2023 05:19:52 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2af30d10d8fso1778801fa.0; Sat, 20 May 2023 05:19:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684585190; x=1687177190; 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=WTDs5T5uCBqEAuJsK/qWf1YHHB6qWweCx58+58dFY6M=; b=Of4IIg1K+UDpULUhjv5cPFSXDvRipy7Y7jEdh6MXGzI150kUF8Hhk7tugF90O7y0lA ao4A9TFH9j+QXQDElIMC4Cr62774B19N2UDy2eBKsfLBbIO6hDLFF02j09mKUXCYBMlC bVDWWwlaK2mYob9FSDvIXqRs9bGEYSSSyo0hXr4NtekrpgBZJNbCYxmHE0IajzD+UPAS F8oEek2l0OorvEmKfzxps9sWTQvBQfyIi875yY5oEi8nZjlNIlJKxnm5zXFKj5w1nvRE qvZqRm1hMSKf3wkTe3A/sU23Ig+ZY2aRH04xPGYM/0cO4RhrML2gUJlLRvF0NnoMj47w XvxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684585190; x=1687177190; 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=WTDs5T5uCBqEAuJsK/qWf1YHHB6qWweCx58+58dFY6M=; b=WSxqB94IX2ZUUzkrSK2bHJ7McLk7ATWFYDaXsyiY92lqO2rmW4nwaP869oLl/wy8SA Bx+nLvGzZiv143HJFKP+GnfTb0ZhkC65QG/bvVAyQslSc0LAMVxizcNSPX2xZ4IUqHMR 8J+2J51Hw+XB6o9pdH/76lfQI0u+KJSbnT68xvn3TfpVPTu/SM1ZkGPILbne+jmcEYrz tchwM/hSOEwvJk42S+JUCl5KrMwXAHRMzfJl6mlwK+5WqiqcWxsd0NQDDapYtNxNpz3j Efp0mbMQpw7r3eTapiiR1xYi5OKw09NqqfdjmoL2aprrsa0w2nbSb9ONBhf2zXzKyaaa O+5g== X-Gm-Message-State: AC+VfDwj/BzEXpgtwmakX2zMsE9VUQHfI2wm9gmfVYSsfEjyaLmRsTAy HgNR2jx2H59nOoXr0WbaZ5+CBbzECyTYnA== X-Google-Smtp-Source: ACHHUZ7QrfT/5BEmdGjiycLsgUYp3379mFZ57nb3ewc71UgOq/XL5au1ti4PjtbZ4KAqOFZko4dcsg== X-Received: by 2002:ac2:5dfa:0:b0:4f1:36fb:7535 with SMTP id z26-20020ac25dfa000000b004f136fb7535mr1901973lfq.68.1684585190237; Sat, 20 May 2023 05:19:50 -0700 (PDT) Received: from i-vetokaappi.home.lan (dsl-hkibng42-56733b-36.dhcp.inet.fi. [86.115.59.36]) by smtp.gmail.com with ESMTPSA id r11-20020a19ac4b000000b004edafe3f8dbsm260303lfc.11.2023.05.20.05.19.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 May 2023 05:19:49 -0700 (PDT) From: =?utf-8?q?Matti_Lehtim=C3=A4ki?= To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, =?utf-8?q?Matti_Lehtim=C3=A4ki?= , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 4/4] ARM: dts: qcom: msm8226: Add IMEM node Date: Sat, 20 May 2023 15:19:33 +0300 Message-Id: <20230520121933.15533-5-matti.lehtimaki@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230520121933.15533-1-matti.lehtimaki@gmail.com> References: <20230520121933.15533-1-matti.lehtimaki@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This enables userspace to signal the bootloader to go into the bootloader or recovery mode. The magic values can be found in both the downstream kernel and the LK kernel (bootloader). Signed-off-by: Matti Lehtimäki --- Changes in v2: - Always enable IMEM node - Move reboot-mode magic numbers to platform, those should be always the same --- arch/arm/boot/dts/qcom-msm8226.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8226.dtsi b/arch/arm/boot/dts/qcom-msm8226.dtsi index 8644540f5aae..284b7c666fea 100644 --- a/arch/arm/boot/dts/qcom-msm8226.dtsi +++ b/arch/arm/boot/dts/qcom-msm8226.dtsi @@ -641,6 +641,20 @@ smd-edge { label = "lpass"; }; }; + + sram@fe805000 { + compatible = "qcom,msm8226-imem", "syscon", "simple-mfd"; + reg = <0xfe805000 0x1000>; + + reboot-mode { + compatible = "syscon-reboot-mode"; + offset = <0x65c>; + + mode-bootloader = <0x77665500>; + mode-normal = <0x77665501>; + mode-recovery = <0x77665502>; + }; + }; }; timer {