From patchwork Tue Dec 13 13:32:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Herve Codina X-Patchwork-Id: 32817 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp121133wrn; Tue, 13 Dec 2022 05:33:53 -0800 (PST) X-Google-Smtp-Source: AA0mqf4HOBIk1V1yGFGJti1Tz/JjJ38q31Vjn71zJFXzb9q7rsTcqqLCE4g9zjBoWGM8bX66shqG X-Received: by 2002:aa7:9a0a:0:b0:577:272f:fdb with SMTP id w10-20020aa79a0a000000b00577272f0fdbmr20785612pfj.29.1670938432994; Tue, 13 Dec 2022 05:33:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670938432; cv=none; d=google.com; s=arc-20160816; b=QpC7rpUcfAj2KdqSOMAWUhXoNBecUjm4PRpKeAbiV9rbwHnzPkvbbaMNGba+uQFY6S GDvgPI/17Y/V3flVTn2fiX8oJHQRNYGnoXNoztUb2K9WebyUS886GxYh1SR06p1sd8OW FOuWxVBVbP3reTik6FSeB/eXg71797PDgHAxu3yqmhtwzkQi0Z7A5h43LE7/PdU7gTr9 UTqhNGVb/AjkyKukEfoCjC2so6po1zt8Q5zKfcPUVVnqMwQg5BMhR6SH1PExlfruARVI 8qd3BDz8k2Z4hAXlxd1bmnNE+S2qKAhAc8PbIhPiCw5Zar2AzomCxAkgq0t+12+9FGao stzg== 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=gT1SzmrwD2Q3IGrDxGN5feKqp7sHflj9viAxhsZoKW4=; b=ku0o2yE2Coee98DbUPOYWnR7uC5hRnGm9Vk4/NFwvolUzFKjrFoKbHQboZs29ElaoN 4wgtT2NikhQMtvIymTRF9Jfc6tFB3p6nb+d1a/8O+GMWewzp07lQWRHR4kknDgSKJY9c KkPh7C0MBaz8kznMe/LZg5LlUH5IcySMSdMMZT7qD/wOymne6VRTeqX6NrRhIxhmSxo7 qO2lf/Tm7MyGZZzBcIBUFlFsy02S/qWsx9aMTw4U0aOb+UI7mHn7dh7pl6ZViSh/rOcE LYKiby+cH+JR33a81FL5FBl4CvjrMi7u9+O8o3k7vn8MIdFbckbzRRpBNW1iO2ejwWKy U69g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=MiKvh6M6; 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 k7-20020a056a00134700b005753f93ba45si13542238pfu.358.2022.12.13.05.33.39; Tue, 13 Dec 2022 05:33:52 -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=MiKvh6M6; 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 S235601AbiLMNdY (ORCPT + 99 others); Tue, 13 Dec 2022 08:33:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235281AbiLMNdU (ORCPT ); Tue, 13 Dec 2022 08:33:20 -0500 Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::222]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23D286361; Tue, 13 Dec 2022 05:33:17 -0800 (PST) Received: (Authenticated sender: herve.codina@bootlin.com) by mail.gandi.net (Postfix) with ESMTPA id A94F040004; Tue, 13 Dec 2022 13:33:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1670938396; 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=gT1SzmrwD2Q3IGrDxGN5feKqp7sHflj9viAxhsZoKW4=; b=MiKvh6M6NohegQpF1nyE16nFbZAqezBz0yefbmh9X5Rb1nO8uqnq3wo1Kgva5UC7bz/avV 1VMKO559UhUt0X40Qei11UIUhbixd5TAUi5KFpSftYXacCD+vO8O2BXenmv6J5CCbSfAXD gmOvQz1L9YIVeHsgx22Zz15Rqn2j0BE/1o+PpJJlzo29zNexIvvrBLyy3FNl9D1iEGLKgd 7gaQ6b1SJdzG9ImtdiUx9NjYDKZKr/aFLQ2P/7VXtoFeGJffJ+FlOz5BDuDezXItFAkj5N VOlko2XohpKb/ktikMeDH5FKmpyObZkwz2AHD39DxfiFwR8aUf42FlzbcIp3yA== 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 v4 1/5] dt-bindings: usb: add the Renesas RZ/N1 USBF controller Date: Tue, 13 Dec 2022 14:32:58 +0100 Message-Id: <20221213133302.218955-2-herve.codina@bootlin.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221213133302.218955-1-herve.codina@bootlin.com> References: <20221213133302.218955-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,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?1752105938071610943?= X-GMAIL-MSGID: =?utf-8?q?1752105938071610943?= 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 Reviewed-by: Rob Herring Reviewed-by: Geert Uytterhoeven --- .../bindings/usb/renesas,rzn1-usbf.yaml | 68 +++++++++++++++++++ 1 file changed, 68 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..b6e84a2a6925 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/renesas,rzn1-usbf.yaml @@ -0,0 +1,68 @@ +# 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 + +required: + - compatible + - reg + - clocks + - clock-names + - power-domains + - interrupts + +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>; + };