Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp10074343rwr; Fri, 12 May 2023 03:30:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ49wSDRO32SOi2f++0i2d4RFlImh3UaumLIUUkWU71GAOdz/6gb1oBylibIcgWrS2uT4dsN X-Received: by 2002:a05:6a20:144b:b0:101:3c60:67b6 with SMTP id a11-20020a056a20144b00b001013c6067b6mr17727510pzi.12.1683887458774; Fri, 12 May 2023 03:30:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683887458; cv=none; d=google.com; s=arc-20160816; b=nmk2PK6Daokyzwnsvf7Im2o/agz74xcuGGksd6+NgTXWYQ6OfG257OgdMPSNkcd+Sw LBMO8ylKPlXilzWK8e1VNnm6x2+HotvbNV3z7WoggoHn3s9gisAfokP+hluLCX7AX+nf c02/KfAmoM8JQo7Bj4uqiU4LFI1jMRzCUcKan+pbupMuWolr47lvSDGi/982YnZE95Ao IyF9AsOSJBBu73NXyix0mW0lBaTdTo8r8SZbACAKKzB9ZeplmIl5m5sUI20PsHlMFcPZ 5+lbYH2agFws/USa5PwC2DCTfyGupbg2JtkItmt40LtPYaUR+77eL8sXjwaXFrZgxpj9 1qmw== 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; bh=LhhWu9GQLypS3nHN+g/j8DHld0DvO6hyF8UVlulhkqQ=; b=gI2J9ZS0IK6RueXjsPySSP20GJOxLwyjPo5ZBCZPb4EHZVfz8DFG237UsLOPX2f9NR VmmH2qEchES+Wwq7V0QctaOTzVP/9nQYsTorqzMXgjn37lz1/mwrVieMvtTeSjuvh7qR u05oxYSKKYRTGwkw89AbJnYX5dY3Ph7XEZim9yIPxcYFDOaRljomoJ8Co6JRTh9HqrR9 BmqDqzGKjGzh/l1GvJZZ+WhavLO9seKjVmWxPUKAWy0c9NsF58ii+2ZPWa/Jc8wty67V xnqwKohnVvEzpmaFj1MueZw6XA57MDb7+mm/JHNr+Y6Dqxq1CPdgcLWiGYUbq0alG6bb Fu1g== 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 190-20020a6300c7000000b0050bea5bf413si9039559pga.705.2023.05.12.03.30.43; Fri, 12 May 2023 03:30:58 -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 S240708AbjELKWm (ORCPT + 99 others); Fri, 12 May 2023 06:22:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240745AbjELKWf (ORCPT ); Fri, 12 May 2023 06:22:35 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC2D7CE; Fri, 12 May 2023 03:22:23 -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 ex01.ufhost.com (Postfix) with ESMTP id 7A34424E22D; Fri, 12 May 2023 18:22:22 +0800 (CST) Received: from EXMBX171.cuchost.com (172.16.6.91) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 12 May 2023 18:22:22 +0800 Received: from [192.168.125.108] (113.72.146.187) by EXMBX171.cuchost.com (172.16.6.91) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 12 May 2023 18:22:21 +0800 Message-ID: Date: Fri, 12 May 2023 18:22:21 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v2 1/2] dt-bindings: cdns,usb3: Add clock and reset Content-Language: en-US To: Krzysztof Kozlowski , Roger Quadros , Rob Herring , Krzysztof Kozlowski , Pawel Laszczak , Greg Kroah-Hartman , Peter Chen , Philipp Zabel CC: , , 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> From: Minda Chen In-Reply-To: <028fb8ac-d6cc-6fee-f50b-b965e69e7d0c@linaro.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [113.72.146.187] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX171.cuchost.com (172.16.6.91) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,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 2023/5/11 22: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. > > Best regards, > Krzysztof > I can change like these. Are these changes can be approved? lpm , bus clock and "pwrup" reset can be specific cases. (The changes are from snps,dwc3.yaml.) clocks: description: In general the core supports two types of clocks. bus is a SoC Bus Clock(AHB/AXI/APB). lpm is a link power management clock. But particular cases may differ from that having less or more clock sources with another names. clock-names: contains: anyOf: - enum: [bus, lpm] - true resets: description: In general the core supports controller power-up reset. Also clock and other resets can be added. Particular cases may differ from that having less or more resets with another names. reset-names: contains: anyOf: - const: pwrup - true