Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp47307rwd; Sat, 13 May 2023 12:35:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4bLL8T1Yd9BCFGZOToTnW/jBCCSFgNY8u6rmJgv/zq4QKvdxnDYMRy1mQc2K2XU7un4jVD X-Received: by 2002:a05:6a20:8e03:b0:104:2226:1b96 with SMTP id y3-20020a056a208e0300b0010422261b96mr11544550pzj.22.1684006519278; Sat, 13 May 2023 12:35:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684006519; cv=none; d=google.com; s=arc-20160816; b=Bp1WQb0G6mDY3o0OaDFw7XdGqbNFAZbIPLSuR7luyjd/heKMMO2irmCY9txOL3gbrP 5y5vBb0qmWNBx6yu6Zsv2Eam3ZNxrSEsA8id5Hc3kx25osjwWgxJU6KZGOxkv45sPZoZ 0gtQtmEL3ftArrWWpwQefUVHnV7gRegW57r8Dfh0YSzTQBWnWu2rEKaJQTsAw5OPSo3q 4nQBP92NnSUDAdszOOf/sk8nCQ8qU0CpvKzwFTg2c/iQY1RptAQPJ3oMa7LLsP/Y0RvD ivLORNh0381/mP79xOugSMtx/bfLcVId+5ZFwlu9BYhmeKVWsFYtlwR7s7XfEofy0qZM OSTQ== 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=SIKmkC8PkYUMuXvhvScc2QiWAE9GV9r1KXIulcRXAH8=; b=m4fYaDUXY7q44EkF2MJeL69/iBEC39IFRsW/+uK6+xzAcPxYLu1A1S8yQmFPlSwDlS LlSG3qh3kBhvhgjXGTr4f/nuPemUiSeuNWMgH4edg0jbxclMkmouP+Ic5+inIyKM7sJN QL2D3JRjZpqRMwxRQfKpWUU/H3CV0eqnm5nMNHjQ3kHQwT1JHWZtPzMFhvMZDhmQHYqC gK/kWIAlVFaMoqL/b2gI9t8LGRmrNRyT9JZXFzqu2uYemAgsJguqZfMx/x0WepyGBIoU IQsx3EiOAI8Qw16LoOBvMdqK3fCU79+qFdD1NA3wcam5ihZje9Ed8cy67wHm9Og/LVOG K/6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UzK297MA; 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 c68-20020a624e47000000b00640d906a8f3si12713648pfb.245.2023.05.13.12.35.07; Sat, 13 May 2023 12:35:19 -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=UzK297MA; 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 S229473AbjEMSnr (ORCPT + 99 others); Sat, 13 May 2023 14:43:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230384AbjEMSnq (ORCPT ); Sat, 13 May 2023 14:43:46 -0400 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9ED8213B for ; Sat, 13 May 2023 11:43:44 -0700 (PDT) Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-50b383222f7so16580946a12.3 for ; Sat, 13 May 2023 11:43:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684003423; x=1686595423; 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=SIKmkC8PkYUMuXvhvScc2QiWAE9GV9r1KXIulcRXAH8=; b=UzK297MAlDrAcB5KvseNrkyjkh7qqtX5yb3NexbK00a66SN4yP3gJMSx9gHbpDhObZ IELyhkZtWoyNtFNx3l5KzNkig/efTqW2t23NfsSfaRv3lSFO7wc4m6tWTWhdnZP3PmhB IrRaeYMNg0TaK3aR4cqt2nippuAi5ctxrjXWUoZVjGJ7B9DpCqCdzv1UC2JCtthPciYB GnmIqXPaNfMI4kc6jeyD4ykGL2rWCdiYFQiuTxokpoOopxh0I4OXjH2xfuHXM60DlFw6 sZdZZPFYipAcP1pNKjtCLhOzUTkyLyUhXXt8BGApxN1TxEzA8NU4L+ebs7RGaljhRiwb p1lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684003423; x=1686595423; 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=SIKmkC8PkYUMuXvhvScc2QiWAE9GV9r1KXIulcRXAH8=; b=Nk2lIN+nPqUnmqeHxPT/vC79U1Xbh5KJ2bBcHzSFTIgu1ZpimfAH4ovpGDJ6aeiivm Rb8zK4VB2xlIIF8dyjxvB6F2EbPT05efkqEyDqOtEVxLsBH1TVu03qxsq6V3UQqwY3EF FBTNFwTPjY5x0dxW+2wO3xMZcO3LPJYc6CpLIY17XsCLpDS4K/A+3wN74fTIGAwfCYot AsSJnMXOofULtRjc1Ebmk4NWYRmXX5yGLoH//ci2dpC/doltT/rMu0TboACKj8YdnYrq GNYsC437wxKco936oPEShr0W26zJuByA/uo7grWeTaoYYje0DDgxqACwxETKymbVuiYc C/CA== X-Gm-Message-State: AC+VfDyMOGQgbD56s8MULwOibzyrwtFx9VhcrYkFx4mUHl+rXXDKGZtL fvC2Nnt6nERUG31jtrpfR7a7IQ== X-Received: by 2002:a05:6402:51:b0:50d:bd2e:6dfa with SMTP id f17-20020a056402005100b0050dbd2e6dfamr10633472edu.17.1684003423301; Sat, 13 May 2023 11:43:43 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:ba68:e5c9:694e:c6e4? ([2a02:810d:15c0:828:ba68:e5c9:694e:c6e4]) by smtp.gmail.com with ESMTPSA id m26-20020a50ef1a000000b0050690bc07a3sm5294907eds.18.2023.05.13.11.43.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 13 May 2023 11:43:42 -0700 (PDT) Message-ID: Date: Sat, 13 May 2023 20:43:41 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v2 1/2] dt-bindings: cdns,usb3: Add clock and reset Content-Language: en-US To: Roger Quadros , Minda Chen , Rob Herring , Krzysztof Kozlowski , Pawel Laszczak , Greg Kroah-Hartman , Peter Chen , Philipp Zabel Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org References: <20230510132816.108820-1-minda.chen@starfivetech.com> <20230510132816.108820-2-minda.chen@starfivetech.com> <9cf5965a-8290-dfff-9f92-07ed2df66650@linaro.org> <05057f6d-cb38-8e4a-5d30-82863e0cda44@kernel.org> <028fb8ac-d6cc-6fee-f50b-b965e69e7d0c@linaro.org> <40592737-4330-101b-5425-091572e61c6f@kernel.org> From: Krzysztof Kozlowski In-Reply-To: <40592737-4330-101b-5425-091572e61c6f@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.0 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,T_SCC_BODY_TEXT_LINE,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 12/05/2023 13:08, Roger Quadros wrote: > > > On 11/05/2023 17:49, Krzysztof Kozlowski wrote: >> On 11/05/2023 14:16, Roger Quadros wrote: >>> >>> >>> On 11/05/2023 12:26, Krzysztof Kozlowski wrote: >>>> On 10/05/2023 15:28, Minda Chen wrote: >>>>> To support generic clock and reset init in Cadence USBSS >>>>> controller, add clock and reset dts configuration. >>>>> >>>>> Signed-off-by: Minda Chen >>>>> --- >>>>> .../devicetree/bindings/usb/cdns,usb3.yaml | 14 ++++++++++++++ >>>>> 1 file changed, 14 insertions(+) >>>>> >>>>> diff --git a/Documentation/devicetree/bindings/usb/cdns,usb3.yaml b/Documentation/devicetree/bindings/usb/cdns,usb3.yaml >>>>> index cae46c4982ad..623c6b34dee3 100644 >>>>> --- a/Documentation/devicetree/bindings/usb/cdns,usb3.yaml >>>>> +++ b/Documentation/devicetree/bindings/usb/cdns,usb3.yaml >>>>> @@ -42,6 +42,18 @@ properties: >>>>> - const: otg >>>>> - const: wakeup >>>>> >>>>> + clocks: >>>>> + minItems: 1 >>>>> + maxItems: 8 >>>>> + description: >>>>> + USB controller clocks. >>>> >>>> You need to list the items. And why is it variable? Your clock choice in >>>> the example is poor, I doubt it is real. >>>> >>>>> + >>>>> + resets: >>>>> + minItems: 1 >>>>> + maxItems: 8 >>>>> + description: >>>>> + USB controller generic resets. >>>> >>>> Here as well. >>>> >>>> You had one clock last time, thus the review was - drop the names. Now >>>> you changed it to 8 clocks... I don't understand. >>>> >>> >>> Different platforms may have different number of clocks/resets or none. >>> So I don't think minItems/maxItems should be specified. >> >> Yeah, but we want the clocks to be specific per platform. Not anything >> anywhere. >> > > Agreed. So we don't specify min/maxItems at top level but use conditional > constraints per platform? > Which means we will need to add platform specific compatibles as well. Yes, exactly. This can be done here in this binding or through some re-usable common part and then multiple bindings using it and customizing. Best regards, Krzysztof