Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1003684pxk; Mon, 31 Aug 2020 07:23:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkGMWtnMEGqRH5Rn6xZo7LCBQmrR/VZcOTYcipx585TOySiA3AIx2ilAJk63wVONauBZjp X-Received: by 2002:a50:fc08:: with SMTP id i8mr669523edr.257.1598883799217; Mon, 31 Aug 2020 07:23:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598883799; cv=none; d=google.com; s=arc-20160816; b=lU5lc+mVyzfoVZ8wefik0u3Xd6U3M6b1ZW8kawVQmA/iHac6EVfSSAdXhfy/1cCHoi XGqWRjzOgtCgQfJZGHHFhFC7f9LdawOD53TfWP260eVJDQkXlc4QvJZTvsla5vC5zZMX sR5mgYVpakn9fGgQk1YvVEVXJSX8ha94ePKbNuZh4rZHG+HSE8dbJ2rudzZ65les8s5k uGCocwomX8hYQ9uv+37hE5ji00r12Thi/G4agNZe1sn4HPBM0ltJkjAEM3Ynsp2N6s28 FgFQ2thBkc9BK9+YJmFBE1vgF1OwMzwtoAGDwDysEcjH6PNhby+4pvK7T+EpGJci3kcX J0sA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=oPBWDKgwWKqovfHgw3zKlv+W3MpZD/0JXZDqN2wy3HY=; b=ahUE5Q3yZTQmfB1S+lw4xJJbo7zDpSnNDxKBRJG8ndpvbS5FFggsZ0ultSAsZTbQtK 271HRFgi2ECDdqIlFGZDvJNtt44/4A9eConP+kXU63blidVXRr8rNIgWoPGBPQrgExzk WFTywpLlCislQ57e2UcWSPWzPeeKNHS21x4/JpMKeXaRt/zwBKAtKIa51hXKs5c7Q2vw vC4dwX0Ui+iH/O9/Ucbt+HRnW2ClbKf+jNX2C2/FiSIXMFyx8L0+C+MHXhXzMxt7Ii0a jsxkRyS1+TV23bPYwQqf1mlS4ql3wG2EbSs8K+qlvCpRexprj/zktv4jphE68t/DwQ86 ltsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="gFVd/6dm"; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 24si6274425edv.581.2020.08.31.07.22.55; Mon, 31 Aug 2020 07:23:19 -0700 (PDT) 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=@ti.com header.s=ti-com-17Q1 header.b="gFVd/6dm"; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727815AbgHaOVr (ORCPT + 99 others); Mon, 31 Aug 2020 10:21:47 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:51134 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726503AbgHaOVn (ORCPT ); Mon, 31 Aug 2020 10:21:43 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 07VELa7S114708; Mon, 31 Aug 2020 09:21:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1598883696; bh=oPBWDKgwWKqovfHgw3zKlv+W3MpZD/0JXZDqN2wy3HY=; h=From:To:CC:Subject:Date; b=gFVd/6dmy1TNoVlJV+ftKzWMAMzzpoJ/3p1RcOT25WJZCQArxcFux6qHBWbb0jBeD SQawhsGTqZl1AlbBNj1Kzd7Gl+FOwcaxhWfMBcZgi+qlN9k+hcRigQh9bRcUfxZnyv ILInXmfIQ1RxS9TsLpRZ5rvkLQSjeciTGVeYm5rw= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 07VELa6Q042190 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 31 Aug 2020 09:21:36 -0500 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 31 Aug 2020 09:21:36 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Mon, 31 Aug 2020 09:21:36 -0500 Received: from lta0400828a.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 07VELX2G050529; Mon, 31 Aug 2020 09:21:34 -0500 From: Roger Quadros To: , CC: , , , , , , Roger Quadros Subject: [PATCH v5] dt-binding: phy: convert ti,omap-usb2 to YAML Date: Mon, 31 Aug 2020 17:21:30 +0300 Message-ID: <20200831142130.21836-1-rogerq@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Move ti,omap-usb2 to its own YAML schema. Signed-off-by: Roger Quadros Reviewed-by: Rob Herring --- Changelog: v5 - Added "ti,am437x-usb2" compatible. v4 - fix example to fix dt_binding_check warnings - '#phy-cells' -> "#phy-cells" - Add 'oneOf' to compatible logic to allow just "ti,omap-usb2" as valid v3 - Removed quotes from compatibles - changed property to "ti,disable-charger-det" v2 - Address Rob's comments on YAML schema. .../devicetree/bindings/phy/ti,omap-usb2.yaml | 74 +++++++++++++++++++ .../devicetree/bindings/phy/ti-phy.txt | 37 ---------- 2 files changed, 74 insertions(+), 37 deletions(-) create mode 100644 Documentation/devicetree/bindings/phy/ti,omap-usb2.yaml diff --git a/Documentation/devicetree/bindings/phy/ti,omap-usb2.yaml b/Documentation/devicetree/bindings/phy/ti,omap-usb2.yaml new file mode 100644 index 000000000000..15207ca9548f --- /dev/null +++ b/Documentation/devicetree/bindings/phy/ti,omap-usb2.yaml @@ -0,0 +1,74 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/ti,omap-usb2.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: OMAP USB2 PHY + +maintainers: + - Kishon Vijay Abraham I + - Roger Quadros + +properties: + compatible: + oneOf: + - items: + - enum: + - ti,dra7x-usb2 + - ti,dra7x-usb2-phy2 + - ti,am654-usb2 + - enum: + - ti,omap-usb2 + - items: + - const: ti,am437x-usb2 + - items: + - const: ti,omap-usb2 + + reg: + maxItems: 1 + + "#phy-cells": + const: 0 + + clocks: + minItems: 1 + items: + - description: wakeup clock + - description: reference clock + + clock-names: + minItems: 1 + items: + - const: wkupclk + - const: refclk + + syscon-phy-power: + $ref: /schemas/types.yaml#definitions/phandle-array + description: + phandle/offset pair. Phandle to the system control module and + register offset to power on/off the PHY. + + ctrl-module: + $ref: /schemas/types.yaml#definitions/phandle + description: + (deprecated) phandle of the control module used by PHY driver + to power on the PHY. Use syscon-phy-power instead. + +required: + - compatible + - reg + - "#phy-cells" + - clocks + - clock-names + +examples: + - | + usb0_phy: phy@4100000 { + compatible = "ti,am654-usb2", "ti,omap-usb2"; + reg = <0x4100000 0x54>; + syscon-phy-power = <&scm_conf 0x4000>; + clocks = <&k3_clks 151 0>, <&k3_clks 151 1>; + clock-names = "wkupclk", "refclk"; + #phy-cells = <0>; + }; diff --git a/Documentation/devicetree/bindings/phy/ti-phy.txt b/Documentation/devicetree/bindings/phy/ti-phy.txt index 8f93c3b694a7..60c9d0ac75e6 100644 --- a/Documentation/devicetree/bindings/phy/ti-phy.txt +++ b/Documentation/devicetree/bindings/phy/ti-phy.txt @@ -27,43 +27,6 @@ omap_control_usb: omap-control-usb@4a002300 { reg-names = "otghs_control"; }; -OMAP USB2 PHY - -Required properties: - - compatible: Should be "ti,omap-usb2" - Should be "ti,dra7x-usb2" for the 1st instance of USB2 PHY on - DRA7x - Should be "ti,dra7x-usb2-phy2" for the 2nd instance of USB2 PHY - in DRA7x - Should be "ti,am654-usb2" for the USB2 PHYs on AM654. - - reg : Address and length of the register set for the device. - - #phy-cells: determine the number of cells that should be given in the - phandle while referencing this phy. - - clocks: a list of phandles and clock-specifier pairs, one for each entry in - clock-names. - - clock-names: should include: - * "wkupclk" - wakeup clock. - * "refclk" - reference clock (optional). - -Deprecated properties: - - ctrl-module : phandle of the control module used by PHY driver to power on - the PHY. - -Recommended properies: -- syscon-phy-power : phandle/offset pair. Phandle to the system control - module and the register offset to power on/off the PHY. - -This is usually a subnode of ocp2scp to which it is connected. - -usb2phy@4a0ad080 { - compatible = "ti,omap-usb2"; - reg = <0x4a0ad080 0x58>; - ctrl-module = <&omap_control_usb>; - #phy-cells = <0>; - clocks = <&usb_phy_cm_clk32k>, <&usb_otg_ss_refclk960m>; - clock-names = "wkupclk", "refclk"; -}; - TI PIPE3 PHY Required properties: -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki