From nobody Thu Apr 9 23:25:13 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 490C4328B58; Thu, 5 Mar 2026 07:48:50 +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=1772696931; cv=none; b=lLQnZJVUEMAPHb2MpKJGL32V/BhWJIsz5oJAxT63+MgxMtmf7zVrG8HtLGTMODmvbj8FP3qVRJftVkQjkldTiSqVlLGsWz/kkHLN0QGbzBAvRtwo9UxjsyHlqC7IDTn1ZLOUbMyT4wZNxXtSqA+SApyvWJ8VLKmgHl82Bz2/qys= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772696931; c=relaxed/simple; bh=lDTAqQUIMdIZNaQwQ0obRIy9EOlzKuemZ/T93BCTcuw=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=CUg9MAOkUlkSg6tAEVKowgIEv4biWM88sztEGQO0dNfvC7XbaC1bB5NpSkk57dfG2iVVCQosG9BD42MZ0ITUcX0JS8P9c6hK9sq5ZY5MRupM2jC953MmVEICbqjMsHit/5FUXTDIn0DphUpwTgPrgWFjha+wloXw7FODek5Rt8A= 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; Wed, 4 Mar 2026 23:42:49 -0800 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 , devicetree , linux-clk , linux-amlogic , linux-kernel , linux-arm-kernel , Ronald Claveau Subject: [PATCH 1/3] dt-bindings: clock: amlogic: Fix a typo Date: Thu, 5 Mar 2026 15:43:25 +0800 Message-ID: <20260305074328.639993-2-jian.hu@amlogic.com> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20260305074328.639993-1-jian.hu@amlogic.com> References: <20260305074328.639993-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 a typo for T7 gp1 pll. Signed-off-by: Jian Hu --- .../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 9 23:25:13 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 1352231B824; Thu, 5 Mar 2026 07:43:51 +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=1772696633; cv=none; b=CZJgbgQoKAWDIgCG9I8iuvGgRFeyq+KKpWkFgJeqpEdfzUKoe2RoLra8br2wJKXAz0UJrl1Alr/YVbwP4bcZiR0HAjYa513+U941/QgxoZJYl9V6JEZqWILDWAKJ3MdJvVfNVtCZ1fTtY6SM4rl+fD2+j/4e+mJWTQCrrr5n5so= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772696633; c=relaxed/simple; bh=wOgxUXQjc7ZmGfTuejriaWv0Ftyuun/O/CuTeqMJiMg=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Ext3QaZhoGj7GFdbsZadY9CJXK71ffORlrPXrpNReR13VAx0SX7ZHaLSVNZJNQmjvO4v2YrFAyZSbIkSku7EtoNtJP4cqNEz8Nk4fgwmmmaShH1SpqeBF8JkJyf3k5EqWRN1hcJ8K/DKVPmirqawRYaCvTFfis9e+9OGgIfc+FQ= 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; Wed, 4 Mar 2026 23:42:54 -0800 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 , devicetree , linux-clk , linux-amlogic , linux-kernel , linux-arm-kernel , Ronald Claveau Subject: [PATCH 2/3] dt-bindings: clock: amlogic: t7: Add missing mpll3 parent clock Date: Thu, 5 Mar 2026 15:43:26 +0800 Message-ID: <20260305074328.639993-3-jian.hu@amlogic.com> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20260305074328.639993-1-jian.hu@amlogic.com> References: <20260305074328.639993-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 a valid parent clock for sd_emmc and mipi_isp on the Amlogic T7 SoC, but was missing from t7-peripherals-clkc.yaml. Add it to enable proper clock parent configuration for these peripherals. Signed-off-by: Jian Hu --- .../bindings/clock/amlogic,t7-peripherals-clkc.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 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..27cc1f331587 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 @@ -98,6 +100,7 @@ examples: <&gp1 1>, <&mpll 4>, <&mpll 6>; + <&mpll 8>; clock-names =3D "xtal", "sys", "fix", @@ -112,5 +115,6 @@ examples: "gp1", "mpll1", "mpll2"; + "mpll3"; }; }; --=20 2.47.1 From nobody Thu Apr 9 23:25:13 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 41FC331F9A6; Thu, 5 Mar 2026 07:43:56 +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=1772696637; cv=none; b=fPaq/lgGqN5Tf15a/VWlfvp9fyq6jkdT6sZEfwBTljoMhXTpZbHp6FcTygqQv2R2aWTx6Dz3nKNsdg3jKkEHLIe4kInyTNhIPNcI8kkOOv61/x4Ah/E5wy77ppjW8UhcJlFsNfg3qlm7S3U4RXv8EoMhfwv65bb8RT6X1vNGGrs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772696637; c=relaxed/simple; bh=zG9U1xX13l6MHhCD0C7qV5ky/pBEDneYdYb2A/3MZk0=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=iEiqJDCQ6YeNVKY7wTNjPdyVL0/GV9oRmO6Detp8OgNofMSxjJu1pPm6/dZUpNVr6KFDaknxoDlDs2Tgc4ntQIKiy03guUKCJAtVJp0peRVX3XDxBg71Yxu9n/vURL3pC6OiZjf9KppIEvMgNf2GC+2f1LXoGkKNbFOTPjG3IfQ= 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; Wed, 4 Mar 2026 23:42:58 -0800 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 , devicetree , linux-clk , linux-amlogic , linux-kernel , linux-arm-kernel , Ronald Claveau Subject: [PATCH 3/3] arm64: dts: amlogic: t7: Add clock controller nodes Date: Thu, 5 Mar 2026 15:43:27 +0800 Message-ID: <20260305074328.639993-4-jian.hu@amlogic.com> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20260305074328.639993-1-jian.hu@amlogic.com> References: <20260305074328.639993-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: 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..6ea1b583b13d 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,33 @@ pwrc: power-controller { }; }; =20 + sram@f7042000 { + compatible =3D "mmio-sram"; + #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 +254,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>; @@ -234,6 +300,7 @@ watchdog@2100 { compatible =3D "amlogic,t7-wdt"; reg =3D <0x0 0x2100 0x0 0x10>; clocks =3D <&xtal>; + }; =20 periphs_pinctrl: pinctrl@4000 { @@ -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