Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp2751982rwb; Mon, 7 Aug 2023 02:57:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFY9kFHZoYcw8QMlPTWayktYF7RUrsGQkCiv5pum3atCzIyfe9B07sulZBePzejc3hIvN7m X-Received: by 2002:a17:906:e:b0:99b:c8f1:dfac with SMTP id 14-20020a170906000e00b0099bc8f1dfacmr7545116eja.56.1691402276441; Mon, 07 Aug 2023 02:57:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691402276; cv=none; d=google.com; s=arc-20160816; b=z1vr/GvYIMG/PGUeTmrd0nU3uYYop1RKhuJYmTVnqSUW8DdVyX+PSPoZ8dQSu8Pvnj gyL2zQKtF1kXnhWC2HxPep6KlBT1yIaWd2QZNHYqYc8oW/gP6Z9RspX8z5z+RS5+6oPS IWwjz9uhlxChl40pbOlOGXW+XeeTkBcNFfskUiVnmAhxcO0UJ5NdPL9dG6VCdI50iCYz jYsIGJmzBFb+c5QAmHg7zgRxABgzA8y4RpLiZPZK1uQQK3TlS+ELiTCOXfPoAlpuONEU KOkH/nUNG6oUy5iXxEFkm35bR/YywyM1Nn8Uhy4KXLIJbAdyse+wO0Pe3pstgOQlLrUO qrcA== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=FC8BEmvIRrJkG7JwgQMxfJTNAXiaTPDWK8rkfOehAkc=; fh=tWBCLMfyDgWEDjm1mQDViVDJ3JGCSVCNHw3OTSy3d9A=; b=vYZFYGDLtGdbrHlg20gpZVtHCcQ73LsjU8VL5pDBn1ZwSDOg8BnjaIk/LOz5a/wz3J DC5ZCfvv9SaK8QkwFkrQVZ3i+CdxnDCido3CYwmheS0Xe40fzlU+EQRNKklDmRZvg2+z H0RVmCNvqjyYaSZ1Kx/5WNx/By9IoHnbhr/YUcPBs1h6L7YKyVj6D2BdKJ4LPoPcBAOm kZddOY3FCJ5UsmRmXTZfxhC95necrIKHac/igMvf7HCi7qThVfE3bJXDi0S0PYrFqVWc w/vSUB+fbUeKC4T+olM8AtewoGBycMXuVuW5nfn8HvnlvM8V28LVzOFWBYVffJl3W6sX xAkw== 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 j21-20020a17090643d500b009930d9d6b4csi5539304ejn.888.2023.08.07.02.57.30; Mon, 07 Aug 2023 02:57:56 -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 S231613AbjHGJhr (ORCPT + 99 others); Mon, 7 Aug 2023 05:37:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231604AbjHGJho (ORCPT ); Mon, 7 Aug 2023 05:37:44 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10B4710C0; Mon, 7 Aug 2023 02:37:42 -0700 (PDT) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id 7F62F7FD3; Mon, 7 Aug 2023 17:37:40 +0800 (CST) Received: from EXMBX061.cuchost.com (172.16.6.61) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 7 Aug 2023 17:37:40 +0800 Received: from [192.168.125.128] (113.72.146.246) by EXMBX061.cuchost.com (172.16.6.61) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 7 Aug 2023 17:37:39 +0800 Message-ID: <80d6ac43-2b78-97e4-9905-38bf8440ffb9@starfivetech.com> Date: Mon, 7 Aug 2023 17:33:07 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: [PATCH v1 2/5] ASoC: dt-bindings: snps,designware-i2s: Add StarFive JH7110 SoC support To: Krzysztof Kozlowski , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Maxim Kochetkov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Emil Renner Berthing CC: Jose Abreu , Paul Walmsley , Palmer Dabbelt , Albert Ou , Walker Chen , , , , References: <20230802084301.134122-1-xingyu.wu@starfivetech.com> <20230802084301.134122-3-xingyu.wu@starfivetech.com> <37a636dd-fbd8-d475-8814-e0cc6d5cc812@linaro.org> <12a9bfda-9c9f-6baf-3e5f-ce7cc7d79aee@starfivetech.com> Content-Language: en-US From: Xingyu Wu In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [113.72.146.246] X-ClientProxiedBy: EXCAS062.cuchost.com (172.16.6.22) To EXMBX061.cuchost.com (172.16.6.61) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS 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 2023/8/7 17:17, Krzysztof Kozlowski wrote: > On 07/08/2023 11:03, Xingyu Wu wrote: >>>>> + - if: >>>> + properties: >>>> + compatible: >>>> + contains: >>>> + const: snps,designware-i2s >>>> + then: >>>> + properties: >>>> + clocks: >>>> + maxItems: 1 >>>> + clock-names: >>>> + maxItems: 1 >>>> + resets: >>>> + maxItems: 1 >>>> + else: >>>> + properties: >>>> + resets: >>>> + minItems: 2 >> >> The resets of TX0/TX1/RX on JH7110 SoC are mentioned in 'else' here. > > Ah, its fine. Clocks seem to be also constrained. OK, I will keep it here. > >> >>>> + - if: >>>> + properties: >>>> + compatible: >>>> + contains: >>>> + const: starfive,jh7110-i2stx0 >>>> + then: >>>> + properties: >>>> + clocks: >>>> + minItems: 5 >>> >>> Also maxItems >> >> Will add. >> >>> >>>> + clock-names: >>>> + minItems: 5 >>> >>> Also maxItems >> >> Will add. >> >>> >>> What about resets? 1 or 2 items? >> >> Mentioned it in the 'else'. >> Or do you mean I should drop the 'else' and add the resets in here? >> And is the same for TX1 and RX? > > It won't be easy to read... probably the binding should be split. > Anyway, it's fine as is, except the maxItems above. > So I will keep it and just add the maxItems in next version. Thanks, Xingyu Wu