lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250815-add-more-socs-to-support-clk_measure-v1-3-59f04ba67457@amlogic.com>
Date: Fri, 15 Aug 2025 16:37:29 +0800
From: Chuan Liu via B4 Relay <devnull+chuan.liu.amlogic.com@...nel.org>
To: Rob Herring <robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>, 
 Conor Dooley <conor+dt@...nel.org>, 
 Neil Armstrong <neil.armstrong@...aro.org>, 
 Kevin Hilman <khilman@...libre.com>, Jerome Brunet <jbrunet@...libre.com>, 
 Martin Blumenstingl <martin.blumenstingl@...glemail.com>
Cc: devicetree@...r.kernel.org, linux-arm-kernel@...ts.infradead.org, 
 linux-amlogic@...ts.infradead.org, linux-kernel@...r.kernel.org, 
 Chuan Liu <chuan.liu@...ogic.com>
Subject: [PATCH 03/13] ARM: dts: amlogic: add clk-measure IDs and names for
 meson SoC family

From: Chuan Liu <chuan.liu@...ogic.com>

In the clk-measure driver, the method has been changed to obtain the
supported IDs and their corresponding names for SoC clk-measure through
DTS, adding support for mes8 and mes8b here.

Signed-off-by: Chuan Liu <chuan.liu@...ogic.com>
---
 arch/arm/boot/dts/amlogic/meson8.dtsi  | 92 ++++++++++++++++++++++++++++++++++
 arch/arm/boot/dts/amlogic/meson8b.dtsi | 92 ++++++++++++++++++++++++++++++++++
 2 files changed, 184 insertions(+)

