Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2231001rwb; Mon, 7 Nov 2022 10:41:51 -0800 (PST) X-Google-Smtp-Source: AMsMyM5SHcF/FqRp1lQRpqr5iq8LyPep5sy7LTfZ4byIe9iX0tlNHrGoCkC4Ouap/Ti+Z1leVcXY X-Received: by 2002:a17:902:d592:b0:17a:582:4eb with SMTP id k18-20020a170902d59200b0017a058204ebmr51828571plh.40.1667846511507; Mon, 07 Nov 2022 10:41:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667846511; cv=none; d=google.com; s=arc-20160816; b=C+fKSwvUOlyAbEfQI+yu8nWSlvCgoakvdThnBGB9i9/j3Ipiz+XnsQZmBMysxUccme uUUS9vaF0XVouOhEnvpIrJS+eJ5FpSiTckwujy+ov6tEdVWLXyTX//rtbW42lwd7qonl +GQeUxtPsi3qRsjpfEtwKYFfdHHon+BNcNEdXxODjZ/A4Nm3lO+XyQBJZNjjsvUD0NDc SADsgPJleyX++dcond+SZcZ7JRpCcOtZw064CP5Ai1bIZmfjFCzy4N2IhOrBWFlWY1Qr UaAFXPx14M0Y/bE/bM1JcRQdlekWZfR+t8pA9i/YVooCN2IQ+e68e5/LR5J5gDKGW/oe +/7A== 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=v/+DmlpUJNQ6H+y2+hAk27Zykcqu9Cxop/8nW/tfq8o=; b=IUyT5veKDnTUO81z+BSIfTV0JK1wK9S4u2HOBiOkiiIo2VPOdm44FRSqmJ7WL+uMrY 21AbttZ5U3Whpmg9qZ7sNxo7btI3KcU11js8qDhgCrjCO3ZUoNtJH56VtIYNRV7Ho831 MgakqDThfO/c3iwcIT3Df9dLGAoeSXG4WB8eInDFb/2zHFEUfVeaNK5Kiq0Vd4AzAX30 DoqztFINdDrCLKnWBbyOznWKvwpd6PbJiT0dsedhc+Zi+G5rfxpfNN7faKSY6pkX8p0K xvetlCjW8zMoL70TP2uRZWDdv6/g22MHMGWxkq58N2JC13Xm4sqzL8aP8kERCbBGnqJJ dC3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YM6wEP8D; 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 m18-20020a170902e41200b00186aee00facsi9256606ple.518.2022.11.07.10.41.39; Mon, 07 Nov 2022 10:41:51 -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=@linaro.org header.s=google header.b=YM6wEP8D; 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 S231481AbiKGSZB (ORCPT + 92 others); Mon, 7 Nov 2022 13:25:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233040AbiKGSY2 (ORCPT ); Mon, 7 Nov 2022 13:24:28 -0500 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5616D28E1A for ; Mon, 7 Nov 2022 10:24:05 -0800 (PST) Received: by mail-lf1-x129.google.com with SMTP id o12so17920630lfq.9 for ; Mon, 07 Nov 2022 10:24:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=v/+DmlpUJNQ6H+y2+hAk27Zykcqu9Cxop/8nW/tfq8o=; b=YM6wEP8D2ic+78mnkgabgCawUWu5PRsEDd33Uz5A4ygUYI7EaV1pBVoNegOluHeRBP cpj54KXembu+3W9hDl8Qyro7au79xuQTxdiq6zb58BMrvmw4tzlESZVBcOZ5m3S7FOmU SB8wdGGh7d+J47isBugbdpZrCno3LYjdZ5IUiwRQgUEr3rY11SkXAo7RikONu9QnX1vI HU5YAF3KGAV0c51lqPbYeSrW/SOu7vO7uc9C9PnS8HamJQxPT3KOAS47YGutU11oBIeR fPpPsCH6oP+s8yO3U2EmoHtmH4C3H52m8SAhIKzEd3ZCgijel+Yrtlc/STylA8BJbvK5 3/Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=v/+DmlpUJNQ6H+y2+hAk27Zykcqu9Cxop/8nW/tfq8o=; b=m9DDGu2Ul3C7JynhqeioOyJGjNTcZ6++7qyFGh+YH/mvDjanrVteZTZRlYo310Wqjx KwJPKfkltptfRJ+Iuo2VqRHEXBMfn1OQT3VTw9jaOVuKQl+ecT4iFjbjjvoVCYm7r5nx va/1su74/FPEYnw0cuAD3uRfuMydEufbKcQ08ry7wP3itd4alNHBdeo3Upa1KI21UKQy KZ1f3PLriJxzJ59yrqssfDWh84xzUhl/AxXmz6XyyW6ttexu08z1TbFLrsKqE3YHFQnP FMgVWAdDTWI/ZN2UY+RwvWsUzoxLdTSRBZnK/zpMWlGx50dsSho/1py2jy8YBVrEhUeM 4Vjw== X-Gm-Message-State: ANoB5pmqJtjlEMYs07/Gtiu160u2ksamDqAM+R4u/Bwmd1Bt7acluJYs hvk9dFlMBK9vZFM2fgcCeo4R4g== X-Received: by 2002:a05:6512:374e:b0:4b2:c8b:7a66 with SMTP id a14-20020a056512374e00b004b20c8b7a66mr4976348lfs.498.1667845443689; Mon, 07 Nov 2022 10:24:03 -0800 (PST) Received: from [192.168.0.20] (088156142199.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.199]) by smtp.gmail.com with ESMTPSA id q23-20020a19a417000000b004ab98cd5644sm1358051lfc.182.2022.11.07.10.24.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Nov 2022 10:24:02 -0800 (PST) Message-ID: Date: Mon, 7 Nov 2022 19:24:01 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH 4/7] dt-bindings: usb: add the Renesas USBF controller binding Content-Language: en-US To: Herve Codina , Geert Uytterhoeven , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Greg Kroah-Hartman , Magnus Damm , Gareth Williams Cc: linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Thomas Petazzoni , Miquel Raynal References: <20221107135825.583877-1-herve.codina@bootlin.com> <20221107135825.583877-5-herve.codina@bootlin.com> From: Krzysztof Kozlowski In-Reply-To: <20221107135825.583877-5-herve.codina@bootlin.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 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/11/2022 14:58, Herve Codina wrote: > The Renesas USBF controller is an USB2.0 device controller > (UDC) available in Renesas r9a06g032 SoC (RZ/N1 family). > > Signed-off-by: Herve Codina > --- > .../devicetree/bindings/usb/renesas,usbf.yaml | 64 +++++++++++++++++++ > 1 file changed, 64 insertions(+) > create mode 100644 Documentation/devicetree/bindings/usb/renesas,usbf.yaml > > diff --git a/Documentation/devicetree/bindings/usb/renesas,usbf.yaml b/Documentation/devicetree/bindings/usb/renesas,usbf.yaml > new file mode 100644 > index 000000000000..f2b146d9d37b > --- /dev/null > +++ b/Documentation/devicetree/bindings/usb/renesas,usbf.yaml > @@ -0,0 +1,64 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/usb/renesas,usbf.yaml# Filename based on compatible, so renesas,rzn1-usbf.yaml. > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Renesas USBF (USB Function) controller binding > + > +description: | > + The Renesas USBF controller is an USB2.0 device > + controller (UDC). > + > +maintainers: > + - Herve Codina > + > +properties: > + compatible: > + oneOf: You have only one possibility, so oneOf is not needed. Unless you already predict it will grow with new incompatible lists? > + - items: > + - enum: > + - renesas,r9a06g032-usbf > + - const: renesas,rzn1-usbf > + > + reg: > + maxItems: 1 > + > + clocks: > + items: > + - description: Internal bus clock (AHB) for Function > + - description: Internal bus clock (AHB) for Power Management Blank line > + clock-names: > + items: > + - const: hclkf > + - const: hclkpm > + > + interrupts: > + items: > + - description: The USBF EPC interrupt > + - description: The USBF AHB-EPC interrupt > + > +required: > + - compatible > + - reg > + - clocks > + - clock-names > + - interrupts > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + > + usb@4001e000 { > + compatible = "renesas,r9a06g032-usbf", "renesas,rzn1-usbf"; > + reg = <0x4001e000 0x2000>; > + interrupts = No need for line break. It's not helping in readability. > + , > + ; > + clocks = <&sysctrl R9A06G032_HCLK_USBF>, > + <&sysctrl R9A06G032_HCLK_USBPM>; > + clock-names = "hclkf", "hclkpm"; > + }; Best regards, Krzysztof