Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5392990ybl; Tue, 10 Dec 2019 05:24:34 -0800 (PST) X-Google-Smtp-Source: APXvYqwb8yp4F7srUs+tFKJW5N3jC/9WC9YMJkArBPqI1gDb4eHadMX0wOuwgmgX9WrpbyIJsgag X-Received: by 2002:aca:7244:: with SMTP id p65mr3714930oic.50.1575984274611; Tue, 10 Dec 2019 05:24:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575984274; cv=none; d=google.com; s=arc-20160816; b=nOqmXAPi+T4H8JXvZV2r/ORRU/1UEv+7N6rOiyQGg6XqVMLZt7o2s8Aa40S9WEuW5L I7jg//pqR6GH0gyf6hWzuRxR6Xip8oJ6r8DrfHX/4/E5RLSMD6PTQwuUJu6Vnl7xnKh+ XTj8NOTylgwhJJ3FS5xn+VeLwXtZpHNJ4bCUIbajbsc9JQCRcajKpuuBWGy0Yuyf3AlG gGEG+OOu8dvYUjuGNOS6ZnPKU/JH86VbvpufL4Sxl2fexN9cUoEw/PGMVAsDs0MNyikf a8AWW7JIlpqVcHxuT1QsLn+K6r1GVozONy3OmxKxaBb78Hk6SqoXKSXiZSON2Ue4rM6a QJeQ== 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=iagJJ7yA4xvS6+uOXkrVVufA4ZaeIy2HwQkUsdH+fTkBiZWcSYNM+MfdEHUZgKfP5S BEDHhwoKW7KG/rrLRmw+VzXlbTlmNiBjiP/slX/Dh2AJenm6qQLGroDf28urY0+0tgfO lWxIFHyEq6HaYU4OOcra1bCtMqxeD46qK8Zn0Nc/B5Zb3jPGnQru9wtZV1Bd4OJOyZm1 OxDM5/K8KAWoc4HRxHuMTJVgRMjWs09znXitGC62aFFKtfCb4uaZT2vOsozOAce3Iv/M Q3lznIaB/cKtFA6eGBnCf9imRTA79TocRZE9vOcuSTyzwR/euQUxNF1NQf1XJj15+dfx 7jFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tnR93TDF; 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 t26si1686019oth.153.2019.12.10.05.24.21; Tue, 10 Dec 2019 05:24:34 -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=tnR93TDF; 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 S1727531AbfLJNXn (ORCPT + 99 others); Tue, 10 Dec 2019 08:23:43 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:37116 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727502AbfLJNXm (ORCPT ); Tue, 10 Dec 2019 08:23:42 -0500 Received: by mail-wr1-f65.google.com with SMTP id w15so20166167wru.4; Tue, 10 Dec 2019 05:23:41 -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=tnR93TDF2rm4SZzm7xbOhwEWjt2uyFvOEIqNoaM+OnSN38b+NAn7b0KSbDIwhQjuLX bvHUFKY+ArEP0WubXepq5AApAZBQvA39dmWqLp9eimW+v7oFTthIXDysszBKmQyZSiJr z2DwQb+LoajRsV0MHDEezm2u5osSLW3FCqSyHWbQ9OSyAY7Ao5XK0A8YUQu65ClWWPqX 1Z+wip3hKhlvTb4cBuEaixLjzNToIhCTcad4GWvwErgOoxKR7ypzk1+c/dA/+SKNOTPK 6az9xdA9limX0k3/jewb33rc+hhfhDiBDqves3zTpWz2Li+i05zqE64VtfZKPU4R7iwP jyaw== 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=FVucZYfMrwHLguUpPVetHmMRjvTiVQxIihWyAlt+yli0siko30vPEonpN09vRRCxOY ljESKoCT6BLsn5qsR1bCqQvm6+axVe3Cky6Q7qYhYj4w0CE29R+1JcxjNlI8iXPhpZ+P iS4/RYUxjrE005V+xSuLdCt8l48yVCrk9qLYT+NqcOlc1ok3OagLcQ8Rkw1eqDVlDlzI QTMTmq1uxCveWbnoUHIl/RjxpAOd3HIZ1RMiSQHwpivvKdw21rplES+3UuLvgZhrjiLZ tCinlBQRlO0PxVIGs/atOHtDZ7Bo4q/I4em8TulmZj72pZRj1J55reNEWACcY+EX4JhY +Vpw== X-Gm-Message-State: APjAAAWiwJn7EqeqUoetcXiPMMJQrvCVYB4HC0T72HOmqrT1Qwx6WVGA KII7uZPjcoACGSVLPj9dzACp6fZnh2c= X-Received: by 2002:adf:f78e:: with SMTP id q14mr3268071wrp.186.1575984220431; Tue, 10 Dec 2019 05:23:40 -0800 (PST) Received: from stbsrv-and-01.and.broadcom.net ([192.19.231.250]) by smtp.gmail.com with ESMTPSA id s82sm3101680wms.28.2019.12.10.05.23.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Dec 2019 05:23:39 -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 v3 06/13] dt-bindings: Add Broadcom STB USB PHY binding document Date: Tue, 10 Dec 2019 08:21:25 -0500 Message-Id: <20191210132132.41509-7-alcooperx@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191210132132.41509-1-alcooperx@gmail.com> References: <20191210132132.41509-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