Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp290494img; Mon, 18 Mar 2019 03:15:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqxKZaXUN7uwr0wPBcmoyiN5NiNUNJLeOEtulzegHLBoTLjoHTEisVYZEJpnA/N22o0OF5Rg X-Received: by 2002:a62:a10c:: with SMTP id b12mr18146155pff.234.1552904138675; Mon, 18 Mar 2019 03:15:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552904138; cv=none; d=google.com; s=arc-20160816; b=PIAuoBd25oJF+nxCtbPEGJG4T8Se9pmd7Az0APRuFRSg6y9fqZ8W4kRaEhnHexOJnR ioJ+sgfSRx3zkxmU4rSa7n1FIp8/j/426jB9tAgl0ibTIuWDkmZeur4poIVt32mULyRc aDkSRvhPdUldmC4vkIOUpy1fOAQg6JGSLaAgTrpS2/Bp9ewIqvjHhGISEaqSZVqg86z2 EkLMOkIGYGvi/FDglm/8XxgjYzxkzG0dUgvO5iH6yUbDcxoInHfxBcYphK4PFfheQstT 3h4ldMls3KHpoRvWJvlQtvcK71fa0gRrdL15WOwwJdEZqRZAUfDj2TgDvXRgrVyWxNhL j3eg== 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=S2taATSeLwYLlK3AoeIDGHb1SmDZDEtC2Zy8s96NWr0=; b=ozqWw47FF5ANxZ8jQAHfgvv0LU8P5nAuppo13cfkTTrpzfn7pSTw9Od6jpcg9HkPSy laPPamy2h17ZRXRtNGhr+ENn537u18UMSon6fK9idtmZ8trCZlhV+rAKD8Bs3ndPsxU7 39j0YPTKPbh5lcRqbAvMviDAA16nNWKh/nfsRXeNP3w7AiVpTuUoAX7pf7nmodF8NRAZ PJqRaa+IDsiXScZgv+JKhY6PWnw4nUusTnZaUjNDVsTddihU6VU73d1KIqyuTgtqfn3m 3HDySNOWc9kCNYIAZVdaB8mjlx9eNB1BJh/NKeoaznwQSBlAm6h7fe+r7srwYGP6+413 lypw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=uZiehy1P; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f3si9382971plf.300.2019.03.18.03.15.24; Mon, 18 Mar 2019 03:15:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=uZiehy1P; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728079AbfCRKMq (ORCPT + 99 others); Mon, 18 Mar 2019 06:12:46 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:36311 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727196AbfCRKL6 (ORCPT ); Mon, 18 Mar 2019 06:11:58 -0400 Received: by mail-wr1-f65.google.com with SMTP id y13so11797568wrd.3 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=hsAzQCj8eoCc1Zc9/xfh3RJzcXjtHwgDM2ReKjGRQK726HVKRIAsdP7a0XZqXeyyfd sjtyCYljAMQWAnwveh82+MZsPYLHFFR0HAFJyP7cU0ahEpz447sBJplOAHko++Pvadzy na2EXDLwLDToWF5qKjWeNTlBtZVqPQHlW2Dxwvt6lo7uAQndbVXk5zHGwSaCoSBSof5v TX1FpzcXBYJMDjl7if+i/iMCX+3HiQHonSoZDL8r6hnL5jlnSz1RiFiD0olMwGrD/XkU cK5nWejruvs7XAaaIvA1qeX1JVI5iohvYyk9LwfngLJrxribg1P5r3EpTLblW+JnckGN IAyA== X-Gm-Message-State: APjAAAW2dzJIvxQPQP6JFMSopkt7GknzHh5jki96nWSTDTqU+qB16vdO M7eSFp/Bzoo4I2epQidChs0Sgw== 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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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>; + }; -- 2.20.1