MLK-20990 ARM64: dts: imx8qm: domu: switch to use rpmsg i2c
authorPeng Fan <peng.fan@nxp.com>
Tue, 26 Feb 2019 11:42:57 +0000 (19:42 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Thu, 18 Apr 2019 00:00:38 +0000 (03:00 +0300)
Switch to use rpmsg i2c to support android auto, because
android auto change to use rpmsg i2c.
Also add the alias node to let m4 could use it successfully, because
M4 side use the alias id as the BUSID.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Flynn xu <flynn.xu@nxp.com>
(cherry picked from commit d67968b6d6a583590a9e737f4a3d732dca5b078f)

arch/arm64/boot/dts/freescale/fsl-imx8qm-mek-domu-car.dts
arch/arm64/boot/dts/freescale/fsl-imx8qm-mek-domu.dts

index 4d8b7b9..1c71731 100644 (file)
@@ -49,6 +49,8 @@
        };
 };
 
+/* Android auto use RPMSG to handle I2C */
+/delete-node/ &xen_i2c1;
 /delete-node/ &i2c1_lvds1;
 /delete-node/ &camera;
 /delete-node/ &dpu2_intsteer;
        status = "okay";
 };
 
+&i2c_rpbus_1 {
+       #address-cells = <1>;
+       #size-cells = <0>;
+       status = "okay";
+
+       cs42888: cs42888@48 {
+               compatible = "cirrus,cs42888";
+               reg = <0x48>;
+               clocks = <&clk IMX8QM_AUD_MCLKOUT0>;
+               clock-names = "mclk";
+               VA-supply = <&reg_audio>;
+               VD-supply = <&reg_audio>;
+               VLS-supply = <&reg_audio>;
+               VLC-supply = <&reg_audio>;
+               reset-gpio = <&gpio4 25 1>;
+               power-domains = <&pd_mclk_out0>;
+               assigned-clocks = <&clk IMX8QM_AUD_PLL0_DIV>,
+                               <&clk IMX8QM_AUD_ACM_AUD_PLL_CLK0_DIV>,
+                               <&clk IMX8QM_AUD_ACM_AUD_REC_CLK0_DIV>,
+                               <&clk IMX8QM_AUD_MCLKOUT0>;
+               assigned-clock-rates = <786432000>, <49152000>, <12288000>, <12288000>;
+               fsl,txs-rxm;
+               status = "okay";
+       };
+};
+
 &vehicle_core {
        status = "okay";
 };
index f660e02..5b32abc 100644 (file)
@@ -52,6 +52,7 @@
                isi2 = &isi_2;
                isi3 = &isi_3;
                csi0 = &mipi_csi_0;
+               i2c1 = &i2c_rpbus_1;
        };
 
        cpus {