Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4603813ybl; Mon, 9 Dec 2019 13:46:40 -0800 (PST) X-Google-Smtp-Source: APXvYqzY+45Xve816KX4K3Kqo0Ua4fzYWqnTNM2mW9ehXg2vonEKypYeWMg1MZrkTdLPfltv44j3 X-Received: by 2002:aca:d483:: with SMTP id l125mr1150601oig.124.1575928000867; Mon, 09 Dec 2019 13:46:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575928000; cv=none; d=google.com; s=arc-20160816; b=Lywl82rjMhIoAqJKLChraTo2NhbZyUfJe3GLYFSdr0VZgPWGPBMvKY+qvYS22J8M5R Ar9ORSZdybk52gt1PeUlDpsHCpxfQ/VWjpLDotDIaOqe/6O4FtpQuPVdArIuytVLBwRd qLX2dH89v7jZVu4dwsrDAW6gmq+7I95nw8PaTaV7lfAUjmiW7geM1YN4RbHyquOubrKq 6P6Ak6ZP3OCBwRq1/3nzVo/ND53SGuGbu5vqpyYNmpdxnS+9tYGxmG5NuqRw7UxZ50lr 2OxmTG0gws4Kj3p0gENcBd+DRPEHI8NarPCuTuigIQHYSAlwZ4NTyJs+4wf0k/odJdJP S4GA== 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=7uRAh6au5S8VHEFJ8kt0g9ojSmzLPUJCgOM93b79zJ8=; b=vJ+j4hYaBJBTw47rvd4cBTZlWTjMTfaWbxDXqRRYqZCAPKiNwRpY/ojBWQOpeqdv6Z 9iVB5TTFVeZc0dPWmG1a2LJy1EpdYeMn9iU5M5AI2mmK+lW0sNPhrTcSHp3Dln4bhUSS BG0AAOICi+NDEymoipTEpFOliiwf0/ycABRrIJlXQy6G9e7NjZRkDfHGKUKF8Y0mLb5Y Pjcvfm1A8pm+9GSouFjT+dM1G3ghitZxPLMzucdplKXMjFzde6KJ58vJeY/3WpF+kWqx yEsYEqdFg+aQtHcJJqpFeBvIJ0sr5+1/S9jFylXa+qSXr89N/KS4Ln8h9CefwR9sNtrf iL3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=G0URtA3+; 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 x7si692456oia.165.2019.12.09.13.46.27; Mon, 09 Dec 2019 13:46:40 -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=G0URtA3+; 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 S1727036AbfLIVoK (ORCPT + 99 others); Mon, 9 Dec 2019 16:44:10 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:35814 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726801AbfLIVoI (ORCPT ); Mon, 9 Dec 2019 16:44:08 -0500 Received: by mail-wr1-f68.google.com with SMTP id g17so17858041wro.2; Mon, 09 Dec 2019 13:44:06 -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=7uRAh6au5S8VHEFJ8kt0g9ojSmzLPUJCgOM93b79zJ8=; b=G0URtA3+YhjOgfnfTk1xyzEOECi37eiXK15d5iyEMsphBzzJeQ39MWSP+a+MTo6tRG D1CYesVmGapY8lPTPQ+8k/ziV8CAc48j5i4FL45VteBo98XzN55lml6M29lFD3Y6ft79 DOdTJvXbreaYRxn9nKgga5/YcnEIDwFTT8EOuB3+YznfXlN+O6AdAaCkn+73JzKPrVy0 Bid7cbrVv9unaho7lnBivVHDuA98JuJ9iP7a0GFIALNHsshLU6TYYs+qSlJrrUmYgCN/ PYbezxjYsnHOEpfXG0FPjxWYOZhh31gC5vDNOl2ZWlBlF2+GVud4Fwocz1BLzQqImDSY JWLA== 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=7uRAh6au5S8VHEFJ8kt0g9ojSmzLPUJCgOM93b79zJ8=; b=Sr665iZ5FVE2SVQJP6ayYPyOeNOEn9Rfjjdt135ao7qMI9wT3Z7jfgSS7PkQKiPc9e tyrNVSui2ChdOccZKGPlWfzl4HK4AnFnHkVwSqzATTkzFG+aIrycTUCvciYQZNzufXa4 0CvB3aeoszEKAAHiFYRRuaHoG6MYfwLw598lTZbwliRkPqcUmUrd4m3Q7t2mHR7dVZ2R LRpaCck2M5uC9fYLfm/3LaC1Ro1pu9bsQBoFds6CTjjSljKdEiLg2qR/+h5FfkvPe/gp qaJ4zvYW7xqr8f3Eig+EF/1pXh/ucIv+SFbXavNYur2dToLIEJxnw3rhrRwl8djjL/5D Yu9Q== X-Gm-Message-State: APjAAAVGKGiBBKleGdjOqcKcD+5TuwU7RRpIynzwzEjYa0F4F71plTVv y2bEyqiI+WjxlDTCzB05daND1f8CvoA= X-Received: by 2002:a5d:558d:: with SMTP id i13mr4409299wrv.364.1575927845757; Mon, 09 Dec 2019 13:44:05 -0800 (PST) Received: from stbsrv-and-01.and.broadcom.net ([192.19.231.250]) by smtp.gmail.com with ESMTPSA id z6sm757714wmz.12.2019.12.09.13.44.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2019 13:44:05 -0800 (PST) From: Al Cooper To: linux-kernel@vger.kernel.org Cc: Al Cooper , bcm-kernel-feedback-list@broadcom.com, devicetree@vger.kernel.org, Florian Fainelli , Kishon Vijay Abraham I , linux-arm-kernel@lists.infradead.org, Mark Rutland , Rob Herring , Srinath Mannam Subject: [PATCH v2 resend 06/13] dt-bindings: Add Broadcom STB USB PHY binding document Date: Mon, 9 Dec 2019 16:42:42 -0500 Message-Id: <20191209214249.41137-7-alcooperx@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191209214249.41137-1-alcooperx@gmail.com> References: <20191209214249.41137-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 --- .../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