Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp435399pxk; Fri, 11 Sep 2020 10:48:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNVmqSKsDm9uG9aHMJNwi184CDpG8x+L6B2AsJEkj31iY1EmMk7mltuZQ0Y7TrgWtlIDoE X-Received: by 2002:aa7:ca17:: with SMTP id y23mr3556911eds.245.1599846500958; Fri, 11 Sep 2020 10:48:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599846500; cv=none; d=google.com; s=arc-20160816; b=O5MafdvBY7XJJh6az7vLtz1RvmOVX7Qah42+d5iEOdA6Ra6lQbi//Nf/WkbAIMxo9U TWj7TzZ+idE+o7RLXOl4v6VjhBa/pxI0G0KQML3mSQpoeEWaSLD+G86ZFiG66BS8gmm9 auawVpt9wIsie0zvDXtsoN5OI++/SoerMXH3uGt4IHAMkxs8I+M3uynDkDAtAiVIqVWG zzAUOeC6Q14qctfVHukNXmuRcVjMlpOYYi68ENkJYJPC4dUC791ZkikWVcgRTwQgpeGc 0MIFviN89iQ4oc8YPFOoce8zXpfa0VYnIphfnIWLBgaF/wh5++UR80SnzcryZHCzv4A0 7gmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=PYxpaoSkFoRYtksmS+l0LQ7q3c/sbaEHIjK8V79tskk=; b=ARDVlz9kJYNPjoCw0/WpMrl2GAPUzs2mO1kfuIDcfRp79op8iVUjXNZWCurfwhzny/ BjvkCec7zPt8YZZ24oXeAsCZjMLGKxUQIAf4nE/UqKdK7C4IxrPwK7vkm1zYW83w8DZ3 zhH3wJlCMDANGiHU4FQhIPXkcTo95WnDfeEulQ8WSKLlGxirJPcI7jfryH1EQrgiZoP5 COTWKwMgdMQfPwuTAC5hImztE7Hqwi0Y+50ACCzRkDZcRMXFv1w+z9GRjEael69lj515 8t2yzrJP3Rrl15g1HDClJ6Sflmis9oHPDh0tmLif6rRocea65Q8krHQhXihz0Cq5OOzO HJZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kernel.org header.s=default header.b="UDPMrzz/"; 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 nu23si1669153ejb.577.2020.09.11.10.47.57; Fri, 11 Sep 2020 10:48:20 -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=fail header.i=@kernel.org header.s=default header.b="UDPMrzz/"; 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 S1726020AbgIKRqI (ORCPT + 99 others); Fri, 11 Sep 2020 13:46:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:59292 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725844AbgIKMRK (ORCPT ); Fri, 11 Sep 2020 08:17:10 -0400 Received: from mail.kernel.org (ip5f5ad5a5.dynamic.kabel-deutschland.de [95.90.213.165]) (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 460992220D; Fri, 11 Sep 2020 12:16:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599826608; bh=y+HaSJ5DamzNsnw7uVNpEE+xv+fRAimb14ck/lGaCO4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UDPMrzz/FbbPgDocU8ZF8ACiaUxv0/5N8+a8u4By7bq6uD6IG2CE44DkRnBwHa1bh 0YNmPFXV1r+8WwkT7mKqsArmPaSGJgP6kJtA6A+It9CQ7UuDbuBJ+V+HA8LuPPZvn7 K0CIwOgJzjUc6e025xQDHnb7eOWw4jncd8tQ0e4g= Received: from mchehab by mail.kernel.org with local (Exim 4.94) (envelope-from ) id 1kGhyw-0006WN-2R; Fri, 11 Sep 2020 14:16:46 +0200 From: Mauro Carvalho Chehab Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Mauro Carvalho Chehab , "John Stultz" , "Manivannan Sadhasivam" , Kishon Vijay Abraham I , Rob Herring , Vinod Koul , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 RESEND 7/8] dt-bindings: phy: convert phy-kirin970-usb3.txt to yaml Date: Fri, 11 Sep 2020 14:16:43 +0200 Message-Id: <7964c39084de5d2fd3dca30bf5abb5973eeec42b.1599826421.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the new YAML for this physical layer. Signed-off-by: Mauro Carvalho Chehab --- .../bindings/phy/hisilicon,hi3670-usb3.yaml | 72 +++++++++++++++++++ .../bindings/phy/phy-hi3670-usb3.txt | 25 ------- 2 files changed, 72 insertions(+), 25 deletions(-) create mode 100644 Documentation/devicetree/bindings/phy/hisilicon,hi3670-usb3.yaml delete mode 100644 Documentation/devicetree/bindings/phy/phy-hi3670-usb3.txt diff --git a/Documentation/devicetree/bindings/phy/hisilicon,hi3670-usb3.yaml b/Documentation/devicetree/bindings/phy/hisilicon,hi3670-usb3.yaml new file mode 100644 index 000000000000..125a5d6546ae --- /dev/null +++ b/Documentation/devicetree/bindings/phy/hisilicon,hi3670-usb3.yaml @@ -0,0 +1,72 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/hisilicon,hi3670-usb3.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Hisilicon Kirin970 USB PHY + +maintainers: + - Mauro Carvalho Chehab +description: |+ + Bindings for USB3 PHY on HiSilicon Kirin 970. + +properties: + compatible: + const: hisilicon,hi3670-usb-phy + + "#phy-cells": + const: 0 + + hisilicon,pericrg-syscon: + $ref: '/schemas/types.yaml#/definitions/phandle' + description: phandle of syscon used to control iso refclk. + + hisilicon,pctrl-syscon: + $ref: '/schemas/types.yaml#/definitions/phandle' + description: phandle of syscon used to control usb tcxo. + + hisilicon,sctrl-syscon: + $ref: '/schemas/types.yaml#/definitions/phandle' + description: phandle of syscon used to control phy deep sleep. + + hisilicon,eye-diagram-param: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Eye diagram for phy. + + hisilicon,tx-vboost-lvl: + $ref: /schemas/types.yaml#/definitions/uint32 + description: TX level vboost for phy. + +required: + - compatible + - hisilicon,pericrg-syscon + - hisilicon,pctrl-syscon + - hisilicon,sctrl-syscon + - hisilicon,eye-diagram-param + - hisilicon,tx-vboost-lvl + - "#phy-cells" + +additionalProperties: false + +examples: + - | + bus { + #address-cells = <2>; + #size-cells = <2>; + + usb3_otg_bc: usb3_otg_bc@ff200000 { + compatible = "syscon", "simple-mfd"; + reg = <0x0 0xff200000 0x0 0x1000>; + + usb_phy { + compatible = "hisilicon,hi3670-usb-phy"; + #phy-cells = <0>; + hisilicon,pericrg-syscon = <&crg_ctrl>; + hisilicon,pctrl-syscon = <&pctrl>; + hisilicon,sctrl-syscon = <&sctrl>; + hisilicon,eye-diagram-param = <0xfdfee4>; + hisilicon,tx-vboost-lvl = <0x5>; + }; + }; + }; diff --git a/Documentation/devicetree/bindings/phy/phy-hi3670-usb3.txt b/Documentation/devicetree/bindings/phy/phy-hi3670-usb3.txt deleted file mode 100644 index 2fb27cb8beaf..000000000000 --- a/Documentation/devicetree/bindings/phy/phy-hi3670-usb3.txt +++ /dev/null @@ -1,25 +0,0 @@ -Hisilicon Kirin970 usb PHY ------------------------ - -Required properties: -- compatible: should be "hisilicon,hi3670-usb-phy" -- #phy-cells: must be 0 -- hisilicon,pericrg-syscon: phandle of syscon used to control phy. -- hisilicon,pctrl-syscon: phandle of syscon used to control phy. -- hisilicon,sctrl-syscon: phandle of syscon used to control phy. -- hisilicon,usb31-misc-syscon: phandle of syscon used to control phy. -- eye-diagram-param: parameter set for phy -- usb3-phy-tx-vboost-lvl: parameter set for phy -Refer to phy/phy-bindings.txt for the generic PHY binding properties - -Example: - usb_phy: usbphy { - compatible = "hisilicon,hi3670-usb-phy"; - #phy-cells = <0>; - hisilicon,pericrg-syscon = <&crg_ctrl>; - hisilicon,pctrl-syscon = <&pctrl>; - hisilicon,sctrl-syscon = <&sctrl>; - hisilicon,usb31-misc-syscon = <&usb31_misc>; - eye-diagram-param = <0xFDFEE4>; - usb3-phy-tx-vboost-lvl = <0x5>; - }; -- 2.26.2