Skip to content

Commit 1659353

Browse files
John Madieubroonie
authored andcommitted
ASoC: rsnd: adg: Look up RZ/G3E clkin under audio-clk{a,b,c,i}
The R-Car Sound ADG block has up to four external master-clock inputs named CLKA, CLKB, CLKC and CLKI by the silicon. On Gen2 R-Car these come from DT under the legacy names "clk_a", "clk_b", "clk_c", "clk_i" defined by renesas,rsnd.yaml. Gen4 collapses them to a single "clkin". The new standalone RZ/G3E sound binding (renesas,r9a09g047-sound.yaml) uses the standard DT naming convention with a vendor-meaningful prefix that matches the SoC datasheet pin labels: "audio-clka", "audio-clkb", "audio-clkc", "audio-clki". Add a third clkin name table for RZ/G3E and dispatch to it from rsnd_adg_get_clkin() in the same style as the existing Gen4 branch. The CLKA/B/C/I enum values, the clkin[] array, and the BRGA/BRGB derivation are unchanged - only the DT lookup names differ. Signed-off-by: John Madieu <john.madieu.xa@bp.renesas.com> Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://patch.msgid.link/20260525110230.4014435-15-john.madieu.xa@bp.renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 47899d5 commit 1659353

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

  • sound/soc/renesas/rcar

sound/soc/renesas/rcar/adg.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,13 @@ static const char * const clkin_name_gen2[] = {
7777
[CLKI] = "clk_i",
7878
};
7979

80+
static const char * const clkin_name_rzg3e[] = {
81+
[CLKA] = "audio-clka",
82+
[CLKB] = "audio-clkb",
83+
[CLKC] = "audio-clkc",
84+
[CLKI] = "audio-clki",
85+
};
86+
8087
static const char * const clkout_name_gen2[] = {
8188
[CLKOUT] = "audio_clkout",
8289
[CLKOUT1] = "audio_clkout1",
@@ -574,6 +581,9 @@ static int rsnd_adg_get_clkin(struct rsnd_priv *priv)
574581
if (rsnd_is_gen4(priv)) {
575582
clkin_name = clkin_name_gen4;
576583
clkin_size = ARRAY_SIZE(clkin_name_gen4);
584+
} else if (rsnd_is_rzg3e(priv)) {
585+
clkin_name = clkin_name_rzg3e;
586+
clkin_size = ARRAY_SIZE(clkin_name_rzg3e);
577587
}
578588

579589
/*

0 commit comments

Comments
 (0)