[PATCH v15 29/35] arm64: dts: amlogic: use the system clock for A1/S4 crypto
From: Jose Nieto
Date: Wed Dec 02 2026 - 05:12:18 EST
The A1 and S4 crypto engines are clocked by the SoC system bus clock
provided
by the peripheral clock controller. Use <&clkc_periphs CLKID_SYS> and drop
the synthetic 64/166 MHz clk81 fixed-clock nodes.
Signed-off-by: Jose Nieto <jnieto.alaber@xxxxxxxxx>
---
arch/arm64/boot/dts/amlogic/meson-a1.dtsi | 8 +-------
arch/arm64/boot/dts/amlogic/meson-s4.dtsi | 8 +-------
2 files changed, 2 insertions(+), 14 deletions(-)
diff --git a/arch/arm64/boot/dts/amlogic/meson-a1.dtsi b/arch/arm64/boot/dts/amlogic/meson-a1.dtsi
index 396260b7b398..1b064c556c68 100644
--- a/arch/arm64/boot/dts/amlogic/meson-a1.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-a1.dtsi
@@ -691,7 +691,7 @@ crypto: crypto@6000 {
compatible = "amlogic,a1-crypto";
reg = <0x0 0x6000 0x0 0x48>;
interrupts = <GIC_SPI 120 IRQ_TYPE_EDGE_RISING>;
- clocks = <&clk81>;
+ clocks = <&clkc_periphs CLKID_SYS>;
power-domains = <&pwrc PWRC_DMA_ID>;
};
};
@@ -775,10 +775,4 @@ xtal: xtal-clk {
clock-output-names = "xtal";
#clock-cells = <0>;
};
-
- clk81: clk81 {
- compatible = "fixed-clock";
- #clock-cells = <0>;
- clock-frequency = <64000000>;
- };
};
diff --git a/arch/arm64/boot/dts/amlogic/meson-s4.dtsi b/arch/arm64/boot/dts/amlogic/meson-s4.dtsi
index de173f40e15e..c004ab7bbdfd 100644
--- a/arch/arm64/boot/dts/amlogic/meson-s4.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-s4.dtsi
@@ -71,12 +71,6 @@ xtal: xtal-clk {
#clock-cells = <0>;
};
- clk81: clk81 {
- compatible = "fixed-clock";
- #clock-cells = <0>;
- clock-frequency = <166000000>;
- };
-
firmware {
sm: secure-monitor {
compatible = "amlogic,meson-gxbb-sm";
@@ -631,7 +625,7 @@ crypto: crypto@440400 {
compatible = "amlogic,s4-crypto", "amlogic,a1-crypto";
reg = <0x0 0x440400 0x0 0x48>;
interrupts = <GIC_SPI 24 IRQ_TYPE_EDGE_RISING>;
- clocks = <&clk81>;
+ clocks = <&clkc_periphs CLKID_SYS>;
};
gpio_intc: interrupt-controller@4080 {
--
2.47.3