[PATCH v1 5/5] riscv: dts: starfive: Add JH7110 PWM-DAC support
Krzysztof Kozlowski
krzysztof.kozlowski at linaro.org
Mon Jun 26 08:37:35 PDT 2023
On 26/06/2023 13:09, Hal Feng wrote:
> Add PWM-DAC support for StarFive JH7110 SoC.
>
> Signed-off-by: Hal Feng <hal.feng at starfivetech.com>
> ---
> .../jh7110-starfive-visionfive-2.dtsi | 50 +++++++++++++++++++
> arch/riscv/boot/dts/starfive/jh7110.dtsi | 13 +++++
> 2 files changed, 63 insertions(+)
>
> diff --git a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi
> index 19b5954ee72d..5ca66a65e722 100644
> --- a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi
> +++ b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi
> @@ -36,6 +36,34 @@ gpio-restart {
> gpios = <&sysgpio 35 GPIO_ACTIVE_HIGH>;
> priority = <224>;
> };
> +
> + pwmdac_dit: pwmdac-dit {
> + compatible = "starfive,jh7110-pwmdac-dit";
> + #sound-dai-cells = <0>;
> + };
> +
> + sound {
> + compatible = "simple-audio-card";
> + simple-audio-card,name = "StarFive-PWMDAC-Sound-Card";
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + simple-audio-card,dai-link at 0 {
> + reg = <0>;
> + format = "left_j";
> + bitclock-master = <&sndcpu0>;
> + frame-master = <&sndcpu0>;
> + status = "okay";
Drop
> +
> + sndcpu0: cpu {
> + sound-dai = <&pwmdac>;
> + };
> +
> + codec {
> + sound-dai = <&pwmdac_dit>;
You said it is a transmitter, not a codec...
Best regards,
Krzysztof
More information about the linux-riscv
mailing list