From patchwork Mon Mar 29 16:50:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 12171195 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 540A6C433E0 for ; Mon, 29 Mar 2021 23:31:08 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E6CC56198A for ; Mon, 29 Mar 2021 23:31:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E6CC56198A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=OIzTdhQgu+74mgTGii/YekuDbr8euFcYvuBltZl01Y4=; b=fzj9TF7FjvTgPOwOfaaxtM6KH/ B1qW6pSb7AJLN4rJOlGfnQE5y5hvlnYcW32Inlz3Pmq5eaKyu0dZGknugnVxZfgF7BHoa7xU/gIh9 OLUuZtPK39GH1R0Wpk3Pce/HBAqjfEO3wsbiU7XE6ovRwLS+cfgUPmj39XbKtAM/6QO/7B+2lqKKB gwoOa06BkHeuSdObYEDMTYgAZ5UuFMcKIQmlZipWrhL0lJ6SlyF+hp/v1oI0nJlgprbe0K4E03+Z4 d4HKFFovmET1sJJngAnZ8rGpOoWZilVr4A47f6yvwFKY+iwzFqDVR+nFlBpcDHMasS+pHYXvbGAhX 1WeN2r5A==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lR1Le-001x7x-8C; Mon, 29 Mar 2021 23:31:06 +0000 Received: from mail-lj1-x229.google.com ([2a00:1450:4864:20::229]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lQv6N-000n7h-6f for linux-phy@lists.infradead.org; Mon, 29 Mar 2021 16:51:21 +0000 Received: by mail-lj1-x229.google.com with SMTP id r20so16719667ljk.4 for ; Mon, 29 Mar 2021 09:50:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ev5ZnwQH6OovPoIb991rlKvDbjzbwVrID4ypFygfIXw=; b=KdsrLZOdnGtJgVoDzaoH/Wibt+pls2wz39lHc6nXZAhWN+eGa0pPzSjInfVOcOb9M3 NYJrLydA8LBf4Zm8akQgWMt3pqrXO8jYNUR35tuF/hSpWNNbpsOCqVYF8Zu1tAn1Os8S X40K02rD9N3m6/G9oOa6aQK3swEs3/hT6QeYUOknLqQWSIUVM5RiL8gDavjlFhYynuj0 omJpsmSjr70g4cGKWe8iHXNS9DS4nSfMrdvy7mzq+Sd5IgAACqxSq0JK9sjuY1G4ZckB jOip4O38Yya+k3tjp4FPGsSAe+bVQi4C2SLUG5xGzXbFyfRPPM+VN7yZzdCBXsc2+p6K guOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ev5ZnwQH6OovPoIb991rlKvDbjzbwVrID4ypFygfIXw=; b=ef9FhuhJOqeAxe0RVg3DbY+7npDKPmufsF+SZXegOFbxUliYh5HIKBfbF1jrrrgjJF 4eCuIiVaN4Sn7OH1siA6/S9e0N/YQqJg/wb7gAn2SRuGOEOWzFmgXnHNEqWTYc23nWs3 Dt0yoCyVCvddYaaDOZk0bQ1m8uVhtZ/XY1DJh7Aa/KJRIsWr60jv4HwFiQxRnV5LCJyB rgDiHdTAF3+bYHIeMxX1lqvV42Ybf0+Z0vrex7JeeemrglbtfXb8XwdtxxRaxkBYbgA1 646/Il7qUB7rttqaMAc1bYstMcFvMszn/XVkDuspRGoeompdduMVXNaKSPBnqQAAzxwj oETQ== X-Gm-Message-State: AOAM532g9V8ti/Fh48Unp3yyfSu4SwaA9GORNQrE2mNqN3HZZ7ikh4qW YKYu3cPhblNp4vvSAUrPdr0= X-Google-Smtp-Source: ABdhPJyvexCnCXT4nMw+KmaDGzdG+aa66NFRIvjrv7bJuef+DB0LtEF/KqpohyIxk4IIex9kSoECrQ== X-Received: by 2002:a2e:b6d4:: with SMTP id m20mr18711288ljo.448.1617036654385; Mon, 29 Mar 2021 09:50:54 -0700 (PDT) Received: from localhost.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id 71sm1884905lfj.212.2021.03.29.09.50.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Mar 2021 09:50:53 -0700 (PDT) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Kishon Vijay Abraham I , Vinod Koul Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, Florian Fainelli , =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , Rob Herring Subject: [PATCH RESEND] dt-bindings: phy: bcm-ns-usb2-phy: convert to yaml Date: Mon, 29 Mar 2021 18:50:41 +0200 Message-Id: <20210329165041.31574-1-zajec5@gmail.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210329_175110_763487_F32651E2 X-CRM114-Status: GOOD ( 15.10 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org From: Rafał Miłecki 1. Convert from txt to yaml 2. Drop "Driver for" from the title 3. Document "#phy-cells" 4. Fix example node name (noticed by dt_binding_check) 5. Add #include to example (noticed by dt_binding_check) 6. Specify license Signed-off-by: Rafał Miłecki Reviewed-by: Rob Herring --- I sent this patch back in November and got it reviewed in December. Somehow it has missed linux-phy.git though. https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20201116074650.16070-2-zajec5@gmail.com/ --- .../bindings/phy/bcm-ns-usb2-phy.txt | 21 ------- .../bindings/phy/bcm-ns-usb2-phy.yaml | 59 +++++++++++++++++++ 2 files changed, 59 insertions(+), 21 deletions(-) delete mode 100644 Documentation/devicetree/bindings/phy/bcm-ns-usb2-phy.txt create mode 100644 Documentation/devicetree/bindings/phy/bcm-ns-usb2-phy.yaml diff --git a/Documentation/devicetree/bindings/phy/bcm-ns-usb2-phy.txt b/Documentation/devicetree/bindings/phy/bcm-ns-usb2-phy.txt deleted file mode 100644 index a7aee9ea8926..000000000000 --- a/Documentation/devicetree/bindings/phy/bcm-ns-usb2-phy.txt +++ /dev/null @@ -1,21 +0,0 @@ -Driver for Broadcom Northstar USB 2.0 PHY - -Required properties: -- compatible: brcm,ns-usb2-phy -- reg: iomem address range of DMU (Device Management Unit) -- reg-names: "dmu", the only needed & supported reg right now -- clocks: USB PHY reference clock -- clock-names: "phy-ref-clk", the only needed & supported clock right now - -To initialize USB 2.0 PHY driver needs to setup PLL correctly. To do this it -requires passing phandle to the USB PHY reference clock. - -Example: - usb2-phy { - compatible = "brcm,ns-usb2-phy"; - reg = <0x1800c000 0x1000>; - reg-names = "dmu"; - #phy-cells = <0>; - clocks = <&genpll BCM_NSP_GENPLL_USB_PHY_REF_CLK>; - clock-names = "phy-ref-clk"; - }; diff --git a/Documentation/devicetree/bindings/phy/bcm-ns-usb2-phy.yaml b/Documentation/devicetree/bindings/phy/bcm-ns-usb2-phy.yaml new file mode 100644 index 000000000000..05b4dcd80019 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/bcm-ns-usb2-phy.yaml @@ -0,0 +1,59 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/bcm-ns-usb2-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom Northstar USB 2.0 PHY + +description: > + To initialize USB 2.0 PHY driver needs to setup PLL correctly. + To do this it requires passing phandle to the USB PHY reference clock. + +maintainers: + - Rafał Miłecki + +properties: + compatible: + const: brcm,ns-usb2-phy + + reg: + items: + - description: iomem address range of DMU (Device Management Unit) + + reg-names: + items: + - const: dmu + + clocks: + items: + - description: USB PHY reference clock + + clock-names: + items: + - const: phy-ref-clk + + "#phy-cells": + const: 0 + +required: + - compatible + - reg + - reg-names + - clocks + - clock-names + - "#phy-cells" + +additionalProperties: false + +examples: + - | + #include + phy@1800c000 { + compatible = "brcm,ns-usb2-phy"; + reg = <0x1800c000 0x1000>; + reg-names = "dmu"; + clocks = <&genpll BCM_NSP_GENPLL_USB_PHY_REF_CLK>; + clock-names = "phy-ref-clk"; + #phy-cells = <0>; + };