[][kernel][MT7988][i2c][update i2c clock and remove it from always-on list]
[Description]
Remove i2c clocks from always-on list in mt7988-clkitg.dtsi,
and update i2c dummy clocks to real clcok in mt7988.dtsi
[Release-log]
N/A
Change-Id: I57791df2e9f9f4729cb2d32f734090de52c140f3
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/6966550
diff --git a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7988-clkitg.dtsi b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7988-clkitg.dtsi
index 971a171..65ec837 100644
--- a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7988-clkitg.dtsi
+++ b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7988-clkitg.dtsi
@@ -78,7 +78,7 @@
<&topckgen CK_TOP_SPIM_MST>,
<&system_clk>,
<&system_clk>,
- <&topckgen CK_TOP_I2C_BCK>,
+ <&system_clk>,
<&topckgen CK_TOP_USB_SYS>,
<&topckgen CK_TOP_USB_SYS_P1>,
<&topckgen CK_TOP_USB_XHCI>,
@@ -111,7 +111,7 @@
<&system_clk>,
<&system_clk>,
<&system_clk>,
- <&topckgen CK_TOP_I2C_SEL>,
+ <&system_clk>,
<&topckgen CK_TOP_PCIE_MBIST_250M_SEL>,
<&system_clk>,
<&system_clk>,
@@ -169,18 +169,18 @@
<&system_clk>,
<&system_clk>,
<&system_clk>,
+ <&system_clk>,
- <&infracfg CK_INFRA_133M_HCK>,
<&infracfg CK_INFRA_133M_PHCK>,
- <&infracfg CK_INFRA_66M_PHCK>,
+ <&system_clk>,
<&infracfg CK_INFRA_FAUD_L_O>,
<&infracfg CK_INFRA_FAUD_AUD_O>,
<&infracfg CK_INFRA_FAUD_EG2_O>,
- <&infracfg CK_INFRA_I2C_O>,
<&system_clk>,
<&system_clk>,
<&system_clk>,
<&system_clk>,
<&system_clk>,
+ <&system_clk>,
<&infracfg CK_INFRA_SPI0_O>,
<&infracfg CK_INFRA_SPI1_O>,
<&infracfg CK_INFRA_LB_MUX_FRTC>,
@@ -204,8 +204,8 @@
<&system_clk>,
<&infracfg CK_INFRA_F26M_O0>,
<&infracfg CK_INFRA_F26M_O1>,
- <&infracfg CK_INFRA_133M_MCK>,
- <&infracfg CK_INFRA_66M_MCK>,
+ <&system_clk>,
+ <&system_clk>,
<&infracfg CK_INFRA_PERI_66M_O>,
<&infracfg CK_INFRA_USB_SYS_O>,
<&infracfg CK_INFRA_USB_SYS_O_P1>,
@@ -228,16 +228,16 @@
<&system_clk>,
<&infracfg_ao CK_INFRA_DRAMC_F26M>,
<&infracfg_ao CK_INFRA_133M_DBG_ACKM>,
- <&infracfg_ao CK_INFRA_66M_AP_DMA_BCK>,
+ <&system_clk>,
<&infracfg_ao CK_INFRA_66M_SEJ_BCK>,
<&infracfg_ao CK_INFRA_PRE_CK_SEJ_F13M>,
<&system_clk>,
- <&infracfg_ao CK_INFRA_I2C_BCK>,
<&system_clk>,
<&system_clk>,
<&system_clk>,
<&system_clk>,
<&system_clk>,
+ <&system_clk>,
<&infracfg_ao CK_INFRA_66M_NFI_HCK>,
<&infracfg_ao CK_INFRA_104M_SPI0>,
<&infracfg_ao CK_INFRA_104M_SPI1>,
@@ -255,8 +255,8 @@
<&system_clk>,
<&infracfg_ao CK_INFRA_133M_CPUM_BCK>,
<&infracfg_ao CK_INFRA_BIST2FPC>,
- <&infracfg_ao CK_INFRA_I2C_X16W_MCK_CK_P1>,
- <&infracfg_ao CK_INFRA_I2C_X16W_PCK_CK_P1>,
+ <&system_clk>,
+ <&system_clk>,
<&system_clk>,
<&system_clk>,
<&system_clk>,
diff --git a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7988.dtsi b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7988.dtsi
index 8e08930..cec46ce 100644
--- a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7988.dtsi
+++ b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7988.dtsi
@@ -433,8 +433,8 @@
<0 0x10217080 0 0x80>;
interrupts = <GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>;
clock-div = <1>;
- clocks = <&system_clk>,
- <&system_clk>;
+ clocks = <&infracfg_ao CK_INFRA_I2C_BCK>,
+ <&infracfg_ao CK_INFRA_66M_AP_DMA_BCK>;
clock-names = "main", "dma";
#address-cells = <1>;
#size-cells = <0>;
@@ -448,8 +448,8 @@
<0 0x10217100 0 0x80>;
interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>;
clock-div = <1>;
- clocks = <&system_clk>,
- <&system_clk>;
+ clocks = <&infracfg_ao CK_INFRA_I2C_BCK>,
+ <&infracfg_ao CK_INFRA_66M_AP_DMA_BCK>;
clock-names = "main", "dma";
#address-cells = <1>;
#size-cells = <0>;
@@ -463,8 +463,8 @@
<0 0x10217180 0 0x80>;
interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>;
clock-div = <1>;
- clocks = <&system_clk>,
- <&system_clk>;
+ clocks = <&infracfg_ao CK_INFRA_I2C_BCK>,
+ <&infracfg_ao CK_INFRA_66M_AP_DMA_BCK>;
clock-names = "main", "dma";
#address-cells = <1>;
#size-cells = <0>;