Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp1444098rwb; Sat, 5 Aug 2023 15:45:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHGH/AgAPRb+A6M7CYdo6JQDCVrHr9f+qHtykPwbudGrxUIuWWFYilxDxiFd/ZgUX1Iv1Dp X-Received: by 2002:a17:902:7241:b0:1b9:cb27:7f43 with SMTP id c1-20020a170902724100b001b9cb277f43mr4358752pll.43.1691275552359; Sat, 05 Aug 2023 15:45:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691275552; cv=none; d=google.com; s=arc-20160816; b=G0u2+cZEt2wOsvNEIiATjHNPSgyuGq7FOekYJljNJg5weop8vQGV0U8hJ7rcl5sHBD xZ9sGkgfX7WFUG7N3DuvBunBu+YSOB6JcOnQoflMsRx13/9ju0IMARvWGVbEn1GgFHEl We3dF0pjlGKxKSrmsduM/AjN6GXY9hFkPjydiFJGBqqPef/AvrdcCHHiYggXAwQiwKVm snKPmBcZzJ44vIKXX85Mvp2/2PGeD5NJaVpRBvGgNsZCIw0SXPZ8lMsWZTrPa8KEFyGg C/+l8rgkRwa2zntnFa46i1sKPCEnxX9YsbRsqlNLrN+T0Vhc9mu9r1yFDDq8JD4JII19 aeWg== 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=KbvfI0fLsFlB/xRYqDFhF1GRIPCNZdIym6zPJmUh4vQ=; fh=YVJivAEcsQKaASVpiVMk+DzAZjwknP2G0BFQMngWq14=; b=pLgr/SeQYfyrlfJ9ni7dFDqBbI052zPHtA6pi6I0Uab9ByUIbrxlouczgo4oAT+7TZ 1yr+8VFTuBuDvYXjQ0hbGxI7KUzXG1+jx6d6FkWYvrjepyDagWeRs2Nt204i3Ur1Wfae jIintPsmAYA53O7j5Fpy2kOIW+A2IesetGUFi263wLiu8s1qdZF4oit0dtEOrGGZc0BC e1xaXhGl/EvMv6uHRwAFLxR2V/CMok1q7UWyhs3gnwPWLzXgcjRhhg7PrBFVas67XwFQ PjDPDWsfCMgaxqLk9zvEQZgFokkw728SOw1XoA3rscHPdJ8Z/lKzLzdJesg2Xg8Y1sdo 1ziQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LOtzuv3S; 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 z6-20020a170902d54600b001bb9e3bae96si169027plf.255.2023.08.05.15.45.41; Sat, 05 Aug 2023 15:45:52 -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=LOtzuv3S; 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 S229717AbjHEVCK (ORCPT + 99 others); Sat, 5 Aug 2023 17:02:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229733AbjHEVCI (ORCPT ); Sat, 5 Aug 2023 17:02:08 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EF7EA4 for ; Sat, 5 Aug 2023 14:02:06 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-3fe2bc2701bso28664015e9.2 for ; Sat, 05 Aug 2023 14:02:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691269325; x=1691874125; 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=KbvfI0fLsFlB/xRYqDFhF1GRIPCNZdIym6zPJmUh4vQ=; b=LOtzuv3SuN0B4PkixubrxbsOeLlUbqyMJc3yJCvIpzuydQG9bdGn7jY3D32/rIXdmt ztkBsdLiqkz6W5SZfAf6c3heNK87LTPVi9E/tMyaO+iEPYSYOblRVDac0jDsxpvTo4WG URfWY0b/QgIIIEyMzFXV763mY5KgOfmRLIdkn444n2dZGt0IklB3OpeyHjNV719v4szo IWNIDTd9PW6+fymfIIBrF+FM3IZ0UtvivblDOSX28RvlBhzVokwT/lf+ME+lb/2fYpRr fe7iG1zrIdUm2uCIvFXA8yjqAuifuZ0I0gJddzRZUOiSeWS4snSu3QmyWI4nzwG3KHsV RGHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691269325; x=1691874125; 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=KbvfI0fLsFlB/xRYqDFhF1GRIPCNZdIym6zPJmUh4vQ=; b=at97Pis4/XV6F8FBF+GObmTZsMi2pX6OPLW463hao01O/mG3XWJhR38w+mtp5MKOil bypQ42W0ThCDNYHSZ2dfFi9d0q0ZVnGGK4KGy7Na2lbcn01OwapGshZa9lCCWl8osVBv YRzVPYOgK2lH4+BEfvVJBudc2fooysJgXNPM+ruFgmpXCrH1+OZVy1aBnbyUbQaqIf9/ bc/VAq8UPQqekTijx+nWOy0nFCRiNfb4u+XzVN1UeSziNhvxIMr7jv6bhijIRtSEh45P CBDc1r6GZPHtSuSStJM3gieqjR+LmMwr1y48oFhHCRPVll12rPKSR1kq99MOGYaKRnas 3qQA== X-Gm-Message-State: AOJu0YxIhanEF8YEjzqa9ZF/RL9wKhaMwFS3tQg82NxM4MegndiAmm/a gL/+O+8294ZWHJ5/ORfXKWQvoQ== X-Received: by 2002:a05:600c:364f:b0:3fe:4900:db95 with SMTP id y15-20020a05600c364f00b003fe4900db95mr3609592wmq.37.1691269325144; Sat, 05 Aug 2023 14:02:05 -0700 (PDT) Received: from [192.168.1.20] ([178.197.222.245]) by smtp.gmail.com with ESMTPSA id z10-20020a5d640a000000b003178dc2371bsm5503421wru.7.2023.08.05.14.02.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 05 Aug 2023 14:02:04 -0700 (PDT) Message-ID: <37a636dd-fbd8-d475-8814-e0cc6d5cc812@linaro.org> Date: Sat, 5 Aug 2023 23:02:02 +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> From: Krzysztof Kozlowski In-Reply-To: <20230802084301.134122-3-xingyu.wu@starfivetech.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 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,URIBL_BLOCKED autolearn=unavailable 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 02/08/2023 10:42, Xingyu Wu wrote: > Add the StarFive JH7110 (TX0/TX1/RX channel) SoC support in the bindings > of Designware I2S controller. The I2S controller needs two reset items'' Thank you for your patch. There is something to discuss/improve. > > resets: > items: > - description: Optional controller resets > + - description: controller reset of Sampling rate > + minItems: 1 > > dmas: > items: > @@ -51,6 +75,17 @@ properties: > - const: rx > minItems: 1 > > + starfive,syscon: > + $ref: /schemas/types.yaml#/definitions/phandle-array > + items: > + - items: > + - description: phandle to System Register Controller sys_syscon node. > + - description: I2S-rx enabled control offset of SYS_SYSCONSAIF__SYSCFG register. > + - description: I2S-rx enabled control mask > + description: > + The phandle to System Register Controller syscon node and the I2S-rx(ADC) > + enabled control offset and mask of SYS_SYSCONSAIF__SYSCFG register. > + > allOf: > - $ref: dai-common.yaml# > - if: > @@ -66,6 +101,66 @@ allOf: > properties: > "#sound-dai-cells": > const: 0 You need to constrain clocks and resets also for all other existing variants. > + - 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 > + - if: > + properties: > + compatible: > + contains: > + const: starfive,jh7110-i2stx0 > + then: > + properties: > + clocks: > + minItems: 5 Also maxItems > + clock-names: > + minItems: 5 Also maxItems What about resets? 1 or 2 items? > + required: > + - resets > + - if: > + properties: > + compatible: > + contains: > + const: starfive,jh7110-i2stx1 > + then: > + properties: > + clocks: > + minItems: 9 > + clock-names: > + minItems: 9 resets? > + required: > + - resets > + - if: > + properties: > + compatible: > + contains: > + const: starfive,jh7110-i2srx > + then: > + properties: > + clocks: > + minItems: 9 > + clock-names: > + minItems: 9 resets? > + required: > + - resets > + - starfive,syscon > + else: > + properties: > + starfive,syscon: false > > required: > - compatible Best regards, Krzysztof