From patchwork Fri May 19 21:08:58 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: 13248831 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 0566EC7EE23 for ; Fri, 19 May 2023 21:09:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229903AbjESVJS (ORCPT ); Fri, 19 May 2023 17:09:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229628AbjESVJP (ORCPT ); Fri, 19 May 2023 17:09:15 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 966BE1B3; Fri, 19 May 2023 14:09:14 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-4f3a611b3ddso1629079e87.0; Fri, 19 May 2023 14:09:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684530553; x=1687122553; 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=sVkA29jSyaurdy8QAUjHMp4an2hLXRPvKPNQgP/t4Tw=; b=L/FIlUHlutnt/VijoA+z+ths1fWhaTk29AlM5ExUFKVIcKLBvW5bmign++6FNmoM4F R+upBMDYwkrXemLL7wZ7Wi1RMFqOdCG4Yvqkz/xZD9PmAz0UJ359Aec7WLGs4MBpOCnS qkL4J0IcB81TFj54bgG49LKmPNP1lIiIWP7tSUi0r5BQ5bBojD06IrvA7myCfaAhuG5S qwQu0/C7ad5Qde6/q49qe4e49n8yw5+s8LLMNcHesHyKias8heMa0GicDnnE5HF9ChNS l0bwmBhWlIF1wUNImjPWJI9zQC9RRd776HJurcHrErEdJVnV3cBhztVE16aBx8XMuX+C Uh5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684530553; x=1687122553; 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=sVkA29jSyaurdy8QAUjHMp4an2hLXRPvKPNQgP/t4Tw=; b=IaQqB9bqKNO4Mopx9wjPPrXxihpPMBaPd+gu9Yj2RMtRWR2Sy8MHENjfYinmeokZ6p DK8fqPQQiv2c2WJrn9qqOvKYl9ldnzuzkpmODHJG0ueNtCV/zvKYzcUsi8l+kSRvi18P kXikmS3DksX7Q418DFreU5fewnGX7dQVqalMyj1lAhR+xpQrHxdjrAqHum1CncE9ppUL LxDVVhiZHKIm0Ze3MsxYGsTBm3iVO2H2oh5RY3dYwQWOtGcPYngQLyxoNNACJSs/PeGZ xFh2J7TX8lOy0i2pbn5YNaHbfjROfwtMqq8dyW6iP3HjNHfgyVl/baV+1Rrfg9AGF3N2 gXdw== X-Gm-Message-State: AC+VfDwG0WqWj+hgQ6bmhz/UzXeNzyHpPTS0ltQJ2n56KtHBrbWBZoYS ndIrSFMEUSlde7aWjy5q8qj5OTnQNVhPqw== X-Google-Smtp-Source: ACHHUZ5Im+v50IbU/kwY6yOXUDGqLA+gSP6h3sIyxewRLu3Cu9Q91DtpqAuuM4BlVDe+JakqqGzhZA== X-Received: by 2002:a05:6512:1105:b0:4f0:3e1:9ada with SMTP id l5-20020a056512110500b004f003e19adamr1244564lfg.31.1684530552616; Fri, 19 May 2023 14:09:12 -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 i14-20020ac2522e000000b004f3945751b2sm30043lfl.43.2023.05.19.14.09.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 May 2023 14:09:12 -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 , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/5] dt-bindings: sram: qcom,imem: Document MSM8226 Date: Sat, 20 May 2023 00:08:58 +0300 Message-Id: <20230519210903.117030-2-matti.lehtimaki@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230519210903.117030-1-matti.lehtimaki@gmail.com> References: <20230519210903.117030-1-matti.lehtimaki@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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 0548e8e0d30b..d9599ee51204 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 Fri May 19 21:08:59 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: 13248832 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 E409CC7EE2D for ; Fri, 19 May 2023 21:09:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229933AbjESVJS (ORCPT ); Fri, 19 May 2023 17:09:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229895AbjESVJR (ORCPT ); Fri, 19 May 2023 17:09:17 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98F7F1B4; Fri, 19 May 2023 14:09:16 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-4efe8b3f3f7so4230555e87.2; Fri, 19 May 2023 14:09:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684530555; x=1687122555; 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=+JPDo8e4tRBQPb+NJv/Lu6c3klf6NkNIWf2qv6QbyS4=; b=qeK0K7/7ciV2Dv6Tyj8x3RrJeIZmpngYYZzPW/c67VqZRa1XXkWbll96gHQ55D1d/Y B1Xd7YhvcdsHn/aDgBRCl3NHAubpD2t6lerGv01TXKfZ7hh0/Sa129Hp2rYPZwx5+S4k i9AE8HSWt4AYHPCmEOZTozkywXOnzmVMPSNcaNalrgMxrTnLPrW+BYOwux1hT/JZ6CNU rK2Rd+HPo7HJG0DMoaYqwTxYHHcPl+JDUe7+l5iuCk9kcAP2BtE9KxHL2HNLwVV1RtCY Y3qUZcm+I0hMHBZzULp1H2a37a4Qj4SxsLCBBTdqBleOCT3v3MAvkrCxl9EcLJe6Z77m oxQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684530555; x=1687122555; 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=+JPDo8e4tRBQPb+NJv/Lu6c3klf6NkNIWf2qv6QbyS4=; b=bS05PLzx9mxe7r4iInglR+S9yWwEUfXhi3MvDt5fIkKHoXxMtiaxKqrOjUWj6jsilq NEZ570tjVS4APAA4ruQeTTIVg6Mg1wiH7doAqqd6ZnVwSs7xue0dvsscCCgDDXBG+XUx ylEwITqibsWXofHi1o8LJj3Vdm1a77tZLmfICywEPQ7KTz8PpgU9tllF06S9o3YCe8Tg c77BzM5poZ8cPjiOZtRX9pQ/fUtl9Fh0IdjCV7E4LNpZDjQefXsuvtpF98Mv0EFx4WdT d1zsl0v8nG99TD/OpV5vaQT+WeuGHClgWtleRR88Z7jTfTiWonJwTdKKswmOKCpSvK1Z j3cQ== X-Gm-Message-State: AC+VfDxvDDbBGn1QBQc6vxQwydvOxN04AKPDyh75nZlHjpaW359XtT28 6Kp2DZtDAze3/DORT9K9mojrI2mnKx0iEw== X-Google-Smtp-Source: ACHHUZ6nizjTH51O7v8kP9632wc+WAytvtIge7YjHP10XXEIb/bQmoxiAcFLkB1H5Z7jVA/jcn0z8A== X-Received: by 2002:a19:750f:0:b0:4f2:4bc2:fc35 with SMTP id y15-20020a19750f000000b004f24bc2fc35mr1058720lfe.53.1684530554651; Fri, 19 May 2023 14:09:14 -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 i14-20020ac2522e000000b004f3945751b2sm30043lfl.43.2023.05.19.14.09.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 May 2023 14:09:14 -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 , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/5] ARM: dts: qcom: msm8226: Add PMU node Date: Sat, 20 May 2023 00:08:59 +0300 Message-Id: <20230519210903.117030-3-matti.lehtimaki@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230519210903.117030-1-matti.lehtimaki@gmail.com> References: <20230519210903.117030-1-matti.lehtimaki@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Enable perf events on MSM8226 devices by adding the PMU node. Signed-off-by: Matti Lehtimäki --- 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 42acb9ddb8cc..e272a1e15b44 100644 --- a/arch/arm/boot/dts/qcom-msm8226.dtsi +++ b/arch/arm/boot/dts/qcom-msm8226.dtsi @@ -47,6 +47,11 @@ scm { }; }; + pmu { + compatible = "arm,cortex-a7-pmu"; + interrupts = ; + }; + reserved-memory { #address-cells = <1>; #size-cells = <1>; From patchwork Fri May 19 21:09:00 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: 13248833 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 8B86DC7EE2D for ; Fri, 19 May 2023 21:09:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230156AbjESVJW (ORCPT ); Fri, 19 May 2023 17:09:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230037AbjESVJU (ORCPT ); Fri, 19 May 2023 17:09:20 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64F1CE40; Fri, 19 May 2023 14:09:18 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-4f27977aed6so4170557e87.2; Fri, 19 May 2023 14:09:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684530556; x=1687122556; 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=PY7K+Wc9C9SveL+dDAKdoaLgLphQ7DgMN6a3z63rQuU=; b=LKmHBwGxWI2e09cQBEdIalT8kNEazvXf6/sq4Pz6CHy0z7r7x6dhfd3Zol5NiihUvI wBlTVeq5TbxSrcE/tBSBlLgfv5RDLXsgiHCmTUc30M2BDCqGPodAlqXBxgj9SqJ+ZYi/ zk0qYqIWIzoAyP142RPRyMHE3YEGoMCC/8gF+VTRMESX2gFqbrwaohW29nsVzCDXA9Mq vlR3mJABSfkBQz8tOWpxxyK49WTzUc2FC5821zaLaukLO3Ttm7ikpG2Ruf/A7Sq4OfNG s39StZBQATfU3TdjKnEM3fijhA5Hfiw8qx/VRN+DdlH4LdomUASgtb+HisCgYTQ6+WCe 5wyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684530556; x=1687122556; 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=PY7K+Wc9C9SveL+dDAKdoaLgLphQ7DgMN6a3z63rQuU=; b=Bdm84Jgmi/6DQnKSMGsy3UxSeiv+om+AIgZiI3XTh+0Iz8xST8Xceh7fkQqR1MBPwa mXSRU2zn+usCyf2gfxznwBXldgYyOfRFK6Fz9p9XYz2XOnUgVmfMXiG77frc7zLsjwmm dvH/BZxJ+R+ic9BXtlBeATEhi/2C/EnzJo9z01a5XWKHfQ3WPoZg2c8+nHD3BC/aSC0Z VmI77kvrrEoh1W0ihc6Whj202NIAjVW9juwGz/71cpr0+xgwGoIpjo5wrPiim34JJbAP anNac/nsO6tJ3TIw7H1tZ3mNn8MqEKlrtOU3Yz3XS2LqVSHl7N55CUInPLB3KW/FKRq4 5RPQ== X-Gm-Message-State: AC+VfDwekfilxmZByaiV+lTZK0OqMnM1hPo50e9Tti2f+NRPqgsHXvIq Br3xyJlsum32NSv5VAEI3Ic7PjVJuLtAWQ== X-Google-Smtp-Source: ACHHUZ4togRiDLjA7kBuga8et76xuzt2G0RJ8LrQn4DwsKif6+uvGFnEJBi7EbuVrnBpeEXJIWducg== X-Received: by 2002:a05:6512:945:b0:4f3:822a:786f with SMTP id u5-20020a056512094500b004f3822a786fmr1091578lft.57.1684530556618; Fri, 19 May 2023 14:09:16 -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 i14-20020ac2522e000000b004f3945751b2sm30043lfl.43.2023.05.19.14.09.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 May 2023 14:09:16 -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 , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/5] ARM: dts: qcom: msm8226: Add rpm-stats device node Date: Sat, 20 May 2023 00:09:00 +0300 Message-Id: <20230519210903.117030-4-matti.lehtimaki@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230519210903.117030-1-matti.lehtimaki@gmail.com> References: <20230519210903.117030-1-matti.lehtimaki@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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 e272a1e15b44..006263373348 100644 --- a/arch/arm/boot/dts/qcom-msm8226.dtsi +++ b/arch/arm/boot/dts/qcom-msm8226.dtsi @@ -597,6 +597,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 Fri May 19 21:09:01 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: 13248834 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 860A2C7EE2A for ; Fri, 19 May 2023 21:09:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230114AbjESVJZ (ORCPT ); Fri, 19 May 2023 17:09:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230102AbjESVJX (ORCPT ); Fri, 19 May 2023 17:09:23 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE99DE56; Fri, 19 May 2023 14:09:20 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-4f3b4ed6fdeso241069e87.3; Fri, 19 May 2023 14:09:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684530559; x=1687122559; 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=fCVraEkibXAoKbM2fIOO1Nf6W/5PWeeWGXHiXipcxac=; b=aNx9vpqGFPB5eo78xu3N2qQWx9rK/N6N1IRiD89vMi4fczHryGDuU/galxXmJN74jO NtimkaDSSo1FXrrNgSqZQwNzytfgtQyJr1xFbsElFcCUG0p8brrJ3fFcrD4Y6pDP6i6H 3PE/1wJEUQRmIAI40adL4NRvSZDX0edlvEz/nEsZHA4cCtfu07JSmEm29oFPI4Z/jgaa VhqcffSlnG8rpliHBgJGY5uv5QELZHFKUAb33SUKhVgbW0NBYXhcl3xVV9yuzUPSdYYs dQaRjPaWxdjf0rGNt2sO1lDVLcTbMZCFppz7zXPuCfQwgs8jGFWeRNRCawr9JIYbZ/C4 gYDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684530559; x=1687122559; 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=fCVraEkibXAoKbM2fIOO1Nf6W/5PWeeWGXHiXipcxac=; b=dwCPmuGxadAowYnNOpzeSyeGtuXq3wlbT+DEjlcAMqz2dPxcISsxsdps7AXC0ji5BH H5Io4RFdDNj5la6fjAeZLGSlanSZbcBrQ9R6pfXoOL18OO9e2vEzsv2rzzLPt0LoPEoV TH64SnWk0kY/5B4vcLCsnbv0TEqH5iH8UKBi03RgSe9N7Z1KoMPOEW+Z0ztxte69jCrB x+Ss9mBnz6Qpj2XatgfTXm0/kO4nsmN7FZojzBsTLuNYWHWL7y8IPIx2trnH6uZXA5x7 +CUUX+osig4MUsyXCTPtpZRXgo3elAtfgCl8+t4dD5FwAVewS1EBJ9o47E4YNgVfzjxC EN/A== X-Gm-Message-State: AC+VfDz1Jnd52XCMpapYLPl9iaXUy0rpvK1Ows3KuTDJaHmvp+njvDmA 9a1vH+9rW056p1GMYhn8qtJatRc/KhQK3w== X-Google-Smtp-Source: ACHHUZ4havTjIs551re+Nl819h8oMaK9jJvEFCflsISfdbRBeG9bkBafbqi76y7pZwA8bT5equMN5g== X-Received: by 2002:a05:6512:376b:b0:4ef:f4ef:a1cc with SMTP id z11-20020a056512376b00b004eff4efa1ccmr987568lft.14.1684530558628; Fri, 19 May 2023 14:09:18 -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 i14-20020ac2522e000000b004f3945751b2sm30043lfl.43.2023.05.19.14.09.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 May 2023 14:09:18 -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 , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/5] ARM: dts: qcom: msm8226: Add IMEM node Date: Sat, 20 May 2023 00:09:01 +0300 Message-Id: <20230519210903.117030-5-matti.lehtimaki@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230519210903.117030-1-matti.lehtimaki@gmail.com> References: <20230519210903.117030-1-matti.lehtimaki@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This is used for example for reboot-mode which enables userspace to signal the bootloader to go into the bootloader or recovery mode. Signed-off-by: Matti Lehtimäki Reviewed-by: Konrad Dybcio --- arch/arm/boot/dts/qcom-msm8226.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8226.dtsi b/arch/arm/boot/dts/qcom-msm8226.dtsi index 006263373348..3628e48c1ec1 100644 --- a/arch/arm/boot/dts/qcom-msm8226.dtsi +++ b/arch/arm/boot/dts/qcom-msm8226.dtsi @@ -646,6 +646,18 @@ smd-edge { label = "lpass"; }; }; + + imem: sram@fe805000 { + compatible = "qcom,msm8226-imem", "syscon", "simple-mfd"; + reg = <0xfe805000 0x1000>; + + status = "disabled"; + + reboot-mode { + compatible = "syscon-reboot-mode"; + offset = <0x65c>; + }; + }; }; timer { From patchwork Fri May 19 21:09:02 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: 13248835 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 55A91C7EE26 for ; Fri, 19 May 2023 21:09:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230369AbjESVJ1 (ORCPT ); Fri, 19 May 2023 17:09:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229996AbjESVJZ (ORCPT ); Fri, 19 May 2023 17:09:25 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 435FDE40; Fri, 19 May 2023 14:09:22 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-4f13d8f74abso4257068e87.0; Fri, 19 May 2023 14:09:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684530560; x=1687122560; 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=Fgph3LS4pLGw0I7O6nZ7pygXe/8MJCvzAR/p+azXAfY=; b=HeTa9iVo1Tl/G0OAy3bTVLWiYiXWqZ29was/JRi4akoPmN5WrKU4boKnLmI8aibxUi qdZ72wazUiVMcgBnJvAifL0q79b88amjYa5wKIHpEYW54dh9MteNzz9Ss5QTeLP2qh3M BWLQuMZSVJovMUlAb7q9BFguF0XxXUPtOlOZkLOLP6jWGywdBLife11HoDbk1G69D6w7 AWUq5Vxl6BsJFzl55O8zZ1yMjNGcbEK9fgS2tID9oFPO9hn5UNDHdDHm6IS8ccDD8nVL o6mX1EJFqGXt36y5wpoZs29jhLQ/xRe0PQKbXv1fyz8cSf8Phba15FNYZIjujxsNbgZa d7hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684530560; x=1687122560; 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=Fgph3LS4pLGw0I7O6nZ7pygXe/8MJCvzAR/p+azXAfY=; b=DLFhTsA0gZoDc9kznq6LBUNU51avMd9EknTllEtMFvsGirrvLOma/FIpvEqwrRutuq 1auOteVN5cFR7bZe6mK3KJiPSSX88xlrntEorz/wywpU8zWM2GofBiw977GwJtidapOQ 0Nmph/URqngbSwnq9vFicc8p1M5F/GywA+rHjqV5+ZAiRDonNJ8rhpjsJCdJryCoWPEV 97OXs0PYXURgxArM+bd+SzSYvB7yMyiqAhFaWF75FgQNqMLPE8gTdFffveLX3r01SCi4 +OVwbKbxyfsbsnuAiOVDQu2gvdIeNjFmirjwqBSBu+e3Krc7iQI6Vrtg97lMGZkZseNh itxw== X-Gm-Message-State: AC+VfDx15SmJyoo/VJ4i4ME335E+iTT8ANC7ykr5ZKzlEHT0avSPrIZA Nl5LiAkNDNjzmySLXNA0I8FlVy+3aWK2jA== X-Google-Smtp-Source: ACHHUZ4iimSOWfmEqDIxad899sMlnIZG8XI9lBNAVhBk5RpRrZaAAkPftJTVwvGJtBsspxjH3skbKA== X-Received: by 2002:a19:ee01:0:b0:4f2:5d05:f19d with SMTP id g1-20020a19ee01000000b004f25d05f19dmr1123709lfb.69.1684530560480; Fri, 19 May 2023 14:09:20 -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 i14-20020ac2522e000000b004f3945751b2sm30043lfl.43.2023.05.19.14.09.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 May 2023 14:09:20 -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 , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/5] ARM: dts: qcom: apq8026-samsung-matisse-wifi: Add reboot-mode node Date: Sat, 20 May 2023 00:09:02 +0300 Message-Id: <20230519210903.117030-6-matti.lehtimaki@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230519210903.117030-1-matti.lehtimaki@gmail.com> References: <20230519210903.117030-1-matti.lehtimaki@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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 --- .../arm/boot/dts/qcom-apq8026-samsung-matisse-wifi.dts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8026-samsung-matisse-wifi.dts b/arch/arm/boot/dts/qcom-apq8026-samsung-matisse-wifi.dts index 91b860e24681..a05c41191efd 100644 --- a/arch/arm/boot/dts/qcom-apq8026-samsung-matisse-wifi.dts +++ b/arch/arm/boot/dts/qcom-apq8026-samsung-matisse-wifi.dts @@ -279,6 +279,16 @@ touchscreen@4a { }; }; +&imem { + status = "okay"; + + reboot-mode { + mode-bootloader = <0x77665500>; + mode-normal = <0x77665501>; + mode-recovery = <0x77665502>; + }; +}; + &rpm_requests { regulators { compatible = "qcom,rpm-pm8226-regulators";