Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1742198ybh; Mon, 20 Jul 2020 06:14:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwoFQe4p5dj66n6kMfpQy+sW6hH64iY6nmA0mdneFPMBfokvNTNaEcYQKDuc6XN4UgBCQoT X-Received: by 2002:a17:906:c209:: with SMTP id d9mr21660371ejz.449.1595250847451; Mon, 20 Jul 2020 06:14:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595250847; cv=none; d=google.com; s=arc-20160816; b=0PuD+EYG217TdTJvixEcCTOiOX6imYtHBCp0+jVNLzQMOqqQqEIwDbJbhflR3PHoSN dKSoaE8Btedo9YZJSdOjYyh9H8M/KmqvEtWZSr9rp4YHQtTLQs7thCKHWnke3RxtqQiK bcM/Gp18un3bkqQZvr5hbn0PlX4jyvj8MIYgyUqGE0y1iUJdckOJYnu5ZpRlmYwHvC5q awdYBusAoRw3ISJkl3B9I1+9oTLihtv/0plP16UxMucJVwj1FP8STinFIIfFa205FB+e gyxLvD64r+vzukNHhgmU5tuxCzFrB9KwC0wmbcqXeliFTJDjjF1FNQuhI4+MNJryUcF7 7h+w== 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=KqgEqWWYilY633bNavPrC0sTJz/E0BBmplyUh2qxTX4=; b=jfCklQR8qqx+3Ec8Xg2BATOI+zkt5wTHdR78yYQ8UjXXFFXRcNiPXIzU64DTrxoZsk G80mTPc7RFpPzgXym6FwFowKqPybAC+tqMNfhdn1xGe+boewd06MwWXckl+WIrttuF01 GqBhOZ0Oa6vX8mwbwAOeRoXcL2TAAW4CcnitS3fpi5E58LIBFrKTAhnjte+5sH6jNckV S0WuMy/8lGUnScbqqHPCM9d3UXUoYnBLXdfH4zzmeL6tN/Jd42KMgpHBBgxaPZyFZQvn vaUM5OgrqBo63xRGmsuH1EhphHzYLRjrj9zXtoXrLd/Zqun6/ercs90KERq8b3VDQMR4 CpJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=n7iU+nx6; 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 lz15si10363080ejb.406.2020.07.20.06.13.36; Mon, 20 Jul 2020 06:14:07 -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=n7iU+nx6; 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 S1726830AbgGTNMV (ORCPT + 99 others); Mon, 20 Jul 2020 09:12:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726076AbgGTNMT (ORCPT ); Mon, 20 Jul 2020 09:12:19 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28BD6C061794; Mon, 20 Jul 2020 06:12:19 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id s10so17747829wrw.12; Mon, 20 Jul 2020 06:12:19 -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=KqgEqWWYilY633bNavPrC0sTJz/E0BBmplyUh2qxTX4=; b=n7iU+nx6m2JaTjSyRZxLipY4+VOyK0z9FJ21EzSa1l5XRRGslLe9mKBhf5pQvZ03aR TlDF8hnaC3qlu+UA8RWScCa/vJk13mTt158+VQjuwdm0JGuU3oR8aoUOQGY8ZIcTn2ua aQTArKxf9SCVDlglKr4SzoMheyhz11IfhIHXRnxHGAIu1qT+4BcQFQIreajbf8OtaOCp SeRfvskHeCuaetVAHQPPpRGdTpr4nfW6k6QsRR+tvTFifbsKgGfPtkxOPf7wNSShsf7D gRG2p9k653EAmS6Jwxj8ZK7avc6xBYJe/p/Pqru6BkJkS0MbuCXWO1S7/LeJtkHtl2tZ xdvg== 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=KqgEqWWYilY633bNavPrC0sTJz/E0BBmplyUh2qxTX4=; b=mKDwchPdy4EDAe5VbkmwrYBMEzwi/O416BlHL2jpgoTISellpBEYBwTRqZN522947l NmcR35zgFxhgcek+HvArK3HhVR0+zOhUG8bwsnwcdebvZ1/xDUhg4+gfzMm6skV6U77J gC/758ghtu+O5qxavdfSUCRgxGpy6Yxe0VyYjG3iQ/uONWmcgP7ezDqszO6hbFYBvjQo KCoPMsJxn0CL6ikLWZkx84CobE2FlvN68vmJRrVw4/aWP/ejsSNmQp2owbxNS9zzRcBB zd45oD8cP/CdZP1p/5PM/WSajorMNeDIl6o1UI+4pQL0shUv6dPR2ZVnkhyKcQoVtWaA /Oew== X-Gm-Message-State: AOAM533NF2WCIW2ma1RtDvvmhl4BBVVDgfIlsxGNO1Cxd5gbhiAbR8jr u61QhIn3Mcp/eTtalJMH3oI= X-Received: by 2002:a5d:6386:: with SMTP id p6mr21968326wru.417.1595250737763; Mon, 20 Jul 2020 06:12:17 -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 j24sm2725293wrb.49.2020.07.20.06.12.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jul 2020 06:12:17 -0700 (PDT) From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= To: 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 v8 1/2] dt-bindings: phy: add bcm63xx-usbh bindings Date: Mon, 20 Jul 2020 15:12:08 +0200 Message-Id: <20200720131209.1236590-2-noltari@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200720131209.1236590-1-noltari@gmail.com> References: <20200720131209.1236590-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 --- v8: no changes. 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>; + }; -- 2.27.0