From patchwork Fri Nov 18 14:33:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 22356 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp230597wrr; Fri, 18 Nov 2022 06:37:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf6eNS08xqGKzpaJ6ZZgtMV9nGE0mbRXPTMEkAcfXzIXlNDvjNkIvTZ7f+eFmh7Ljgt3qp/C X-Received: by 2002:a17:906:7c44:b0:7b2:7096:6c2 with SMTP id g4-20020a1709067c4400b007b2709606c2mr6350839ejp.526.1668782258574; Fri, 18 Nov 2022 06:37:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668782258; cv=none; d=google.com; s=arc-20160816; b=tY6jlbf2P4hFzawp9i5ZMDt438hf1lOVF/DmRuKM+VQl+onVyaOmvtRjztt9OCu1S4 20t7djBh4iMb4yxCCsjoWkk2Qbopa67fCrc1GrdiIvZBqvK4Sr+8O/YGDXstd2woSnMG EbjfIn4ZIUtSMwK/hF3GmbwGDNaYnwblMr7WmkPkLbOdLIYe09Ap3+MmHCpjcouBCY0h jcHzUPev1XKQE1sgF/a4cp0hWeTW7JYQA32dcbtD3KSzYZgvV2SztUww8PVrD2Eky51Q yY3IW/RWonS6ktw7aghbzIIAoax9tn8VxYIlO4qwvGnvQi2I9yHYhAvcGyuM0m8rta/m D3xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=x+959Y5+XNaVCC9GiYukZyKg53qWkxIcg2rooGUoYxs=; b=U0Ip0zDLc+mk7ao5yR5RqZj2FntF9yCI6UD8X0g0jAwZeOE1pSoChUNDxz5SVllw6G 0dZmxtsyQNZxQY7K/KH+GIU6CfkvgtUefc6BvRJfDEthF36v/pByXjc3vwv41g997Byd h9QuKf6dDYYr7L6MnSMRmAgghr0KV5UnSCg1Ute8oaA8EYDSv6llx6FwGH9BjSAz0UHP CE7ylZXPfWEahSVNw7gqlTOx8Hfzr9VlSatyj3FBarYOnkLTvzRbVfXv1BBq+fmzB+eS P5YVRfF6q+FF/lf4HorLrNxabvMaBiYlZ3DVxc9vIac/TRYWJ+9HKUvPQtauGBUbqQHA 8+fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YSNhB9fk; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f7-20020a50ee87000000b00458ea275c22si3096673edr.325.2022.11.18.06.37.13; Fri, 18 Nov 2022 06:37:38 -0800 (PST) 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=@linaro.org header.s=google header.b=YSNhB9fk; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242431AbiKROf1 (ORCPT + 99 others); Fri, 18 Nov 2022 09:35:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242474AbiKROe2 (ORCPT ); Fri, 18 Nov 2022 09:34:28 -0500 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EADA58EB6A for ; Fri, 18 Nov 2022 06:33:44 -0800 (PST) Received: by mail-wr1-x431.google.com with SMTP id bs21so9518975wrb.4 for ; Fri, 18 Nov 2022 06:33:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=x+959Y5+XNaVCC9GiYukZyKg53qWkxIcg2rooGUoYxs=; b=YSNhB9fk95FVP8eq+MinfzITNvsGPTw7J/BfOAnCA6MRKMZfnjmjw9p0/GKJYPgLgu 9Uf3MLZ6MeHhpyDqphm8PgmMbOmI9M/f+OzOpVjM43Nv9m86WVCmGrOj3l0tGB+1v4t9 E55zg742HdjX3I8Xez3VNhN0tPDng4BOl+fLOTvBMcL27QGtZ2ILefS8PazePVfQle8N y5zWv0VxBqSYKmxV91YmcyduS6mo33+3c1BFDlnM3XuEmnbuSXpdI+vZHZN2DMvAYLH/ DOifHgLjWiXg9pIpOeFLg9R+b1hj6UykJ86b/75uNd67UTOdRulhaB7c80oFGVdcUp/y +K2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=x+959Y5+XNaVCC9GiYukZyKg53qWkxIcg2rooGUoYxs=; b=KedXcZhKw7Oe2X6RM2zF6bcd+qzPsxe9dsJl1hAMHxR5z7pR054LxSeIqQjncpHnF3 +9rf6vdd0Fe8LV259/ClfwcpgqXO/Bow74vepB5ayr1nYNHG5PtOUkf8/w1Bc9g7KeND xf+sE7WCBxpP6VHs9i6nQmpPGeIaBvBi6dKuSsGZJg64VYvCF/mnobMepwK7qCnOo2RO BXIM4tEnMMpbcQnMUafnr8iMDVK2CB470HpdqjBjpHJlaKKsIHK6yUGxILJA5EUbG1C9 DiXZbL4etMX9bKHWfrElh4ZDVkhsjk7dLVPpuz4ZkgsRD7WoeSxu4XS0w5Kp2KVnz/HM FLKg== X-Gm-Message-State: ANoB5pnoJt0wVwDraiMgZIMQcQur2n+hQgeZ5VXz8nquaz7WODUW/9l2 +1Pz7ZRCnHSlIKDgPTtRguYmJQ== X-Received: by 2002:a05:6000:884:b0:241:b92c:6d73 with SMTP id ca4-20020a056000088400b00241b92c6d73mr3938192wrb.242.1668782024045; Fri, 18 Nov 2022 06:33:44 -0800 (PST) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id j21-20020a05600c1c1500b003cfb7c02542sm5436726wms.11.2022.11.18.06.33.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Nov 2022 06:33:43 -0800 (PST) From: Neil Armstrong Date: Fri, 18 Nov 2022 15:33:35 +0100 Subject: [PATCH 09/12] dt-bindings: phy: convert meson-gxl-usb2-phy.txt to dt-schema MIME-Version: 1.0 Message-Id: <20221117-b4-amlogic-bindings-convert-v1-9-3f025599b968@linaro.org> References: <20221117-b4-amlogic-bindings-convert-v1-0-3f025599b968@linaro.org> In-Reply-To: <20221117-b4-amlogic-bindings-convert-v1-0-3f025599b968@linaro.org> To: Jakub Kicinski , Wim Van Sebroeck , Srinivas Kandagatla , Rob Herring , Andrew Lunn , Alessandro Zummo , Eric Dumazet , Bjorn Helgaas , Kevin Hilman , Ulf Hansson , Heiner Kallweit , Vinod Koul , Russell King , Thomas Gleixner , Kishon Vijay Abraham I , Guenter Roeck , Krzysztof Kozlowski , Martin Blumenstingl , Alexandre Belloni , Daniel Lezcano , Jerome Brunet , Paolo Abeni , Mauro Carvalho Chehab , "David S. Miller" Cc: linux-media@vger.kernel.org, netdev@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-mmc@vger.kernel.org, linux-rtc@vger.kernel.org, linux-phy@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, Neil Armstrong , devicetree@vger.kernel.org X-Mailer: b4 0.10.1 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749845025199128739?= X-GMAIL-MSGID: =?utf-8?q?1749845025199128739?= Convert the Amlogic Meson GXL USB2 PHY bindings to dt-schema. Signed-off-by: Neil Armstrong Reviewed-by: Krzysztof Kozlowski Reviewed-by: Martin Blumenstingl --- .../bindings/phy/amlogic,meson-gxl-usb2-phy.yaml | 56 ++++++++++++++++++++++ .../devicetree/bindings/phy/meson-gxl-usb2-phy.txt | 21 -------- 2 files changed, 56 insertions(+), 21 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/amlogic,meson-gxl-usb2-phy.yaml b/Documentation/devicetree/bindings/phy/amlogic,meson-gxl-usb2-phy.yaml new file mode 100644 index 000000000000..4dd287f1f400 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/amlogic,meson-gxl-usb2-phy.yaml @@ -0,0 +1,56 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/amlogic,meson-gxl-usb2-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Amlogic Meson GXL USB2 PHY + +maintainers: + - Neil Armstrong + +properties: + compatible: + const: amlogic,meson-gxl-usb2-phy + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: phy + + resets: + maxItems: 1 + + reset-names: + items: + - const: phy + + "#phy-cells": + const: 0 + + phy-supply: true + +required: + - compatible + - reg + - "#phy-cells" + +additionalProperties: false + +examples: + - | + phy@78000 { + compatible = "amlogic,meson-gxl-usb2-phy"; + reg = <0x78000 0x20>; + clocks = <&xtal>; + clock-names = "phy"; + resets = <&phy_reset>; + reset-names = "phy"; + #phy-cells = <0>; + phy-supply = <&usb2_supply>; + }; diff --git a/Documentation/devicetree/bindings/phy/meson-gxl-usb2-phy.txt b/Documentation/devicetree/bindings/phy/meson-gxl-usb2-phy.txt deleted file mode 100644 index b84a02ebffdf..000000000000 --- a/Documentation/devicetree/bindings/phy/meson-gxl-usb2-phy.txt +++ /dev/null @@ -1,21 +0,0 @@ -* Amlogic Meson GXL and GXM USB2 PHY binding - -Required properties: -- compatible: Should be "amlogic,meson-gxl-usb2-phy" -- reg: The base address and length of the registers -- #phys-cells: must be 0 (see phy-bindings.txt in this directory) - -Optional properties: -- clocks: a phandle to the clock of this PHY -- clock-names: must be "phy" -- resets: a phandle to the reset line of this PHY -- reset-names: must be "phy" -- phy-supply: see phy-bindings.txt in this directory - - -Example: - usb2_phy0: phy@78000 { - compatible = "amlogic,meson-gxl-usb2-phy"; - #phy-cells = <0>; - reg = <0x0 0x78000 0x0 0x20>; - };