]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
clk: sunxi-ng: v3s: Fix CSI SCLK clock name
authorPaul Kocialkowski <paulk@sys-base.io>
Tue, 1 Jul 2025 20:11:21 +0000 (22:11 +0200)
committerChen-Yu Tsai <wens@csie.org>
Thu, 3 Jul 2025 15:31:04 +0000 (23:31 +0800)
The CSI SCLK clock is incorrectly called CSI1 SCLK while it is used for
both the CSI0 and CSI1 interfaces and is called CSI SCLK all around the
documentation.

Fix the name in the driver, header and device-tree.

Fixes: d0f11d14b0bc ("clk: sunxi-ng: add support for V3s CCU")
Signed-off-by: Paul Kocialkowski <paulk@sys-base.io>
Reviewed-By: Icenowy Zheng <uwu@icenowy.me>
Link: https://patch.msgid.link/20250701201124.812882-3-paulk@sys-base.io
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Documentation/devicetree/bindings/media/allwinner,sun6i-a31-csi.yaml
Documentation/devicetree/bindings/media/allwinner,sun6i-a31-isp.yaml
Documentation/devicetree/bindings/media/allwinner,sun6i-a31-mipi-csi2.yaml
arch/arm/boot/dts/allwinner/sun8i-v3s.dtsi
drivers/clk/sunxi-ng/ccu-sun8i-v3s.c
include/dt-bindings/clock/sun8i-v3s-ccu.h

index b3d6db9226937090af558a84eb9f3bd142bead39..1aa5775ba2bcea5fa97f13fc2dccb28d2ceb6c85 100644 (file)
@@ -110,7 +110,7 @@ examples:
         reg = <0x01cb4000 0x1000>;
         interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
         clocks = <&ccu CLK_BUS_CSI>,
-                 <&ccu CLK_CSI1_SCLK>,
+                 <&ccu CLK_CSI_SCLK>,
                  <&ccu CLK_DRAM_CSI>;
         clock-names = "bus",
                       "mod",
index a61a76bb611cd96695e5e39418574e69fd838b67..3ea4a4290f23dec3de2398cd2d427a2c9bd1e1f7 100644 (file)
@@ -79,7 +79,7 @@ examples:
         reg = <0x01cb8000 0x1000>;
         interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
         clocks = <&ccu CLK_BUS_CSI>,
-             <&ccu CLK_CSI1_SCLK>,
+             <&ccu CLK_CSI_SCLK>,
              <&ccu CLK_DRAM_CSI>;
         clock-names = "bus", "mod", "ram";
         resets = <&ccu RST_BUS_CSI>;
index 54e15ab8a7f545a298536e53c446cb0d6f92a202..627b28e943545e998f84db7f6e6c07892eb78a8b 100644 (file)
@@ -103,7 +103,7 @@ examples:
         reg = <0x01cb1000 0x1000>;
         interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
         clocks = <&ccu CLK_BUS_CSI>,
-                 <&ccu CLK_CSI1_SCLK>;
+                 <&ccu CLK_CSI_SCLK>;
         clock-names = "bus", "mod";
         resets = <&ccu RST_BUS_CSI>;
 
index f909b1d4dbca190ba8f50eb12fd3c84b79e30329..e82cf312da256ca4b9ef1af581f1946c02526822 100644 (file)
                        reg = <0x01cb4000 0x3000>;
                        interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&ccu CLK_BUS_CSI>,
-                                <&ccu CLK_CSI1_SCLK>,
+                                <&ccu CLK_CSI_SCLK>,
                                 <&ccu CLK_DRAM_CSI>;
                        clock-names = "bus", "mod", "ram";
                        resets = <&ccu RST_BUS_CSI>;
index 579a81bb46df39042136965f47468f3444359ed9..d12791b31a9d7f3c2f8c2bed32a49e5ea713bbab 100644 (file)
@@ -362,8 +362,8 @@ static const char * const csi_mclk_parents[] = { "osc24M", "pll-video",
 static SUNXI_CCU_M_WITH_MUX_GATE(csi0_mclk_clk, "csi0-mclk", csi_mclk_parents,
                                 0x130, 0, 5, 8, 3, BIT(15), 0);
 
-static const char * const csi1_sclk_parents[] = { "pll-video", "pll-isp" };
-static SUNXI_CCU_M_WITH_MUX_GATE(csi1_sclk_clk, "csi-sclk", csi1_sclk_parents,
+static const char * const csi_sclk_parents[] = { "pll-video", "pll-isp" };
+static SUNXI_CCU_M_WITH_MUX_GATE(csi_sclk_clk, "csi-sclk", csi_sclk_parents,
                                 0x134, 16, 4, 24, 3, BIT(31), 0);
 
 static SUNXI_CCU_M_WITH_MUX_GATE(csi1_mclk_clk, "csi-mclk", csi_mclk_parents,
@@ -452,7 +452,7 @@ static struct ccu_common *sun8i_v3s_ccu_clks[] = {
        &tcon_clk.common,
        &csi_misc_clk.common,
        &csi0_mclk_clk.common,
-       &csi1_sclk_clk.common,
+       &csi_sclk_clk.common,
        &csi1_mclk_clk.common,
        &ve_clk.common,
        &ac_dig_clk.common,
@@ -551,7 +551,7 @@ static struct clk_hw_onecell_data sun8i_v3s_hw_clks = {
                [CLK_TCON0]             = &tcon_clk.common.hw,
                [CLK_CSI_MISC]          = &csi_misc_clk.common.hw,
                [CLK_CSI0_MCLK]         = &csi0_mclk_clk.common.hw,
-               [CLK_CSI1_SCLK]         = &csi1_sclk_clk.common.hw,
+               [CLK_CSI_SCLK]          = &csi_sclk_clk.common.hw,
                [CLK_CSI1_MCLK]         = &csi1_mclk_clk.common.hw,
                [CLK_VE]                = &ve_clk.common.hw,
                [CLK_AC_DIG]            = &ac_dig_clk.common.hw,
@@ -633,7 +633,7 @@ static struct clk_hw_onecell_data sun8i_v3_hw_clks = {
                [CLK_TCON0]             = &tcon_clk.common.hw,
                [CLK_CSI_MISC]          = &csi_misc_clk.common.hw,
                [CLK_CSI0_MCLK]         = &csi0_mclk_clk.common.hw,
-               [CLK_CSI1_SCLK]         = &csi1_sclk_clk.common.hw,
+               [CLK_CSI_SCLK]          = &csi_sclk_clk.common.hw,
                [CLK_CSI1_MCLK]         = &csi1_mclk_clk.common.hw,
                [CLK_VE]                = &ve_clk.common.hw,
                [CLK_AC_DIG]            = &ac_dig_clk.common.hw,
index 014ac6123d1760c43484e6c116eaca423b490cf5..c4055629c9f93f28bcd56803082a12ec120e4051 100644 (file)
@@ -96,7 +96,7 @@
 #define CLK_TCON0              64
 #define CLK_CSI_MISC           65
 #define CLK_CSI0_MCLK          66
-#define CLK_CSI1_SCLK          67
+#define CLK_CSI_SCLK           67
 #define CLK_CSI1_MCLK          68
 #define CLK_VE                 69
 #define CLK_AC_DIG             70