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: 96792 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp341891vqo; Sat, 20 May 2023 05:49:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ61wRES+mQ9iaEklwSJr5XZdcd+YyvEmQjKRvIq9+796tLFleL0+ShHYcNWLYxrrQF2VgY6 X-Received: by 2002:a05:6a00:16cd:b0:644:ad29:fd5a with SMTP id l13-20020a056a0016cd00b00644ad29fd5amr7415518pfc.21.1684586981925; Sat, 20 May 2023 05:49:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684586981; cv=none; d=google.com; s=arc-20160816; b=b/T7JQGnbjzKyQ8hjVzJEn2SMonBDW0QdvZd2xGcVcXwMaKxipb6DLjDMY8QF/yKFs +OOKWLOGJ9/PhjSxbM4sDYF1/VXdFUDD92B57agiwX5mPL/CqxWyu9pKqBPQDSYQG2Bo bTFQyEyX7HxKHHtyPdCZKm3kUan9L8Y6WRO+3WkVoFN0Eq0NldIMm9Bn6wop0F8Nddob N8CTgpf7kSRv0T8K7doUa4OpZh6j9evlOFIvq7/44rg7dqgqprJYKWtU+cjxMH9x4+mu 8FOY6TME/i1X3JCseXeT9v5zXokfu6MEKqHeDmg7wfOucvxW11tBNhnoCpd2lua8TZeg SX1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Nkz39YrJHA4xIA+wIv9InZQXMShtNvAlPjiM6h9FHQQ=; b=tKXNvYiUNTyncaEtYQMcu699UOb4qUPhR1xG839xkbkh/E2j6pEcZ47e1GMYc9Fey3 b9kFq9lwhVeyesKT/0fowjtBxpXVyfaDfW1MaZx6wxewHR+RuzLqPF+lIaYhlav+P7Ge XremfKjx+qQqv9Ge7m+CD7JCuSAMKuZ/Ut9A8SQVEtc+NgasOg8CYF1lEDw+onfsoPNd lorLnq3hEyBqn6EtKZkNFPjxCoHwdxtcSQe0yEZ0rOazDzruJv9AYO2XuhZCp3Dxjzvv 7nmUZKh7Uq6DQMpgoDKHYNbyZ9wzn7Q4hDtEeQy0W8kEkuaqACzsrgA1wbTRj7m7jxOO q3ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=oJZL2xeV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e10-20020aa7980a000000b006414f28725bsi1462178pfl.195.2023.05.20.05.49.28; Sat, 20 May 2023 05:49:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=oJZL2xeV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231716AbjETMUL (ORCPT + 99 others); Sat, 20 May 2023 08:20:11 -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-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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766417479385833324?= X-GMAIL-MSGID: =?utf-8?q?1766417479385833324?= 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:31 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: 96774 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp327647vqo; Sat, 20 May 2023 05:21:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6kt0pa0XQC4EIeZY2KYkRIeDiIXC/5eGDfdSms+F7n17Or6vJlJVt2U5mcY2rTgE/iNRaQ X-Received: by 2002:a05:6a20:4326:b0:105:c456:ab99 with SMTP id h38-20020a056a20432600b00105c456ab99mr5993259pzk.9.1684585269683; Sat, 20 May 2023 05:21:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684585269; cv=none; d=google.com; s=arc-20160816; b=V0O2awtSlCXkPr+sXFA89NvlskV/ZGAy2376wX85OLzlaRF/O4c+CWxku7PaNIAFVn WCPearLZ57HYr1jaNE6VlAzO/dFK4GuiPnVB5CKDoUaG5Nw1WoQPhFk07shfHD6BLIY3 g1Ed4dbcMaxpMHBZZHegkyt1PlSMfdDRbwXDpaj6BmD6ipdgdmOl3QQKfP4h6m6n5Ln7 fGav9zsTN34r2GaByuyEIBAtYo5p/IsDITFzbiwqkbQXVjRCxwlh+cyPw0G469/b89cS TnkOQv89gmKheQvJafm7lWTIo7gx2EC0Mo8MI1bT1YIPz2/CnyAejeNEcG7u0eFt1rVW 1q+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=HLWcNUEmD5KRuqZKbHywHfuAL7jMD5q/InsGM6uky1g=; b=avjh8tW55+J/usRcA24FddWiJMH8CboXP1RFZkfEsTFTTaBtBq/JSsijcijhrSZPBN Fr3+cqkebUZ0akFVnFHVhopedtNgzEWoQamfaBmdO41UuFngviLU2TpMWWloGyDLKrFC N+scEZDk3XQ5F/R4m3v6idnw8QknusiobJbIO5eTliVI2sAvQl0U8YKxhvsMZXRlKN5g QBU/zdV474WEeoweDpLXayy9fsqFfLduo2tOWhwI+1T3h+c0+JBKg6wQPNi2tTBjecIB li3Gr6OtBF4JDjtBX3UfyGrHkNjzZI9+emRxwxIfggLsFiP7qrVqyXpBnFno2zfyRHC2 FYXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=KuUgk+3u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f3-20020a637543000000b0051fc9e06b8csi1427404pgn.378.2023.05.20.05.20.57; Sat, 20 May 2023 05:21:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=KuUgk+3u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231292AbjETMUI (ORCPT + 99 others); Sat, 20 May 2023 08:20:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231530AbjETMTt (ORCPT ); Sat, 20 May 2023 08:19:49 -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 9958A10D; Sat, 20 May 2023 05:19:48 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-4f3b4ed6fdeso749293e87.3; Sat, 20 May 2023 05:19:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684585187; x=1687177187; 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=HLWcNUEmD5KRuqZKbHywHfuAL7jMD5q/InsGM6uky1g=; b=KuUgk+3uq/s+fGH615FVDuePn2pvdC6U9gg2Ar4ap/HV9DERpvR5PT6e3EUTXkCZuc tTB3zYlefJranYbSY3qrYgFIQIYBqv5W6W21Iz+6aBGfka4/fmvyeBbT3ElrYT8z6NDN hkpuavg34iytIqRwTeIKEupyUyBRjCXvcS/Oqo6o6SSFZEikqY89q5vXCyg6GrZRc/mV xYCij35niKK6LMPUSi1Ij7vls+9JyLOdfK72Lzyopj97XsscBULyFSLAUysj+181S6Ge iqNxz64upDMJgwg13OrJIp9XeCJ5pFseYU2qOuapWiyjbXjTW3gpCLYjkU94/VjePVST tQWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684585187; x=1687177187; 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=HLWcNUEmD5KRuqZKbHywHfuAL7jMD5q/InsGM6uky1g=; b=M/VianzjFrlYr8JctQTGsHAol8YKq1aqTThOao08YZJWrmZvKLm1rEBoECRnNptdpN XWjSgTKTS5bkklwNPJytdLP9XGdEAwRuL9wSwCkG5vo8h3tBQp0krzoepd+FZPYDHyP5 KEC77N9o9sdLWniCbBD4RuSj2J78PAMH+RTxT0fcvfR8h/5qpLqxP9yC7ydSE1Jnxqdo t92xk90UuSKnl43L+kIMubCNwK78zygh63E3HAhQcxF3q1lbZ70mbARAMVnNkVOxcqEe 7P1ByvxBMze8/hmj7YkaSZkX+iAL1pg40wKnvZAjsLulYiSIlgBx6R5R0JMvPyhMgWTm /Cnw== X-Gm-Message-State: AC+VfDxSnDpClkai4jzgkz63QVvwxKX05tlO4Cz98k4W9/MDxcHUIy5j W2iG1ucNNjg0nkZYX4XJsYNs/eRdzHEiDQ== X-Received: by 2002:ac2:5509:0:b0:4f2:5e4b:3e3f with SMTP id j9-20020ac25509000000b004f25e4b3e3fmr1711450lfk.61.1684585186713; Sat, 20 May 2023 05:19:46 -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.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 May 2023 05:19:46 -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 2/4] ARM: dts: qcom: msm8226: Add PMU node Date: Sat, 20 May 2023 15:19:31 +0300 Message-Id: <20230520121933.15533-3-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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766415683438928901?= X-GMAIL-MSGID: =?utf-8?q?1766415683438928901?= Enable perf events on MSM8226 devices by adding the PMU node. Signed-off-by: Matti Lehtimäki Reviewed-by: Luca Weiss --- Changes in v2: - Use constants instead of magic number --- arch/arm/boot/dts/qcom-msm8226.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8226.dtsi b/arch/arm/boot/dts/qcom-msm8226.dtsi index c373081bc21b..cb4b4a6d0447 100644 --- a/arch/arm/boot/dts/qcom-msm8226.dtsi +++ b/arch/arm/boot/dts/qcom-msm8226.dtsi @@ -46,6 +46,12 @@ scm { }; }; + pmu { + compatible = "arm,cortex-a7-pmu"; + interrupts = ; + }; + reserved-memory { #address-cells = <1>; #size-cells = <1>; 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: 96773 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp327628vqo; Sat, 20 May 2023 05:21:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4qRJPrzHrV/vO2oMSf7kth8tB6QcN4xDXYVmoc8bGemfA6an38DSKrxzrK5LN9A7rluvvC X-Received: by 2002:a05:6a00:2190:b0:63b:89a2:d624 with SMTP id h16-20020a056a00219000b0063b89a2d624mr6607692pfi.12.1684585267180; Sat, 20 May 2023 05:21:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684585267; cv=none; d=google.com; s=arc-20160816; b=vSiyFFo9piNxHe5t29j8ZzVL6ujzutoAmh3T0PT2JyZkt0ZYS9hgHZ+WsCO7YtWC2q TRynwRZJxpU/v2nbktQBPtXjvlWAv3lnkZkQKh+GFlJ0AKm/1A/DQYbaP3VIK4V2smXv uzchVWx3iJuJawRxHiBf3/XRtCzHDgo12qWnS6/DGJHKWvRY3iIdnRZ0bQNNNQb08uCu 0rjYbriVp+CJS5iXTMa/zmzcXgiu5X/FRN5C5nip/fJy/G+sBgfSTcBLHZINhDAhAXoR +KhKpxOLaa+UPlsLGngE8uebRwz48MyVEsqdicoPlDK5job4WGBocSGLVqg53amxrfEz //sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=UjXc4/GMRnCq9hjwFiP+znUTBS6Bv1a1cDU4Wv6DmUE=; b=s9SiU6Z8TQRdouqmzWoSIPaWvvkEiewlwMK3PwLpNpotV8k1NXPLVBAEYoB2Npu1Lo s8nUPSFjozIbjL2AnFhNO9fOskX9llpywk1VkYrc9nFgRFXvZjlThaOjfKey4EgkqclL t2YwHcC+ud+glaJp1MQi1YiSAKQ1yCxakVtf/gfmtVx5G4SaFNKIfCyjwXOLh2DDJdMl y6EPxiDHEv/KsCAljRDcz6Jicd7fZt2+y+ddf3QibpU2MbVqVQi98bRT8cskm7oUI5Qn Nt7i4w/4n4gKNPSUr+mo0AAlIClN6Im7mHSIY+ZbA8G1UZZ/KQzngt6Hki5yC3nSFNLF 24Gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=epNksI2V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w128-20020a623086000000b00648628d3103si1392680pfw.377.2023.05.20.05.20.55; Sat, 20 May 2023 05:21:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=epNksI2V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231710AbjETMUE (ORCPT + 99 others); Sat, 20 May 2023 08:20:04 -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-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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766415680995141298?= X-GMAIL-MSGID: =?utf-8?q?1766415680995141298?= Add device node for the rpm-stats pseudo device. Signed-off-by: Matti Lehtimäki Reviewed-by: Konrad Dybcio Reviewed-by: Luca Weiss --- 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: 96786 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp338430vqo; Sat, 20 May 2023 05:42:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4wigbsAKYSCotU2aqV+nL7NUoG1pl6RN8BrjFLb31SRyh4IflTqHFIF6hYgve2xBPjWNlY X-Received: by 2002:a17:902:c944:b0:1ab:675:3e0c with SMTP id i4-20020a170902c94400b001ab06753e0cmr7462712pla.33.1684586533131; Sat, 20 May 2023 05:42:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684586533; cv=none; d=google.com; s=arc-20160816; b=wmph0vuuOfn+SjCBp79OC2uHb2gkOVR6v75frDvkYjzm+YUm8niCdYXwxh79BfGvSm YwSqkdR4UZt6b4vsgkKPUtIr3TvBua77fprRbJw8p836AW7BHnkPhznIwxEpdkDnQEhP avL9MlwjMuvbnjBpds9L0CgZV2Ld5U0r2BbwBtFDWm+lpybqDZLRB15rzy0m49BsO2KZ vpi/GsRs1p//7kAnzZkC5Zm+Vw3WH98slUR8tzoR8Uvlp8imN7MRDaoEnlHCzqKeUZMt GGSte50yW3vVV5xrPU6QyeC48frQe/MoGtJwaBsDgFK7XRREB0Hq6dQEXxNhmiCM+AwE ng+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=WTDs5T5uCBqEAuJsK/qWf1YHHB6qWweCx58+58dFY6M=; b=qLcjzWjq9BiaHJ7M+iHBN08Nk1fn7r0MNC8c3J77tMFsTqBRpv5aPTNh9zFMybOkhc U3+L6z0yszCD0ZDAF/zUlc34QR6ar0zYog47bKU+2T7dkVOfB/+at944NNcZX6nBUYRP z5ym33BOG4wjItI6lGTM9KLkjV6q37bSxLgBVSMFj5RYaoa10f4DBIbsS2OVTngktitq yaplHA7kBiRvdi36PIwvtu9RctD6SQMoI+V3GFv8mtaXpeItkArl/WlIvVVc1alZDi93 Dr9JKKejZbUZXAZB/itf2sWaOlNayiiHla4IjhZjg57j15CeqQKxoxJCEpX0km23oWCv v72Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=Of4IIg1K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 1-20020a170902ee4100b001ae3214162esi1324434plo.227.2023.05.20.05.41.58; Sat, 20 May 2023 05:42:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=Of4IIg1K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231576AbjETMUR (ORCPT + 99 others); Sat, 20 May 2023 08:20:17 -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-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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766417008740660930?= X-GMAIL-MSGID: =?utf-8?q?1766417008740660930?= 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 Reviewed-by: Luca Weiss --- 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 {