From patchwork Thu Apr 27 19:07:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislav Jakubek X-Patchwork-Id: 88368 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp478792vqo; Thu, 27 Apr 2023 12:14:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ72cGNVDar4vgqg/CtBUt2Dgj0gd+aIeiMS3pnYJ3deXnXFCEDh6RbEIPRSKlnkHfIqNSxD X-Received: by 2002:a17:90a:9c1:b0:249:89a2:5800 with SMTP id 59-20020a17090a09c100b0024989a25800mr2822240pjo.9.1682622853708; Thu, 27 Apr 2023 12:14:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682622853; cv=none; d=google.com; s=arc-20160816; b=XzAv7TTyc8cmf8R5F/OQU7GoPw9CG4otK1ABMKVGIuUPYcsQj1HgowWFXFdTBpQzG6 GfAVJygUx0qCKAbW8talk6PkNtvruQHez9pWUD+ySzmX9E2zLhJ5gJJhB0rktl877pDw kyDGYwQljYRWliUIyklfICEDjU3KgNpgYR/qx76pAX9WeK+CEyvnNK5PTQbNSyhQUFbt OT2GiAFRAIM2S2Baaxkj3kUWUe6rfO3KJaZ5JHLsC9eVO+ANzH4dFkCMl6PUJuh1ldqb B+2yrzzLBkXieVgFbWD6GVopJLH4RNa6dn06bpDN8Lh65feDfu2nIa8gRIWSBgyHxJyD U9Sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=1DD/i3pbFgHoXQYJbjBQbgWQpfiH0mY/V+lPtAi5i5E=; b=D8GY0UnmenX+4NCDSzIShY5/87GFh1MRpc+RHBbtKw3vhntcInRmZHen6D0GAIIHyg 8lGVEQWodNa9bEUxgE13quDk9XPfXcgxfbzjXehosu82G2j9Q1bLeIv+FK+Eer49vFRK fvrUI4zU/ZEOs1MNnSDwYARJt1GWGUNZT5EhXd7qb4X5SNU2l8irjCJ+vrbvdJCQAUap Rd6QEj+ukXyDlEEM6GClBy+MlCTz9Hh2IVm3p0aau3T9JrP9bCo0N+3W9x6KugVFn8gY MWFJRLhSGrXKqQ2v3SZuY+6GdlpTgEXkSKcpOgDumYVlTN1dblmob886jxJUHhb0T8HG Vr1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=KYfywVJp; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fs14-20020a17090af28e00b0024780bdd76dsi275526pjb.130.2023.04.27.12.13.58; Thu, 27 Apr 2023 12:14:13 -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=@gmail.com header.s=20221208 header.b=KYfywVJp; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244655AbjD0THl (ORCPT + 99 others); Thu, 27 Apr 2023 15:07:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244658AbjD0THi (ORCPT ); Thu, 27 Apr 2023 15:07:38 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 274A24488; Thu, 27 Apr 2023 12:07:29 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-3f315735514so35380385e9.1; Thu, 27 Apr 2023 12:07:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682622447; x=1685214447; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=1DD/i3pbFgHoXQYJbjBQbgWQpfiH0mY/V+lPtAi5i5E=; b=KYfywVJpr98BpGpUIMqxiOWLoVzT8wTs6KkJbyntKqr1amFwN4b1tANgZotb31/3Tr dV1pjRe8tKdaAl6HOWDQ3K+bZo7pMh76x84iLn4BaG7KwdzQFAfOMomj7I0V9G3gA76H 8CJYQjapq5+VBAmdu916oOuPUT91BUQAlsLKLVaJnt/vPlm62OaJ+3v/MxmMh07DDnml 3SIAiVH5I1m5oYEc8JJMxPZjtE2jLpHMZi1Px2lgsUXW+iv2G7F4qytfXTfdJTXSgEYa YilTrc3ZX4Hv+mzrIdJduqriNZDI2f554NjTYB5tqQNCSXrpx2+uM23KE0KSAt/CEW8L qyFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682622447; x=1685214447; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=1DD/i3pbFgHoXQYJbjBQbgWQpfiH0mY/V+lPtAi5i5E=; b=QBHh4DNnA6XrfTEupOLlMwuaFTOYHPIATyJj/zOtO0g0W7PyVybZt7KOAsuUxB60Hz yfu8ULNIUAp9Ulyn/icQE5GSa9JsCQL0QILoUG8UgnINr+G5pDl/fqTZZAQJbsfIOfJ1 G9Dq/8TiMz7+fnT+8BoauLZyoDVxBu+1+M6S2RNZU5Wc/bY3zv82mPARMnzn1EvkQAkM q3BDEipdVkIBCBASVQcn88dC+eP0QBeACYds/oSPwvi2vw89kY6swt6rxAHaeqQgmkWw F+9zX+HgyuTDFK+tmDRxEjBRv1+v7rExxflVM1oM0zvTiO3+a6DE0i1erVohsMYVVAlp zVCA== X-Gm-Message-State: AC+VfDxxm84rhVIBGcV7VzLR0UoALL97AfU2sNGcXpE+yf9mrffr8uuC gdWreM4BMK1s8jEPMxrnxMzcdDQn0TqCUg== X-Received: by 2002:adf:f5c1:0:b0:2f5:dad1:41a4 with SMTP id k1-20020adff5c1000000b002f5dad141a4mr2302395wrp.6.1682622447461; Thu, 27 Apr 2023 12:07:27 -0700 (PDT) Received: from standask-GA-A55M-S2HP ([188.123.113.247]) by smtp.gmail.com with ESMTPSA id d14-20020a5d538e000000b002efac42ff35sm19217573wrv.37.2023.04.27.12.07.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Apr 2023 12:07:27 -0700 (PDT) Date: Thu, 27 Apr 2023 21:07:25 +0200 From: Stanislav Jakubek To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Florian Fainelli , Ray Jui , Scott Branden Cc: bcm-kernel-feedback-list@broadcom.com, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] dt-bindings: phy: brcm,kona-usb2-phy: convert to YAML Message-ID: <20230427190725.GA7730@standask-GA-A55M-S2HP> MIME-Version: 1.0 Content-Disposition: inline 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764357941628961839?= X-GMAIL-MSGID: =?utf-8?q?1764357941628961839?= Convert Broadcom Kona family USB 2.0 PHY bindings to DT schema. Signed-off-by: Stanislav Jakubek Reviewed-by: Krzysztof Kozlowski --- .../bindings/phy/brcm,kona-usb2-phy.txt | 15 -------- .../bindings/phy/brcm,kona-usb2-phy.yaml | 36 +++++++++++++++++++ 2 files changed, 36 insertions(+), 15 deletions(-) delete mode 100644 Documentation/devicetree/bindings/phy/brcm,kona-usb2-phy.txt create mode 100644 Documentation/devicetree/bindings/phy/brcm,kona-usb2-phy.yaml diff --git a/Documentation/devicetree/bindings/phy/brcm,kona-usb2-phy.txt b/Documentation/devicetree/bindings/phy/brcm,kona-usb2-phy.txt deleted file mode 100644 index 3dc8b3d2ffbb..000000000000 --- a/Documentation/devicetree/bindings/phy/brcm,kona-usb2-phy.txt +++ /dev/null @@ -1,15 +0,0 @@ -BROADCOM KONA USB2 PHY - -Required properties: - - compatible: brcm,kona-usb2-phy - - reg: offset and length of the PHY registers - - #phy-cells: must be 0 -Refer to phy/phy-bindings.txt for the generic PHY binding properties - -Example: - - usbphy: usb-phy@3f130000 { - compatible = "brcm,kona-usb2-phy"; - reg = <0x3f130000 0x28>; - #phy-cells = <0>; - }; diff --git a/Documentation/devicetree/bindings/phy/brcm,kona-usb2-phy.yaml b/Documentation/devicetree/bindings/phy/brcm,kona-usb2-phy.yaml new file mode 100644 index 000000000000..d7faeb81f7a7 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/brcm,kona-usb2-phy.yaml @@ -0,0 +1,36 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/brcm,kona-usb2-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom Kona family USB 2.0 PHY + +maintainers: + - Florian Fainelli + +properties: + compatible: + const: brcm,kona-usb2-phy + + reg: + maxItems: 1 + + '#phy-cells': + const: 0 + +required: + - compatible + - reg + - '#phy-cells' + +additionalProperties: false + +examples: + - | + usb-phy@3f130000 { + compatible = "brcm,kona-usb2-phy"; + reg = <0x3f130000 0x28>; + #phy-cells = <0>; + }; +...