From patchwork Fri Nov 9 14:01:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Cooper X-Patchwork-Id: 995558 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="SGQ8hlAQ"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 42s2Bs56YSz9sCQ for ; Sat, 10 Nov 2018 01:11:33 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728158AbeKIXwR (ORCPT ); Fri, 9 Nov 2018 18:52:17 -0500 Received: from mail-yw1-f65.google.com ([209.85.161.65]:38444 "EHLO mail-yw1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727802AbeKIXwQ (ORCPT ); Fri, 9 Nov 2018 18:52:16 -0500 Received: by mail-yw1-f65.google.com with SMTP id i65-v6so1670446ywc.5; Fri, 09 Nov 2018 06:11:30 -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=AoHUTHGA1zpUa8UUDtSFA1T498oTPkU+IGtUNuwWsLg=; b=SGQ8hlAQ+i/j89KGKLpjQoSfrL64jJyXmL/0NAS++2WDmMG5fPyu8RWIS6QGtBI2Np +oOcGiaD1HLQgRHnzUt1DiM87+49B70e8INoHbc0qUIYXXT0l3Q1ENgpQMkshJ4bSRVy qxjEUaTeoOfMb9A6GtSvPv7juFEqP+0CKr0V8xrPo0080ywVvXRAaHHUWQv+DMqXC/3V ZROzHgczg41K2+XReSIw/NbI+k6Tj3Wqylw8k007wYDBw4MzsQADBxLh0WWAYdnQMYs8 /1P53IO7qnVa8V1ac3b6NJhrWw/JZyYtxFwvL0eloyFTIeTr0fjO/pOpS1DyHIIfTeSM 3hew== 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=AoHUTHGA1zpUa8UUDtSFA1T498oTPkU+IGtUNuwWsLg=; b=SOi4pPlF+2428n0yCp/4mw+sOeApusWWWuNvuF1nIgeI7Hgb9bKqR/L/oi1wFyomg0 Xd5kBC8UnqQC8UkqaqH1e7dfJDXkXUj6vMzMUIiB6tQEJC1vqXgvtyOgk0sq9CamAAOK /BkhX5BdIl0fwwyIJoZelxEnjuk2TnY3iPNQ1zvKNfc6zgQLdZ9K2B/Vxx7BjcJhA4ce RWUTazHLBgZt8VS+ZKfqTqJOHAres8F73mdt07KZARmzeoCcBdWTu2JZOiVTgb21kBjz 55dRtGbgNECQFnCQNp026Mg3aofI81AIFG/nGqD+Q5DLJao8y547SwukKVzaKTvFm2Et K8Gg== X-Gm-Message-State: AGRZ1gKIYqOSSYHYnvnx2Uq5vjVSd6Lwjwyp55UvyxyxYMMAu94iB+s5 4pUlGokmTggMcG6YuD2bhZQPsDGG6E8= X-Google-Smtp-Source: AJdET5diYASp+julG1aE6VQS9GIIna9dVSjcBqXdSxSKsaaWT9u7TG35P+XbPOhmzEvSQH1yeBfXew== X-Received: by 2002:a81:498a:: with SMTP id w132-v6mr8637528ywa.232.1541772689513; Fri, 09 Nov 2018 06:11:29 -0800 (PST) Received: from stbsrv-and-3.and.broadcom.com ([192.19.231.250]) by smtp.gmail.com with ESMTPSA id c6-v6sm7301965ywh.34.2018.11.09.06.11.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Nov 2018 06:11:29 -0800 (PST) From: Al Cooper To: linux-kernel@vger.kernel.org Cc: Al Cooper , Alan Stern , Alban Bedel , Alex Elder , Andrew Morton , Arnd Bergmann , Avi Fishman , bcm-kernel-feedback-list@broadcom.com, Bjorn Andersson , Chunfeng Yun , "David S. Miller" , devicetree@vger.kernel.org, Dmitry Osipenko , Greg Kroah-Hartman , "Gustavo A. R. Silva" , Hans de Goede , James Hogan , Johan Hovold , Kees Cook , linux-usb@vger.kernel.org, Lu Baolu , Mark Rutland , Martin Blumenstingl , Mathias Nyman , Mathias Nyman , Mauro Carvalho Chehab , Rishabh Bhatnagar , Rob Herring , Roger Quadros Subject: [PATCH V4 1/5] dt-bindings: Add Broadcom STB USB support Date: Fri, 9 Nov 2018 09:01:56 -0500 Message-Id: <1541772120-40394-2-git-send-email-alcooperx@gmail.com> X-Mailer: git-send-email 1.9.0.138.g2de3478 In-Reply-To: <1541772120-40394-1-git-send-email-alcooperx@gmail.com> References: <1541772120-40394-1-git-send-email-alcooperx@gmail.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add DT bindings for Broadcom STB USB EHCI and XHCI drivers. Add "phy-supplies-usb-clock" property description to usb-hcd.txt NOTE: The OHCI driver is not included because it uses the generic platform driver. Signed-off-by: Al Cooper Reviewed-by: Rob Herring --- .../devicetree/bindings/usb/brcm,bcm7445-ehci.txt | 24 ++++++++++++++++++++++ Documentation/devicetree/bindings/usb/usb-hcd.txt | 3 +++ Documentation/devicetree/bindings/usb/usb-xhci.txt | 1 + 3 files changed, 28 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/brcm,bcm7445-ehci.txt diff --git a/Documentation/devicetree/bindings/usb/brcm,bcm7445-ehci.txt b/Documentation/devicetree/bindings/usb/brcm,bcm7445-ehci.txt new file mode 100644 index 000000000000..4dea956f2705 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/brcm,bcm7445-ehci.txt @@ -0,0 +1,24 @@ +Broadcom STB USB EHCI controller + +Required properties: +- compatible: should be "brcm,bcm7445-ehci" +- reg: should contain one register range i.e. start and length +- interrupts: description of the interrupt line +- phys: phandle + phy specifier pair + The specifier should be 0 for the OHCI/EHCI PHY +- phy-supplies-usb-clock: See usb-hcd.txt for details. + +Optional properties: +- clocks: A phandle for the EHCI clock + +Example: + +ehci@f0b00300 { + compatible = "brcm,bcm7445-ehci"; + reg = <0xf0b00300 0xa8>; + interrupts = <0x0 0x5a 0x0>; + interrupt-names = "usb0_ehci_0"; + phys = <&usbphy_0 0x0>; + clocks = <&usb20>; + phy-supplies-usb-clock; +}; diff --git a/Documentation/devicetree/bindings/usb/usb-hcd.txt b/Documentation/devicetree/bindings/usb/usb-hcd.txt index 50529b838c9c..6b4755924b15 100644 --- a/Documentation/devicetree/bindings/usb/usb-hcd.txt +++ b/Documentation/devicetree/bindings/usb/usb-hcd.txt @@ -2,6 +2,9 @@ Generic USB HCD (Host Controller Device) Properties Optional properties: - phys: a list of all USB PHYs on this HCD +- phy-supplies-usb-clock: boolean, used for SoCs where the PHY supplies + the usb controller clock. This will prevent the PHY exit from being + called on suspend. Example: &usb1 { diff --git a/Documentation/devicetree/bindings/usb/usb-xhci.txt b/Documentation/devicetree/bindings/usb/usb-xhci.txt index fea8b1545751..f58e617ee54c 100644 --- a/Documentation/devicetree/bindings/usb/usb-xhci.txt +++ b/Documentation/devicetree/bindings/usb/usb-xhci.txt @@ -21,6 +21,7 @@ Required properties: device - "renesas,rcar-gen3-xhci" for a generic R-Car Gen3 or RZ/G2 compatible device + - "brcm,bcm7445-xhci" for Broadcom STB SoCs - "xhci-platform" (deprecated) When compatible with the generic version, nodes must list the