Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3031803pxb; Mon, 24 Jan 2022 00:25:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJwMJreS/BWtIx3aKQutoAhuSo/VH6LV8ZPqkY+SC6MgSh6ln62BJwYy3SFR70HjsIn51HjO X-Received: by 2002:a63:8c48:: with SMTP id q8mr11361877pgn.490.1643012706091; Mon, 24 Jan 2022 00:25:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643012706; cv=none; d=google.com; s=arc-20160816; b=fFJ/Q1Iq/QEwkBzdE67VDMzuBuj15WtLUw3iVZ89ROLCoUtL8y4p78AwiaSCV83FC0 bO1LwNBKwEtiBnulXxr3DbYpmIkPRoTK5tzwBtwi6ZSEyzro5HnySow3UC7PVhN3tdZn FodSBDwVCgXKp+F2fTPwdYglR7gy6tJ5obX7jC31jW0ZnMnGKx/U8kN+ahZdZPFBCtM4 j7iqhvzjR3qgxvFaqEGNp/QjbWJC8A4E459pYncW+LI2i9lCHKVanL7rD3UrcBfN6mbP iu9MW2qjMbODXcueu2DDEIoAIdsaNSws4cJIXyrm1YCXprSXUdoQVDwqaTUKaVgAAgCw r5lA== 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:to:from :dkim-signature; bh=EY00fcF86JGlObERH8+w8SsbFYrjNSJWFyQtAnjjq5Y=; b=jTThB4N35U8cwjLaL80jFYBRTxO2C5sTS4VUI5z4rkRqawafkjJFCQDTGPLO+F8jLJ P1el4T2woedn9BMwd5STWrUOEtqROcKxk1eHkD8e6VGviL1DQ6BPzjFWZDot50aqnwdD MAGz157fWPSKP3IITSp9/0u2uzMmgkokHNvmvU5lNZFVohpJx3e3fVyLuSUDmPDPIhiA zFg76aL5SEuRb2fX6SRnTupxrkXQQXtWTmZG6ubYyPMX3SpY6ErNYtJCi5i3ypZaXq8a q7KcS92ahdDQ0UucGhvdB+CvAwR3RPh0kl39fDt/Ivd2GAOjfQg57mn19k3Upbd/UHSO 93Kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=TKZzipqX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s67si13560400pgs.322.2022.01.24.00.24.54; Mon, 24 Jan 2022 00:25:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=TKZzipqX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236427AbiAWLR1 (ORCPT + 99 others); Sun, 23 Jan 2022 06:17:27 -0500 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]:56174 "EHLO smtp-relay-internal-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236233AbiAWLRJ (ORCPT ); Sun, 23 Jan 2022 06:17:09 -0500 Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 852D23F17B for ; Sun, 23 Jan 2022 11:17:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1642936627; bh=EY00fcF86JGlObERH8+w8SsbFYrjNSJWFyQtAnjjq5Y=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=TKZzipqXObeLPe7kkvXi+bIUzKyN0T4erHTcmkQrmlehZUCCKgBG/duYpa827FrAQ hHFsuzRGIHv/+cMvIk6X3WtzLwBrTLXkanIJFUqHuL5e+SlGeyTd44VPheIaJqe0Sp dUP1Uu4IQ6yJ3rrMuIqX3hdT/xo3wQ//+HygqXs2QDDlW2et94JL/2FGiToAL8RUSc PdkZvSN/hclbUNQiFrxnCeVJervTGlXgEMuvECquaB/UThllA57WBe+44FiPXl+Gdz kbLvoixoIAAWiR1Ba+LNp2DQBeKQgCFLyTKTysFIWfJju+Jwnv6XZipRzyugPKu8N+ 1HuKtdmBXo5Iw== Received: by mail-wm1-f71.google.com with SMTP id a189-20020a1c98c6000000b0034e32e18a21so6660288wme.9 for ; Sun, 23 Jan 2022 03:17:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=EY00fcF86JGlObERH8+w8SsbFYrjNSJWFyQtAnjjq5Y=; b=56a8xewt89WKYhlkFYTRPRtodoaLnE23X9KrZTBye/49jFF7P8Y1SDCGOA9zhqPQCu WdraAUX+YmmZFPX4SGRbay/ceoXrocxfNMjA86lSCF4yJrBqIJ+Os4JvUgMa2b9CdtJ9 xwryL4E90/RSYiWNwOyxIUo69IQlmtxHE/pjcY7G0ieKi40ImSWVsVTFDHGbLbbmJAHA ODBsjkIuejedEhra/SLp7qr4lCQVmXUazkRhuA+eHloRhOAKESbuu4d9j8Xx4j8ySqnt gkuJbrIN+00YfCXguoE3YutmSWP93GfhNkiA3wCBxUMMADgMxW6G7nOr6tFkHIv6iJhK VTww== X-Gm-Message-State: AOAM5322vp5LLY4p6/LIu1bE2UlxC7jhKvBUgiWBuqnGSNpOCGkba4/o XqJ3zZXi1goMBvp9jqjIKLguZJtkl/bv52R8Ubkuf9DjjFk+LB82fpSM/HkloxEEFASpK1fNohV vghgzi4w/pWLVjr4XB+9o8b1F4rhD+rA1ez4EGA3QXw== X-Received: by 2002:adf:dc45:: with SMTP id m5mr10547735wrj.625.1642936623138; Sun, 23 Jan 2022 03:17:03 -0800 (PST) X-Received: by 2002:adf:dc45:: with SMTP id m5mr10547721wrj.625.1642936622954; Sun, 23 Jan 2022 03:17:02 -0800 (PST) Received: from localhost.localdomain (xdsl-188-155-168-84.adslplus.ch. [188.155.168.84]) by smtp.gmail.com with ESMTPSA id m5sm10143729wms.4.2022.01.23.03.17.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jan 2022 03:17:02 -0800 (PST) From: Krzysztof Kozlowski To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 12/12] dt-bindings: usb: samsung,exynos-usb2: convert to dtschema Date: Sun, 23 Jan 2022 12:16:44 +0100 Message-Id: <20220123111644.25540-13-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220123111644.25540-1-krzysztof.kozlowski@canonical.com> References: <20220123111644.25540-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the Samsung Exynos SoC USB 2.0 EHCI and OHCI Controller bindings to DT schema format. Signed-off-by: Krzysztof Kozlowski --- .../devicetree/bindings/usb/exynos-usb.txt | 66 ---------- .../bindings/usb/samsung,exynos-usb2.yaml | 117 ++++++++++++++++++ 2 files changed, 117 insertions(+), 66 deletions(-) delete mode 100644 Documentation/devicetree/bindings/usb/exynos-usb.txt create mode 100644 Documentation/devicetree/bindings/usb/samsung,exynos-usb2.yaml diff --git a/Documentation/devicetree/bindings/usb/exynos-usb.txt b/Documentation/devicetree/bindings/usb/exynos-usb.txt deleted file mode 100644 index 61c03c0ef19f..000000000000 --- a/Documentation/devicetree/bindings/usb/exynos-usb.txt +++ /dev/null @@ -1,66 +0,0 @@ -Samsung Exynos SoC USB controller - -The USB devices interface with USB controllers on Exynos SOCs. -The device node has following properties. - -EHCI -Required properties: - - compatible: should be "samsung,exynos4210-ehci" for USB 2.0 - EHCI controller in host mode. - - reg: physical base address of the controller and length of memory mapped - region. - - interrupts: interrupt number to the cpu. - - clocks: from common clock binding: handle to usb clock. - - clock-names: from common clock binding: Shall be "usbhost". - - phys: from the *Generic PHY* bindings; array specifying phy(s) used - by the root port. - - phy-names: from the *Generic PHY* bindings; array of the names for - each phy for the root ports, must be a subset of the following: - "host", "hsic0", "hsic1". - -Optional properties: - - samsung,vbus-gpio: if present, specifies the GPIO that - needs to be pulled up for the bus to be powered. - -Example: - - usb@12110000 { - compatible = "samsung,exynos4210-ehci"; - reg = <0x12110000 0x100>; - interrupts = <0 71 0>; - samsung,vbus-gpio = <&gpx2 6 1 3 3>; - - clocks = <&clock 285>; - clock-names = "usbhost"; - - phys = <&usb2phy 1>; - phy-names = "host"; - }; - -OHCI -Required properties: - - compatible: should be "samsung,exynos4210-ohci" for USB 2.0 - OHCI companion controller in host mode. - - reg: physical base address of the controller and length of memory mapped - region. - - interrupts: interrupt number to the cpu. - - clocks: from common clock binding: handle to usb clock. - - clock-names: from common clock binding: Shall be "usbhost". - - phys: from the *Generic PHY* bindings; array specifying phy(s) used - by the root port. - - phy-names: from the *Generic PHY* bindings; array of the names for - each phy for the root ports, must be a subset of the following: - "host", "hsic0", "hsic1". - -Example: - usb@12120000 { - compatible = "samsung,exynos4210-ohci"; - reg = <0x12120000 0x100>; - interrupts = <0 71 0>; - - clocks = <&clock 285>; - clock-names = "usbhost"; - - phys = <&usb2phy 1>; - phy-names = "host"; - }; diff --git a/Documentation/devicetree/bindings/usb/samsung,exynos-usb2.yaml b/Documentation/devicetree/bindings/usb/samsung,exynos-usb2.yaml new file mode 100644 index 000000000000..fbf07d6e707a --- /dev/null +++ b/Documentation/devicetree/bindings/usb/samsung,exynos-usb2.yaml @@ -0,0 +1,117 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/samsung,exynos-usb2.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung Exynos SoC USB 2.0 EHCI/OHCI Controller + +maintainers: + - Krzysztof Kozlowski + +properties: + compatible: + enum: + - samsung,exynos4210-ehci + - samsung,exynos4210-ohci + + '#address-cells': + const: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: usbhost + + interrupts: + maxItems: 1 + + phys: + minItems: 1 + maxItems: 3 + + phy-names: + items: + enum: [host, hsic0, hsic1] + minItems: 1 + maxItems: 3 + + reg: + maxItems: 1 + + samsung,vbus-gpio: + description: + Only for controller in EHCI mode, if present, specifies the GPIO that + needs to be pulled up for the bus to be powered. + + '#size-cells': + const: 0 + +patternProperties: + "^.*@[0-9a-f]{1,2}$": + description: The hard wired USB devices + type: object + $ref: /usb/usb-device.yaml + +required: + - compatible + - clocks + - clock-names + - interrupts + - phys + - phy-names + +allOf: + - if: + properties: + compatible: + contains: + const: samsung,exynos4210-ohci + then: + properties: + samsung,vbus-gpio: false + +additionalProperties: false + +examples: + - | + #include + #include + + usb@12110000 { + compatible = "samsung,exynos4210-ehci"; + reg = <0x12110000 0x100>; + interrupts = ; + clocks = <&clock CLK_USBH20>; + clock-names = "usbhost"; + phys = <&usb2_phy 0>; + phy-names = "host"; + + #address-cells = <1>; + #size-cells = <0>; + + hub@1 { + compatible = "usb0424,9514"; + reg = <1>; + #address-cells = <1>; + #size-cells = <0>; + + usbether@1 { + compatible = "usb0424,ec00"; + reg = <1>; + local-mac-address = [00 00 00 00 00 00]; + }; + }; + }; + + usb@12120000 { + compatible = "samsung,exynos4210-ohci"; + reg = <0x12120000 0x100>; + interrupts = ; + clocks = <&clock CLK_USBH20>; + clock-names = "usbhost"; + phys = <&usb2_phy 0>; + phy-names = "host"; + }; -- 2.32.0