From patchwork Mon Nov 14 11:15:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Herve Codina X-Patchwork-Id: 19714 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2088104wru; Mon, 14 Nov 2022 03:20:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf6T7Axq/qhrSVCAyvYrNPFMvV+PDEm92zix3ehyluR6AGSvCKamzTdqEoYyEbyBGerT5F9n X-Received: by 2002:a17:906:fcb1:b0:7ad:948f:11bb with SMTP id qw17-20020a170906fcb100b007ad948f11bbmr9604726ejb.354.1668424824367; Mon, 14 Nov 2022 03:20:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668424824; cv=none; d=google.com; s=arc-20160816; b=s+1a3Jnjr8kDOoCF6rO1rHQpiuxUBT9YitVzIDtRQcjLNtEYcnsT8TGSYzWoYTyWY+ sk0822k6mTvNfVX8gPIV/eiVIwmfBR/FeVFMfbB5jRJyKZswD+3ZUwssVS+9mmKHubSl cGHBYD0KD9K+uJxtncSf6nps/iZqv8KgGvPT2+tP+xxS9RxIP9/i3nDeZ3kEmeopHWJZ vsUIrYlNPwyqHSxhPTVB5RgocwxZKgVZnmbvdXxoo3kPE56RSXamWQEIwB/X0RbBP7jd KfS7ltAs5n10MqnS59hOleaQLNJaTpWjXKTMxVwdDYgFsgbvGWC2XMrscLYZ3IDPl8+c qIfw== 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=erW/gAS4dULA5JTOLl0FGx1bAeaHIYZy6jpj3FKM28s=; b=RfpOZK3aifFnhGsEE+16ZNzP+ynatSYhy0zh1M1K0d3dhmnllA5Pxe3ru59nPFpIKL 2kUJrnHRUIqtU7mkfl1QgGztOWFJL5epktrxAP1xIB3N2Xjuorn4keEok394rd4f/47C 4OS1XA8BpispCb6UyDDi9R4X+w0XUXNb7OmcV1rYDoKXSineS4JQdAufgDfyqAE8xDEh aN2wLi2r6tddZ2hCQPS2VGFSIfuNgBg4zPC/izF0nQ21HXBPlvWxEQEmwvvfSJrp1Hyn Urrj+z4tKRDmkOhzsCZf7zWdfmQd3tvrIZLENBDA1H3vePxhFJ0DnDPfpqQ51wVTtqqn h4hQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Bflxvrp7; 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 qb21-20020a1709077e9500b007ae17fd2f2dsi9554112ejc.996.2022.11.14.03.20.00; Mon, 14 Nov 2022 03:20:24 -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=Bflxvrp7; 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 S236045AbiKNLT1 (ORCPT + 99 others); Mon, 14 Nov 2022 06:19:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235660AbiKNLRd (ORCPT ); Mon, 14 Nov 2022 06:17:33 -0500 Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 424E85F59; Mon, 14 Nov 2022 03:15:38 -0800 (PST) Received: (Authenticated sender: herve.codina@bootlin.com) by mail.gandi.net (Postfix) with ESMTPA id 5021960004; Mon, 14 Nov 2022 11:15:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1668424537; 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=erW/gAS4dULA5JTOLl0FGx1bAeaHIYZy6jpj3FKM28s=; b=Bflxvrp7c3nXu/Kr/0hrFTO2EHZ6ONMIQHFqPMc6WfW5LqLxreWMhI06Bs4dUy8KaNlMfm wgmaHq2U6ke2q1OTwmGuWch9Szpe3BH7GS2k5wI7AISz/l+bkbbqoAnbRej7nSWpwjJlbq Yr7C7iURAgXf/wkGzILPKTRgfplwCLielX0wsfSAyKIsKTdmzD4Hc1zbnE9X8iautFNFzu MMg/TpWgAuh4KlFPT2YRC7UEgT2Qiv0eENyQTc+NXn6Hrx6QrqyQlbKyPguOgqujBN3Xnh qcFRQqcWWVZnnCRpP1JrSeI9Uo+tH1cu5p9lF2NwB8zjB7Vq2lobr1KachUFsQ== 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 v2 4/7] dt-bindings: usb: add the Renesas RZ/N1 USBF controller binding Date: Mon, 14 Nov 2022 12:15:10 +0100 Message-Id: <20221114111513.1436165-5-herve.codina@bootlin.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221114111513.1436165-1-herve.codina@bootlin.com> References: <20221114111513.1436165-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?1749470228959479421?= X-GMAIL-MSGID: =?utf-8?q?1749470228959479421?= 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: Krzysztof Kozlowski --- .../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..b67e9cea2522 --- /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 binding + +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>; + };