From patchwork Mon Mar 18 13:26:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 10857645 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 84F626C2 for ; Mon, 18 Mar 2019 13:27:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 71C852910F for ; Mon, 18 Mar 2019 13:27:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 65E422911D; Mon, 18 Mar 2019 13:27:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0CFAD2910F for ; Mon, 18 Mar 2019 13:27:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727448AbfCRN1C (ORCPT ); Mon, 18 Mar 2019 09:27:02 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:46717 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725973AbfCRN1A (ORCPT ); Mon, 18 Mar 2019 09:27:00 -0400 Received: by mail-wr1-f66.google.com with SMTP id 33so17065130wrb.13 for ; Mon, 18 Mar 2019 06:26:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=S2taATSeLwYLlK3AoeIDGHb1SmDZDEtC2Zy8s96NWr0=; b=UxfoaKCodDKWM/fMLqfRLPZbMQ8mYOBpQVeNkESThMkjRtFNwenDw8/crEYok1ZT+c I3DbLBUoriYpbZfFJ4z1QH93cn44hzdy+u9n6t4V600opfh8oq9Pm4BMZp6EJCCBKazq FVObvP10p/bKKuDfPm2QwKo2+tHIfw3mcAeo3Jp6CPRm0blorH8WWkNUtafevy4o5bp5 v0vfqY04BiL6K5xtVP50yqkVl1SJG3ZCo9z9FcYECoYKCJ3FF7Qjjw8tAJ4+ivcf/iu1 1fO1u6VIhA3qBdiTZtrG9KA6ZVkzUB9iezOR2jv6xoU6wZ8pSTGakI+sjPpnDV4WEv2o mfuw== 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=S2taATSeLwYLlK3AoeIDGHb1SmDZDEtC2Zy8s96NWr0=; b=H5zmMdQsVBDWeXefR9FMafY8zm7s2dLpYtIAu1CQEloqp/vX7pTQznA/D5rQcGndgq rGDf6okq74tmdVvY+OuiNS/qFkhUKA/dGLGeLeG8BPIq95/5g3nX7LjHnYjtmLtyb+pC y/aHD38BDarKe0BXcX15oH/V9MHGnK1pi62jKvrWlMQ9OnhVK0YhnBX7gBWPvNw4+RnK MGkTU/8LkSYwIq8VS/OJP+bAgx+r1ad6gWHwcPlUuMq+HoQhnxhMWd91XP3D7x6RstHx l5MHMamddEWyg7vsAwkQg7uQx+tYyqq19mk3IrD8FLGwXm75GrBvOyWcrfmWescKJA9f IoLw== X-Gm-Message-State: APjAAAX8XifyqEdQf9TSrJosbc+IFrC6JKiy07gGIDSOLl4ZD6m0+hq/ FG3fC6gI7My+h77dBHVE6MnJIA== X-Google-Smtp-Source: APXvYqyWketn5R+yzXKwlclGE7MSY9EAfsFayppYhUaNTbevks4EOVeGHkL8kSjZCZQWFTCZsl504w== X-Received: by 2002:adf:9c85:: with SMTP id d5mr12098593wre.68.1552915618838; Mon, 18 Mar 2019 06:26:58 -0700 (PDT) Received: from bender.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id j128sm10421601wmb.43.2019.03.18.06.26.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Mar 2019 06:26:58 -0700 (PDT) From: Neil Armstrong To: gregkh@linuxfoundation.org, hminas@synopsys.com, balbi@kernel.org, kishon@ti.com, devicetree@vger.kernel.org Cc: Neil Armstrong , linux-amlogic@lists.infradead.org, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Blumenstingl , Rob Herring Subject: [PATCH v4 1/8] dt-bindings: phy: Add Amlogic G12A USB2 PHY Bindings Date: Mon, 18 Mar 2019 14:26:48 +0100 Message-Id: <20190318132655.30040-2-narmstrong@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190318132655.30040-1-narmstrong@baylibre.com> References: <20190318132655.30040-1-narmstrong@baylibre.com> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add the Amlogic G12A Family USB2 OTG PHY Bindings The PHY can work in host or peripheral modes depending on it's position. Configuration of the mode is part of the USBCTRL registers which are outside of the PHY registers. Signed-off-by: Neil Armstrong Reviewed-by: Martin Blumenstingl Reviewed-by: Rob Herring --- .../bindings/phy/meson-g12a-usb2-phy.txt | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/meson-g12a-usb2-phy.txt diff --git a/Documentation/devicetree/bindings/phy/meson-g12a-usb2-phy.txt b/Documentation/devicetree/bindings/phy/meson-g12a-usb2-phy.txt new file mode 100644 index 000000000000..a6ebc3dea159 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/meson-g12a-usb2-phy.txt @@ -0,0 +1,22 @@ +* Amlogic G12A USB2 PHY binding + +Required properties: +- compatible: Should be "amlogic,meson-g12a-usb2-phy" +- reg: The base address and length of the registers +- #phys-cells: must be 0 (see phy-bindings.txt in this directory) +- clocks: a phandle to the clock of this PHY +- clock-names: must be "xtal" +- resets: a phandle to the reset line of this PHY +- reset-names: must be "phy" +- phy-supply: see phy-bindings.txt in this directory + +Example: + usb2_phy0: phy@36000 { + compatible = "amlogic,g12a-usb2-phy"; + reg = <0x0 0x36000 0x0 0x2000>; + clocks = <&xtal>; + clock-names = "xtal"; + resets = <&reset RESET_USB_PHY21>; + reset-names = "phy"; + #phy-cells = <0>; + };