From patchwork Sun Oct 1 13:05:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Duje_Mihanovi=C4=87?= X-Patchwork-Id: 147091 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2a8e:b0:403:3b70:6f57 with SMTP id in14csp862106vqb; Sun, 1 Oct 2023 06:06:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEVGTebmMIHbEwdF1H1yn67LeYAHOGTUuZLrOUvAbwEiYbVJ3nZ8BlYHnXK+FLXpYFc9YZK X-Received: by 2002:a05:6808:645:b0:3ab:929e:c5e1 with SMTP id z5-20020a056808064500b003ab929ec5e1mr9711486oih.39.1696165598755; Sun, 01 Oct 2023 06:06:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696165598; cv=none; d=google.com; s=arc-20160816; b=v6MMMDhJWY64qpU04BqjQ/Cgo7pCaioihcor09cRveekUOIFJ8hlWe/Lx7rF9xeh3N ABZOkV451QvXkDbWy8v9leeOYf4BeW2QXOBulGq9WleaN3bWFKLIchcZxTvPnHa9t3mz fySY/kddrId/UWZQFjxsSWHytiB6XrJhoHPOBqUfuk9uuG05vB5m5up74Sw1vfijj9hD +vFh6EqAAAA2UrZrc9RP23ANRfyiDCv2T16A4cqNHCHIBMhQsgCPmNCC8bVoMPquILqp 6IblhwZMBJqCZLVXW/mIRQdnrdFQdlmh+g0bCV3smZXC3M3qmDvkKPjm/CmZNVXy7PBe YtzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:message-id:content-transfer-encoding :mime-version:subject:date:from; bh=6xICoPeitCsEm9xNYGAYCFMjWYbJEKyG+EDoK03+MjA=; fh=R4glWTU8h5DlXDp/u/kH8AsuEsNi/FYWsuKJ4MUpYsQ=; b=s3CG6q3ztLuKrU78H1/wcp32KUluo3Funm/lXXcL8SDQNQZnHXfNxqPd0Ab6n83wTo MVsWeUVakPBCtn9cECWRVK/gTwo4blmmJTWBrR9FJ4v02UjZiKIhJyTK7aW7VCGr8T6Y RZ431GsD2b7E0Cbk1znhvNQi6GSMbGml1Qxhv8M0w37lNencG9fW9IFvc2sRSZfkza6O j/mIq3a79SpA/CveaQFv5ZaAbGr+7K07ISeHDXcmNr3IsH2lW65JBDu97bKVNv4sxEcC a6CNBp/xokwiFMZjUSYx91UH8ECS9XDLnf2gIpcn1NLtbn/1/ygg7OvgfqD/g+Vq5x2q U7wA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id ng9-20020a17090b1a8900b002776794a75csi6105502pjb.171.2023.10.01.06.06.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Oct 2023 06:06:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id EAF6D8023888; Sun, 1 Oct 2023 06:06:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234984AbjJANGQ (ORCPT + 18 others); Sun, 1 Oct 2023 09:06:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229716AbjJANGP (ORCPT ); Sun, 1 Oct 2023 09:06:15 -0400 Received: from mx.skole.hr (mx1.hosting.skole.hr [161.53.165.185]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72C19AC; Sun, 1 Oct 2023 06:06:10 -0700 (PDT) Received: from mx1.hosting.skole.hr (localhost.localdomain [127.0.0.1]) by mx.skole.hr (mx.skole.hr) with ESMTP id 1B139836AB; Sun, 1 Oct 2023 15:06:08 +0200 (CEST) From: =?utf-8?q?Duje_Mihanovi=C4=87?= Date: Sun, 01 Oct 2023 15:05:43 +0200 Subject: [PATCH] dt-bindings: phy: Convert PXA1928 USB/HSIC PHY to DT schema MIME-Version: 1.0 Message-Id: <20231001-pxa1928-usb-yaml-v1-1-9309a8c0c03f@skole.hr> X-B4-Tracking: v=1; b=H4sIAKZuGWUC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDI2NDAwND3YKKRENLIwvd0uIk3crE3BxdCwNLUzMTAwsjIxNDJaC2gqLUtMw KsJHRsbW1AK6be61iAAAA To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: devicetree@vger.kernel.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?q?Duje_Mihanovi=C4=87?= X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=3570; i=duje.mihanovic@skole.hr; h=from:subject:message-id; bh=I+pbp2+i8AspnSOzhEB7DM4scts9Z1G4HFcpQJwppxo=; b=owEBbQKS/ZANAwAIAZoRnrBCLZbhAcsmYgBlGW66YEEOs7V4Nt7C6695WePETUl6I4sGxSPXM TO4kVoEI3yJAjMEAAEIAB0WIQRT351NnD/hEPs2LXiaEZ6wQi2W4QUCZRluugAKCRCaEZ6wQi2W 4fqPD/9CPGtH4kaj0opR4bH3hGO8NuQZ8lAdbJ5MGteS7xF63/cx2bfpGHEWvZOKTOAU16ktE25 fRuxELhRXSbKiilPyVJVZtgxXMcWVSVNQSbZuO7CTgmoCLRzTEC+HwcZPKPrRb2fNn2/fmGjfoB iA5c1wM8VOFXLoCRQ7HaqZmXIYiMydKuB2a0fUXWhlHCs5jRQ3BqzGFST7QNvza04e5IlSAxjGd MfOnaSmtVO2Rbdo7QoysK7VPCeYs9XPEO2/iKHjg8fndpL7Npwnxx7KXrAVpOLRo/tJ+ToMUitG M1tmJ9TJJ2M536h0JFIRah/77CUy+XXVqHAOZ4dMtKycQBGHKAOKeB0X6EXdwEd8eVVpr1lowO6 Sg2Ad7nzPqBGt5qB4wUfSmyhU0yKk+KxbIBeXH/Ynv1jCMFmOmO7GBTS08Ck0ypHfP1cQkdfQQW +gNG1YySskfQlvhc5XugyZAWooe0paQed6V7eW4/EIbPtkQ3HgR1zfYwbiBm5Q/ghl/wmdmBg2N GUC9poYcjfH84jqaeI14D3V4qXtBmlPhcoNPWMpMz4FkytVihpLry0TJcneDAMUNhO3Jg1SPxGK u4eczvMIoB5qck1fUzEaMIih1ZvgsHPHOfeF+6sNsIqA+iUiQku9sTRae4lZesvcSWn7Iy6pux9 DcPB0K/qohQWpJw== X-Developer-Key: i=duje.mihanovic@skole.hr; a=openpgp; fpr=53DF9D4D9C3FE110FB362D789A119EB0422D96E1 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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 pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Sun, 01 Oct 2023 06:06:36 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778558538544345478 X-GMAIL-MSGID: 1778558538544345478 Convert the binding for the Marvell PXA1928 USB and HSIC PHYs from TXT to DT schema. Signed-off-by: Duje Mihanović --- .../bindings/phy/marvell,pxa1928-hsic-phy.yaml | 37 +++++++++++++++++ .../bindings/phy/marvell,pxa1928-usb-phy.yaml | 46 ++++++++++++++++++++++ .../devicetree/bindings/phy/pxa1928-usb-phy.txt | 18 --------- 3 files changed, 83 insertions(+), 18 deletions(-) --- base-commit: 6465e260f48790807eef06b583b38ca9789b6072 change-id: 20231001-pxa1928-usb-yaml-809564082241 Best regards, diff --git a/Documentation/devicetree/bindings/phy/marvell,pxa1928-hsic-phy.yaml b/Documentation/devicetree/bindings/phy/marvell,pxa1928-hsic-phy.yaml new file mode 100644 index 000000000000..a477afd11329 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/marvell,pxa1928-hsic-phy.yaml @@ -0,0 +1,37 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/marvell,pxa1928-hsic-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Marvell PXA1928 HSIC PHY + +maintainers: + - devicetree@vger.kernel.org + +properties: + $nodename: + pattern: '^phy@[a-f0-9]+$' + + compatible: + const: "marvell,pxa1928-hsic-phy" + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + '#phy-cells': + const: 0 + + resets: + maxItems: 1 + +required: + - compatible + - reg + - clocks + - '#phy-cells' + +additionalProperties: false diff --git a/Documentation/devicetree/bindings/phy/marvell,pxa1928-usb-phy.yaml b/Documentation/devicetree/bindings/phy/marvell,pxa1928-usb-phy.yaml new file mode 100644 index 000000000000..4ae9201767ed --- /dev/null +++ b/Documentation/devicetree/bindings/phy/marvell,pxa1928-usb-phy.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/marvell,pxa1928-usb-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Marvell PXA1928 USB PHY + +maintainers: + - devicetree@vger.kernel.org + +properties: + $nodename: + pattern: '^phy@[a-f0-9]+$' + + compatible: + const: "marvell,pxa1928-usb-phy" + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + '#phy-cells': + const: 0 + + resets: + maxItems: 1 + +required: + - compatible + - reg + - clocks + - '#phy-cells' + +additionalProperties: false + +examples: + - | + phy@7000 { + compatible = "marvell,pxa1928-usb-phy"; + reg = <0x7000 0xe0>; + clocks = <&apmu_clocks PXA1928_CLK_USB>; + #phy-cells = <0>; + }; diff --git a/Documentation/devicetree/bindings/phy/pxa1928-usb-phy.txt b/Documentation/devicetree/bindings/phy/pxa1928-usb-phy.txt deleted file mode 100644 index da94426aa694..000000000000 --- a/Documentation/devicetree/bindings/phy/pxa1928-usb-phy.txt +++ /dev/null @@ -1,18 +0,0 @@ -* Marvell PXA1928 USB and HSIC PHYs - -Required properties: -- compatible: "marvell,pxa1928-usb-phy" or "marvell,pxa1928-hsic-phy" -- reg: base address and length of the registers -- clocks - A single clock. From common clock binding. -- #phys-cells: should be 0. From common phy binding. -- resets: reference to the reset controller - -Example: - - usbphy: phy@7000 { - compatible = "marvell,pxa1928-usb-phy"; - reg = <0x7000 0xe0>; - clocks = <&apmu_clocks PXA1928_CLK_USB>; - #phy-cells = <0>; - }; -