Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp2794618rwb; Mon, 7 Aug 2023 03:46:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF6z+7joTOulswsNSIcUxYTSwOJYcY736CmcGRdgYUI9RC3aFsfJ/bxLYQexHBT1o0ABMvy X-Received: by 2002:a05:6512:3254:b0:4fb:7c40:9f95 with SMTP id c20-20020a056512325400b004fb7c409f95mr4739425lfr.47.1691405192871; Mon, 07 Aug 2023 03:46:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691405192; cv=none; d=google.com; s=arc-20160816; b=RGVOV+IHBkJtPjYGag3Q1zf1iJ/Yu9lEPucCWBp+Hm5q1qNskitloiRCdrXxWVfQ8A 7LfWupY1Y9zXQxTDohlmALO2XL3SdCPe8c3UbVj2gsg7v29bsxlYq90lUSUP6KFR1Q3z dGrtYuG66/uGWKTR/eIFBN0PXViG0+s+/qRRL9kma1ZkNlhWc6OUjg4HYuykdxFZX6CH nF5LvUX+HaMXJVHUJ729tuJFqj/Au41lWIrsHqV4L5ZpInq9jSShaMbavQzYKnz0yisD +BYlbSKm5aLk+mhGRj02Lxot3J70ncFV8gHZ3VOENFAnhzcGMHD62XVzboYQ7eFedxWr giRQ== 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:dkim-signature; bh=pVzTFSX+f3NLp8W+oubkEcGfLvriaLn/mzk8yERB4EQ=; fh=YVJivAEcsQKaASVpiVMk+DzAZjwknP2G0BFQMngWq14=; b=pB6F3kA82qnoErXouMzwPP/BW9Gb1B+J1MwSv0lu8Z2ghNFXy8enb/J6fCQXTUjfgW BOTQYNGWfq0ebyIbay+2PNxkhtLvbsclgPgRoagudakRHoLWEsfvdIJJY+HUHJHFRDVw dGrl/2pUsMMzF4OjTT1ErlEVuVUHGQGypOBcDZKvxEV/HiWcwKQ4upHF1ZkgEXJbudm/ NvHuSjqYf2rrF8ewosErhC1iVLvoOC/4fJECVEa9K4TO2iA6Aig2gGgE6+aIAfJxKPcV GY0ZOrP6rKap1qzURge6CBDGlnS4Eq4PH+p0ICtFyTIUqT/JMKzXtsYY/wfNwWhBTxDP JKDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qJNkHMMX; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n25-20020a05640206d900b005222ce7793csi5341785edy.608.2023.08.07.03.46.07; Mon, 07 Aug 2023 03:46:32 -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; dkim=pass header.i=@linaro.org header.s=google header.b=qJNkHMMX; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231404AbjHGJSE (ORCPT + 99 others); Mon, 7 Aug 2023 05:18:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229496AbjHGJSC (ORCPT ); Mon, 7 Aug 2023 05:18:02 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9E2AE68 for ; Mon, 7 Aug 2023 02:18:00 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-31771a876b5so3184437f8f.3 for ; Mon, 07 Aug 2023 02:18:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691399879; x=1692004679; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=pVzTFSX+f3NLp8W+oubkEcGfLvriaLn/mzk8yERB4EQ=; b=qJNkHMMX6yWfZ0+pTVtKomPhic8oIkVTU4BgI6+YGQ09zaqOV+wKh9W0VMaDF5vGVK unpdERvcAcVRzv4T+5eC6utzpr7Tujtt4DxNGg5+D0zups3hSP94fD4C6Uq7d+QA/UfX Sixs7SltrhRg3Z2s4cDrRNFbVUvMUojpSzMGxhDPUhF1dzNE6PeVKZRcXXA09Qr/NMCc 4/ENs3n9eQZK25cJJHF3O3p4hP5uyg6YXkPYotQ85mlUAB18yaC4W/dV7RuK2jvuNwbF AyG5SBgOF2lJne/Hu/DDneyX2OuAtEZipBpoT1RUjDbrGTA/GusqpUqTCXE1vBKusIgW MYzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691399879; x=1692004679; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=pVzTFSX+f3NLp8W+oubkEcGfLvriaLn/mzk8yERB4EQ=; b=fLuSDLWCAjW9o7bwRIifesKNnMjA/FowYZdbUi5/2OxIrGApKEqOF8qMtu+il7XtxM owgclchA9MmQUBkadp2PYXPj02XDS6MhFj5eGLDxo1YoSrIZ4AIS9IzbSfg9SBi9jWMa t/wHyIm5pSTPbqgcaTpPbNvdsrds9AwfjBQwxTUZETHmre28/LDNZWw0f+jFvuWPsgLb pFr04HIcQw6cvIyHhMEemvzfm5flWS8nbyp44vJsH3Z90jwvlmDxVtSwFB6zbfkfP6pX lHhgxFfM8UIq314FDolVjL2PpWzOwxH4km5PxfBx3uVsnX/yUkdZJPah4PESWpabfk31 mj/g== X-Gm-Message-State: AOJu0Yxo55IzG/fzq5Q75iq815SL58OEI347uchMleKWYEDJromgHw3S JPe+I4ZG/7+o6rhOl1knXxoT+g== X-Received: by 2002:a5d:4044:0:b0:314:a3f:9c17 with SMTP id w4-20020a5d4044000000b003140a3f9c17mr5695333wrp.42.1691399879376; Mon, 07 Aug 2023 02:17:59 -0700 (PDT) Received: from [192.168.1.20] ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id r15-20020adfdc8f000000b00317909f9985sm9893936wrj.113.2023.08.07.02.17.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Aug 2023 02:17:58 -0700 (PDT) Message-ID: Date: Mon, 7 Aug 2023 11:17:56 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; 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 Content-Language: en-US To: Xingyu Wu , 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 , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, linux-riscv@lists.infradead.org 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> From: Krzysztof Kozlowski In-Reply-To: <12a9bfda-9c9f-6baf-3e5f-ce7cc7d79aee@starfivetech.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,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 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. > >>> + - 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. Best regards, Krzysztof