From patchwork Mon Mar 25 09:39:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 10868497 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 4D5FD13B5 for ; Mon, 25 Mar 2019 09:40:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 32B982911A for ; Mon, 25 Mar 2019 09:40:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 238172914B; Mon, 25 Mar 2019 09:40:21 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B841F2911A for ; Mon, 25 Mar 2019 09:40:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=AXFqnNgXS3TY2vboY+oVkFFnAZ8tWIWiLdA25G4z5mI=; b=kgwyEg5Jw2DHIT BYSjCVDTa3ds1EmGWRj5uBNZVNNwjKTHljeLmlABUJLXOvjbB79CtteP/scjFC0Fj5T9P4CNahrC7 GfVsExOVn27Y9GcLj/t3GcohpVG3zX5MhLsEsaxcsdPx/xR7DDmizfrEolQcr13Mi90UwWB/RuzIU G1wzyLnhOZALz6MQPoMdGPntd38Kf/Dz7Svn9gX8pIOvie8NVvedOp/JDNQNwEcUFJOz6DV1ZBfQu k3of7MXjvQtrth/VSt5Z+cteMGy89Pf/SEaoIDopauXxUiGSy16h9jMy9pBsBVL3Evpdj8gKsNK65 rDGYHYsm84yhclBvewzQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h8M5Z-0004U7-V6; Mon, 25 Mar 2019 09:40:17 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h8M58-0002oS-Q1 for linux-arm-kernel@lists.infradead.org; Mon, 25 Mar 2019 09:39:53 +0000 Received: by mail-wm1-x344.google.com with SMTP id z6so9166542wmi.0 for ; Mon, 25 Mar 2019 02:39:50 -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=g86iJMmpiIt9uJMirQpX2pfFVqCHdpc9EgHcmLnnmyI=; b=FoNmwejJhwIsa/yIr0o07fBLozFX+B3AGuqWnUtaK9pzq2etU/8aTZtImiqPYwWTSy nSaEYD6px13HssAhAXbQ82tFx3ZZ5GOSXwpL1TzBzm2nLX+WUy2KKJ+1DqPt4oix2R+u NqLx3nJN3twNPkzQTZUYO+9g0mKyLJFDBoSz1AHgjmg+ReSnCDk5qdsP7P5zYdajP8v0 TCfEwoliwOtl9Xot5eYpby0hisYoEv/QSIAeOEG1wz71a6hZQlfY03ULj1axliSS2tOm H1VL37KDP6c8cko4mR9AkVgE/w++Mn7AEYzBqc/cXx35DFhr6vBJO5k9KUNIksnMyTpV vWhA== 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=g86iJMmpiIt9uJMirQpX2pfFVqCHdpc9EgHcmLnnmyI=; b=qomZFh1cUip663k46yBITPFO5qHP4/R2Reec0YRX0EunrGpu+ivne626+hYdVyez93 oeiqnxGFDhdje6GI2cP0JragkrzmX/zVJn4eIbVRltU3Og/oJGoh1fO+pKBKxjM1AFDD GTFoKVOnjSPWOyX8DhwOzY23uWqrb+X85aP4Lv+qRP/3FCBGzDW/96sYBwAXEZVsaO11 RvpdlfDiLqROq6U9/J3naao48CsEACn1BNHN0NUs2GPun1vlOMC8BRBnCHji22QShP56 6LUPCRf+6N1Kbwq6WIfO5ynuxiIxjFfYGMLM8oHulR0cr8mDNQQ7ErN6jXXtTBOGNnF9 4jMg== X-Gm-Message-State: APjAAAU4FEvHQKqWyoeFKVo31XrFMNyxHTUhwV0VXZcmwQFswQpc6jxy PieEVQ+oU2ZY+Q4W0Jbt593ilA== X-Google-Smtp-Source: APXvYqygtNeUJ0rqGLjj8WeuR8//m+ZExOBwhEdmf9mhGsKp1CYtOB+g85yFZFKgtCbjW1N38o91fg== X-Received: by 2002:a1c:3944:: with SMTP id g65mr10452741wma.34.1553506787409; Mon, 25 Mar 2019 02:39:47 -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 k14sm13044652wmj.26.2019.03.25.02.39.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 25 Mar 2019 02:39:46 -0700 (PDT) From: Neil Armstrong To: gregkh@linuxfoundation.org, hminas@synopsys.com, balbi@kernel.org, kishon@ti.com, devicetree@vger.kernel.org Subject: [PATCH v5 1/8] dt-bindings: phy: Add Amlogic G12A USB2 PHY Bindings Date: Mon, 25 Mar 2019 10:39:36 +0100 Message-Id: <20190325093943.29138-2-narmstrong@baylibre.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190325093943.29138-1-narmstrong@baylibre.com> References: <20190325093943.29138-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190325_023950_838220_AC938395 X-CRM114-Status: GOOD ( 12.43 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Neil Armstrong , Martin Blumenstingl , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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>; + };