Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2650154rdb; Wed, 4 Oct 2023 07:35:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHdVcEdRuRdDex6Gf4kubB/s+M8AfW/UfOprZDNvSLYpD2q4E0p0LFAgtG9rE85Gkw8Etab X-Received: by 2002:a05:6a00:814:b0:690:3a0f:4165 with SMTP id m20-20020a056a00081400b006903a0f4165mr2778597pfk.32.1696430117731; Wed, 04 Oct 2023 07:35:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696430117; cv=none; d=google.com; s=arc-20160816; b=sjh7sjl1NHexCkVZQWiL5TgX013TUcK2CG/yMyUg/pSSirm8e1cC2pxuiT4mFi93g7 DxZqsUqL/LsQbwpBscu4r1PwzlLxha644CD+HBAQJmkcVyC7ss7U8+IElTqgrwpAlOs9 9ny8J20j0wZhDDMSbHBdw6GfWr3VpP0ioTXchrtrgvVJFKBBgImizY/AbMaHmJN3/TVz 7wvJnGVFe44WjtqEFl8U+4NYsnhV0qQbRL9epKNpNSoiMV1QfHxOdlsmyaLt5eYLnz4m XQZoUaVz9vVQQ1uUvzpXpAdgykeE8g0HZo0FwE5FSrgOhxsuNfc3VsIREft+2DXKxW/f 5A8Q== 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=64PuADtCWfMaT88yqdXoNsktJ94B3CehXnTv7jIYtbo=; fh=R4glWTU8h5DlXDp/u/kH8AsuEsNi/FYWsuKJ4MUpYsQ=; b=hBNHDo6MXNgKCzToqurdYV0QzMedqRBMfhOmBE9CzvGzAR4lgYbM8XBZjlQF1h26rX 1sHjw8YwksCpmqyo5+Qa2NjAoaU848B/7M4bWGnYLHdexPwQWG34596c9gSdgTSO8fF7 D7ViM87KphHBPzgTgu2/v6gI4egQs9kkp5BnaAkap0wcWFSleaVcxUQsQ4kxFGhuwxrQ Dg/RmrLDb2elKE4vqBXdqBEULNClXlm7Q7byVKQXckl1VMLL5XCn1Iau9GFO2Vhr5AP2 JfV1ghFgH7YMAK3SRRKFZVvWcVUCuhx2vXIzxU2AvwVUXdHKbutbLWmIgMGCcvoTSgcW 90tw== 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:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id cl13-20020a056a0032cd00b00690d695b113si3678548pfb.337.2023.10.04.07.35.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 07:35:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id CE6538220773; Wed, 4 Oct 2023 07:35:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242946AbjJDOfM (ORCPT + 99 others); Wed, 4 Oct 2023 10:35:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242920AbjJDOfC (ORCPT ); Wed, 4 Oct 2023 10:35:02 -0400 Received: from mx.skole.hr (mx2.hosting.skole.hr [161.53.165.186]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5C6FEB; Wed, 4 Oct 2023 07:34:57 -0700 (PDT) Received: from mx2.hosting.skole.hr (localhost.localdomain [127.0.0.1]) by mx.skole.hr (mx.skole.hr) with ESMTP id 70CAE86040; Wed, 4 Oct 2023 16:34:55 +0200 (CEST) From: =?utf-8?q?Duje_Mihanovi=C4=87?= Date: Wed, 04 Oct 2023 16:34:43 +0200 Subject: [PATCH v3] dt-bindings: phy: Convert PXA1928 USB/HSIC PHY to DT schema MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20231004-pxa1928-usb-yaml-v3-1-150c9ef3ab9d@skole.hr> X-B4-Tracking: v=1; b=H4sIAAJ4HWUC/32NQQ6CMBBFr0K6tmZmitq68h7GRYVBGhFIqw2Ec HcLKxbG5fvJe38Sgb3jIM7ZJDxHF1zXJlC7TBS1bR8sXZlYEJBCAJT9YNGQlp9wl6N9NVKDORx z0EQ5iqT1nis3rMnrLXHtwrvz4/oQcVn/xCJKlEaBsbqAAlR1Cc+u4X3txdKKtPXph0/JR0J7Y qCSzNaf5/kLrtQkXO8AAAA= 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=3096; i=duje.mihanovic@skole.hr; h=from:subject:message-id; bh=qO9ou1l5FEkTyCnSICtnUTG5cQCSx7IkoImt5WAeNhQ=; b=owEBbQKS/ZANAwAIAZoRnrBCLZbhAcsmYgBlHXgIOpjprFnT+GwaiK4ZJNiEGr8aaTwnhzCdW AcHrU4p6dWJAjMEAAEIAB0WIQRT351NnD/hEPs2LXiaEZ6wQi2W4QUCZR14CAAKCRCaEZ6wQi2W 4ScDEACN90WVQXJ1XBT0o0Gs+qqlsnuw26/ff3WG/rbQVKHFWLSmAqinISvMAOYK89kK/yXby/r szZ6s+zoZpMGfqI5LcTm9Q6mltOtw5hkYSaqOW6CWgIxwYkV/oSOtp0pDu3KutxOcqPLvbM7VyY 6r7xkN4VdJTm4kprrvVqTy/uAHrPYs9N2EGafsRcMTwObHn62TbynIyoCS9ZVmhFuDn6ev8I+JA prxjZqHoafdl+5cOvt+c8McKNwhlVPjc/AfKXzhG6Ts/Nr42UpE9/zLnANs4a3WlfmzIJdOaPxn dB02ed1mOvBoIJtogT+dmaYFNmYo3UPePXpqCXUytAn3y4DTbaP7lvoCWUzu+H2vfBw9bWLXtCq OwDxJ+QSLKjpkXg9AQmepYPZpRp706wq0qtXLlXwVHgUpCFFhlT+1PG23j5cqHlGS4T7ZLYhUxV NO1MZ5jSi1sCLqdeaHgqVCyAPKsmUnR/yRN54O5xxmaLWwpT4ClLp2JQbzFVQVMRwSOccZIT7jM tIlEhmcv6E+QYKIFJnVoz8yVYO2PX+BUhKROywS/5AlqkcRrKTDGs1kOaQCC/7HeYbhNi3SN2ya aK6uRkpcfI1VLh396IOCGf6tQNQQuqUL9XRchMRCfp1u3cD7zo8dtl8fFEC09siMn2Y5q88j5Yk +6nLdtYQ4deoKlQ== X-Developer-Key: i=duje.mihanovic@skole.hr; a=openpgp; fpr=53DF9D4D9C3FE110FB362D789A119EB0422D96E1 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 04 Oct 2023 07:35:16 -0700 (PDT) Convert the binding for the Marvell PXA1928 USB and HSIC PHYs from TXT to DT schema. Signed-off-by: Duje Mihanović --- Changes in v3: - Address maintainer comments: - Re-add example DTS - Drop nodename - Simplify compatible - Link to v2: https://lore.kernel.org/r/20231002-pxa1928-usb-yaml-v2-1-121a7e02d29f@skole.hr Changes in v2: - Add myself as maintainer - Combine HSIC and USB bindings into one - Drop unneeded quotes - Remove example as it can't compile (probably because of clock reference) - Link to v1: https://lore.kernel.org/r/20231001-pxa1928-usb-yaml-v1-1-9309a8c0c03f@skole.hr --- .../bindings/phy/marvell,pxa1928-usb-phy.yaml | 47 ++++++++++++++++++++++ .../devicetree/bindings/phy/pxa1928-usb-phy.txt | 18 --------- 2 files changed, 47 insertions(+), 18 deletions(-) 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..be33f036cda8 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/marvell,pxa1928-usb-phy.yaml @@ -0,0 +1,47 @@ +# 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/HSIC PHY + +maintainers: + - Duje Mihanović + +properties: + compatible: + enum: + - marvell,pxa1928-usb-phy + - 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 + +examples: + - | + #include + + usbphy: phy@7000 { + compatible = "marvell,pxa1928-usb-phy"; + reg = <0x7000 0xe0>; + clocks = <&apmu 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>; - }; - --- base-commit: 6465e260f48790807eef06b583b38ca9789b6072 change-id: 20231001-pxa1928-usb-yaml-809564082241 Best regards, -- Duje Mihanović