Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1970487pxa; Mon, 24 Aug 2020 00:50:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyl0nUzR+4RW3gH0zf4UbwGrG5O8ig2a31e9Y+5yg5zAujDzNOVuUqtkgZF3VNhatX7rGM1 X-Received: by 2002:a17:906:3fc7:: with SMTP id k7mr4272275ejj.301.1598255425660; Mon, 24 Aug 2020 00:50:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598255425; cv=none; d=google.com; s=arc-20160816; b=NMWY64V8bP26CMqDI8a0yRLjRK1jlg28jIegp8RAulRnn4Rt5Hz6I6KFihdd95d/Lj O30PRFAWdm971DUHdM8Q3dT4RrSgIG58js/LDbOedjVtTMqOurp4zdg96bvumaRZdbVl +rwLVSHvJky1zuv1CeMXFPk2xDPkCyjDum5bJt2SxwNF4fw9VrpUxIGP+Y5b1AZxqwp7 62Pw3mVR2pQLjg5Nj+KtQPUQirm5sKnv2QkNNReIVnhJ9TS6Q0UtqqkUbKF3zsH8X+1F orlJnQMLvPoimUy0JdnkPLjQfD9XAcA5yzuYd/vTym7RnQLWos7d2exR/N4j0E5ee0dI EZLQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=NwkS61NRLNTl3NjJKwJEcndzjqaQ6WH5ctn9a+dSDFk=; b=AlNtTSXmemnTUUrj6EOuZaRVoupALF3MrfK2HIuyCJyRVjJflACk+b0AczmmXVqRa7 3CxauuOi+BZH6ggDxa5sHDsl1Tatm/xEMdOTF0+XOcZEUafY91YqcYeCC4MGskACNk1w LebAUjNslPcajlzku91fuuzjL3W7Mqf6AjB18w6EHCd9VxOoe93nxdoPUa4qZsnMtDF/ tmPkRX1ueeb8aZfoAh91mi5vu+0D+ldJY9vkDVm6b7wXcOCjoqociZtC19j0NVIjP+mw hSnl78chmTo4Ll6+A1Q5kHZ957AbCaiXdCxBDh7vZlCWiryt4mdACmCZiKTaDap7kYl0 HSxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Pw4VKMbI; 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 j3si6711354edk.211.2020.08.24.00.50.02; Mon, 24 Aug 2020 00:50:25 -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=Pw4VKMbI; 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 S1726374AbgHXHr0 (ORCPT + 99 others); Mon, 24 Aug 2020 03:47:26 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:33410 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726051AbgHXHrZ (ORCPT ); Mon, 24 Aug 2020 03:47:25 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 07O7lHBC039361; Mon, 24 Aug 2020 02:47:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1598255237; bh=NwkS61NRLNTl3NjJKwJEcndzjqaQ6WH5ctn9a+dSDFk=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=Pw4VKMbIYkH1uTMUTRUFgUovyYeWqgymBgKTkvMBhkE6CEMGXDtWQhTUvbL5cgE0y b0R4XpChBHTlYnUDD00oFLOgwWng81HptTGGsCMSx7dYx+LwTRBfvD+zKxgVO13z5J qmHeQ+U18s0lHPrfIQgWQTNH61zwpUHrhYe7RtLg= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 07O7lH64117274 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 24 Aug 2020 02:47:17 -0500 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 24 Aug 2020 02:47:11 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE101.ent.ti.com (157.170.170.31) 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, 24 Aug 2020 02:47:11 -0500 Received: from [192.168.2.14] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 07O7l8R0004837; Mon, 24 Aug 2020 02:47:09 -0500 Subject: Re: [PATCH v4] dt-binding: phy: convert ti,omap-usb2 to YAML To: , , Tony Lindgren CC: , , , , , References: <20200821081144.29288-1-rogerq@ti.com> From: Roger Quadros Message-ID: Date: Mon, 24 Aug 2020 10:47:08 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200821081144.29288-1-rogerq@ti.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit 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 Hi, On 21/08/2020 11:11, Roger Quadros wrote: > Move ti,omap-usb2 to its own YAML schema. > > Signed-off-by: Roger Quadros > Reviewed-by: Rob Herring > --- > > 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 | 72 +++++++++++++++++++ > .../devicetree/bindings/phy/ti-phy.txt | 37 ---------- > 2 files changed, 72 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..a05110351814 > --- /dev/null > +++ b/Documentation/devicetree/bindings/phy/ti,omap-usb2.yaml > @@ -0,0 +1,72 @@ > +# 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 I missed these two. "ti,omap5-usb2" "ti,am437x-usb2" While "ti,am437x-usb2" is being used in the device tree files I don't see "ti,omap5-usb2" being used anywhere. omap5-l4.dtsi uses "ti,omap-usb2" Should we get rid of "ti,omap5-usb2"? cheers, -roger > + - enum: > + - ti,omap-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