From patchwork Thu Jan 5 15:22:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Herve Codina X-Patchwork-Id: 39652 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp353765wrt; Thu, 5 Jan 2023 07:24:39 -0800 (PST) X-Google-Smtp-Source: AMrXdXvY3eCu+PVgTF6XERjEg+8RIMIWUYGXNu4J9avFN5XJMDNVX9NBET3dTvwOlTBE5TIinFvt X-Received: by 2002:aa7:96ba:0:b0:583:1dc6:2aef with SMTP id g26-20020aa796ba000000b005831dc62aefmr3428800pfk.34.1672932278749; Thu, 05 Jan 2023 07:24:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672932278; cv=none; d=google.com; s=arc-20160816; b=N40hz2cRoYxAwNRt0SnGJHAEkaSaYH2ouJdsK/WRc31T/rEV7F+mM00wRMkjGQnh3P sIC5N9zR8jAcW+RmtLl8P3eOkkh+ZjS8Ih1rZd0RWuSZERAEhK5uDRtOFovhKO+ccu5g LwD9JGvmJAA3dmfR9fX9dOPKph6J4k885KZl0EgBIzcKg430qA+NfKbl61Xrd4lrAupY 6Yu/6xpnOTMx6gmLZf0vvBaLIURVoZ9wKEqTlaag08BdBojMhpSMjW1S/Gata+7ySFAS xqahL5+KQC+dGj0q1cJUQq0ODkjdnHh2M/JqlTOxUR/u0FrUSlSqboLx1X9h12K0TRaM /YjA== 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=VbuWktSH/oiWkw6lxCmsvnZa6RNGYO9ihwbl6HeDM5M=; b=dQ0ItREe43e7o7WcpEPRmT9/VHEG06OVtfgIuIU/HNO9E/lXeqO984+jZa7LWGYaWR Goz6IJfY/uwkpSvy+VCKK6qfos9BSo5F0WZZl8hOM0TVyGF6PbmjQKVuYTkwgu2pMnPC a/73jqnLeEal9ffoib1ng7KobnaztF6NGPYctOh46Lqm9CKxqZThCX6936HRQGTG920W RwNRR/JfD6E5ewPVa0CChNq5+N/QqtV9bnDpsTHK5FiK7zdIE+UDQfmMCEIQvYgfnSJY b5td4bj6ty21p/e99+XZoL03LQ+ba4hw1L6JzFISeSNzmeJ28KkKX25If/2UO42Hxrg9 AEaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=eyMTXkiR; 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 h3-20020a62b403000000b0057af1413b10si34832886pfn.40.2023.01.05.07.24.26; Thu, 05 Jan 2023 07:24:38 -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=eyMTXkiR; 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 S234547AbjAEPXk (ORCPT + 99 others); Thu, 5 Jan 2023 10:23:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234533AbjAEPXO (ORCPT ); Thu, 5 Jan 2023 10:23:14 -0500 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::224]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E08D4D4AA; Thu, 5 Jan 2023 07:23:11 -0800 (PST) Received: (Authenticated sender: herve.codina@bootlin.com) by mail.gandi.net (Postfix) with ESMTPA id B689FE0014; Thu, 5 Jan 2023 15:23:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1672932190; 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=VbuWktSH/oiWkw6lxCmsvnZa6RNGYO9ihwbl6HeDM5M=; b=eyMTXkiRRqP5gVTFCMWX+ITD3s0aE5kZVIgAwZfUnjEeld0/JvqiYpqdtQSsTVDSU8rLd7 nOPl9OieC9DbKBWjCY4X/Y8twuyY2WsfmyCyT0o83aOaUXfShOeIa9dJEwt5x1v3Jr69o8 LiMy0+xg3Vu4oZO9iavcpre+Msk5W7rOJNKUb6sZvwc7PDMxHsGaho4q+xjzhQ+9o4mZCU 3Uik6Fh5ub+CERZoCl9hfFysAF7NRq5jaChyaE+e5o2hWLF0CUMa1OQtcA4fySiugRJRUe KJKisl1Mc0QsiSnJvhp92t+53KJdrCQ5V4hA89EWwLV1itjuJAo4nuS803TP3g== 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 , Rob Herring Subject: [PATCH v5 1/5] dt-bindings: usb: add the Renesas RZ/N1 USBF controller Date: Thu, 5 Jan 2023 16:22:53 +0100 Message-Id: <20230105152257.310642-2-herve.codina@bootlin.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230105152257.310642-1-herve.codina@bootlin.com> References: <20230105152257.310642-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?1754196636622390923?= X-GMAIL-MSGID: =?utf-8?q?1754196636622390923?= 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>; + };