Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3181356pxk; Mon, 28 Sep 2020 10:16:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw94aDyG/fBRkhEv4sadncsTS8XzuBAiWNitKk44FFV3+49/3CEWkbUiFnXfSLsZgiO6wZj X-Received: by 2002:a17:907:20d0:: with SMTP id qq16mr2512825ejb.65.1601313377478; Mon, 28 Sep 2020 10:16:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601313377; cv=none; d=google.com; s=arc-20160816; b=M+fB433KPJAzerlXsbQQj07KrAlD0l92Qe1KwlEQc8Hjdj73TnWdtty1VabW6QljLD bEzfgqTNpigZFAmzsguhjmc6tGNu+EVLqjqsINSqeZNU+jqleq86uqzMuMWZxicTghRE y6K1OTGcjxODo2/06ul/fsfN83mdbsTe8/1AWas4Wl4R7Bo757+nrtgRnBmT/7ts4DnW maU/wNiUBeAWbm1SnlDHiEtaltGYy7RDUn/bEc7LQtab/G2jGgDx5ivIgpbkv3ao3xN/ 7QK3HjoNNZbU2SlTDn7toSJaf6RCRAzfap8bf+Alqm+mO27I30CCOKL3e25+36IfHtp+ DOtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=6LRa3EvjxYw5aX67BhkFrS+Y1RXh3J3rTX/vMwJ4fBY=; b=BC4AFFGGj89vg30JKRg8dgtXg/1bNFsbzv09Y6LypTThjxYDkPtws5acUECl3PlpvK M7a63ZeNG1SRc9zINVhskQJ6kzP2Zw5S+h8ylMA+acqqDHe0gY7p6ZtpYBGKbEU5FAb4 QIZsMJL18NKMviziSru1A5Xn9HuODLdHMggKGx4Sh0fXQJNaemDeFLJOcozhG98WyCg/ MQOyH0wQM7souc6huJMdUI0Uq3C03F7TPtm5qZVOHuxUJxYJNbKqjtz29NzTY6aSGhhs CA08LRXs1R66FiFSXwKv8/Jj6FBfX1AQ0H27fx+zvMnRpDOiAINSbyJ8534qoq7j5vU6 6KYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=fUmFEKMP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lc19si1031495ejb.192.2020.09.28.10.15.52; Mon, 28 Sep 2020 10:16:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=fUmFEKMP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726661AbgI1ROA (ORCPT + 99 others); Mon, 28 Sep 2020 13:14:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726665AbgI1RN7 (ORCPT ); Mon, 28 Sep 2020 13:13:59 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B035C0613CF for ; Mon, 28 Sep 2020 10:13:59 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id mn7so1004648pjb.5 for ; Mon, 28 Sep 2020 10:13:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6LRa3EvjxYw5aX67BhkFrS+Y1RXh3J3rTX/vMwJ4fBY=; b=fUmFEKMPipnra4fmuQoqW2QD7diKt59CdvKRgJUQsIz3kme6UzweIUnkraR8O8Dxe+ Lnj32eVJfWh211rHwYWM214y6149q4KKfvonKPYpPw0+E2VmREcBHn9tBfuDTm6HxMxk DnPAvbL8Hr7mCPlxxhDX5GFz9Ta8qYSDLN2lQ= 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:mime-version :content-transfer-encoding; bh=6LRa3EvjxYw5aX67BhkFrS+Y1RXh3J3rTX/vMwJ4fBY=; b=rQHzW125SUGcdroibP4ufeKKiw8V8VFRnx7YqTFT9XnceMkKfl2Vi6VH/52CT5Gn2e zSOMIuBs3mQ9aPRwUJ21HRO5+5kLScxF7GUkZ7eOo6KuL8Pxaz03g+Y0mEgrCqNXzn/B uck/G7sKX4B+M/359yErnUOCzGow0urLpXnd0tDVdAg8nxIo/XWKR2HcV+q7TsAo/mIu FNeO85fpBsL0FCT/7fLme+4JO/AflExNPR344Ygss0O4ebGNKJ1UYZsIrhEd0/URCbry ldg7Lf6ZL1dWoCUuNGjM8mp2hoTwMoG+EoL05DuptcaCuwX4Q02vQ7drUQlujI8su5d2 rKfA== X-Gm-Message-State: AOAM531ckwg0Dc8u1FhzHrU6PGIhj0SgH2NFR6P2szw4L7bpWBxSi3cE 9WNm0/d5k/Pm3bKBnO/FJKBwRQ== X-Received: by 2002:a17:90a:ca17:: with SMTP id x23mr263620pjt.96.1601313239051; Mon, 28 Sep 2020 10:13:59 -0700 (PDT) Received: from localhost ([2620:15c:202:1:f693:9fff:fef4:e70a]) by smtp.gmail.com with ESMTPSA id gq14sm1869082pjb.44.2020.09.28.10.13.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 28 Sep 2020 10:13:58 -0700 (PDT) From: Matthias Kaehlcke To: Greg Kroah-Hartman , Rob Herring , Frank Rowand Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Bastien Nocera , Stephen Boyd , Douglas Anderson , Alan Stern , Ravi Chandra Sadineni , Krzysztof Kozlowski , devicetree@vger.kernel.org, Peter Chen , Matthias Kaehlcke Subject: [PATCH v4 1/2] dt-bindings: usb: Add binding for discrete onboard USB hubs Date: Mon, 28 Sep 2020 10:13:54 -0700 Message-Id: <20200928101326.v4.1.I248292623d3d0f6a4f0c5bc58478ca3c0062b49a@changeid> X-Mailer: git-send-email 2.28.0.709.gb0816b6eb0-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Discrete onboard USB hubs (an example for such a hub is the Realtek RTS5411) need to be powered and may require initialization of other resources (like GPIOs or clocks) to work properly. This adds a device tree binding for these hubs. Signed-off-by: Matthias Kaehlcke --- (no changes since v3) Changes in v3: - updated commit message - removed recursive reference to $self - adjusted 'compatible' definition to support multiple entries - changed USB controller phandle to be a node Changes in v2: - removed 'wakeup-source' and 'power-off-in-suspend' properties - consistently use spaces for indentation in example .../bindings/usb/onboard_usb_hub.yaml | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/onboard_usb_hub.yaml diff --git a/Documentation/devicetree/bindings/usb/onboard_usb_hub.yaml b/Documentation/devicetree/bindings/usb/onboard_usb_hub.yaml new file mode 100644 index 000000000000..c9783da3e75c --- /dev/null +++ b/Documentation/devicetree/bindings/usb/onboard_usb_hub.yaml @@ -0,0 +1,54 @@ +# SPDX-License-Identifier: GPL-2.0-only or BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/onboard_usb_hub.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Binding for onboard USB hubs + +maintainers: + - Matthias Kaehlcke + +properties: + compatible: + items: + - enum: + - realtek,rts5411 + - const: onboard-usb-hub + + vdd-supply: + description: + phandle to the regulator that provides power to the hub. + +required: + - compatible + - vdd-supply + +examples: + - | + usb_hub: usb-hub { + compatible = "realtek,rts5411", "onboard-usb-hub"; + vdd-supply = <&pp3300_hub>; + }; + + usb_controller { + dr_mode = "host"; + #address-cells = <1>; + #size-cells = <0>; + + /* 2.0 hub on port 1 */ + hub@1 { + compatible = "usbbda,5411"; + reg = <1>; + hub = <&usb_hub>; + }; + + /* 3.0 hub on port 2 */ + hub@2 { + compatible = "usbbda,411"; + reg = <2>; + hub = <&usb_hub>; + }; + }; + +... -- 2.28.0.709.gb0816b6eb0-goog