arch:dts:starfive:Enable i2stx_4ch0 node
authorJianlong Huang <jianlong.huang@starfivetech.com>
Mon, 17 Oct 2022 14:15:24 +0000 (22:15 +0800)
committerJianlong Huang <jianlong.huang@starfivetech.com>
Thu, 3 Nov 2022 09:24:53 +0000 (17:24 +0800)
Add mclk_ext pin and enable i2stx_4ch0

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
arch/riscv/boot/dts/starfive/jh7110-visionfive-v2.dts

index dfcb5ba..b0499a7 100644 (file)
@@ -6,6 +6,7 @@
 
 /dts-v1/;
 #include "jh7110-visionfive-v2.dtsi"
+#include "codecs/sf_hdmi.dtsi"
 
 / {
        model = "StarFive VisionFive V2";
                        starfive,pin-gpio-din =  <GPI_HDMI0_HPD>;
                };
        };
+
+       mclk_ext_pins: mclk_ext_pins {
+               mclk_ext_pins {
+                       starfive,pins = <PAD_GPIO4>;
+                       starfive,pin-ioconfig = <IO(GPIO_IE(1))>;
+                       starfive,pin-gpio-din = <GPI_CRG0_EXT_MCLK>;
+                       starfive,pin-gpio-doen = <OEN_HIGH>;
+               };
+       };
 };
 
 &uart0 {
        pinctrl-names = "default";
        pinctrl-0 = <&inno_hdmi_pins>;
 };
+
+&i2stx_4ch0 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&mclk_ext_pins>;
+       status = "okay";
+};