Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3944267iog; Tue, 28 Jun 2022 06:06:36 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sxAQpnl4tdrU08wbf5lPmofzaRNDFW50q2yRNEO7rZ34xhSrkyenScd8/eZCSkzN0ZdLSQ X-Received: by 2002:a17:90a:9dc8:b0:1ec:78ec:8d47 with SMTP id x8-20020a17090a9dc800b001ec78ec8d47mr27734048pjv.219.1656421596324; Tue, 28 Jun 2022 06:06:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656421596; cv=none; d=google.com; s=arc-20160816; b=GMGt39Nt6Lwi76lvPKeHwMpmkzbGtOqQI844gX27j6JXeTKuCf6WXhES4xhDwaFlTM 0r6Dq491kUdwihjXVqunwa4ZF9I/Q8BDljH73AsXjS0hJPRT89CIHpuyOYl9racu7reh JZ2/5LsxaOnzM09Rudp1RQNg3XzMVIwY5BHR+rU23Csu+dHOeafSJfepVcouo2luYedH Oupy+GtYmM7PLGrWxnJ/fXuK+ozktu4cWhcLuUQY/LblomB01veQtiqe0notSPqO5GtN FJ1WX9ZNozdJ3QuuzUlJEz7tAiD1f1S8pctGS1QOqNpohcFAcZfduclkzaxEJuR5LfIH bG3A== 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:cc:to:from :dkim-signature; bh=qAna91f+tExWr/xWBecqjF79wZKKeqItDZrQk9dt538=; b=A+LlM99h3Bbq3fZBHqnGn1qALyFjF487ln7JKOUEPQiF6Aa2plNU9PwSbxZzo4r0FA iRWiLtx+/U3meoEZ0sygUqpe/qePVBhezpaRwYFRpIgxBaICO6IJt5PGQYFd+34CSCqF sBTH5JblHNNUOG6Pc8lyQp1/pHKl89pwv/rSy56mwh9D/UZUB7dqQcDkP2dZJRjOVJWA yCTFvK74gm+DQnHBo7yDCV63g9du1Dtb/aQquplebrpzh7i84x3jz1DMMK+v4FXc+9Aj lOURIbAMVIY88dsOp2bfQ/oCDJ/lQs4nYMs25AfJIUlgL4IGbKxZgoghRNyslXT5J3vS HAvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20210112 header.b=Sblb9A+t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m10-20020a170902f64a00b0016793c0e3dcsi18355147plg.545.2022.06.28.06.06.22; Tue, 28 Jun 2022 06:06:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@googlemail.com header.s=20210112 header.b=Sblb9A+t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345748AbiF1Mp3 (ORCPT + 99 others); Tue, 28 Jun 2022 08:45:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233434AbiF1MpU (ORCPT ); Tue, 28 Jun 2022 08:45:20 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14B45193ED; Tue, 28 Jun 2022 05:45:19 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id fd6so17390766edb.5; Tue, 28 Jun 2022 05:45:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qAna91f+tExWr/xWBecqjF79wZKKeqItDZrQk9dt538=; b=Sblb9A+txozzU3Urkkt5DVK0X8vW5h35NCjvQGnC8IdzJP8IskPVuBwJkTMIpo6mBf 9Y5qFSvLioo2V1KgLZ6VMzanYI2xnoroG+Klqq1GbrwkDhhnpQALto2hVW/qjzKrb6Hb wyKQPCkPVP3ICPyfXH9YhIbtUuRqWmS7tW+dWPxpdqkDNvhiSeM8PJUWBJxzNrXzt95N ehftd/9GtMoEqs0hjB7Y7D3su6I21X1USbUHtX5sYjcwz4EyRKyB2fPLw+JSmp24hyI4 Cv0U+L5aGHpx6MQLzrV/nddZQ4nzOgZ57ZK4C4YOhQ2cNrhTYfzw/UUP2FBqQxZHWIJM XgbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qAna91f+tExWr/xWBecqjF79wZKKeqItDZrQk9dt538=; b=QWqpkVIwfQ/hpT8GC6VVnQ8D+7xqvVXOt1pG7s/xbYcWhg1k1A/e3j7hIBC+qjiKgD rsxOSzY/n8R/L7O9lj/Btk40XbB5M101pIRrOqxAgQZBkyBZYPeKHPd43YetXlTlfP33 JUAHmIe/bzd5NuEB3KScbZPpjY+FsQSlIjpp+IVYOoeL21zbIeXK4vyZyW2FRsBkDGS4 nfBX6kK//bGQ7RpmX8RGsF4J29X7ZATqUAwH7JD+2mqT6KzOsYYm9yyKvdwB4THh/to5 0464cG+BAy1tIpWwE3WiVXweMzZTqSCZsyOsUmg8s7JrkrDtZzz5zDURzPyDcV5RBJIT 80mA== X-Gm-Message-State: AJIora8CiLUJVlM2aXUM/icsp/QAWXZKiFePcIEXnkVLkQRBmn8abGad G8tSfUjFxuWSUqJ07BhyzsA= X-Received: by 2002:a05:6402:5384:b0:431:6d84:b451 with SMTP id ew4-20020a056402538400b004316d84b451mr22821873edb.46.1656420317609; Tue, 28 Jun 2022 05:45:17 -0700 (PDT) Received: from localhost.localdomain (dynamic-095-114-061-215.95.114.pool.telefonica.de. [95.114.61.215]) by smtp.googlemail.com with ESMTPSA id f13-20020a170906824d00b00726e108b566sm622871ejx.173.2022.06.28.05.45.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jun 2022 05:45:17 -0700 (PDT) From: Martin Blumenstingl To: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, p.zabel@pengutronix.de Cc: linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, vkoul@kernel.org, kishon@ti.com, rtanwar@maxlinear.com, Martin Blumenstingl Subject: [PATCH v1 1/9] dt-bindings: phy: lantiq: xway-rcu-usb2-phy: Convert to YAML Date: Tue, 28 Jun 2022 14:44:33 +0200 Message-Id: <20220628124441.2385023-2-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220628124441.2385023-1-martin.blumenstingl@googlemail.com> References: <20220628124441.2385023-1-martin.blumenstingl@googlemail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the Lantiq XWAY RCU USB2 PHY bindings to YAML. Signed-off-by: Martin Blumenstingl --- .../phy/lantiq,xway-rcu-usb2-phy.yaml | 68 +++++++++++++++++++ .../bindings/phy/phy-lantiq-rcu-usb2.txt | 40 ----------- 2 files changed, 68 insertions(+), 40 deletions(-) create mode 100644 Documentation/devicetree/bindings/phy/lantiq,xway-rcu-usb2-phy.yaml delete mode 100644 Documentation/devicetree/bindings/phy/phy-lantiq-rcu-usb2.txt diff --git a/Documentation/devicetree/bindings/phy/lantiq,xway-rcu-usb2-phy.yaml b/Documentation/devicetree/bindings/phy/lantiq,xway-rcu-usb2-phy.yaml new file mode 100644 index 000000000000..702a8e8c64b5 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/lantiq,xway-rcu-usb2-phy.yaml @@ -0,0 +1,68 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/lantiq,xway-rcu-usb2-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Lantiq XWAY SoC RCU USB 1.1/2.0 PHY binding + +maintainers: + - Martin Blumenstingl + +properties: + "#phy-cells": + const: 0 + + compatible: + enum: + - lantiq,ase-usb2-phy + - lantiq,danube-usb2-phy + - lantiq,xrx100-usb2-phy + - lantiq,xrx200-usb2-phy + - lantiq,xrx300-usb2-phy + + reg: + minItems: 2 + + clocks: + minItems: 1 + + clock-names: + items: + - const: phy + + resets: + minItems: 1 + maxItems: 2 + + reset-names: + items: + - const: phy + - const: ctrl + +required: + - "#phy-cells" + - compatible + - reg + - clocks + - clock-names + - resets + - reset-names + +additionalProperties: false + +examples: + - | + usb_phy0: usb2-phy@18 { + compatible = "lantiq,xrx200-usb2-phy"; + reg = <0x18 4>, <0x38 4>; + + clocks = <&pmu_USB0_PHY>; + clock-names = "phy"; + + resets = <&reset1 4 4>, <&reset0 4 4>; + reset-names = "phy", "ctrl"; + + #phy-cells = <0>; + }; +... diff --git a/Documentation/devicetree/bindings/phy/phy-lantiq-rcu-usb2.txt b/Documentation/devicetree/bindings/phy/phy-lantiq-rcu-usb2.txt deleted file mode 100644 index 643948b6b576..000000000000 --- a/Documentation/devicetree/bindings/phy/phy-lantiq-rcu-usb2.txt +++ /dev/null @@ -1,40 +0,0 @@ -Lantiq XWAY SoC RCU USB 1.1/2.0 PHY binding -=========================================== - -This binding describes the USB PHY hardware provided by the RCU module on the -Lantiq XWAY SoCs. - -This node has to be a sub node of the Lantiq RCU block. - -------------------------------------------------------------------------------- -Required properties (controller (parent) node): -- compatible : Should be one of - "lantiq,ase-usb2-phy" - "lantiq,danube-usb2-phy" - "lantiq,xrx100-usb2-phy" - "lantiq,xrx200-usb2-phy" - "lantiq,xrx300-usb2-phy" -- reg : Defines the following sets of registers in the parent - syscon device - - Offset of the USB PHY configuration register - - Offset of the USB Analog configuration - register (only for xrx200 and xrx200) -- clocks : References to the (PMU) "phy" clk gate. -- clock-names : Must be "phy" -- resets : References to the RCU USB configuration reset bits. -- reset-names : Must be one of the following: - "phy" (optional) - "ctrl" (shared) - -------------------------------------------------------------------------------- -Example for the USB PHYs on an xRX200 SoC: - usb_phy0: usb2-phy@18 { - compatible = "lantiq,xrx200-usb2-phy"; - reg = <0x18 4>, <0x38 4>; - - clocks = <&pmu PMU_GATE_USB0_PHY>; - clock-names = "phy"; - resets = <&reset1 4 4>, <&reset0 4 4>; - reset-names = "phy", "ctrl"; - #phy-cells = <0>; - }; -- 2.36.1