From patchwork Fri Sep 22 00:35: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: 143329 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp5455498vqi; Fri, 22 Sep 2023 03:18:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGomGJl5PNKftSrj7J/L3g2BdhTQG4n3RupHWyEW4GsJcdiJz/wm3v3SLCd49T8po1dldI+ X-Received: by 2002:a05:6808:1827:b0:3a8:4e27:3af3 with SMTP id bh39-20020a056808182700b003a84e273af3mr9656103oib.48.1695377927777; Fri, 22 Sep 2023 03:18:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695377927; cv=none; d=google.com; s=arc-20160816; b=e51wIqem7Zurz4q6oE8KjIV6Wwe+jJu9wJ9GEbNG5+IkhHaU5B4udiBkg0Wma+4DAu xHeo+l14bz/GJFjtu1BCLGkkh6nai2KoUxVB+b4rS1IlQkS4GazKZeG+iEAKO5n+GjsA soraNz+NQDiJxNiOrCb8s2zMFysJSP2i+9aGncfAGoRLAuuYF9Bubfm5KU9+oTQpSSnF bb+v8+D1T3LsY8l9fBsNTTR5gHUYZGDx3/edqRBkRdwMQrKhro/qYUI0mOKVP0FXDVUK RGOX1M+W4SHFCFs96D0jCVpR/ejTD73j+/BEjamsmR38wqUGUg+DjK6ll6bOCWxUv+9w sGHw== 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=RcYQgV+bm9yWMYSe35j2ydaItwrEqBRiK5B5oR8hfBE=; fh=IBC6KrtlLl1nc5Mrg2fjZkgou8tZnnYWoejUSlpuLzY=; b=sEM7R/BO5pfM6WSeE0kCSMi8lQzjtiPbhCRUgnIcDBKr8pfMReIwMpsXgiQj9Z+HbH 1IL/2MDnpKQE0MA3w6VTAQZBL9/vsnSNxLhlELFXj25SL0kh1H/gJ3V1jFtjtsRe9MlA +HbanlQB2p1Rq2TBeU7XKN/BCvS1Yr6E11koDQmOeIAMbd/cD2VK2XZOLT9u37leSr/z xN2QGKJEsyZBzbmVbK9mpjpBW/rUcO5jd22PdFapytx80uVHr9MBtWkVQEZ5KxI7Sah0 DPeFiKnQIGz73K2umeCZgleeR6xXB5D4jQmgiSsAJIkzeqjO4KDqU8bbF37M9WTPlTj4 RH0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=QtSxvoVs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id x19-20020aa793b3000000b0068fcff1dc3asi3270288pff.339.2023.09.22.03.18.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 03:18:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=QtSxvoVs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id F37ED81F06A4; Thu, 21 Sep 2023 17:36:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230033AbjIVAgE (ORCPT + 29 others); Thu, 21 Sep 2023 20:36:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229649AbjIVAgC (ORCPT ); Thu, 21 Sep 2023 20:36:02 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A702114; Thu, 21 Sep 2023 17:35:57 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2c131ddfc95so16593411fa.0; Thu, 21 Sep 2023 17:35:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695342955; x=1695947755; darn=vger.kernel.org; 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=RcYQgV+bm9yWMYSe35j2ydaItwrEqBRiK5B5oR8hfBE=; b=QtSxvoVsaLKYLRee0+ENBuej5rxa34WD6NuKS1dluYFoN/TkKntsAG3+2JOc+By+Oe o9Y4DImpQatCRZx/89NhyPmQ9ukk+g7dcQoL4EMl4ZKdnw4HwjDz2xMTVcdqwnSJWNae azdNLHS6OkTUgMoN++VoNgnghCVEHuk5d8vwTRtD9atij9PhI6EENrOtZKtWiKaYqY8A h9EBJ2UM3bwKuvrTKk+8ptVu6kOOBhug0AenZTVihk84QTvugdSOzlJf7t9SpzMusfdB k2dfbZU2roOwLNKkluXIb9j0pacVyrpETATjBAUVJCQ3UKe/KeajQalzn0hjtW3szP3j Hy7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695342955; x=1695947755; 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=RcYQgV+bm9yWMYSe35j2ydaItwrEqBRiK5B5oR8hfBE=; b=DohMzkcdtdtyESZAu8vJtwlPRHg9GpSl0qV5egijcwGvlJXJekcUTrPtBMwL/5KpsO 285feX+3Xz09zWe6sQ3xG9uEzok5LgZoUQw1RXTsbRkJvda92OUWU9Cln+2WIjaMH6uP +AhVJdnIO1am4E0LbhXXgOorjb8OtgWHBpxkzPk0sFTihVXcU7g3qJvayXqWlAanBo8p eMOa8w69JF2HqMQ1xRrQzjDoQxVJPuKZGXmiVwV9WLlXKp+Z4sXxpRWAjP3EVlCsEyG6 8GNMxUFOacPfL3WBLb1TYKzVYASK5QT5X5vt+/jmylriZBbIIrBK/tIq7GjH/us4mQY8 mB1A== X-Gm-Message-State: AOJu0YzvPIWbb4b6sXmwfzFIGiiVFMOiP3z8f4f/SurOPSiiCMo3vSZC VUQdn47VRB7Z67QBgP2/LdTUJUpTbYIVWA== X-Received: by 2002:a2e:8747:0:b0:2bc:d582:e724 with SMTP id q7-20020a2e8747000000b002bcd582e724mr6045179ljj.31.1695342955274; Thu, 21 Sep 2023 17:35:55 -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 j23-20020a2e3c17000000b002bff365c7bfsm615462lja.35.2023.09.21.17.35.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 17:35:54 -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/2] ARM: qcom: msm8226: Add rpm-master-stats node Date: Fri, 22 Sep 2023 03:35:32 +0300 Message-Id: <20230922003533.107835-2-matti.lehtimaki@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230922003533.107835-1-matti.lehtimaki@gmail.com> References: <20230922003533.107835-1-matti.lehtimaki@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 21 Sep 2023 17:36:17 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777732606372564373 X-GMAIL-MSGID: 1777732606372564373 Add rpm-master-stats node for MSM8226 and the required RPM MSG RAM slices for memory access. Signed-off-by: Matti Lehtimäki Reviewed-by: Luca Weiss --- arch/arm/boot/dts/qcom/qcom-msm8226.dtsi | 32 ++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/arch/arm/boot/dts/qcom/qcom-msm8226.dtsi b/arch/arm/boot/dts/qcom/qcom-msm8226.dtsi index 44f3f0127fd7..98cc5ea637e1 100644 --- a/arch/arm/boot/dts/qcom/qcom-msm8226.dtsi +++ b/arch/arm/boot/dts/qcom/qcom-msm8226.dtsi @@ -56,6 +56,18 @@ pmu { rpm: remoteproc { compatible = "qcom,msm8226-rpm-proc", "qcom,rpm-proc"; + master-stats { + compatible = "qcom,rpm-master-stats"; + qcom,rpm-msg-ram = <&apss_master_stats>, + <&mpss_master_stats>, + <&lpss_master_stats>, + <&pronto_master_stats>; + qcom,master-names = "APSS", + "MPSS", + "LPSS", + "PRONTO"; + }; + smd-edge { interrupts = ; qcom,ipc = <&apcs 8 0>; @@ -742,6 +754,26 @@ sram@fc190000 { rpm_msg_ram: sram@fc428000 { compatible = "qcom,rpm-msg-ram"; reg = <0xfc428000 0x4000>; + + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0xfc428000 0x4000>; + + apss_master_stats: sram@150 { + reg = <0x150 0x14>; + }; + + mpss_master_stats: sram@b50 { + reg = <0xb50 0x14>; + }; + + lpss_master_stats: sram@1550 { + reg = <0x1550 0x14>; + }; + + pronto_master_stats: sram@1f50 { + reg = <0x1f50 0x14>; + }; }; tcsr_mutex: hwlock@fd484000 {