From nobody Thu Apr 2 22:24:10 2026 Received: from mail-sc.amlogic.com (unknown [64.106.246.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 51C9F34751C; Thu, 26 Mar 2026 09:32:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.106.246.77 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774517529; cv=none; b=DQ79V5amtcOVtTLuH2TURq3ApDmzxVNTQHgjLMk3SXtsfRdsjJ8Yz1guWXKUXP4qu1mMe9g/iReo5K4EMp8O7//jDqruIrcG2gTvEjPXdF5lIp3UoounizsaH1Ye2imDtsVVOtx0elYVTbBqZKj3RKSUAU7OPwqomy13wxuG7Hw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774517529; c=relaxed/simple; bh=ZS+mni+DG21izNCvLs9bEFDU/kwUdP/kClRFAklpS2k=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ChwbYmAuZFasUd/w2JJTmlwJNVvAr/6q9mjZsNj/SWtUWitcP1Knq9QhOoODl7n2iv7JAYHveNWodlSy7GUMG0ILcLvE1M+kDpNDWDZBHWo/HO/ylUGaRw5RIHM4KId1Flk4SuOJZC04NVko6zb598j/viN157GeIcQ1ejvdDmk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amlogic.com; spf=pass smtp.mailfrom=amlogic.com; arc=none smtp.client-ip=64.106.246.77 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amlogic.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=amlogic.com Received: from rd03-sz.software.amlogic (10.28.11.121) by mailsc.amlogic.com (10.8.11.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.35; Thu, 26 Mar 2026 02:26:03 -0700 From: Jian Hu To: Jerome Brunet , Neil Armstrong , Kevin Hilman , "Martin Blumenstingl" , Stephen Boyd , Michael Turquette , robh+dt , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: Jian Hu , Ronald Claveau , devicetree , linux-clk , linux-amlogic , linux-kernel , linux-arm-kernel , Ferass El Hafidi Subject: [PATCH v3 1/3] dt-bindings: clock: amlogic: Fix redundant hyphen in "amlogic,t7-gp1--pll" string. Date: Thu, 26 Mar 2026 17:26:43 +0800 Message-ID: <20260326092645.1053261-2-jian.hu@amlogic.com> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20260326092645.1053261-1-jian.hu@amlogic.com> References: <20260326092645.1053261-1-jian.hu@amlogic.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: mailsh.amlogic.com (10.18.11.5) To mailsc.amlogic.com (10.8.11.35) Content-Type: text/plain; charset="utf-8" Fix redundant hyphen in "amlogic,t7-gp1--pll" string. Fixes: 5437753728ac ("dt-bindings: clock: add Amlogic T7 PLL clock controll= er") Signed-off-by: Ronald Claveau Signed-off-by: Jian Hu Reviewed-by: Krzysztof Kozlowski --- .../devicetree/bindings/clock/amlogic,t7-pll-clkc.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/clock/amlogic,t7-pll-clkc.ya= ml b/Documentation/devicetree/bindings/clock/amlogic,t7-pll-clkc.yaml index 49c61f65deff..b488d92b7984 100644 --- a/Documentation/devicetree/bindings/clock/amlogic,t7-pll-clkc.yaml +++ b/Documentation/devicetree/bindings/clock/amlogic,t7-pll-clkc.yaml @@ -72,7 +72,7 @@ allOf: contains: enum: - amlogic,t7-gp0-pll - - amlogic,t7-gp1--pll + - amlogic,t7-gp1-pll - amlogic,t7-hifi-pll - amlogic,t7-pcie-pll - amlogic,t7-mpll --=20 2.47.1 From nobody Thu Apr 2 22:24:10 2026 Received: from mail-sc.amlogic.com (unknown [64.106.246.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4ECD8322C73; Thu, 26 Mar 2026 09:27:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.106.246.77 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774517229; cv=none; b=iNxZJrOVAkcI5Y/pSKHCKGWsl5Z1Y8B8czNPW1lV0xcRGvfQzFl9FJ0UoVpoC/eMNCslnLtWDAIXUzBtAP9nnXJ3T5b8Xt9BBZS+3pxnB6gKT9/qJm9KuqqGod2MLgcri9yZrDPpaKggw2TvLqfIQgmds/6fYVR9VPD+I69oGKQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774517229; c=relaxed/simple; bh=YiOpBYpC7zIceCNPlIOnkQdJViqvTrsjnZpf6ZBADj0=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=U1LxZ7wc0Vrc9kA8vSHG6XYevMoQLnw6MNMW0dazmIK7cXJsEheFJiXpnlu8c5mQoiVYK63uDA+Jizv1c0ghBXTJeDA4a0xndQtbMrTYx0gGXrGET95KP7PAQhjN1+imdC+O3JpAHnCmhE4ltNNO/JPVFXKy1U17DPE5/NEJL34= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amlogic.com; spf=pass smtp.mailfrom=amlogic.com; arc=none smtp.client-ip=64.106.246.77 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amlogic.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=amlogic.com Received: from rd03-sz.software.amlogic (10.28.11.121) by mailsc.amlogic.com (10.8.11.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.35; Thu, 26 Mar 2026 02:26:07 -0700 From: Jian Hu To: Jerome Brunet , Neil Armstrong , Kevin Hilman , "Martin Blumenstingl" , Stephen Boyd , Michael Turquette , robh+dt , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: Jian Hu , Krzysztof Kozlowski , devicetree , linux-clk , linux-amlogic , linux-kernel , linux-arm-kernel , Ronald Claveau , Ferass El Hafidi Subject: [PATCH v3 2/3] dt-bindings: clock: amlogic: t7: Add missing mpll3 parent clock Date: Thu, 26 Mar 2026 17:26:44 +0800 Message-ID: <20260326092645.1053261-3-jian.hu@amlogic.com> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20260326092645.1053261-1-jian.hu@amlogic.com> References: <20260326092645.1053261-1-jian.hu@amlogic.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: mailsh.amlogic.com (10.18.11.5) To mailsc.amlogic.com (10.8.11.35) Content-Type: text/plain; charset="utf-8" The mpll3 clock is one parent clock of the sd_emmc and mipi_isp clocks on the Amlogic T7 SoC, but was missing from t7-peripherals-clkc.yaml bindings. Add the mpll3 clock source to the T7 peripherals clock controller input clock list, so that sd_emmc and mipi_isp can use it. For logical consistency, place the required mpll3 entry before the optional entry. This change breaks the ABI, but while the amlogic,t7-peripherals-clkc bindings have been merged upstream, the corresponding DT has not been merged yet. Thus, no real users or systems are affected. Fixes: b4156204e0f5 ("dt-bindings: clock: add Amlogic T7 peripherals clock = controller") Signed-off-by: Jian Hu Reviewed-by: Krzysztof Kozlowski --- .../bindings/clock/amlogic,t7-peripherals-clkc.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/clock/amlogic,t7-peripherals= -clkc.yaml b/Documentation/devicetree/bindings/clock/amlogic,t7-peripherals= -clkc.yaml index 55bb73707d58..a4b214a941ea 100644 --- a/Documentation/devicetree/bindings/clock/amlogic,t7-peripherals-clkc.y= aml +++ b/Documentation/devicetree/bindings/clock/amlogic,t7-peripherals-clkc.y= aml @@ -24,7 +24,7 @@ properties: const: 1 =20 clocks: - minItems: 14 + minItems: 15 items: - description: input oscillator - description: input sys clk @@ -40,12 +40,13 @@ properties: - description: input gp1 pll - description: input mpll1 - description: input mpll2 + - description: input mpll3 - description: external input rmii oscillator (optional) - description: input video pll0 (optional) - description: external pad input for rtc (optional) =20 clock-names: - minItems: 14 + minItems: 15 items: - const: xtal - const: sys @@ -61,6 +62,7 @@ properties: - const: gp1 - const: mpll1 - const: mpll2 + - const: mpll3 - const: ext_rmii - const: vid_pll0 - const: ext_rtc @@ -97,7 +99,8 @@ examples: <&gp0 1>, <&gp1 1>, <&mpll 4>, - <&mpll 6>; + <&mpll 6>, + <&mpll 8>; clock-names =3D "xtal", "sys", "fix", @@ -111,6 +114,7 @@ examples: "gp0", "gp1", "mpll1", - "mpll2"; + "mpll2", + "mpll3"; }; }; --=20 2.47.1 From nobody Thu Apr 2 22:24:10 2026 Received: from mail-sc.amlogic.com (unknown [64.106.246.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 79BE9322C73; Thu, 26 Mar 2026 09:27:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.106.246.77 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774517233; cv=none; b=b70h5wnOdqsuAgOsiSGMSHk5fMY7l9pHgWszzkUHV2lJ89txzJKjXxTVXalXVPZD49wgRQ4c1keLD2yRWw4ETHRY+fevWOzh7dlnaAS65HJz0D3DhdtmcpACE1kTwpimhsEbFa3pAc2NS0+NXpLt9euTjgb+X6RQwuruT9UXPUo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774517233; c=relaxed/simple; bh=deWfPzJhzlv1fkeF50cXnzz1XyDkcw2HsSicIQ6GuRk=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=OegPHPLBgMPJHutzik3jLUjt1f0hYLms5KlhL62UcJsKB7oCUgIpzUZbyKeRyHgcj+LqRrzrYWONZgUOmJQV49zXbIrUud3Uvbku1m097/RlaIyPiQzJ24jYBzfbP4hpWIBsWGKFlTUM/rAQ5s0N+gQhL/1dC6qwrg4jyepw1nM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amlogic.com; spf=pass smtp.mailfrom=amlogic.com; arc=none smtp.client-ip=64.106.246.77 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amlogic.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=amlogic.com Received: from rd03-sz.software.amlogic (10.28.11.121) by mailsc.amlogic.com (10.8.11.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.35; Thu, 26 Mar 2026 02:26:11 -0700 From: Jian Hu To: Jerome Brunet , Neil Armstrong , Kevin Hilman , "Martin Blumenstingl" , Stephen Boyd , Michael Turquette , robh+dt , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: Jian Hu , Ronald Claveau , devicetree , linux-clk , linux-amlogic , linux-kernel , linux-arm-kernel , Ferass El Hafidi Subject: [PATCH v3 3/3] arm64: dts: amlogic: t7: Add clock controller nodes Date: Thu, 26 Mar 2026 17:26:45 +0800 Message-ID: <20260326092645.1053261-4-jian.hu@amlogic.com> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20260326092645.1053261-1-jian.hu@amlogic.com> References: <20260326092645.1053261-1-jian.hu@amlogic.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: mailsh.amlogic.com (10.18.11.5) To mailsc.amlogic.com (10.8.11.35) Content-Type: text/plain; charset="utf-8" Add the required clock controller nodes for Amlogic T7 SoC family: - SCMI clock controller - PLL clock controller - Peripheral clock controller Signed-off-by: Ronald Claveau Signed-off-by: Jian Hu --- arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi | 125 ++++++++++++++++++++ 1 file changed, 125 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi b/arch/arm64/boot/= dts/amlogic/amlogic-t7.dtsi index 6510068bcff9..a610f642953d 100644 --- a/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi +++ b/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi @@ -6,6 +6,9 @@ #include #include #include "amlogic-t7-reset.h" +#include +#include +#include =20 / { interrupt-parent =3D <&gic>; @@ -201,6 +204,34 @@ pwrc: power-controller { }; }; =20 + sram@f7042000 { + compatible =3D "mmio-sram"; + reg =3D <0x0 0xf7042000 0x0 0x100>; + #address-cells =3D <1>; + #size-cells =3D <1>; + ranges =3D <0 0x0 0xf7042000 0x100>; + + scmi_shmem: sram@0 { + compatible =3D "arm,scmi-shmem"; + reg =3D <0x0 0x100>; + }; + }; + + firmware { + scmi: scmi { + compatible =3D "arm,scmi-smc"; + arm,smc-id =3D <0x820000c1>; + shmem =3D <&scmi_shmem>; + #address-cells =3D <1>; + #size-cells =3D <0>; + + scmi_clk: protocol@14 { + reg =3D <0x14>; + #clock-cells =3D <1>; + }; + }; + }; + soc { compatible =3D "simple-bus"; #address-cells =3D <2>; @@ -224,6 +255,42 @@ apb4: bus@fe000000 { #size-cells =3D <2>; ranges =3D <0x0 0x0 0x0 0xfe000000 0x0 0x480000>; =20 + clkc_periphs: clock-controller@0 { + compatible =3D "amlogic,t7-peripherals-clkc"; + reg =3D <0x0 0x0 0x0 0x1c8>; + #clock-cells =3D <1>; + clocks =3D <&xtal>, + <&scmi_clk CLKID_SYS_CLK>, + <&scmi_clk CLKID_FIXED_PLL>, + <&scmi_clk CLKID_FCLK_DIV2>, + <&scmi_clk CLKID_FCLK_DIV2P5>, + <&scmi_clk CLKID_FCLK_DIV3>, + <&scmi_clk CLKID_FCLK_DIV4>, + <&scmi_clk CLKID_FCLK_DIV5>, + <&scmi_clk CLKID_FCLK_DIV7>, + <&hifi CLKID_HIFI_PLL>, + <&gp0 CLKID_GP0_PLL>, + <&gp1 CLKID_GP1_PLL>, + <&mpll CLKID_MPLL1>, + <&mpll CLKID_MPLL2>, + <&mpll CLKID_MPLL3>; + clock-names =3D "xtal", + "sys", + "fix", + "fdiv2", + "fdiv2p5", + "fdiv3", + "fdiv4", + "fdiv5", + "fdiv7", + "hifi", + "gp0", + "gp1", + "mpll1", + "mpll2", + "mpll3"; + }; + reset: reset-controller@2000 { compatible =3D "amlogic,t7-reset"; reg =3D <0x0 0x2000 0x0 0x98>; @@ -269,6 +336,64 @@ uart_a: serial@78000 { status =3D "disabled"; }; =20 + gp0: clock-controller@8080 { + compatible =3D "amlogic,t7-gp0-pll"; + reg =3D <0x0 0x8080 0x0 0x20>; + clocks =3D <&scmi_clk CLKID_TOP_PLL_OSC>; + clock-names =3D "in0"; + #clock-cells =3D <1>; + }; + + gp1: clock-controller@80c0 { + compatible =3D "amlogic,t7-gp1-pll"; + reg =3D <0x0 0x80c0 0x0 0x14>; + clocks =3D <&scmi_clk CLKID_TOP_PLL_OSC>; + clock-names =3D "in0"; + #clock-cells =3D <1>; + }; + + hifi: clock-controller@8100 { + compatible =3D "amlogic,t7-hifi-pll"; + reg =3D <0x0 0x8100 0x0 0x20>; + clocks =3D <&scmi_clk CLKID_TOP_PLL_OSC>; + clock-names =3D "in0"; + #clock-cells =3D <1>; + }; + + pcie: clock-controller@8140 { + compatible =3D "amlogic,t7-pcie-pll"; + reg =3D <0x0 0x8140 0x0 0x1c>; + clocks =3D <&scmi_clk CLKID_PCIE_OSC>; + clock-names =3D "in0"; + #clock-cells =3D <1>; + }; + + mpll: clock-controller@8180 { + compatible =3D "amlogic,t7-mpll"; + reg =3D <0x0 0x8180 0x0 0x28>; + clocks =3D <&scmi_clk CLKID_FIXED_PLL_DCO>; + clock-names =3D "in0"; + #clock-cells =3D <1>; + }; + + hdmi: clock-controller@81c0 { + compatible =3D "amlogic,t7-hdmi-pll"; + reg =3D <0x0 0x81c0 0x0 0x20>; + clocks =3D <&scmi_clk CLKID_HDMI_PLL_OSC>; + clock-names =3D "in0"; + #clock-cells =3D <1>; + }; + + mclk: clock-controller@8300 { + compatible =3D "amlogic,t7-mclk-pll"; + reg =3D <0x0 0x8300 0x0 0x18>; + clocks =3D <&scmi_clk CLKID_MCLK_PLL_OSC>, + <&xtal>, + <&scmi_clk CLKID_FCLK_50M>; + clock-names =3D "in0", "in1", "in2"; + #clock-cells =3D <1>; + }; + sec_ao: ao-secure@10220 { compatible =3D "amlogic,t7-ao-secure", "amlogic,meson-gx-ao-secure", --=20 2.47.1