From patchwork Mon Mar 4 10:38:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 10837607 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 ECC541390 for ; Mon, 4 Mar 2019 10:39:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DA84129979 for ; Mon, 4 Mar 2019 10:39:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CE06929A01; Mon, 4 Mar 2019 10:39:38 +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 6A8E829979 for ; Mon, 4 Mar 2019 10:39:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726298AbfCDKix (ORCPT ); Mon, 4 Mar 2019 05:38:53 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:33301 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726158AbfCDKiw (ORCPT ); Mon, 4 Mar 2019 05:38:52 -0500 Received: by mail-wm1-f67.google.com with SMTP id c13so3659310wmb.0 for ; Mon, 04 Mar 2019 02:38:51 -0800 (PST) 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=g4/2160HSfKd8XRPPiSf9tpXJNBsPMIW29lKAkxpAzVxSTCo1+odo8nErsED55c3Hd Fk6vKBtvwF4CTbqskJVFHe0jucEtvzFfGxZ5xE8+eZUqsuWxQ9+lajW6h8UT+03WPeyC oFfp8zV4pIwGexIOQKQRHn+XWtx/wqdmpT2EuBiycznDrtYlXpr+mdppI22RR+dWXNwR IRG6o+p2ACi7EGjvNSv63f4U+ClhyHz6FCNRr4m+kLgcQeI9h6OSP+NAJv9FRQwpaAiT ItNAjs3SHTwFC8YKLoIKVaYn9+5Mg0Vzm3cYZaCMGJ+fxJkQ4SEikQLEanQO/GdiVZ8v zbJw== 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=KQrC8p/eFsq/dO1AD8KbrsVxz3icBPZ9Wa/+jYXrnjzMnaucZHs6W9/GROLYIbPROB YFUz3Es610xVtgO7PnjDZzuCZHaS3aUeKr7Veoy8UiVjlmj2N78ej5Ob1lQeb1kZ5nxj v5Nkmq1oJbCplluxsQY3v1PpZI1YJlDH6rPQ7KLXxturjY62VMH9xLvz+0ATJ439r3Tz 1l/5T1G7YlVpg53Yh34KkUT24cRefCscM302rXSBv7ht3aZKflTZKiFI9l7ytLGIT8QP KjV2wU4ft4MF3wEhlRXVeXmi0OCZU3twKtJUIb5p9kbZ9hEC9e9MRAMy8y4a081c4F62 JnYA== X-Gm-Message-State: APjAAAVgk9qtksufLoc4V/oJU2VJH5mugRivl6kc8mIPMx3va4ixViup f7ZWLLPKpMRZlPblkWz8b7PBvQ== X-Google-Smtp-Source: APXvYqyDJn4uyzB4Hi/bHTAo8UZVv79cmW8ylPRmDsbPLT+yF4S0bn/iUhQ4ChY6yO2EU2dOJVnNzw== X-Received: by 2002:a7b:cbd1:: with SMTP id n17mr10432625wmi.21.1551695930410; Mon, 04 Mar 2019 02:38:50 -0800 (PST) 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 g24sm5505676wmh.45.2019.03.04.02.38.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 04 Mar 2019 02:38:49 -0800 (PST) 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 v2 1/8] dt-bindings: phy: Add Amlogic G12A USB2 PHY Bindings Date: Mon, 4 Mar 2019 11:38:39 +0100 Message-Id: <20190304103846.2060-2-narmstrong@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190304103846.2060-1-narmstrong@baylibre.com> References: <20190304103846.2060-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>; + };