Re: [PATCH 4/6] arm64: dts: imx91-9x9-qsb: Add audio-related board muxes

From: Frank Li

Date: Wed Jul 08 2026 - 16:45:58 EST


On Tue, Jul 07, 2026 at 03:57:23PM +0900, chancel.liu@xxxxxxxxxxx wrote:
> From: Chancel Liu <chancel.liu@xxxxxxx>
>
> The board uses GPIO-controlled muxes to route shared signals between
> different functions.
>
> Add the audio-related mux states for:
> - selecting PDM or CAN1
> - selecting SAI1 or M.2
> - enabling the SAI1 audio path or not
>
> Signed-off-by: Chancel Liu <chancel.liu@xxxxxxx>
> ---
> .../boot/dts/freescale/imx91-9x9-qsb.dts | 49 +++++++++++++++++++
> 1 file changed, 49 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/freescale/imx91-9x9-qsb.dts b/arch/arm64/boot/dts/freescale/imx91-9x9-qsb.dts
> index ea8cf14e0bc6..1f2d8082d255 100644
> --- a/arch/arm64/boot/dts/freescale/imx91-9x9-qsb.dts
> +++ b/arch/arm64/boot/dts/freescale/imx91-9x9-qsb.dts
> @@ -30,6 +30,55 @@ chosen {
> stdout-path = &lpuart1;
> };
>
> + can_mux: mux-controller-0 {
> + compatible = "gpio-mux";
> + #mux-control-cells = <0>;
> + #mux-state-cells = <1>;
> + mux-gpios = <&pcal6524 17 GPIO_ACTIVE_HIGH>;
> + };
> +
> + sai1_mux: mux-controller-1 {
> + compatible = "gpio-mux";
> + #mux-control-cells = <0>;
> + #mux-state-cells = <1>;
> + mux-gpios = <&pcal6524 18 GPIO_ACTIVE_HIGH>;
> + };
> +
> + sai1_en_mux: mux-controller-2 {
> + compatible = "gpio-mux";
> + #mux-control-cells = <0>;
> + #mux-state-cells = <1>;
> + mux-gpios = <&pcal6524 9 GPIO_ACTIVE_HIGH>;
> + };
> +
> + pinctrl-gpiomux {
> + compatible = "pinctrl-multiplexer";
> +
> + can_fun: can-grp {
> + mux-states = <&can_mux 1>;
> + };
> +
> + pdm_fun: pdm-grp {
> + mux-states = <&can_mux 0>;
> + };
> +
> + m2_fun: m2-grp {
> + mux-states = <&sai1_mux 1>;
> + };

thank you use onboard gpio mux.

please keep order by node name

Move m2-grp before pdm-grp

Frank
> +
> + sai1_fun: sai1-grp {
> + mux-states = <&sai1_mux 0>;
> + };
> +
> + sai1_disable: sai1-disable-grp {
> + mux-states = <&sai1_en_mux 1>;
> + };
> +
> + sai1_enable: sai1-enable-grp {
> + mux-states = <&sai1_en_mux 0>;
> + };
> + };
> +
> reg_vref_1v8: regulator-adc-vref {
> compatible = "regulator-fixed";
> regulator-name = "vref_1v8";
> --
> 2.50.1
>
>