From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D6ADC5DF61 for ; Thu, 7 Nov 2019 14:16:38 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 331822178F for ; Thu, 7 Nov 2019 14:16:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="JKCKDvxb"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VoLRxi9I" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 331822178F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=1slLyZCLAd/sVz72x4oi2BQ6jRhDzVCUjRZ6qeCaE7Q=; b=JKCKDvxbA6CZV5QKyLkWiM76Tr vOtFVHhre792b7EEheOAUeDke0oI9QyE0AyR5GpzcRk4gGrOMmzK8aPfylt/U5GnmVzOAVTKeKjAz GnUn3rp5AAcqnfJtkFM97kOySYMopEeiwQsPKilA3EZB3m6qsemLy40lJ2V7FpDrla2GtHSfZ9qOs VWIZ7hqg0PnZNUZ+NmpLqEYtit1IZOkm0Vqg8NcLVZkNX8OiOGQLuuIkKA+C9K3vWiOq8+CHAYM32 +FmRZrzOP1Js/p1XNUvC3nK4vUUQj/RQ6PWl9UjXW012yLm89Ktb3DZdzGUW/RG7B5CLHXLjbql5j ll/YZfxQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iSiaR-0001lA-T4; Thu, 07 Nov 2019 14:16:36 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iSiYc-0007UE-Ln for linux-arm-kernel@lists.infradead.org; Thu, 07 Nov 2019 14:14:46 +0000 Received: by mail-wr1-x443.google.com with SMTP id w30so3266603wra.0 for ; Thu, 07 Nov 2019 06:14:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=qQkdWA3lEACt86S/mJnBmrJY3yzrUI9GeVd03ddadsY=; b=VoLRxi9IDpuxSev8FNUDfJpD12TV+crO/pzmDpaXQ0r3GwZZcojN6YJxBLkrkLLF3H T7TU0e30KcCMebo0TE5ncftiMNe3ktJvIVHXb3QRqZ7q4GYQJkQnImzZsUqWKlLZqI9i tQlTH5tryNOHGl52CXDN9qMvWGrR9H5Gg878WtRu7Coez/7W1uDOhHgY97OOEgjblq8q mTEegIqL0oG6rCjWdBNlhatVko4+jmzfVPMgILv+V/4LfoTExf6skBH6dFOt/6bLwHE1 x8P9dhmLHxzjluSAF5yH9swpr1vo9NyIp1/Y1xmsrOzF6J/ea2G5BHheRV60FJr4Re07 dPvg== 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; bh=qQkdWA3lEACt86S/mJnBmrJY3yzrUI9GeVd03ddadsY=; b=YkQR5qM+mtF1HbUobuSOaH6yD7dmdA6RbfiBPiSk1Gk3Qb1yLbOsxgqW0Zn6PyAf2o 25yca9Gpq1IkAu6+8SjrnalNtEUbo+MX6vWeJG+VLrbk+R3X+gLlg2YPmz05iWKVCIWq Asc6rK0Jedc6D4SfVWCL8S50HzRdnYlGkw356GhzS7Rm6Axuq1mSxun7LHaI8nyCI/yg Cdg4SBKYGXU8R4EaVdhHMEHWsutGngQCthfE56Up+1loLs7Ic+vQIBT8k08GfOqXGizt CYk+5+yogTzweoaBUrBEkAtGbezlm9vZmZzBXMLqk/Rfu16Y/jWq/Qb6tF4Govx0zhA+ +wLA== X-Gm-Message-State: APjAAAW0GAJkcoHTD5P5WATpBwrFWKAg+04FZ+6MEmzRa8N0UY7mUH7x fevIZjNkgL24mEXJ8ianX80= X-Google-Smtp-Source: APXvYqyc97f2zDaE8qWrIrt73DXXVKDZIoU3NdVG2oVHvWOjSCUv7QWvznDFgRq5lMGCPSVR2imCmQ== X-Received: by 2002:adf:dbc3:: with SMTP id e3mr773979wrj.185.1573136080477; Thu, 07 Nov 2019 06:14:40 -0800 (PST) Received: from stbsrv-and-01.and.broadcom.net ([192.19.231.250]) by smtp.gmail.com with ESMTPSA id b1sm2453888wrw.77.2019.11.07.06.14.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Nov 2019 06:14:40 -0800 (PST) From: Al Cooper To: linux-kernel@vger.kernel.org Subject: [PATCH 06/13] dt-bindings: Add Broadcom STB USB PHY binding document Date: Thu, 7 Nov 2019 09:13:32 -0500 Message-Id: <20191107141339.6079-7-alcooperx@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191107141339.6079-1-alcooperx@gmail.com> References: <20191107141339.6079-1-alcooperx@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191107_061442_822353_EA719D47 X-CRM114-Status: GOOD ( 14.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Florian Fainelli , Al Cooper , Kishon Vijay Abraham I , Rob Herring , bcm-kernel-feedback-list@broadcom.com, Srinath Mannam , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add support for bcm7216 and bcm7211 Signed-off-by: Al Cooper --- .../bindings/phy/brcm,brcmstb-usb-phy.txt | 69 +++++++++++++++---- 1 file changed, 56 insertions(+), 13 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/brcm,brcmstb-usb-phy.txt b/Documentation/devicetree/bindings/phy/brcm,brcmstb-usb-phy.txt index 24a0d06acd1d..14184cec15dc 100644 --- a/Documentation/devicetree/bindings/phy/brcm,brcmstb-usb-phy.txt +++ b/Documentation/devicetree/bindings/phy/brcm,brcmstb-usb-phy.txt @@ -1,30 +1,49 @@ Broadcom STB USB PHY Required properties: - - compatible: brcm,brcmstb-usb-phy - - reg: two offset and length pairs. - The first pair specifies a manditory set of memory mapped - registers used for general control of the PHY. - The second pair specifies optional registers used by some of - the SoCs that support USB 3.x - - #phy-cells: Shall be 1 as it expects one argument for setting - the type of the PHY. Possible values are: - - PHY_TYPE_USB2 for USB1.1/2.0 PHY - - PHY_TYPE_USB3 for USB3.x PHY +- compatible: should be one of + "brcm,brcmstb-usb-phy" + "brcm,bcm7216-usb-phy" + "brcm,bcm7211-usb-phy" + +- reg and reg-names properties requirements are specific to the + compatible string. + "brcm,brcmstb-usb-phy": + - reg: 1 or 2 offset and length pairs. One for the base CTRL registers + and an optional pair for systems with USB 3.x support + - reg-names: not specified + "brcm,bcm7216-usb-phy": + - reg: 3 offset and length pairs for CTRL, XHCI_EC and XHCI_GBL + registers + - reg-names: "ctrl", "xhci_ec", "xhci_gbl" + "brcm,bcm7211-usb-phy": + - reg: 5 offset and length pairs for CTRL, XHCI_EC, XHCI_GBL, + USB_PHY and USB_MDIO registers and an optional pair + for the BDC registers + - reg-names: "ctrl", "xhci_ec", "xhci_gbl", "usb_phy", "usb_mdio", "bdc_ec" + +- #phy-cells: Shall be 1 as it expects one argument for setting + the type of the PHY. Possible values are: + - PHY_TYPE_USB2 for USB1.1/2.0 PHY + - PHY_TYPE_USB3 for USB3.x PHY Optional Properties: - clocks : clock phandles. - clock-names: String, clock name. +- interrupts: wake interrupt +- interrupt-names: "wake" - brcm,ipp: Boolean, Invert Port Power. Possible values are: 0 (Don't invert), 1 (Invert) - brcm,ioc: Boolean, Invert Over Current detection. Possible values are: 0 (Don't invert), 1 (Invert) -NOTE: one or both of the following two properties must be set -- brcm,has-xhci: Boolean indicating the phy has an XHCI phy. -- brcm,has-eohci: Boolean indicating the phy has an EHCI/OHCI phy. - dr_mode: String, PHY Device mode. Possible values are: "host", "peripheral ", "drd" or "typec-pd" If this property is not defined, the phy will default to "host" mode. +- syscon-piarbctl: phandle to syscon for handling config registers +NOTE: one or both of the following two properties must be set +- brcm,has-xhci: Boolean indicating the phy has an XHCI phy. +- brcm,has-eohci: Boolean indicating the phy has an EHCI/OHCI phy. + Example: @@ -41,3 +60,27 @@ usbphy_0: usb-phy@f0470200 { clocks = <&usb20>, <&usb30>; clock-names = "sw_usb", "sw_usb3"; }; + +usb-phy@29f0200 { + reg = <0x29f0200 0x200>, + <0x29c0880 0x30>, + <0x29cc100 0x534>, + <0x2808000 0x24>, + <0x2980080 0x8>; + reg-names = "ctrl", + "xhci_ec", + "xhci_gbl", + "usb_phy", + "usb_mdio"; + brcm,ioc = <0x0>; + brcm,ipp = <0x0>; + compatible = "brcm,bcm7211-usb-phy"; + interrupts = <0x30>; + interrupt-parent = <&vpu_intr1_nosec_intc>; + interrupt-names = "wake"; + #phy-cells = <0x1>; + brcm,has-xhci; + syscon-piarbctl = <&syscon_piarbctl>; + clocks = <&scmi_clk 256>; + clock-names = "sw_usb"; +}; -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel