File tree Expand file tree Collapse file tree
arch/riscv/boot/dts/starfive Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4040 linux,cma-default;
4141 };
4242 };
43+
44+ sound1: snd-card1 {
45+ compatible = "simple-audio-card";
46+ #address-cells = <1>;
47+ #size-cells = <0>;
48+
49+ simple-audio-card,name = "Starfive-HDMI-Sound-Card";
50+ simple-audio-card,dai-link@0 {
51+ reg = <0>;
52+ format = "i2s";
53+ bitclock-master = <&sndi2s0>;
54+ frame-master = <&sndi2s0>;
55+ mclk-fs = <256>;
56+ status = "okay";
57+
58+ sndi2s0: cpu {
59+ sound-dai = <&i2stx0>;
60+ };
61+
62+ codec {
63+ sound-dai = <&hdmi>;
64+ };
65+ };
66+ };
4367};
4468
4569&dc8200 {
122146 status = "okay";
123147};
124148
149+ &i2stx0 {
150+ pinctrl-names = "default";
151+ pinctrl-0 = <&mclk_ext_pins>;
152+ status = "okay";
153+ };
154+
125155&hdmi {
126156 status = "okay";
127157 pinctrl-names = "default";
282312 };
283313 };
284314
315+ mclk_ext_pins: mclk-ext-0 {
316+ mclk-ext-pins {
317+ pinmux = <GPIOMUX(4, GPOUT_LOW,
318+ GPOEN_DISABLE,
319+ GPI_SYS_MCLK_EXT)>;
320+ input-enable;
321+ };
322+ };
323+
285324 usb0_pins: usb0-0 {
286325 vbus-pins {
287326 pinmux = <GPIOMUX(25, GPOUT_SYS_USB_DRIVE_VBUS,
You can’t perform that action at this time.
0 commit comments