Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1255047pxp; Sun, 6 Mar 2022 09:45:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJxmS/y1rC7w1PeNaLOwqT0IjA2D53xs3zUVUJcqvUyzJg3EbNcLcu6W2L/AlptQBN47vAz+ X-Received: by 2002:a05:6a00:8d3:b0:4f6:76a1:4890 with SMTP id s19-20020a056a0008d300b004f676a14890mr9136195pfu.55.1646588750977; Sun, 06 Mar 2022 09:45:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646588750; cv=none; d=google.com; s=arc-20160816; b=OwKeenzGexfJH08ENYNm3jkjxODyTR56JXt6/eR5szxcFRt8X/89k9VHuYE96TvDsJ Du9JgAOtaH0DprCVHqtQ482581LKt5C2/zpy/ls1KDpT7pCfqAR6xO/mRZrITUuyz75u xVoH7EypKKtFIM6tvGKTOIAoklYhJusw5UrOppQZiBlD7n6a5g7cB0xWzE0jwYThFo4t yDKVqDKFwSc6fHCSADm4zp/WKdX/VklBppi/Z4/zksBHbwevQpa4R/FzgwkSMYjneMnJ oWyGBEzXY3PyIsJAxNqZ0QJvW9Fuyfz7s047pYdUBVcgv9+KTmORfTUoJ7XImSoLUt/I Rdng== 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:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=5IOaq+YufH1O5iptx1mkNlYrqkIWyE0RDyxFyfke9gU=; b=tEAR5gL3cW7uwpMzGT76BX5F/Z+6kFkDXYAPsE6QJpfUW2+RP4lyEkF7W2tB1qV3x8 Hfc7lcduRQ+e9VaklG/jJ0HpklmA+hIa/7P8+nG40dPQ4NWTcEFpSmHR2+MJob89VNJb y4g/sAkPa3uts136EwvVXgWTOc/uE1wZDBjcSy1jJB2EbmhFXizb80O+p+0kd/SBHsbf TiOOAwuwpOu4aCLsc3bDjY57n7w+issNtKHK49nNDxRVFrKAOm7gzte5X+VpLcefwXp/ /M8sEnW8+++kIqHC9hiAWG9dsZqQ/Lxb/KbL2dCyR7uQGoqzr/dcwpCEHLobTUGtr/aA e+KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=vd0ie6BP; 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=canonical.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 16-20020a621510000000b004f6a8098196si7784151pfv.312.2022.03.06.09.45.24; Sun, 06 Mar 2022 09:45:50 -0800 (PST) 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=@canonical.com header.s=20210705 header.b=vd0ie6BP; 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=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233565AbiCFMIt (ORCPT + 99 others); Sun, 6 Mar 2022 07:08:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229745AbiCFMIr (ORCPT ); Sun, 6 Mar 2022 07:08:47 -0500 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30FB3DFDA for ; Sun, 6 Mar 2022 04:07:54 -0800 (PST) Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 860DE3F5FA for ; Sun, 6 Mar 2022 12:07:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1646568472; bh=5IOaq+YufH1O5iptx1mkNlYrqkIWyE0RDyxFyfke9gU=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=vd0ie6BPZz8FLoZp3sSDN5HPGpyhfx5WXJYHPdP9GDMEPV3HwAXKsWrf74VzWPWhY rEZqcTufKYIPBcA3L98EWIXgj/CnAqBew3Ea2lOzD9Fhp2+UCeZ8ConuBHZwyRfYvB yPQ/Ozbd4CofmRiHtiBYJclz/g05uKFn9qiYfOTXZ6FPdz6NBza6OWeIJka5vC74Sd BGJ80VFaG7+LuC0F0Ns40y9+JMrQLDv5GiFM6y11KarCYAvZKftrQ9Z4AgAU7KBwuB uxjN0AgUJ4EA9IEsdFn3kYoZyLMQlSMnsQVCPzC1+zljmElLn0xfzIGunqKp4x6GfF Jh1lraK7Y9xfA== Received: by mail-ed1-f69.google.com with SMTP id i17-20020aa7c711000000b00415ecaefd07so4440378edq.21 for ; Sun, 06 Mar 2022 04:07:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=5IOaq+YufH1O5iptx1mkNlYrqkIWyE0RDyxFyfke9gU=; b=AwN3hfPzmfQj2wG57RwqzYGMQcBWIc1ngfPbsvIjVbsvFS+O4nZwudkP868oIL19jn Rr2TquaXdCCyHJSz3dhiX/5PisC2Xn5oJugmGsxAAk/mPzBukfTi8o9eBP7+Y2QTZD8d pNMaQH963G3Khnk/IeTduyPBn9W61hct+rHThJ4yomRKBRiUjF8BX67ubnjRrK6tuN7x qTwo0jtnl3zPL6WUY6IovIswKceJw284CRJ8xdLLZJQv22+FmdGlrg5QPLBRCENaLHqz llHezBAqA2LOMZAWtza4rHjB44Y5oCqpXWdP+ZWe0l8w550K/yMQcorSxcrpLa7GvC9q w4vQ== X-Gm-Message-State: AOAM531+kC1nFMYE/CaIwVg/1pbSJLJZeam2s2FjRQrWbyKdWs5JIZVt kgPhcmMba9ktMaf8OXxE1gtYl/f7DWZl871QBQ+G934sFjUj6uQT5tvzQuiUgrmqdPwUk3Xs93R IqcxN8alawBe4lqSudGjB+XOW1w/yRhNH4Zrjyf/dhg== X-Received: by 2002:a17:906:3e09:b0:6cf:cf2c:2c02 with SMTP id k9-20020a1709063e0900b006cfcf2c2c02mr5603570eji.291.1646568472042; Sun, 06 Mar 2022 04:07:52 -0800 (PST) X-Received: by 2002:a17:906:3e09:b0:6cf:cf2c:2c02 with SMTP id k9-20020a1709063e0900b006cfcf2c2c02mr5603548eji.291.1646568471776; Sun, 06 Mar 2022 04:07:51 -0800 (PST) Received: from [192.168.0.140] (xdsl-188-155-181-108.adslplus.ch. [188.155.181.108]) by smtp.gmail.com with ESMTPSA id bn14-20020a170906c0ce00b006c5ef0494besm3728787ejb.86.2022.03.06.04.07.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 06 Mar 2022 04:07:51 -0800 (PST) Message-ID: <67ec6f3a-1579-f77a-a54d-381472252d6b@canonical.com> Date: Sun, 6 Mar 2022 13:07:50 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v3 2/2] dt-bindings: usb: Add bindings doc for Sunplus EHCI driver Content-Language: en-US To: Vincent Shih , gregkh@linuxfoundation.org, stern@rowland.harvard.edu, p.zabel@pengutronix.de, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, robh+dt@kernel.org, devicetree@vger.kernel.org, wells.lu@sunplus.com References: <1646547036-14885-1-git-send-email-vincent.sunplus@gmail.com> <1646547036-14885-3-git-send-email-vincent.sunplus@gmail.com> From: Krzysztof Kozlowski In-Reply-To: <1646547036-14885-3-git-send-email-vincent.sunplus@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 06/03/2022 07:10, Vincent Shih wrote: > Add bindings doc for Sunplus EHCI driver > > Signed-off-by: Vincent Shih > --- > Changes in v2: > - Address the comments by Rob Herring. > > .../bindings/usb/sunplus,sp7021-usb-ehci.yaml | 63 ++++++++++++++++++++++ > MAINTAINERS | 1 + > 2 files changed, 64 insertions(+) > create mode 100644 Documentation/devicetree/bindings/usb/sunplus,sp7021-usb-ehci.yaml > > diff --git a/Documentation/devicetree/bindings/usb/sunplus,sp7021-usb-ehci.yaml b/Documentation/devicetree/bindings/usb/sunplus,sp7021-usb-ehci.yaml > new file mode 100644 > index 0000000..905f68c > --- /dev/null > +++ b/Documentation/devicetree/bindings/usb/sunplus,sp7021-usb-ehci.yaml > @@ -0,0 +1,63 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +# Copyright (C) Sunplus Co., Ltd. 2021 > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/usb/sunplus,sp7021-usb-ehci.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Sunplus SP7021 EHCI Controller Device Tree bindings s/Device Tree bindings// (title describes hardware) > + > +allOf: > + - $ref: usb-hcd.yaml# > + > +maintainers: > + - Vincent Shih > + > +properties: > + compatible: > + const: sunplus,sp7021-usb2-ehci You do not use this compatible in the driver. > + > + clocks: > + maxItems: 1 > + > + resets: > + minItems: 1 Suddenly it became minItems. This looks odd, it should be maxItems: 1 rather. How many reset lines do you have there? > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + phys: > + maxItems: 1 > + > + phy-names: > + maxItems: 1 phy-names needs list of names. > + > +required: > + - compatible > + - clocks > + - resets > + - reg > + - interrupts > + - phys > + - phy-names > + > +additionalProperties: false This should be unevaluatedProperties:false, because you reference usb-hcd schema. > + > +examples: > + - | > + #include > + > + sp_ehci0: usb@9c102100 { > + compatible = "sunplus,sp7021-usb-ehci"; > + clocks = <&clkc 0x3a>; > + resets = <&rstc 0x2a>; > + reg = <0x9c102100 0x68>; reg goes after compatible in DTS. Best regards, Krzysztof