Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp21606063rwd; Thu, 29 Jun 2023 19:31:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ64C8Y/HWdldIPFvbV/6xg46NK4S3OacYBuk6b4ZrbqEjX5gO12/7gohwuWSVE83ySFp3C1 X-Received: by 2002:a05:6a20:8e14:b0:12c:1183:edb9 with SMTP id y20-20020a056a208e1400b0012c1183edb9mr2319716pzj.3.1688092309108; Thu, 29 Jun 2023 19:31:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688092309; cv=none; d=google.com; s=arc-20160816; b=OeLlZ7Xi565O+6PzgWSg4PJJG2L3Wd11QHENveiRAqC3v9K4iRGu0gfFCiwtF0XsFC QnVjX71ZfD0jHRhHpRsHeI8SarYYJMc78EbDMDI6jkHG5+s1CfakV8xKknOy3kmrHG3P zebOVe4/dkrAJhdr18GTQUIX1okoRpPA92UOJl2oH4xqyqJ17G0/c7l65OzUDyxNoV7Q 40WDvBFArahXPM2iq7iD103DWtVymU+vuEJ65P0UlqfmodIYN+LZP6qHpumByII/bQSV /mzhNDeKjbbfzOdLq3TNW5no0Bih0Egl9UA7RhcwywbGM+7tkUVF0IJMTsrKsqiAxGWn WqVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=pgq8fS8c3NbN49BdqItmYdoFSM+JI97PLu7Z/M6o26g=; fh=f2/2HyUqLrsLfaMzPtpX0SQECN7afHCKNNDFnGXzMh0=; b=bhRG/TOybn+WJ+kLexF4JUNJVlq7hTjzlsF2MBid4x6eiAV0WXYe2vEZTps8QKq4FI tSjEY1oHeqjhMF5KETiQQw1PpRmIRovK/WF6EP443xyjhvpq50jDEXhjMepZsyfRhOSk VF5ig3ZSbXzaiT44ERkv9No8fME3/DmXkewtdYXBf92EvUeaRQSGAIz325Tw6I5Jny4i +ZV01KRUXCgYjbXuwXfdzf0YcbEbmzV+nyu6pOxtpEzQypfFeEboGW2wPDa+tqCwO5a1 3AsV2I4cUx2/dhszkHeECh+niOT19T35BgpS57asl0rNUMAtBrT7Qbsk8UgKZ7/fFJrR zTlA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dw25-20020a056a00369900b0066d45f035a6si10292937pfb.272.2023.06.29.19.31.36; Thu, 29 Jun 2023 19:31:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230385AbjF3CMQ (ORCPT + 99 others); Thu, 29 Jun 2023 22:12:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229576AbjF3CMP (ORCPT ); Thu, 29 Jun 2023 22:12:15 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63CEA2D56; Thu, 29 Jun 2023 19:12:13 -0700 (PDT) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id 19FE824E245; Fri, 30 Jun 2023 10:12:07 +0800 (CST) Received: from EXMBX172.cuchost.com (172.16.6.92) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 30 Jun 2023 10:12:07 +0800 Received: from [192.168.125.93] (183.27.97.206) by EXMBX172.cuchost.com (172.16.6.92) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 30 Jun 2023 10:12:06 +0800 Message-ID: <16813f18-2188-ad9d-9c06-6bbc845b9d99@starfivetech.com> Date: Fri, 30 Jun 2023 10:12:05 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.2 Subject: Re: [PATCH v1 5/5] riscv: dts: starfive: Add JH7110 PWM-DAC support Content-Language: en-US To: Krzysztof Kozlowski , Mark Brown , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Walker Chen" , Xingyu Wu , Emil Renner Berthing CC: , , , References: <20230626110909.38718-1-hal.feng@starfivetech.com> <20230626110909.38718-6-hal.feng@starfivetech.com> <2a0154ec-7949-f1b1-760f-3ba64d2cff3f@linaro.org> From: Hal Feng In-Reply-To: <2a0154ec-7949-f1b1-760f-3ba64d2cff3f@linaro.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [183.27.97.206] X-ClientProxiedBy: EXCAS062.cuchost.com (172.16.6.22) To EXMBX172.cuchost.com (172.16.6.92) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 26 Jun 2023 17:37:35 +0200, Krzysztof Kozlowski wrote: > On 26/06/2023 13:09, Hal Feng wrote: >> Add PWM-DAC support for StarFive JH7110 SoC. >> >> Signed-off-by: Hal Feng >> --- >> .../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@0 { >> + reg = <0>; >> + format = "left_j"; >> + bitclock-master = <&sndcpu0>; >> + frame-master = <&sndcpu0>; >> + status = "okay"; > > Drop OK. > >> + >> + sndcpu0: cpu { >> + sound-dai = <&pwmdac>; >> + }; >> + >> + codec { >> + sound-dai = <&pwmdac_dit>; > > You said it is a transmitter, not a codec... It is a dummy codec, also known as a dummy transmitter. Best regards, Hal