Skip to content

Commit

Permalink
arm64: dts: rockchip: rk3588: Add pinctrl idle for I2S0/2/3
Browse files Browse the repository at this point in the history
pinctrl-default/idle/clk must be paired in the same iomux group.

DON'T USE i2s2m0-default with i2s2m1-idle

Ref: commit: b935bf8cc83f ("ASoC: rockchip: i2s-tdm: Add support for pinctrl idle state")

Signed-off-by: Sugar Zhang <[email protected]>
Change-Id: I0bf6f1cfb74d7f398050961913439031fa90245f
  • Loading branch information
Sugar Zhang authored and rkhuangtao committed Jul 4, 2023
1 parent 0b947f4 commit 89e11e9
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 12 deletions.
9 changes: 9 additions & 0 deletions arch/arm64/boot/dts/rockchip/rk3588-vccio3-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,15 @@
};

i2s2 {
/omit-if-no-ref/
i2s2m0_idle: i2s2m0-idle {
rockchip,pins =
/* i2s2m0_lrck_gpio */
<2 RK_PC0 0 &pcfg_pull_none>,
/* i2s2m0_sclk_gpio */
<2 RK_PB7 0 &pcfg_pull_none>;
};

/omit-if-no-ref/
i2s2m0_lrck: i2s2m0-lrck {
rockchip,pins =
Expand Down
27 changes: 27 additions & 0 deletions arch/arm64/boot/dts/rockchip/rk3588s-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -1129,6 +1129,15 @@
};

i2s0 {
/omit-if-no-ref/
i2s0_idle: i2s0-idle {
rockchip,pins =
/* i2s0_lrck_gpio */
<1 RK_PC5 0 &pcfg_pull_none>,
/* i2s0_sclk_gpio */
<1 RK_PC3 0 &pcfg_pull_none>;
};

/omit-if-no-ref/
i2s0_lrck: i2s0-lrck {
rockchip,pins =
Expand Down Expand Up @@ -1363,6 +1372,15 @@
};

i2s2 {
/omit-if-no-ref/
i2s2m1_idle: i2s2m1-idle {
rockchip,pins =
/* i2s2m1_lrck_gpio */
<3 RK_PB6 0 &pcfg_pull_none>,
/* i2s2m1_sclk_gpio */
<3 RK_PB5 0 &pcfg_pull_none>;
};

/omit-if-no-ref/
i2s2m1_lrck: i2s2m1-lrck {
rockchip,pins =
Expand Down Expand Up @@ -1400,6 +1418,15 @@
};

i2s3 {
/omit-if-no-ref/
i2s3_idle: i2s3-idle {
rockchip,pins =
/* i2s3_lrck_gpio */
<3 RK_PA2 0 &pcfg_pull_none>,
/* i2s3_sclk_gpio */
<3 RK_PA1 0 &pcfg_pull_none>;
};

/omit-if-no-ref/
i2s3_lrck: i2s3-lrck {
rockchip,pins =
Expand Down
27 changes: 15 additions & 12 deletions arch/arm64/boot/dts/rockchip/rk3588s.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -5524,17 +5524,18 @@
resets = <&cru SRST_M_I2S0_8CH_TX>, <&cru SRST_M_I2S0_8CH_RX>;
reset-names = "tx-m", "rx-m";
rockchip,clk-trcm = <1>;
pinctrl-names = "default";
pinctrl-0 = <&i2s0_lrck
&i2s0_sclk
&i2s0_sdi0
pinctrl-names = "default", "idle", "clk";
pinctrl-0 = <&i2s0_sdi0
&i2s0_sdi1
&i2s0_sdi2
&i2s0_sdi3
&i2s0_sdo0
&i2s0_sdo1
&i2s0_sdo2
&i2s0_sdo3>;
pinctrl-1 = <&i2s0_idle>;
pinctrl-2 = <&i2s0_lrck
&i2s0_sclk>;
#sound-dai-cells = <0>;
status = "disabled";
};
Expand Down Expand Up @@ -5577,11 +5578,12 @@
dma-names = "tx", "rx";
power-domains = <&power RK3588_PD_AUDIO>;
rockchip,clk-trcm = <1>;
pinctrl-names = "default";
pinctrl-0 = <&i2s2m1_lrck
&i2s2m1_sclk
&i2s2m1_sdi
pinctrl-names = "default", "idle", "clk";
pinctrl-0 = <&i2s2m1_sdi
&i2s2m1_sdo>;
pinctrl-1 = <&i2s2m1_idle>;
pinctrl-2 = <&i2s2m1_lrck
&i2s2m1_sclk>;
#sound-dai-cells = <0>;
status = "disabled";
};
Expand All @@ -5598,11 +5600,12 @@
dma-names = "tx", "rx";
power-domains = <&power RK3588_PD_AUDIO>;
rockchip,clk-trcm = <1>;
pinctrl-names = "default";
pinctrl-0 = <&i2s3_lrck
&i2s3_sclk
&i2s3_sdi
pinctrl-names = "default", "idle", "clk";
pinctrl-0 = <&i2s3_sdi
&i2s3_sdo>;
pinctrl-1 = <&i2s3_idle>;
pinctrl-2 = <&i2s3_lrck
&i2s3_sclk>;
#sound-dai-cells = <0>;
status = "disabled";
};
Expand Down

0 comments on commit 89e11e9

Please sign in to comment.