Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp654287ybt; Fri, 19 Jun 2020 10:16:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmsc2N2LT7ED9sejEMBXhvLloUUsN/i+TO6piQB37Z6qb0k2yrBgt+iCsve4VWZBm+fvMF X-Received: by 2002:a05:6402:1ac1:: with SMTP id ba1mr4215045edb.91.1592587008483; Fri, 19 Jun 2020 10:16:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592587008; cv=none; d=google.com; s=arc-20160816; b=FTpHeBSFhhpWrQIgIVoCz/tW0+wzNUF+3vxQZdFBmLog2hJF/EdCasJ7vYWxp9DgP4 wBEDQh7mPCuUxEqDatalU6rUVyQLSwiYWRV1ki3Mj7EDGUuomxfP+km4iboQN5sUN4CL qrmsF55mwJQyWZXTGNmlAgYdLqq6deoKE616FNQoUchMTeWeUPyZU+fRTTE124hwXp87 XASG7lUms//mGuqrT41RaitS+KXPFkwfV7sQpiUOzN5uNMY/kUUZ5AnscDO9cxkL3yWu +Vx3x4xrRX7A25YrrXXr4CcngjcAyz2+5k6TsZcHCp+kzXRDtn3M4KzbTmDA6g/vPGnq pk9g== 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=Fc/ZRtpBM3g53RRJYB71TtlpBDGsdj4dTHpptXk9V+E=; b=KfaFktXmGyaNk6XZUlTagycVfXsdJdiluS+f5S4mQaxwh2qUlZPDyfU/1kFTQacnHD X+QACyfjpd3vbH39JaAoN9hPjtllvwRwcffTQTha0tn8DwPhxeRi5IiFgc7XRYbUWRpj f/N2cgz6ciOOxPFkJN8vApAXEk52kqR1asZhtm5jsgfJ9kS4Ow61EBAW7vLmLbTZnAVl q5fE1nHxiHJNJeAxcazuIPvjLuOk5Zi2m4H11VziG7P3roZ0aeR2KKQKiRlaJfQ7Jf+Q 3DVl3raIBIyCVI9Xo4a8jCEi2WvCYkJcXR3NVU4Tm+x240SH1VVRSUwbt+MXsRNcniyp 6p9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Pq58WWEx; 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 n1si4253988edy.216.2020.06.19.10.16.26; Fri, 19 Jun 2020 10:16:48 -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=Pq58WWEx; 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 S1732268AbgFSKBU (ORCPT + 99 others); Fri, 19 Jun 2020 06:01:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729718AbgFSKAl (ORCPT ); Fri, 19 Jun 2020 06:00:41 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C530C0613EE; Fri, 19 Jun 2020 03:00:41 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id q11so9097915wrp.3; Fri, 19 Jun 2020 03:00:41 -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=Fc/ZRtpBM3g53RRJYB71TtlpBDGsdj4dTHpptXk9V+E=; b=Pq58WWExXZ9otcKxJf1zB/dM1leVY7SSbgW/LVaQOi3gk6exFI6lF16yZOgX+hYg5J XMLQjUVd2TXMggZWtEzjcETMJu6Lbs2Mts6o2T/qQzgcaipzYgJxKz8Mw81YVnf5EeSH BWcaKmoVslFTXJJ6JDxDb1WswUFU0B4e6HMhDGswZP5MrXGlmSPS6yuK9ZNrg5HVo2fp CWeamv+3M3aQ7zSorupx/AlqdBCD7x3zlJmLVOmI9L7CQg96c2Vc9AHxuE07+LYdjun9 AMlufbf1AdLEgRvxVmK4n/DlhfjcJ127jqs3Hv/UQq0jvYrLl4gy5Q9LM0a2OvvSjN5v CtlA== 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=Fc/ZRtpBM3g53RRJYB71TtlpBDGsdj4dTHpptXk9V+E=; b=gUVwmCmoaTKCUlAAtPq02GnrVaLT6lyOQlt6z1hTFiBjUcVqhrcnYIIs/0Uxd7sa+q 89i+W4ca9XHEDjlHx863KtQUovalBtXrZIwqJOhTCRjsGI3YXii8EOC1+AoV+/mCDSwg vNwtTHdIpMs1Rht5lAl8VpBkrbTGfbtsRgbH8uO/8xyYyi0Yipc4WRQI7tGF3llLJ/Cw krmTHiyao8wYSJptdvKhOVVHRd6EzRSrEcH0iTZMW0/XTqYPEId65//3xC7aQcgu9JrK OMdCgGKo4bKPp5nr5LoeelsSxxYB09qc2E1binoBt8FHC7K01hN4XHYYvY1jdBQwJ0VL l3qw== X-Gm-Message-State: AOAM532LPLT8VOtFN8nBp4tM4kR83zweVpNu/FcNjj0Tdv/QuBBxvg11 V/iora4YcEq8WUQIfr9g3EM= X-Received: by 2002:adf:f446:: with SMTP id f6mr3213092wrp.59.1592560839559; Fri, 19 Jun 2020 03:00:39 -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 v6sm7164961wrf.61.2020.06.19.03.00.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jun 2020 03:00:39 -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 v5 1/2] dt-bindings: phy: add bcm63xx-usbh bindings Date: Fri, 19 Jun 2020 12:00:34 +0200 Message-Id: <20200619100035.4032596-2-noltari@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200619100035.4032596-1-noltari@gmail.com> References: <20200619100035.4032596-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 --- 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 | 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