Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1887624ybv; Sun, 23 Feb 2020 17:40:45 -0800 (PST) X-Google-Smtp-Source: APXvYqxU+U1nB2DAIYg6DxD2jr59/KUdshR85JbnpnOdT9+VdbzmaptL2kgpnIl/+6zaWhTgsN62 X-Received: by 2002:a9d:58cb:: with SMTP id s11mr39335639oth.55.1582508444893; Sun, 23 Feb 2020 17:40:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582508444; cv=none; d=google.com; s=arc-20160816; b=krS+WyM0uhHj1iALrX7oA7lnyx4Bqk6WdWPC5FJImbwAkaUma4vbHVxayyO4AlhmEK t3SWc83nuhy+6wARbxmJyDDb9G/O8foa5owt69Ru6Nqiigs7BRxeYjOwNeuSTEvOngMK xoX6YGQ0w1VJ+x5SSYCGS0kkCydqHoGxXt33+GoxGFSEGiY+CGW9qTMLg/HqgrH57KHj n1rAtp4G6IUriSFNOmx0G14zNw1Ft1Djw0+nttZPX1BlyqgfGx7j4yKouxW8ycY9QGFX fkHstVx4kIDlfnwEi4ozWX2lTPPThVOld6f1PV7ZHgPCp51H8smHRhoBAys/3anxLiEA RjOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=kWFzRCDU3masFCu+Z++Xrrw0wXMCZDMZCVEAXiqH6iU=; b=fKxrNAOZGfAcoTu2VcxDXr5kiziGsDDJYN0OE02wWoGSFA7Kiw6woOEjBFiis6xJf/ 7fToOVHuobQVKkuqEqg9JT+3FxP7JZYAy+8f0UWNAeHS7/6guvIQuKnpHBz0qQoQQ1yE nuYdn2upzq91gy36YxhCVvlk+IRfaW38/QRbMqetJixroyYW3L9mzktr4L5yHxOpgSE9 rNi+JFtDMRtR9O8KsmjtqqQm4nyLhAP5MuNjKgJed/tkOK7IFaRWiPaKu2efSgBXiHJ4 hmoXbDnw0+HD1GNdUey9aRwlG2eDKyV7hezej4E218kloFa2Z06X3gmtWQWjpB76IEGu CPXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=JstGtZxf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v9si4231040oie.22.2020.02.23.17.40.33; Sun, 23 Feb 2020 17:40:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=JstGtZxf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727197AbgBXBkX (ORCPT + 99 others); Sun, 23 Feb 2020 20:40:23 -0500 Received: from outils.crapouillou.net ([89.234.176.41]:48564 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727158AbgBXBkX (ORCPT ); Sun, 23 Feb 2020 20:40:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1582508420; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references; bh=kWFzRCDU3masFCu+Z++Xrrw0wXMCZDMZCVEAXiqH6iU=; b=JstGtZxfqaahtWtYf0l0EsnWw2Go3mOcd5+QXFyC7WWZWR+dCLwuo6veChHjiVMhnlXtc7 9LuJqBmY261IiTUJbiOl8M6Hc2P2K0fopltiqXPaQNviQ11FtgNorJqfTqGUEqss9I2Yk8 ISy4buVMYQ6i9ixeTdcj5hcXGkl7HSs= From: Paul Cercueil To: Bin Liu , Greg Kroah-Hartman Cc: od@zcrc.me, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Cercueil , Rob Herring Subject: [PATCH v2 1/5] dt-bindings: usb: Convert jz4740-musb doc to YAML Date: Sun, 23 Feb 2020 22:40:04 -0300 Message-Id: <20200224014008.27114-1-paul@crapouillou.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert ingenic,jz4740-musb.txt to ingenic,musb.yaml, and add the new ingenic,jz4770-musb compatible string in the process. Signed-off-by: Paul Cercueil Reviewed-by: Rob Herring --- Notes: v2: Changed oneOf+const to enum .../bindings/usb/ingenic,jz4740-musb.txt | 32 --------- .../devicetree/bindings/usb/ingenic,musb.yaml | 72 +++++++++++++++++++ 2 files changed, 72 insertions(+), 32 deletions(-) delete mode 100644 Documentation/devicetree/bindings/usb/ingenic,jz4740-musb.txt create mode 100644 Documentation/devicetree/bindings/usb/ingenic,musb.yaml diff --git a/Documentation/devicetree/bindings/usb/ingenic,jz4740-musb.txt b/Documentation/devicetree/bindings/usb/ingenic,jz4740-musb.txt deleted file mode 100644 index 16808721f3ff..000000000000 --- a/Documentation/devicetree/bindings/usb/ingenic,jz4740-musb.txt +++ /dev/null @@ -1,32 +0,0 @@ -Ingenic JZ4740 MUSB driver - -Required properties: - -- compatible: Must be "ingenic,jz4740-musb" -- reg: Address range of the UDC register set -- interrupts: IRQ number related to the UDC hardware -- interrupt-names: must be "mc" -- clocks: phandle to the "udc" clock -- clock-names: must be "udc" -- phys: phandle to the USB PHY - -Example: - -usb_phy: usb-phy@0 { - compatible = "usb-nop-xceiv"; - #phy-cells = <0>; -}; - -udc: usb@13040000 { - compatible = "ingenic,jz4740-musb"; - reg = <0x13040000 0x10000>; - - interrupt-parent = <&intc>; - interrupts = <24>; - interrupt-names = "mc"; - - clocks = <&cgu JZ4740_CLK_UDC>; - clock-names = "udc"; - - phys = <&usb_phy>; -}; diff --git a/Documentation/devicetree/bindings/usb/ingenic,musb.yaml b/Documentation/devicetree/bindings/usb/ingenic,musb.yaml new file mode 100644 index 000000000000..7f33d3caa214 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/ingenic,musb.yaml @@ -0,0 +1,72 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/ingenic,musb.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Ingenic JZ47xx USB IP DT bindings + +maintainers: + - Paul Cercueil + +properties: + $nodename: + pattern: '^usb@.*' + + compatible: + enum: + - ingenic,jz4770-musb + - ingenic,jz4740-musb + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: udc + + interrupts: + maxItems: 1 + + interrupt-names: + items: + - const: mc + + phys: + description: PHY specifier for the USB PHY + +required: + - compatible + - reg + - clocks + - clock-names + - interrupts + - interrupt-names + - phys + +additionalProperties: false + +examples: + - | + #include + usb_phy: usb-phy@0 { + compatible = "usb-nop-xceiv"; + #phy-cells = <0>; + }; + + udc: usb@13040000 { + compatible = "ingenic,jz4740-musb"; + reg = <0x13040000 0x10000>; + + interrupt-parent = <&intc>; + interrupts = <24>; + interrupt-names = "mc"; + + clocks = <&cgu JZ4740_CLK_UDC>; + clock-names = "udc"; + + phys = <&usb_phy>; + }; -- 2.25.0