From patchwork Fri Jul 17 09:47:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?=C3=81lvaro_Fern=C3=A1ndez_Rojas?= X-Patchwork-Id: 11669727 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B0A8013B6 for ; Fri, 17 Jul 2020 09:49:41 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 886EE2070E for ; Fri, 17 Jul 2020 09:49:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="F34XrAXv"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="aOYb1JFd" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 886EE2070E 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-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=3a1hntzMqz3/rKLPtzJR3V34A3ULyrwdTk+5oS2vDAk=; b=F34XrAXvEgm/VuCIfDieWXawY eHbTyPR0zEhrvwuALmv1hTNgBz1NyDHKwxDsbvQU39InFSI4HYtB277fOc25PJk6A7lZDrsKd6+tj zFqwBmiSo7QFV2PMd/9qP2a6WaUSN8rRUgPxtkTYDuHL3YVDl09TeCQUzJM7uROZqzsdMnRCaPtLx wv6/PImjQfyFSIWXRgwnlbyCzdDGac7pGAlpaGZldNHBOzCCOHS/kDDrNBNmVNXCd4VsWwyBkWhLQ 7z5hVY6eEJPasZtFlSedxbFmByPAUxedZemnU1iSdsyN5RuM+JUiGcfJWndSB0cs0/XXvlShdjRFz N6PDgF8Kw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwMyZ-00032a-Re; Fri, 17 Jul 2020 09:48:19 +0000 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwMyQ-0002zG-6B for linux-arm-kernel@lists.infradead.org; Fri, 17 Jul 2020 09:48:11 +0000 Received: by mail-wm1-x32d.google.com with SMTP id w3so16183804wmi.4 for ; Fri, 17 Jul 2020 02:48:09 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=KJHS8T5ZP2Us9EXEt6XxFRJxlnk3VVbmaR5Q3Oo60x8=; b=aOYb1JFd2yogObdkyXUchErAXi5VB9NnpQuQ2rtLzbN1wzP2VhlKzTKZbp331X6bJj WP2sOpJEn09pIgeRa3CyfvgVRrN8L5HJdr4/A4B43GoLoNp8S58ml802ulaBhEnSRB2E 9gEz2h/j3alhsm/HFKwCi1KJ4Vg5FPUbwFT5gwSEo77rmygzxyqGftkGbHOKH5lvrm+3 t4dRYhAnNwcjffT44PvfxGUQwNcPnjZP/LvoZpy2KjcBIkk4LEukLPvwDdEJwB7zPzcX SVnVawifeQIvcqTjT5ugx29DGCkUROyXe6C7vycWtvj10QONvl26/RoQ7atit5OFvZ55 v8Cg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=KJHS8T5ZP2Us9EXEt6XxFRJxlnk3VVbmaR5Q3Oo60x8=; b=MLBnC5fDHO1NEKmoQh/CN8NXJsOqj/IO16csKoUOul142wSKzd0XOIPQ+Qssaf0CRA eZSJ+6ysX91+WYvgvAHy2p+BpPhE5JOfoj9gj2sZEq9g/6xoP/cj5YhGm0gxC1y6ET2i 70KLLMN641LhGCHfP3isNhKtihUT7kDaPdGIQxpVAwNCWLV+u/DlZnjFB+/mbG/cTyOP nu9STw/s1BspEcJRvPOG/Ahzd3iWqZbc3tUY09Mx2a/RI0KNj2JvffN7bz6i3VN6jWo5 95aDAeF3V17cfd2M1wFdifT/nt7babFx5qUjkreG2wJZ6/WeAlk12Mapq77zkKY9O04U A1Ng== X-Gm-Message-State: AOAM5323z8Bj26tYwwMIA9+xYgcUu9JDFMWSXvRTnx16kVpFtDq5sGrh sWOQN3OM+Qh9C20LkiYgoxN6NpYVxdw= X-Google-Smtp-Source: ABdhPJym9dnBeZJ3gArJttolSms+B15ZRoROE1ouB/8XsgJFUM/HjsNQvyEFdHz4ynLV7eDyhjMJ3A== X-Received: by 2002:a1c:80c8:: with SMTP id b191mr8012978wmd.37.1594979288689; Fri, 17 Jul 2020 02:48:08 -0700 (PDT) Received: from skynet.lan (67.red-88-15-120.dynamicip.rima-tde.net. [88.15.120.67]) by smtp.gmail.com with ESMTPSA id u84sm12816587wmg.7.2020.07.17.02.48.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jul 2020 02:48:08 -0700 (PDT) From: =?utf-8?q?=C3=81lvaro_Fern=C3=A1ndez_Rojas?= To: simon@octiron.net, simon@arlott.org, jonas.gorski@gmail.com, kishon@ti.com, vkoul@kernel.org, robh+dt@kernel.org, f.fainelli@gmail.com, bcm-kernel-feedback-list@broadcom.com, p.zabel@pengutronix.de, krzk@kernel.org, gregkh@linuxfoundation.org, alcooperx@gmail.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v7 1/2] dt-bindings: phy: add bcm63xx-usbh bindings Date: Fri, 17 Jul 2020 11:47:55 +0200 Message-Id: <20200717094756.9951-2-noltari@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200717094756.9951-1-noltari@gmail.com> References: <20200717094756.9951-1-noltari@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200717_054810_248314_C4AB0683 X-CRM114-Status: GOOD ( 13.36 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:32d listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [noltari[at]gmail.com] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?=C3=81lvaro_Fern=C3=A1ndez_Rojas?= Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Document BCM63xx USBH PHY bindings. Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Florian Fainelli --- v7: introduce changes suggested by Rob: - Move clock conditions to the main section. - Set missing additionalProperties to false. v6: introduce changes suggested by Rob: - Add another if case to device tree binding for SoCs with just 1 clock. - Ignored "additionalProperties: false" suggestion since it triggers a warning. This has been reported, but I haven't received any answer yet. v5: no changes. v4: conditionally require 1/2 clocks and fix clock/reset values. v3: no changes. v2: phy-cells changed to 1. .../bindings/phy/brcm,bcm63xx-usbh-phy.yaml | 79 +++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/brcm,bcm63xx-usbh-phy.yaml diff --git a/Documentation/devicetree/bindings/phy/brcm,bcm63xx-usbh-phy.yaml b/Documentation/devicetree/bindings/phy/brcm,bcm63xx-usbh-phy.yaml new file mode 100644 index 000000000000..9a2e779e6d38 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/brcm,bcm63xx-usbh-phy.yaml @@ -0,0 +1,79 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/phy/brcm,bcm63xx-usbh-phy.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: BCM63xx USBH PHY + +maintainers: + - Álvaro Fernández Rojas + +properties: + compatible: + enum: + - brcm,bcm6318-usbh-phy + - brcm,bcm6328-usbh-phy + - brcm,bcm6358-usbh-phy + - brcm,bcm6362-usbh-phy + - brcm,bcm6368-usbh-phy + - brcm,bcm63268-usbh-phy + + reg: + maxItems: 1 + + clocks: + minItems: 1 + maxItems: 2 + + clock-names: + minItems: 1 + maxItems: 2 + items: + - const: usbh + - const: usb_ref + + resets: + maxItems: 1 + + "#phy-cells": + const: 1 + +additionalProperties: false + +required: + - compatible + - reg + - clocks + - clock-names + - resets + - "#phy-cells" + +if: + properties: + compatible: + enum: + - brcm,bcm6318-usbh-phy + - brcm,bcm6328-usbh-phy + - brcm,bcm6362-usbh-phy + - brcm,bcm63268-usbh-phy +then: + properties: + power-domains: + maxItems: 1 + required: + - power-domains +else: + properties: + power-domains: false + +examples: + - | + usbh: usb-phy@10001700 { + compatible = "brcm,bcm6368-usbh-phy"; + reg = <0x10001700 0x38>; + clocks = <&periph_clk 15>; + clock-names = "usbh"; + resets = <&periph_rst 12>; + #phy-cells = <1>; + };