From patchwork Wed Dec 7 16:24:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Herve Codina X-Patchwork-Id: 30923 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp280432wrr; Wed, 7 Dec 2022 08:26:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf4JGUAK+ms5iNO/UmxTbNvs5WTRUIFe6pLXAK40KJGFSNmctSSri+OyGBP+Yjpf4MeC9Pw1 X-Received: by 2002:a17:902:a601:b0:189:8001:b54f with SMTP id u1-20020a170902a60100b001898001b54fmr50596315plq.37.1670430373740; Wed, 07 Dec 2022 08:26:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670430373; cv=none; d=google.com; s=arc-20160816; b=tUJ+JVUV4i0vtXJq93MCqOvwJv+pULgSQdsAYDGGMigEJLOSIH7mnc3Mwczf39S/pK cqmsiXatQpQKsJCpBd3BhNxPzjljM27z5JgppGYFbhWr1iaWlmIOIdG9tg9CUyh4M0BO svRRlIj8z+hYDw4fGYT/RCM7buXLbOfURZpNQrqo1fXGbPLciAEO5dxrIvA+SNBe/F1d ay7q7GvCDvtOlVphz3ciRSZoFjC4QvLXWH+E8vig3rmQXVh1ppM3kXcWrTab9+GbktMv cbSM5efvPoQL9h8Tgbh0SftySTZKqWP7hP17DE6XvnlLOhYjkFC9om2Lb04R8MNKi6Cn Nr3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Cw1SD2x2j9VwG5OfOxSIfzoHCrLTb+QOElcScbrzv58=; b=SxRpJcEMF4FK2d7fsc5OBFZXyvGOx2CdB4faUxjk0qPg4m4kV9YjYxLFBNUWqdf2aE tMP15GX33mSdfETvuGLgHu3FZyCagYrR2V0zXfIbMHUtCQgsqUVp9uaucyrTqLR3tDZl HJM0RtGFCl8xj2qu1scyLAKZQDdKpEBJq4Gd5eXRqWQCxTuNoiN7FgF86kRV8Q+ybkhQ Xc+ydK/3MvTMzwlrGj2hXTQbg1V8/YxUx6sqxzCyeFx65kOR5Ua4GBTNbOrExmB/tRi3 O5q4zvhZzuSSol60RrYHP49oJjsIDDe9mLELeGV6SXGEskLlujy+CilwJGTNF6hj6EJv lhJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="Hkxkn/Pi"; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g193-20020a636bca000000b004780e2b6fc6si20466312pgc.626.2022.12.07.08.26.00; Wed, 07 Dec 2022 08:26:13 -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=@bootlin.com header.s=gm1 header.b="Hkxkn/Pi"; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229573AbiLGQZJ (ORCPT + 99 others); Wed, 7 Dec 2022 11:25:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229634AbiLGQYz (ORCPT ); Wed, 7 Dec 2022 11:24:55 -0500 Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5269654C5; Wed, 7 Dec 2022 08:24:53 -0800 (PST) Received: (Authenticated sender: herve.codina@bootlin.com) by mail.gandi.net (Postfix) with ESMTPA id 1BA6840002; Wed, 7 Dec 2022 16:24:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1670430292; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Cw1SD2x2j9VwG5OfOxSIfzoHCrLTb+QOElcScbrzv58=; b=Hkxkn/PiG3n5PuVYBTTcdXohsjj1XD/w/ITs/yTxn6IcF29RaPmbylXvApwzBI1twbgert dxdMQWgDUvTNf5Ozg7L92XSDvt+TBk99YsqpKAhJQcvEcfSjwG8LUuVAQ61L+PUvqSB5a/ jL662I6zZEMQaPqG5ulaI2+odF4ALyG7HhL6UGqtbP0LrcE471l2QMUKjgMU8CK1J+SPRd tnD75izDW2Z9xPwE0T42U7aGZXs7SlXgP9zsFDq4iT+WrOcFowff6/2TwVpFifIfgu5nwa 5fWmiSmyUvSbB/vc77olpgUdvnonUDPomfBRUgbnl/BQbTEvWmkgaVB2fCmmzg== From: Herve Codina To: Geert Uytterhoeven , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Herve Codina , 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 Subject: [PATCH v3 5/9] dt-bindings: usb: add the Renesas RZ/N1 USBF controller Date: Wed, 7 Dec 2022 17:24:31 +0100 Message-Id: <20221207162435.1001782-6-herve.codina@bootlin.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221207162435.1001782-1-herve.codina@bootlin.com> References: <20221207162435.1001782-1-herve.codina@bootlin.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751573199706270636?= X-GMAIL-MSGID: =?utf-8?q?1751573199706270636?= The Renesas RZ/N1 USBF controller is an USB2.0 device controller (UDC) available in the Renesas r9a06g032 SoC (RZ/N1 family). Signed-off-by: Herve Codina --- .../bindings/usb/renesas,rzn1-usbf.yaml | 77 +++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/renesas,rzn1-usbf.yaml diff --git a/Documentation/devicetree/bindings/usb/renesas,rzn1-usbf.yaml b/Documentation/devicetree/bindings/usb/renesas,rzn1-usbf.yaml new file mode 100644 index 000000000000..e746ea55b78d --- /dev/null +++ b/Documentation/devicetree/bindings/usb/renesas,rzn1-usbf.yaml @@ -0,0 +1,77 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/renesas,rzn1-usbf.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas RZ/N1 SoCs USBF (USB Function) controller + +description: | + The Renesas USBF controller is an USB2.0 device + controller (UDC). + +maintainers: + - Herve Codina + +properties: + compatible: + 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 + + clock-names: + items: + - const: hclkf + - const: hclkpm + + power-domains: + maxItems: 1 + + interrupts: + items: + - description: The USBF EPC interrupt + - description: The USBF AHB-EPC interrupt + + depends-on: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle to the node (sysctrl node) that set the 'h2mode' value in + order to express the fact that sysctrl must set the 'h2mode' before + the USB device controller starts. + +required: + - compatible + - reg + - clocks + - clock-names + - power-domains + - interrupts + - depends-on + +additionalProperties: false + +examples: + - | + #include + #include + + usb@4001e000 { + compatible = "renesas,r9a06g032-usbf", "renesas,rzn1-usbf"; + reg = <0x4001e000 0x2000>; + interrupts = , + ; + clocks = <&sysctrl R9A06G032_HCLK_USBF>, + <&sysctrl R9A06G032_HCLK_USBPM>; + clock-names = "hclkf", "hclkpm"; + power-domains = <&sysctrl>; + depends-on = <&sysctrl>; + };