Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp3903523rwn; Sun, 11 Sep 2022 00:27:40 -0700 (PDT) X-Google-Smtp-Source: AA6agR7L0PqEEowHBJEEPjaIRsCo+Egbi2ZLZS+TUN2lMOKWIFcSSRUMgnKFvkawigQE7OaO3ozm X-Received: by 2002:a05:6402:c45:b0:442:c549:8e6b with SMTP id cs5-20020a0564020c4500b00442c5498e6bmr18095020edb.123.1662881260584; Sun, 11 Sep 2022 00:27:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662881260; cv=none; d=google.com; s=arc-20160816; b=YSlnCK/OHAB+b2YFq/+c5h3tHiHhgdGdqR+hH0ktS3wCwucmf+UZIIUSdmffoAL58/ ZelzFhfk9WGq8K+wKZ0Jt3HHmJ4BdDbZWbGXm01Lp02YahroS75wftWcqguOmrJFwlUD idINQzGL8/+3X1E1trr7WjL4nRNZEDhSo/eryWCeQFxXLOq94E3BsP+h3rOsgTi26Im1 YSUDj0gU8fw0I1ZTAKv+fZGUhLbkj05weAK9zSvxOxM2NqsHmIW21N9cMqAFhwU0yY4h J+WL58EBn6VAw7J2+dnA4Wb0QqpOemtQ4RG7fqnl28/OfF4DzZtCbnrZEyIwisxZCHdP W3lQ== 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; bh=4v1qWI4c36Tpz9t+82lFqKQJrb/UcqAH+ivojqVxYVc=; b=HHgcgK34ePkD06nj5K2OU2KlR3uxmLbEsXnm27jhdOcoaF7yYgGXdhTLl5liI15+sd KOEeohIifC5EUgaHZNDPk0zMYKBMCA4osMYdqoTXCeWvLmsl7fXa49ZgQm1jhGTaJGIX yo7gCfxIBCxi6XilKIVs0CYEfv3iemuZq49kLpGjuv1Elm8NXHuwlUcMyT8oZd6Q2e79 CvmBR0F6K2LEw3tvhUhw9j7TZa2NBoA4EkOs0uoQoDXNGXRAMtu2wTFU1E57dRdq/Oi1 ieHAHMlK4SVSidhIlvUgCdysmqyY8ThFUqqDi1pJHisXkVO2evY2XRoAoMeC2m3aeDIn IG5A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ae1-20020a17090725c100b0077ccad52420si940418ejc.275.2022.09.11.00.27.11; Sun, 11 Sep 2022 00:27:40 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229967AbiIKHQK (ORCPT + 99 others); Sun, 11 Sep 2022 03:16:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229651AbiIKHP6 (ORCPT ); Sun, 11 Sep 2022 03:15:58 -0400 Received: from mail-sh.amlogic.com (mail-sh.amlogic.com [58.32.228.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 329B62B61B; Sun, 11 Sep 2022 00:15:56 -0700 (PDT) Received: from droid01-xa.amlogic.com (10.88.11.200) by mail-sh.amlogic.com (10.18.11.5) with Microsoft SMTP Server id 15.1.2507.9; Sun, 11 Sep 2022 15:15:47 +0800 From: Jiucheng Xu To: , , , CC: Rob Herring , Krzysztof Kozlowski , Will Deacon , Mark Rutland , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Chris Healy , Jianxin Pan , Kelvin Zhang , Jiucheng Xu Subject: [PATCH v7 4/4] arm64: dts: meson: Add DDR PMU node Date: Sun, 11 Sep 2022 15:15:19 +0800 Message-ID: <20220911071519.2881258-4-jiucheng.xu@amlogic.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220911071519.2881258-1-jiucheng.xu@amlogic.com> References: <20220911071519.2881258-1-jiucheng.xu@amlogic.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.88.11.200] X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 Add DDR PMU device node for G12 series SoC Signed-off-by: Jiucheng Xu Reviewed-by: Neil Armstrong --- Changes v6 -> v7: - No change Changes v5 -> v6: - No change Changes v4 -> v5: - Split reg into two items - Alphabet order location Changes v3 -> v4: - No change Changes v2 -> v3: - No change Changes v1 -> v2: - Remove model, dmc_nr, chann_nr properties - Add g12a-ddr-pmu, g12b-ddr-pmu, sm1-ddr-pmu compatibles as identifier --- arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi | 6 ++++++ arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 4 ++++ arch/arm64/boot/dts/amlogic/meson-g12b.dtsi | 4 ++++ arch/arm64/boot/dts/amlogic/meson-sm1.dtsi | 4 ++++ 4 files changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi index 45947c1031c4..9dbd50820b1c 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi @@ -1705,6 +1705,12 @@ internal_ephy: ethernet_phy@8 { }; }; + pmu: pmu@ff638000 { + reg = <0x0 0xff638000 0x0 0x100>, + <0x0 0xff638c00 0x0 0x100>; + interrupts = ; + }; + aobus: bus@ff800000 { compatible = "simple-bus"; reg = <0x0 0xff800000 0x0 0x100000>; diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi index fb0ab27d1f64..0e8b57283f31 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi @@ -133,3 +133,7 @@ map1 { }; }; }; + +&pmu { + compatible = "amlogic,g12a-ddr-pmu"; +}; diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12b.dtsi index ee8fcae9f9f0..18791ef51f58 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12b.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12b.dtsi @@ -139,3 +139,7 @@ map1 { &mali { dma-coherent; }; + +&pmu { + compatible = "amlogic,g12b-ddr-pmu"; +}; diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1.dtsi b/arch/arm64/boot/dts/amlogic/meson-sm1.dtsi index 80737731af3f..c307b34ccd72 100644 --- a/arch/arm64/boot/dts/amlogic/meson-sm1.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-sm1.dtsi @@ -520,6 +520,10 @@ &pcie { power-domains = <&pwrc PWRC_SM1_PCIE_ID>; }; +&pmu { + compatible = "amlogic,sm1-ddr-pmu"; +}; + &pwrc { compatible = "amlogic,meson-sm1-pwrc"; }; -- 2.25.1