Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp298639ybt; Fri, 19 Jun 2020 02:11:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuBn2jZeSqDgaC3rf56i+1//0aYwYCmMTMI3a3B4mDRToBetq0IsicSoUV7gEm0O8e+p33 X-Received: by 2002:a17:906:abca:: with SMTP id kq10mr2790108ejb.390.1592557896085; Fri, 19 Jun 2020 02:11:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592557896; cv=none; d=google.com; s=arc-20160816; b=z+XZu/PcKd4J+Tbugu+NibEU+q+ZDfeS04jncjXkycEv84vinLN/VyzRNgwOj9yDpj GEiN5N0gNAyaAPe3AvjLCNjsWIcuFeLqAWmLPYEdkeGuKLRThG/P54XcqGXJsg1CzkYm gSs1uKkjf+8BoibwQhQUnAs6vHsNiGY462eqW5SOiaTeMLdtZcUlHaw8JECHyqTG16t9 hpWSPaL1YpJffphjoKsWXm5/xh8O79nqkS2RKpoLqf/fHm5fcRoth/4+OTRxlw862b1z n8Oj1yfJtmhvoOH04D2Gd24Fsb1u5xOz6+lVzS1MG0H9aaTJq+8jq4+QlU9K0sybn7e4 62dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=5lYDT1B7WUmMqVaT2wEKNALKzv72VR3G8K7qQi7KpNc=; b=OlF0mlrU2M/bkmjma6+dU6BUi0UUO27K/CzMTkQA0PEsy055HoTY1Bty6kpn14uitH iYAKNZ3sulqc+/3CY1D5c4P5MqiP8SfsuIRUKO5QyxrnRu9ktwEEnDWbZ2aJcxusM8tC WR7nR3Gjm9jRQSnA/47ZOBdNP6bvnDFpjNiUMMCMyGImyd8mbZvLxU/XCH68K1rymoKA UfOax8bJRqhzaumJcu8o9cBqeA5ddLsvvohbLy++yfAXS7fmtBjArUyHQJZ9CucXvZpa oN4gvjOweMILdZL7/on6h3S5A+xcQat1kRkO/tMb2cQoc3wDi+k8wcxbFRWycX/3H1wQ UcAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bk2Jvxye; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f20si3498811edr.380.2020.06.19.02.11.13; Fri, 19 Jun 2020 02:11:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bk2Jvxye; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1731510AbgFSIvi (ORCPT + 99 others); Fri, 19 Jun 2020 04:51:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727114AbgFSIva (ORCPT ); Fri, 19 Jun 2020 04:51:30 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 452FEC0613EE; Fri, 19 Jun 2020 01:51:30 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id t194so8357684wmt.4; Fri, 19 Jun 2020 01:51:30 -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=5lYDT1B7WUmMqVaT2wEKNALKzv72VR3G8K7qQi7KpNc=; b=bk2JvxyenU4aqD+qkVUo1kyOnr4HZYghoi/oZwkhdA1oHIyoZESvA2LVi+7xdBglgJ m42rvCdivK25aY3PApEVHAf5iWBf8wudN99ciDen9GpDPu/6/+812uVftiOLKh1h+8gb zmMsYjZOh8l+jk1p+kl5G9ebet3lPF7bjlcgmyKjnpFplPQXFIW0MzP9PllONzi1iByc ChNlfVbpkl1XbRAexbzZOkpgoY00odPjTi8RsUOmJPQ1rJunvM0mxlbFHEXUhpdYxubj GgM4ptHd74XJl6ipgiRp0Go1vd6stu0h+B90SEkxlzVoog24WYRgME+5iHiyH6f+e/qY wTfg== 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=5lYDT1B7WUmMqVaT2wEKNALKzv72VR3G8K7qQi7KpNc=; b=BuDw7pyq3gxL7p0YOh4h6weMHkG8k1EYAKawCugS4+rT98oN1hNXE7bygvVxpgON+M GZKgtfOhLnCNYwl6m9GrT8FUptTEQxr9FP8PZKeGZz3hfcZh6U54MVe1qoK0eskCT3Ks k7Ql23YPf5rGAAj8E5YicUUZByvGpwVb507Vm2+RX/vqz9WWLp+iiA2VLqyY4jaZLgod gjSc133rKkrSxB1Vb1BI+VIaCtVoznlB8Cu5hCrdN/Ov+7kXv524Lyt2P2xzvuVpy7yZ xR+SIGnRTsCPtDP5OUxZeiqijWOlvd5/AhoEp2ubUumV+L+P2YCVpX3vXFWBA/oDcM/x Ahhw== X-Gm-Message-State: AOAM5305mnk59OBK3jNZ6futKXuS2KXq1P6Q67G82iqdptzfIWtpCBmR 3u4NYRcqfOyiPSho4514e2E= X-Received: by 2002:a1c:5603:: with SMTP id k3mr2684984wmb.116.1592556688888; Fri, 19 Jun 2020 01:51:28 -0700 (PDT) Received: from skynet.lan (90.red-88-20-62.staticip.rima-tde.net. [88.20.62.90]) by smtp.gmail.com with ESMTPSA id l1sm6674331wrb.31.2020.06.19.01.51.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jun 2020 01:51:28 -0700 (PDT) From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= To: simon@fire.lp0.eu, 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 Cc: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Subject: [PATCH v4 1/2] dt-bindings: phy: add bcm63xx-usbh bindings Date: Fri, 19 Jun 2020 10:51:23 +0200 Message-Id: <20200619085124.4029400-2-noltari@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200619085124.4029400-1-noltari@gmail.com> References: <20200619085124.4029400-1-noltari@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document BCM63xx USBH PHY bindings. Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Florian Fainelli --- 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 | 84 +++++++++++++++++++ 1 file changed, 84 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..f267da6193a9 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/brcm,bcm63xx-usbh-phy.yaml @@ -0,0 +1,84 @@ +# 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: + maxItems: 1 + + clock-names: + const: usbh + + resets: + maxItems: 1 + + "#phy-cells": + const: 1 + +required: + - compatible + - reg + - clocks + - clock-names + - resets + - "#phy-cells" + +allOf: + - if: + properties: + compatible: + enum: + - brcm,bcm6318-usbh-phy + - brcm,bcm63268-usbh-phy + then: + properties: + clocks: + maxItems: 2 + clock-names: + items: + - const: usbh + - const: usb_ref + - 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 + +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>; + }; -- 2.27.0