Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp18856527ybl; Fri, 3 Jan 2020 10:20:37 -0800 (PST) X-Google-Smtp-Source: APXvYqwBVLuT23wNnWLKfSjrV9QkPlEXMjoTiKh3jmaAS5Afiw5/QNP2NxTgXiPCxG9LbI9h0fad X-Received: by 2002:a05:6830:1cd3:: with SMTP id p19mr95318342otg.118.1578075637487; Fri, 03 Jan 2020 10:20:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578075637; cv=none; d=google.com; s=arc-20160816; b=q2juwnfTKpmUYbnvoprvcYAkuzFp1sa+PJ+xqv3pMr6vIDhLq6eEBLRPaMnzN87LBY k9lnzL2sQq+z+JD8YW9IWxCQOicqFuQOIWsSMGcgLgpzpKYMQiznYFA0YgV/iCEIaeQR QV09EHvpEccQRAxDdKfIhzq3JFaiNMHGJUvmTPdyTTOQkBRMkAohLpxKtHa/PvfiTts+ 6tFTKL2vrsruqV69ssc3OZObKZGvzjz03bBJF+soUPusM6jWeuAlADHfMhe+vyGDsM0k yAisNTbnMQVX/DPx485fNdS1Ycfui1i3vPZcbz0nLa57u4WsIkOxuZcq0FZQ6MQbkBRC 3lBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=XKrfYN5NKMOM4AZeJYolb/pgmT2FewkRG32XrCjhEHA=; b=wweSFQJ83CNMAT8+REgC6V6wVTotf7g7Io939KH3iD7cpFYt/ppG+7W8asW8l6tGcd 0vD4bIbYkZTrT4cSO6dnXD8xQQQ4aVYDqIRa189+V7eGQFRKFz1miog4wroQ5T/PUPz+ V3RmkixC6Q7HsApG8JYY9ppzM2r5nQoycn9tX/gZsVjp80vfr+3WBsQImx17YQpdnAkj QcxocAem3AU1S1stPDp+6z7g6u0wqInPe/VmQ+TXxjLeWqoJR/Xp8UL+Kpy6Wwe1klZy MUMPqX7tWt4sDhaibzaDpQhMl0atrrA4qiNmemNPfBFfI9AS/NtFn8Ch5QNewGIc7S1V AEvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AB9YzoSX; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 38si24511323otj.136.2020.01.03.10.20.25; Fri, 03 Jan 2020 10:20:37 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=AB9YzoSX; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728414AbgACSTg (ORCPT + 99 others); Fri, 3 Jan 2020 13:19:36 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:45654 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728384AbgACSTe (ORCPT ); Fri, 3 Jan 2020 13:19:34 -0500 Received: by mail-pl1-f193.google.com with SMTP id b22so19306231pls.12; Fri, 03 Jan 2020 10:19:33 -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=XKrfYN5NKMOM4AZeJYolb/pgmT2FewkRG32XrCjhEHA=; b=AB9YzoSX4kLj6oVOxtPoVAWAM3o/gxxjctKo6bsf3DpMOmGcon5fI8XiEbAqIdnaWQ qBSuyxmf085UoiuIdLMX9Xu+gC1R/CKCTV+9GPYuk4APr/nEOlm42uSs7FLZ8kHVFVbJ JABkupYvmapibVtxXpG33Ma6ovFe+nY1kdeOxlvIuT7+8rlN0YMocTMGtAjKdXZPu3+C tcHjhR8zCACWGCYodMzwHcwBvyoaYHSkOQZfZRPtC9q3fEZQnxiSZxMPSHbjmSN53Omi ZNdaMo2R5szNob1POcSV9wMKGHYRndfhFI4AIYRSAuW+W+lStxDEZvnAXinDexePRsd/ Pz9w== 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=XKrfYN5NKMOM4AZeJYolb/pgmT2FewkRG32XrCjhEHA=; b=OH+Bjzqh7JpA1RhrZGMPQt3nm1r/UmNxy1fN+1Q2stxCXDRegwtY58WQPKhPnZH+F6 fqTbbyNLFJmPEhbaPkWHpxsgZ8zSjJbwR/SxEQzItsfiPvEsUycgwZJ3oVLKJ9EZSr7T XCpe/Oy2FTIg3v+1dlkaDwYXnu6pN9uE5SVTQ7knSjbjPdD80z/wBHs2u2AxnTbOSKx4 MaSojccw2eKMYO+coRizzIJziCvVFPX82qiroE7UjPwY4mg7XjBY0K4NmE9B2OJHdTL1 CWbXsPNlIdjIpnyAKzk0bAYVjHI+4m+nDSC1sLo25TyK63/YL9/xOUwd537P3kMF3Kvq 6L0w== X-Gm-Message-State: APjAAAUcBsDPk/EgrDHF3Ypqu/ZX/gWkZkVsEoLm7NiEein/kCwo4NmK /bD/sBtlDZ8KO2ilwA1qppzZpZKmewg= X-Received: by 2002:a17:902:343:: with SMTP id 61mr41120721pld.332.1578075573151; Fri, 03 Jan 2020 10:19:33 -0800 (PST) Received: from stbsrv-and-01.and.broadcom.net ([192.19.231.250]) by smtp.gmail.com with ESMTPSA id j8sm41783602pfe.182.2020.01.03.10.19.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Jan 2020 10:19:32 -0800 (PST) From: Al Cooper To: linux-kernel@vger.kernel.org Cc: Al Cooper , Kishon Vijay Abraham I , Rob Herring , Mark Rutland , Florian Fainelli , bcm-kernel-feedback-list@broadcom.com (maintainer:BROADCOM BCM7XXX ARM ARCHITECTURE), Srinath Mannam , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-arm-kernel@lists.infradead.org (moderated list:BROADCOM BCM7XXX ARM ARCHITECTURE) Subject: [PATCH v4 06/13] dt-bindings: Add Broadcom STB USB PHY binding document Date: Fri, 3 Jan 2020 13:18:04 -0500 Message-Id: <20200103181811.22939-7-alcooperx@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200103181811.22939-1-alcooperx@gmail.com> References: <20200103181811.22939-1-alcooperx@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for bcm7216 and bcm7211 Signed-off-by: Al Cooper Reviewed-by: Rob Herring --- .../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..698aacbdcfc4 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: wakeup interrupt +- interrupt-names: "wakeup" - 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. +- brcm,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