Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4178678rwo; Tue, 25 Jul 2023 01:42:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlHhnXlEnETiRtERbP9PsZum26EbXRQ7BLsMd/DPFAqMOwtOaSORCl8tZhvkmjS6FTbuiV1P X-Received: by 2002:a17:907:75e5:b0:993:a379:6158 with SMTP id jz5-20020a17090775e500b00993a3796158mr11098483ejc.17.1690274559634; Tue, 25 Jul 2023 01:42:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690274559; cv=none; d=google.com; s=arc-20160816; b=Ow7Efw34R9jfrWssxHswiYiN7HGUiWbBLlTrzGU9+142G8jtwgDE0HdcFj96GUsciX EtV5ZuSSvyd1bRBpoJN0hqD5mPlAPPcWLqtXdOO+DKj2RW1KuRW4rlH0bCVMKgV3H8jK lGIKbSjASr2jxv1g9Dy4tTjMXLrwxn6vnasxx2/Kywopy6lZvrb2gtwhqGKheRciOp/8 yo4ITITg8yrwe8eTdIWAU9MRLWa31tktWIDtJUj7Tl0vKoNFwWgggY/HCzRj8UIF8+ER /dFp2F4F/4tAvhloqvjn9UJnataJrF5V9suftX/q8BmoqoxmbxvwDATCyLYIP8J+fiGX fXgw== 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 :content-language:references:cc:to:from:subject:user-agent :mime-version:date:message-id; bh=+DJC8YY0rI7Uy++OdZg2sujZkHkY7Bidn3+Prl6v2DU=; fh=EjEDn7uGZNWB3kTN1hMbLA/SbyxL2VRHvHUbEAinI5Y=; b=zs/22Eb5L6zhHHFJcym+shwiOmZdm0pNTWwpRIF+wq9+AMXq2L3MCDEE1d9DNc6R7N hPfH3OgltfMCONzoqIrRMcoyI9t4JsBVQ8ML0E3/GMfl0g6wziHTpQsEsZTz1qd+ZoD0 PjMzf6Sai3fBFUbexazP21ogDxtB4NKQ8Bku70MjiuQ6Uo6iC6pibwu4uyfwwPELGYSl hnWAqSuJ0zRbvnaTypSuFwVynKksLKqqIQLOk7GtxcQiv90w4TbfNF5kFe7xh62yREGJ EgMy0bm5MkTQ87dBoew0IZvIFZQG4qh1e3Ve5Bfmgb7nYGMrFGT2T12fSsU/I1bpsRBS FWzQ== 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 gr26-20020a170906e2da00b00993150ed537si6984226ejb.189.2023.07.25.01.42.15; Tue, 25 Jul 2023 01:42:39 -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 S231923AbjGYI2U (ORCPT + 99 others); Tue, 25 Jul 2023 04:28:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232808AbjGYI1z (ORCPT ); Tue, 25 Jul 2023 04:27:55 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4070A10F8; Tue, 25 Jul 2023 01:27:33 -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 fd01.gateway.ufhost.com (Postfix) with ESMTP id 90D1C83D4; Tue, 25 Jul 2023 16:27:31 +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; Tue, 25 Jul 2023 16:27:31 +0800 Received: from [192.168.125.84] (183.27.99.135) by EXMBX172.cuchost.com (172.16.6.92) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 25 Jul 2023 16:27:30 +0800 Message-ID: <62ddb368-d714-8986-9904-2e44edfb069c@starfivetech.com> Date: Tue, 25 Jul 2023 16:27:29 +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 1/5] ASoC: dt-bindings: Add StarFive JH7110 dummy PWM-DAC transmitter From: Hal Feng 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-2-hal.feng@starfivetech.com> <006ddacd-0496-70d1-3310-99b16706de84@linaro.org> <0312262c-28c0-9445-c6f7-2079a57db8c7@starfivetech.com> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [183.27.99.135] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) 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_PASS,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, 10 Jul 2023 11:22:50 +0800, Hal Feng wrote: > On Sat, 1 Jul 2023 10:17:51 +0200, Krzysztof Kozlowski wrote: >> On 30/06/2023 03:57, Hal Feng wrote: >>> On Mon, 26 Jun 2023 17:34:56 +0200, Krzysztof Kozlowski wrote: >>>> On 26/06/2023 13:09, Hal Feng wrote: >>>>> Add bindings for StarFive JH7110 dummy PWM-DAC transmitter. >>>> >>>> ... >>>> >>>>> +required: >>>>> + - compatible >>>>> + - "#sound-dai-cells" >>>>> + >>>>> +additionalProperties: false >>>>> + >>>>> +examples: >>>>> + - | >>>>> + pwmdac-dit { >>>>> + compatible = "starfive,jh7110-pwmdac-dit"; >>>>> + #sound-dai-cells = <0>; >>>> >>>> BTW, I don't see any resources here. Neither in the driver. I think you >>>> just added this for driver, not for a real hardware. >>> >>> Yes, this is a dummy PWM-DAC transmitter as described in the title. The >>> StarFive JH7110 PWM-DAC module doesn't need a hardware codec, but a >>> dummy codec is needed for the driver. >> >> Bindings are no for drivers, therefore with such reasoning the answer >> is: drop entire binding. If you think otherwise, please give me some >> more details about the hardware. > > I agreed. I will drop this binding and the compatible in patch 2. Thanks. Hi, Krzysztof, Could I use the dummy spdif codec [1][2] which is already upstream? The dummy spdif codec is really compatible with the one which JH7110 PWM-DAC needed. They are mostly similar. [1] Documentation/devicetree/bindings/sound/linux,spdif-dit.yaml [2] sound/soc/codecs/spdif_transmitter.c In that way, patch 1 & 2 can be dropped and patch 5 will be modified as follows. + pwmdac_dit: pwmdac-dit { + compatible = "linux,spdif-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>; + + sndcpu0: cpu { + sound-dai = <&pwmdac>; + }; + + codec { + sound-dai = <&pwmdac_dit>; + }; + }; + }; Best regards, Hal