ARM: dts: imx6sx: Support audio sound card for sabreauto board
authorShengjiu Wang <shengjiu.wang@nxp.com>
Thu, 24 Oct 2019 10:34:18 +0000 (18:34 +0800)
committerDong Aisheng <aisheng.dong@nxp.com>
Mon, 14 Dec 2020 03:20:19 +0000 (11:20 +0800)
Support audio sound card for sabreauto board

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
arch/arm/boot/dts/imx6sx-sabreauto.dts

index 13e60ed..b853a66 100644 (file)
                regulator-max-microvolt = <3300000>;
        };
 
+       si4763_vio1: vio1_tnr {
+               compatible = "regulator-fixed";
+               regulator-name = "vio1";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+               regulator-always-on;
+       };
+
+       si4763_vio2: vio2_tnr {
+               compatible = "regulator-fixed";
+               regulator-name = "vio2";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+               regulator-always-on;
+       };
+
+       si4763_vd: f3v3_tnr {
+               compatible = "regulator-fixed";
+               regulator-name = "vd";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+               regulator-always-on;
+       };
+
+       si4763_va: f5v_tnr {
+               compatible = "regulator-fixed";
+               regulator-name = "va";
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               regulator-always-on;
+       };
+
        sound-cs42888 {
                compatible = "fsl,imx6-sabreauto-cs42888",
                             "fsl,imx-audio-cs42888";
                        "AIN2R", "Line In Jack";
        };
 
+       sound-fm {
+               compatible = "fsl,imx-audio-si476x",
+                          "fsl,imx-tuner-si476x";
+               model = "imx-radio-si4763";
+
+               ssi-controller = <&ssi2>;
+               fm-controller = <&si476x_codec>;
+               mux-int-port = <2>;
+               mux-ext-port = <5>;
+       };
+
        sound-spdif {
                compatible = "fsl,imx-audio-spdif";
                model = "imx-spdif";
        clock-frequency = <24576000>;
 };
 
+&audmux {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_audmux_3>;
+       status = "okay";
+};
+
 &clks {
        assigned-clocks = <&clks IMX6SX_PLL4_BYPASS_SRC>,
                          <&clks IMX6SX_PLL4_BYPASS>,
        assigned-clock-rates = <0>, <0>, <24576000>;
 };
 
+&ssi2 {
+       fsl,mode = "i2s-master";
+       status = "okay";
+};
+
 &csi2 {
        status = "okay";
        port {
 };
 
 &iomuxc {
+       pinctrl_audmux_3: audmux-3 {
+               fsl,pins = <
+                       MX6SX_PAD_SD1_CMD__AUDMUX_AUD5_RXC    0x130b0
+                       MX6SX_PAD_SD1_CLK__AUDMUX_AUD5_RXFS   0x130b0
+                       MX6SX_PAD_SD1_DATA3__AUDMUX_AUD5_RXD  0x130b0
+               >;
+       };
+
        pinctrl_egalax_int: egalax-intgrp {
                fsl,pins = <
                        MX6SX_PAD_SD4_RESET_B__GPIO6_IO_22      0x10b0
                VLC-supply = <&reg_cs42888>;
        };
 
+       si4763: si4763@63 {
+               compatible = "si4761";
+               reg = <0x63>;
+               va-supply = <&si4763_va>;
+               vd-supply = <&si4763_vd>;
+               vio1-supply = <&si4763_vio1>;
+               vio2-supply = <&si4763_vio2>;
+               revision-a10; /* set to default A10 compatible command set */
+
+               si476x_codec: si476x-codec {
+                       compatible = "si476x-codec";
+               };
+       };
+
        touchscreen@4 {
                compatible = "eeti,egalax_ts";
                reg = <0x04>;