Skip to content

Commit

Permalink
feat: add rock-3ab-max98357a
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeChenL committed Dec 10, 2024
1 parent ed16941 commit feb1bc8
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions arch/arm64/boot/dts/rockchip/overlays/rock-3ab-max98357a.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/dts-v1/;
/plugin/;

/ {
metadata {
title = "Enable MAX97357A on I2S3-M0";
compatible = "radxa,rock-3a", "radxa,rock-3b";
category = "audio";
description = "Enable MAX97357A on I2S3-M0";
exclusive = "GPIO3_A0", "GPIO3_A2", "GPIO3_A3", "GPIO3_A4", "GPIO3_A5", "GPIO3_A6", "i2s3_2ch";
};
};

&{/} {
max98357a_codec: max98357a {
#sound-dai-cells = <0>;
compatible = "maxim,max98357a";
sdmode-gpios = <&gpio3 0 0>;
sdmode-delay = <5>;
status = "okay";
};

sound_ext_card: sound-ext-card {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
compatible = "simple-audio-card";
simple-audio-card,format = "i2s";
simple-audio-card,mclk-fs = <256>;
simple-audio-card,name = "snd_max98357a_dac";
simple-audio-card,dai-link@0 {
reg = <0>;
format = "i2s";
cpu {
sound-dai = <&i2s3_2ch>;
};
codec {
sound-dai = <&max98357a_codec>;
};
};
};
};

&i2s3_2ch {
pinctrl-0 = <&i2s3m0_lrck &i2s3m0_sclk &i2s3m0_sdi &i2s3m0_sdo>;
status = "okay";
};

0 comments on commit feb1bc8

Please sign in to comment.