Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp984087pxy; Sun, 1 Aug 2021 08:29:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXeD4BZYdpboX0Xlr+2nqRN+nH2SyKxoH7uXcNSNrc5aC1mvSSrQJPgvezuoDOM5hx5ylz X-Received: by 2002:a17:906:b0d1:: with SMTP id bk17mr11686506ejb.59.1627831788326; Sun, 01 Aug 2021 08:29:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627831788; cv=none; d=google.com; s=arc-20160816; b=KxhQyIPgjolYr/Uh1VSd0Wj5308xYwd0lGzdeBU8Df2Mdu/uuf0S/GCBLDdUpSzcQm dTuXSqHsLobpkTrRFT9v+OxFLqYoX79vljNT0Az58CuPRqMLnD+A9nG64t+vnZgJjlth VEX+VWdth1qhpmfGi1Cdwgrt1rYuz/sjYT7C5krFIM8fxTL4N/1FgAL1YCljH6vzj0Jf yywmHELIUFMjWtRNebaKRXLQ3B0lU3vf2qwNdcDa2tkwHaKu+dSRynU3rNPopffXuSG+ PZm62viWoyST6REVU1u6NKPbUgGftuzvMRFdlxpiZ5+8Lq6Ebg7WR+2d9ZsRmY71GGDj HXIg== 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:subject:reply-to:cc:from:to :dkim-signature:date; bh=bjcoQKv2TwfcSY5aAE1EYs9d4DrtS5AecOza1BPOH1M=; b=SJVzg1dpfRrpTI5OuZUsxigGqL9YYWvLUIw1gi0au1HxlRPz1z8pOLKxZATKC/Td6m 0jx+CiiGvIsmqo+fcVurUPZRIHh7Hb7yCdQgTFDtOACaagGvot8ZZSuY0+tGcom+4iXH 9nZVtb15+fNrQFmerK0Rj1U86/W08vYUwXf9VmxGw3KUP19UBMu+q+7aHLjQ/zIn/1h/ PdoHGU1PfMUuDKCSEzUW6O5KM9h91vqhve8mjAVsuyhxBtEErH0FZFc9bz9NuCVl/Guf 5o9kCdzsK3DxM0WyFy2bsjX7R8j0ugkompTVG+q101DkTeaAUkHvzW7tXMDlRpP+zNLz JMvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail header.b=unXaghBu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f12si8148712edx.468.2021.08.01.08.29.25; Sun, 01 Aug 2021 08:29:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail header.b=unXaghBu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232301AbhHAPZ4 (ORCPT + 99 others); Sun, 1 Aug 2021 11:25:56 -0400 Received: from mail-4325.protonmail.ch ([185.70.43.25]:28761 "EHLO mail-4325.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232291AbhHAPZz (ORCPT ); Sun, 1 Aug 2021 11:25:55 -0400 X-Greylist: delayed 19108 seconds by postgrey-1.27 at vger.kernel.org; Sun, 01 Aug 2021 11:25:53 EDT Date: Sun, 01 Aug 2021 15:25:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1627831542; bh=bjcoQKv2TwfcSY5aAE1EYs9d4DrtS5AecOza1BPOH1M=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=unXaghBuhnjL4ngqJ5Q20BmdNO3PsVRWb1TDB1oEL1uxZUu7iU0BNIlk2pJ7A6s5s fBqv8dZmBF+UJPGMZ7n7Eus82lYcbGwgF26TUv1zdjEdRU7QXI3k8MBW3cAqKKpMah jCqU61fXDADs3Zjy0jlC4gP5Okax6ijbARFklaiw= To: Andy Gross , Bjorn Andersson , Georgi Djakov , Rob Herring From: Yassine Oudjana Cc: Yassine Oudjana , AngeloGioacchino Del Regno , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Reply-To: Yassine Oudjana Subject: [PATCH v2 6/6] arm64: dts: qcom: msm8996: Add interconnect support Message-ID: <20210801152427.475547-7-y.oudjana@protonmail.com> In-Reply-To: <20210801152427.475547-1-y.oudjana@protonmail.com> References: <20210801152427.475547-1-y.oudjana@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add interconnect providers for the multiple NoCs available on the platform, and assign interconnects used by some blocks. Signed-off-by: Yassine Oudjana --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 84 +++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qc= om/msm8996.dtsi index 017c94e88c21..85055b9dd086 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -7,6 +7,7 @@ #include #include #include +#include #include #include =20 @@ -47,6 +48,7 @@ CPU0: cpu@0 { =09=09=09capacity-dmips-mhz =3D <1024>; =09=09=09clocks =3D <&kryocc 0>; =09=09=09operating-points-v2 =3D <&cluster0_opp>; +=09=09=09interconnects =3D <&bimc MASTER_AMPSS_M0 &bimc SLAVE_EBI_CH0>; =09=09=09#cooling-cells =3D <2>; =09=09=09next-level-cache =3D <&L2_0>; =09=09=09L2_0: l2-cache { @@ -64,6 +66,7 @@ CPU1: cpu@1 { =09=09=09capacity-dmips-mhz =3D <1024>; =09=09=09clocks =3D <&kryocc 0>; =09=09=09operating-points-v2 =3D <&cluster0_opp>; +=09=09=09interconnects =3D <&bimc MASTER_AMPSS_M0 &bimc SLAVE_EBI_CH0>; =09=09=09#cooling-cells =3D <2>; =09=09=09next-level-cache =3D <&L2_0>; =09=09}; @@ -77,6 +80,7 @@ CPU2: cpu@100 { =09=09=09capacity-dmips-mhz =3D <1024>; =09=09=09clocks =3D <&kryocc 1>; =09=09=09operating-points-v2 =3D <&cluster1_opp>; +=09=09=09interconnects =3D <&bimc MASTER_AMPSS_M0 &bimc SLAVE_EBI_CH0>; =09=09=09#cooling-cells =3D <2>; =09=09=09next-level-cache =3D <&L2_1>; =09=09=09L2_1: l2-cache { @@ -94,6 +98,7 @@ CPU3: cpu@101 { =09=09=09capacity-dmips-mhz =3D <1024>; =09=09=09clocks =3D <&kryocc 1>; =09=09=09operating-points-v2 =3D <&cluster1_opp>; +=09=09=09interconnects =3D <&bimc MASTER_AMPSS_M0 &bimc SLAVE_EBI_CH0>; =09=09=09#cooling-cells =3D <2>; =09=09=09next-level-cache =3D <&L2_1>; =09=09}; @@ -904,6 +909,15 @@ gcc: clock-controller@300000 { =09=09=09clock-names =3D "cxo2"; =09=09}; =20 +=09=09bimc: interconnect@408000 { +=09=09=09compatible =3D "qcom,msm8996-bimc"; +=09=09=09reg =3D <0x00408000 0x5a000>; +=09=09=09#interconnect-cells =3D <1>; +=09=09=09clock-names =3D "bus", "bus_a"; +=09=09=09clocks =3D <&rpmcc RPM_SMD_BIMC_CLK>, +=09=09=09=09 <&rpmcc RPM_SMD_BIMC_A_CLK>; +=09=09}; + =09=09tsens0: thermal-sensor@4a9000 { =09=09=09compatible =3D "qcom,msm8996-tsens", "qcom,tsens-v2"; =09=09=09reg =3D <0x004a9000 0x1000>, /* TM */ @@ -926,6 +940,61 @@ tsens1: thermal-sensor@4ad000 { =09=09=09#thermal-sensor-cells =3D <1>; =09=09}; =20 +=09=09cnoc: interconnect@500000 { +=09=09=09compatible =3D "qcom,msm8996-cnoc"; +=09=09=09reg =3D <0x00500000 0x1000>; +=09=09=09#interconnect-cells =3D <1>; +=09=09=09clock-names =3D "bus", "bus_a"; +=09=09=09clocks =3D <&rpmcc RPM_SMD_CNOC_CLK>, +=09=09=09=09 <&rpmcc RPM_SMD_CNOC_A_CLK>; +=09=09}; + +=09=09snoc: interconnect@524000 { +=09=09=09compatible =3D "qcom,msm8996-snoc"; +=09=09=09reg =3D <0x00524000 0x1c000>; +=09=09=09#interconnect-cells =3D <1>; +=09=09=09clock-names =3D "bus", "bus_a"; +=09=09=09clocks =3D <&rpmcc RPM_SMD_SNOC_CLK>, +=09=09=09=09 <&rpmcc RPM_SMD_SNOC_A_CLK>; +=09=09}; + +=09=09a1noc: interconnect@562000 { +=09=09=09compatible =3D "qcom,msm8996-a1noc"; +=09=09=09reg =3D <0x00562000 0x5000>; +=09=09=09#interconnect-cells =3D <1>; +=09=09=09clock-names =3D "bus", "bus_a"; +=09=09=09clocks =3D <&rpmcc RPM_SMD_AGGR1_NOC_CLK>, +=09=09=09=09 <&rpmcc RPM_SMD_AGGR1_NOC_A_CLK>; +=09=09}; + +=09=09a2noc: interconnect@583000 { +=09=09=09compatible =3D "qcom,msm8996-a2noc"; +=09=09=09reg =3D <0x00583000 0x7000>; +=09=09=09#interconnect-cells =3D <1>; +=09=09=09clock-names =3D "bus", "bus_a"; +=09=09=09clocks =3D <&rpmcc RPM_SMD_AGGR2_NOC_CLK>, +=09=09=09=09 <&rpmcc RPM_SMD_AGGR2_NOC_A_CLK>; +=09=09}; + +=09=09mnoc: interconnect@5a4000 { +=09=09=09compatible =3D "qcom,msm8996-mnoc"; +=09=09=09reg =3D <0x005a4000 0x1c000>; +=09=09=09#interconnect-cells =3D <1>; +=09=09=09clock-names =3D "bus", "bus_a", "iface"; +=09=09=09clocks =3D <&rpmcc RPM_SMD_MMAXI_CLK>, +=09=09=09=09 <&rpmcc RPM_SMD_MMAXI_A_CLK>, +=09=09=09=09 <&mmcc AHB_CLK_SRC>; +=09=09}; + +=09=09pnoc: interconnect@5c0000 { +=09=09=09compatible =3D "qcom,msm8996-pnoc"; +=09=09=09reg =3D <0x005c0000 0x3000>; +=09=09=09#interconnect-cells =3D <1>; +=09=09=09clock-names =3D "bus", "bus_a"; +=09=09=09clocks =3D <&rpmcc RPM_SMD_PCNOC_CLK>, +=09=09=09=09 <&rpmcc RPM_SMD_PCNOC_A_CLK>; +=09=09}; + =09=09tcsr_mutex_regs: syscon@740000 { =09=09=09compatible =3D "syscon"; =09=09=09reg =3D <0x00740000 0x40000>; @@ -1005,6 +1074,11 @@ mdp: mdp@901000 { =09=09=09=09assigned-clock-rates =3D <300000000>, =09=09=09=09=09 <19200000>; =20 +=09=09=09=09interconnects =3D <&mnoc MASTER_MDP_PORT0 &bimc SLAVE_EBI_CH0>= , +=09=09=09=09=09=09<&mnoc MASTER_MDP_PORT1 &bimc SLAVE_EBI_CH0>, +=09=09=09=09=09=09<&mnoc MASTER_ROTATOR &bimc SLAVE_EBI_CH0>; +=09=09=09=09interconnect-names =3D "mdp0-mem", "mdp1-mem", "rotator-mem"; + =09=09=09=09ports { =09=09=09=09=09#address-cells =3D <1>; =09=09=09=09=09#size-cells =3D <0>; @@ -1266,6 +1340,9 @@ gpu: gpu@b00000 { =09=09=09=09"mem", =09=09=09=09"mem_iface"; =20 +=09=09=09interconnects =3D <&bimc MASTER_GRAPHICS_3D &bimc SLAVE_EBI_CH0>; +=09=09=09interconnect-names =3D "gfx-mem"; + =09=09=09power-domains =3D <&mmcc GPU_GX_GDSC>; =09=09=09iommus =3D <&adreno_smmu 0>; =20 @@ -2289,6 +2366,9 @@ venus: video-codec@c00000 { =09=09=09=09 <&mmcc VIDEO_AXI_CLK>, =09=09=09=09 <&mmcc VIDEO_MAXI_CLK>; =09=09=09clock-names =3D "core", "iface", "bus", "mbus"; +=09=09=09interconnects =3D <&mnoc MASTER_VIDEO_P0 &bimc SLAVE_EBI_CH0>, +=09=09=09=09=09<&bimc MASTER_AMPSS_M0 &mnoc SLAVE_VENUS_CFG>; +=09=09=09interconnect-names =3D "video-mem", "cpu-cfg"; =09=09=09iommus =3D <&venus_smmu 0x00>, =09=09=09=09 <&venus_smmu 0x01>, =09=09=09=09 <&venus_smmu 0x0a>, @@ -3004,6 +3084,10 @@ usb3: usb@6af8800 { =09=09=09=09=09 <&gcc GCC_USB30_MASTER_CLK>; =09=09=09assigned-clock-rates =3D <19200000>, <120000000>; =20 +=09=09=09interconnects =3D <&a2noc MASTER_USB3 &bimc SLAVE_EBI_CH0>, +=09=09=09=09=09<&bimc MASTER_AMPSS_M0 &snoc SLAVE_USB3>; +=09=09=09interconnect-names =3D "usb-ddr", "apps-usb"; + =09=09=09power-domains =3D <&gcc USB30_GDSC>; =09=09=09status =3D "disabled"; =20 --=20 2.32.0