From patchwork Mon Mar 18 10:11:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 10857271 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 394EF139A for ; Mon, 18 Mar 2019 10:12:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1E65729229 for ; Mon, 18 Mar 2019 10:12:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 114082932C; Mon, 18 Mar 2019 10:12:01 +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 8011E29229 for ; Mon, 18 Mar 2019 10:12:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727137AbfCRKL7 (ORCPT ); Mon, 18 Mar 2019 06:11:59 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:42120 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727193AbfCRKL6 (ORCPT ); Mon, 18 Mar 2019 06:11:58 -0400 Received: by mail-wr1-f65.google.com with SMTP id n9so12224306wrr.9 for ; Mon, 18 Mar 2019 03:11:57 -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=uZiehy1Pkj8HeRnG8b+OAw61mBfpoetMn1l7ItxkS5UIHofyDCMYNNa57xIAKvV3H/ zgvF24rErH0zumgH3DZU162mdwHHwolJ8xCSLAajEG6oFUAhZb4krrCDZBI2gtnJY9P4 pP8V3DgBc51x3+Jh/xUS77339Q4Ylrt35xZpOE6p0FnE33RgcIhFatwcJb3HAdrIbLrg tM7dlmLnz6IRyi9PfLNKMg+IAoHp7aKGp2kpGKotUveF7/6VWAu33LHOfYnFXB+Q2YXu OeLyi+W67Itao4mjZ3IczGWLwZ8PSkBWQUvdXeYPHUz6HE5zoI3DpVlwyGajO0X45qEF jfug== 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=DaZrwBMMT3jnOC+sllBbRXhWKMNMGnHClQdMJp5/rb89tiRJg22WelGNLBkElRCxpY uWcoc3zNofl62XiJN95XE+Fnb8tjMOOVYKeDbSQELlOzBCv6Z1mwjBPgtePSUzSvXW/m p9m1DG6aPRll5bYiyaMB3f7H2ROD3U+aaxQMgO5XxWC53dRSFaFsqNRZWJ2ZL9VRhot/ Ee1sl/ZKdV2NOpu78SdqY6u/78aDFVOeFFlhUDHDQW5AsHd0T2o5bx48gZk4ihb23h/n EPRmqwNznzZ3GQXor4402503gPmakZKuT2KbI//3UB9aR0BFoY9nFLvWtXhxbxG0di3j qGyA== X-Gm-Message-State: APjAAAWCv0ihvPvcIJ3hfpTaWoJjAFX+21g+zv/SkxZlLAn65fMaxuxw 9l649YPPYPB9bOIYBDIYHEOhxw== X-Google-Smtp-Source: APXvYqx4UUWMu3ithhWuFDOAOqWDb3jZ0Zk8xcYwGo0XAgJTOH3zTeBLW6l44V0yX3JPiGrPSnu4NA== X-Received: by 2002:a5d:530f:: with SMTP id e15mr409937wrv.19.1552903917127; Mon, 18 Mar 2019 03:11:57 -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 z8sm6697855wrl.59.2019.03.18.03.11.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Mar 2019 03:11:56 -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 v3 1/8] dt-bindings: phy: Add Amlogic G12A USB2 PHY Bindings Date: Mon, 18 Mar 2019 11:11:46 +0100 Message-Id: <20190318101153.7531-2-narmstrong@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190318101153.7531-1-narmstrong@baylibre.com> References: <20190318101153.7531-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>; + };