diff --git a/arch/arm/boot/dts/amlogic/meson8.dtsi b/arch/arm/boot/dts/amlogic/meson8.dtsi
index a609b5a0fda4..2f9ecd2eb4cf 100644
--- a/arch/arm/boot/dts/amlogic/meson8.dtsi
+++ b/arch/arm/boot/dts/amlogic/meson8.dtsi
@@ -462,6 +462,98 @@ pwm_ef: pwm@...0 {
 	clock-measure@...8 {
 		compatible = "amlogic,meson8-clk-measure";
 		reg = <0x8758 0x1c>;
+		clkmsr-indices = <0>,
+				 <1>,
+				 <2>,
+				 <3>,
+				 <6>,
+				 <7>,
+				 <8>,
+				 <9>,
+				 <11>,
+				 <13>,
+				 <14>,
+				 <15>,
+				 <16>,
+				 <18>,
+				 <19>,
+				 <20>,
+				 <21>,
+				 <22>,
+				 <23>,
+				 <24>,
+				 <26>,
+				 <28>,
+				 <30>,
+				 <31>,
+				 <32>,
+				 <33>,
+				 <34>,
+				 <35>,
+				 <36>,
+				 <38>,
+				 <39>,
+				 <40>,
+				 <41>,
+				 <42>,
+				 <43>,
+				 <44>,
+				 <45>,
+				 <46>,
+				 <47>,
+				 <48>,
+				 <49>,
+				 <59>,
+				 <60>,
+				 <61>,
+				 <62>,
+				 <63>;
+		clkmsr-names = "ring_osc_out_ee0",
+			       "ring_osc_out_ee1",
+			       "ring_osc_out_ee2",
+			       "a9_ring_osck",
+			       "vid_pll",
+			       "clk81",
+			       "encp",
+			       "encl",
+			       "eth_rmii",
+			       "amclk",
+			       "fec_clk_0",
+			       "fec_clk_1",
+			       "fec_clk_2",
+			       "a9_clk_div16",
+			       "hdmi_sys",
+			       "rtc_osc_clk_out",
+			       "i2s_clk_in_src0",
+			       "clk_rmii_from_pad",
+			       "hdmi_ch0_tmds",
+			       "lvds_fifo",
+			       "sc_clk_int",
+			       "sar_adc",
+			       "mpll_clk_test_out",
+			       "audac_clkpi",
+			       "vdac",
+			       "sdhc_rx",
+			       "sdhc_sd",
+			       "mali",
+			       "hdmi_tx_pixel",
+			       "vdin_meas",
+			       "pcm_sclk",
+			       "pcm_mclk",
+			       "eth_rx_tx",
+			       "pwm_d",
+			       "pwm_c",
+			       "pwm_b",
+			       "pwm_a",
+			       "pcm2_sclk",
+			       "ddr_dpll_pt",
+			       "pwm_f",
+			       "pwm_e",
+			       "hcodec",
+			       "usb_32k_alt",
+			       "gpio",
+			       "vid2_pll",
+			       "mipi_csi_cfg";
 	};
 
 	pinctrl_cbus: pinctrl@...0 {
diff --git a/arch/arm/boot/dts/amlogic/meson8b.dtsi b/arch/arm/boot/dts/amlogic/meson8b.dtsi
index 2d77b9876bf4..74fd000569a2 100644
--- a/arch/arm/boot/dts/amlogic/meson8b.dtsi
+++ b/arch/arm/boot/dts/amlogic/meson8b.dtsi
@@ -416,6 +416,98 @@ pwm_ef: pwm@...0 {
 	clock-measure@...8 {
 		compatible = "amlogic,meson8b-clk-measure";
 		reg = <0x8758 0x1c>;
+		clkmsr-indices = <0>,
+				 <1>,
+				 <2>,
+				 <3>,
+				 <6>,
+				 <7>,
+				 <8>,
+				 <9>,
+				 <11>,
+				 <13>,
+				 <14>,
+				 <15>,
+				 <16>,
+				 <18>,
+				 <19>,
+				 <20>,
+				 <21>,
+				 <22>,
+				 <23>,
+				 <24>,
+				 <26>,
+				 <28>,
+				 <30>,
+				 <31>,
+				 <32>,
+				 <33>,
+				 <34>,
+				 <35>,
+				 <36>,
+				 <38>,
+				 <39>,
+				 <40>,
+				 <41>,
+				 <42>,
+				 <43>,
+				 <44>,
+				 <45>,
+				 <46>,
+				 <47>,
+				 <48>,
+				 <49>,
+				 <59>,
+				 <60>,
+				 <61>,
+				 <62>,
+				 <63>;
+		clkmsr-names = "ring_osc_out_ee0",
+			       "ring_osc_out_ee1",
+			       "ring_osc_out_ee2",
+			       "a9_ring_osck",
+			       "vid_pll",
+			       "clk81",
+			       "encp",
+			       "encl",
+			       "eth_rmii",
+			       "amclk",
+			       "fec_clk_0",
+			       "fec_clk_1",
+			       "fec_clk_2",
+			       "a9_clk_div16",
+			       "hdmi_sys",
+			       "rtc_osc_clk_out",
+			       "i2s_clk_in_src0",
+			       "clk_rmii_from_pad",
+			       "hdmi_ch0_tmds",
+			       "lvds_fifo",
+			       "sc_clk_int",
+			       "sar_adc",
+			       "mpll_clk_test_out",
+			       "audac_clkpi",
+			       "vdac",
+			       "sdhc_rx",
+			       "sdhc_sd",
+			       "mali",
+			       "hdmi_tx_pixel",
+			       "vdin_meas",
+			       "pcm_sclk",
+			       "pcm_mclk",
+			       "eth_rx_tx",
+			       "pwm_d",
+			       "pwm_c",
+			       "pwm_b",
+			       "pwm_a",
+			       "pcm2_sclk",
+			       "ddr_dpll_pt",
+			       "pwm_f",
+			       "pwm_e",
+			       "hcodec",
+			       "usb_32k_alt",
+			       "gpio",
+			       "vid2_pll",
+			       "mipi_csi_cfg";
 	};
 
 	pinctrl_cbus: pinctrl@...0 {

-- 
2.42.0



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