Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp227736pxb; Wed, 18 Nov 2020 22:33:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJwq7p4nDAGyUTjgkfQaF2nAEWxopQW9FP/e1pF2NUqvrom65mDavRtQdBhWrMfQFFqvPz+P X-Received: by 2002:a17:906:82d9:: with SMTP id a25mr26723891ejy.101.1605767581311; Wed, 18 Nov 2020 22:33:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605767581; cv=none; d=google.com; s=arc-20160816; b=dkr2A92B2uphe9KLt6rymeR+wlZRLk8OrSrOrIKypf4VFLlGLMY6Uzm+QdBw33I4lc x0gZPd9IuPSiA4nAOPwCR6cHdAQ4qsz3xbPWVSwAravg8c51gogXfwWIeRzUVAO+iB/n tLfblkCj4ezZ54npjpnoZ9WXlOGxsz+ZVMlErxZLdpheZhpUUOR4Xz/+RB22Uz4N0AFr dC8k/zN1VT/jMbF51rgqGQ0G43Mj3Tvz8GftQId46lVGaGHMC5rBkUoJ2HH6m71PAuaY wtzb3hDaU/7gewX80cLLP7dVd2g4vq0BCDafZfXJy9Mhbs3ZOte2hd2Jbys+Z6uMwZR0 Qj3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=K6m9G5qEsP5ws89k9yXHcB3buAKM7dOqbYo3uuRDZ7A=; b=oEcz62HK4gams30MvxfPLvkAZeh1MwDzWsedKIwY0F3HXbYwHrr+1MJU1MkcHFBGbh BnWykdWIedJgPmHxEvPlQf39AskJ1FY3b24j14z/Rjdwcp9xD5FzSij8y/+CxtfNruZC dwD+3AsHt3uijJlx+y3BKiKXpiPO7hsUT8xGQv0C24bwohjIUMdS/j6JA2MTsOn0FcIx D5rx5MWWab6P8x6x8t5/Hf8mD+rM8A65xQY54C4oCuNggeOhS6hrIhZX1ohLWqvBrXo6 zuffV8TtUWxKWrkSKe8A//3LI0zbiAk477oxAhikvzGNA0mw7W8t6VWtpdqH2W6oV4N9 iz2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=aEYl0IHI; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d14si17150635edj.545.2020.11.18.22.32.38; Wed, 18 Nov 2020 22:33:01 -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=@kernel.org header.s=default header.b=aEYl0IHI; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726249AbgKSGaS (ORCPT + 99 others); Thu, 19 Nov 2020 01:30:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:55316 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725873AbgKSGaS (ORCPT ); Thu, 19 Nov 2020 01:30:18 -0500 Received: from localhost (unknown [122.171.203.152]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1F9E2246A5; Thu, 19 Nov 2020 06:30:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605767417; bh=pbjxqJYxs2h8BKkAMHOF56IVNV1ESX5tvFquYGytkEQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aEYl0IHIOk31cTSJJ33KRpfnbntJx8l+QTGsS9jUfrpNznR4Iczlq3e5cNKxzS5tV IkfMntJXEeyQYfmRzuo05byZ5O4au3MNXgBiT6fqDh8voZF+vaBf/hrU4O+/Pp/IZk 2DDA04kWGoTrijPouW4YvNqf/9AYqRsx/conNW3o= Date: Thu, 19 Nov 2020 12:00:12 +0530 From: Vinod Koul To: =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , Rob Herring Cc: Kishon Vijay Abraham I , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Hauke Mehrtens , bcm-kernel-feedback-list@broadcom.com, =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= Subject: Re: [PATCH] dt-bindings: phy: bcm-ns-usb3-phy: convert to yaml Message-ID: <20201119063012.GF50232@vkoul-mobl> References: <20201116074650.16070-1-zajec5@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20201116074650.16070-1-zajec5@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16-11-20, 08:46, Rafał Miłecki wrote: > From: Rafał Miłecki > > 1. Change syntax from txt to yaml > 2. Drop "Driver for" from the title > 3. Drop "reg = <0x0>;" from example (noticed by dt_binding_check) > 4. Specify license You missed Ccing Rob > > Signed-off-by: Rafał Miłecki > --- > I think this should go through linux-phy tree. Kishon, Vinod, can you > take this patch? > > This patch generates a false positive checkpatch.pl warning [0]. > Please ignore: > WARNING: DT binding docs and includes should be a separate patch. See: Documentation/devicetree/bindings/submitting-patches.rst That is okay, it is a warning ;-) > > [0] https://lkml.org/lkml/2020/2/18/1084 > --- > .../bindings/phy/bcm-ns-usb3-phy.txt | 34 ---------- > .../bindings/phy/bcm-ns-usb3-phy.yaml | 62 +++++++++++++++++++ > 2 files changed, 62 insertions(+), 34 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/phy/bcm-ns-usb3-phy.txt > create mode 100644 Documentation/devicetree/bindings/phy/bcm-ns-usb3-phy.yaml > > diff --git a/Documentation/devicetree/bindings/phy/bcm-ns-usb3-phy.txt b/Documentation/devicetree/bindings/phy/bcm-ns-usb3-phy.txt > deleted file mode 100644 > index 32f057260351..000000000000 > --- a/Documentation/devicetree/bindings/phy/bcm-ns-usb3-phy.txt > +++ /dev/null > @@ -1,34 +0,0 @@ > -Driver for Broadcom Northstar USB 3.0 PHY > - > -Required properties: > - > -- compatible: one of: "brcm,ns-ax-usb3-phy", "brcm,ns-bx-usb3-phy". > -- reg: address of MDIO bus device > -- usb3-dmp-syscon: phandle to syscon with DMP (Device Management Plugin) > - registers > -- #phy-cells: must be 0 > - > -Initialization of USB 3.0 PHY depends on Northstar version. There are currently > -three known series: Ax, Bx and Cx. > -Known A0: BCM4707 rev 0 > -Known B0: BCM4707 rev 4, BCM53573 rev 2 > -Known B1: BCM4707 rev 6 > -Known C0: BCM47094 rev 0 > - > -Example: > - mdio: mdio@0 { > - reg = <0x0>; > - #size-cells = <1>; > - #address-cells = <0>; > - > - usb3-phy@10 { > - compatible = "brcm,ns-ax-usb3-phy"; > - reg = <0x10>; > - usb3-dmp-syscon = <&usb3_dmp>; > - #phy-cells = <0>; > - }; > - }; > - > - usb3_dmp: syscon@18105000 { > - reg = <0x18105000 0x1000>; > - }; > diff --git a/Documentation/devicetree/bindings/phy/bcm-ns-usb3-phy.yaml b/Documentation/devicetree/bindings/phy/bcm-ns-usb3-phy.yaml > new file mode 100644 > index 000000000000..7fd419db45d0 > --- /dev/null > +++ b/Documentation/devicetree/bindings/phy/bcm-ns-usb3-phy.yaml > @@ -0,0 +1,62 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/phy/bcm-ns-usb3-phy.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Broadcom Northstar USB 3.0 PHY > + > +description: | > + Initialization of USB 3.0 PHY depends on Northstar version. There are currently > + three known series: Ax, Bx and Cx. > + Known A0: BCM4707 rev 0 > + Known B0: BCM4707 rev 4, BCM53573 rev 2 > + Known B1: BCM4707 rev 6 > + Known C0: BCM47094 rev 0 > + > +maintainers: > + - Rafał Miłecki > + > +properties: > + compatible: > + enum: > + - brcm,ns-ax-usb3-phy > + - brcm,ns-bx-usb3-phy > + > + reg: > + description: address of MDIO bus device > + maxItems: 1 > + > + usb3-dmp-syscon: > + $ref: /schemas/types.yaml#/definitions/phandle > + description: > + Phandle to the DMP (Device Management Plugin) syscon > + > + "#phy-cells": > + const: 0 > + > +required: > + - compatible > + - reg > + - usb3-dmp-syscon > + - "#phy-cells" > + > +additionalProperties: false > + > +examples: > + - | > + mdio { > + #address-cells = <1>; > + #size-cells = <0>; > + > + usb3-phy@10 { > + compatible = "brcm,ns-ax-usb3-phy"; > + reg = <0x10>; > + usb3-dmp-syscon = <&usb3_dmp>; > + #phy-cells = <0>; > + }; > + }; > + > + usb3_dmp: syscon@18105000 { > + reg = <0x18105000 0x1000>; > + }; > -- > 2.27.0 -- ~Vinod