Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3866011pxf; Tue, 6 Apr 2021 02:09:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzybRSz5fQ6kTf6N3tojWElMEc4k19LYwwCKq1Rr9q0AFdim6BSHERTlaWxtX60cfFdDBg7 X-Received: by 2002:a05:6e02:19c6:: with SMTP id r6mr23160370ill.174.1617700141911; Tue, 06 Apr 2021 02:09:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617700141; cv=none; d=google.com; s=arc-20160816; b=N8J4ITXWR+oZsW2IDRivEyFchalKOR5UAmaxvp9/g0CUBehnMvAlFrTsr5E2qDgqGx J4zf2nmi1mmGeZieiAAu04sHorW/EpGmI/zzhq3t8XF8LEXMEn1p/cSI9Gqcrt4aSnWK lV9UufsuHFdFZjcTR3bLCK/RW3I7KB/LVplgj9pjNDbcshXIlbQCbL5g5GM3s2fn5p/M A4TyccF6bVZG6a5CScutsa3rKUUUIx5HCUvDBy9RT0plCdI4XXbn4aP6dg1lzZcBi+h5 QWrZfKYj9nwFEPEQECtyHSRv6bmxDnSDPT8xwfoMIYbELB+s3v5a0NU5/DdR8k2lDzCq KkIw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=USPccDuBErsrLDvo9xZKt8gJcCaFBKn/zm39axGDpig=; b=ufo1Sz9p1Mz7bCiTlPxCCcMEcCaiqybmr/u4I40zrFvmukWrCSPW0PeKFwUQ/AGZgu 7V33bvovATe89pam/ALD7ZvGqIlKKm9BRXwK8ebEZa1b/O6n6fFlix/x4Zld5rSMPZ2G eNAO0DAjvo1DYznzx7Cjl6+T5PiXPp6Pb7aMavFwVcPcJxRjlgCGRVYHYgO2w3EcRhy9 swr16WfpK0lNjls+sLRTLpoCpnbK94kqr0LSEjHJykWMAVgwU7cz9wSZs+UpNJSZpUmJ 9/hSYvcnyDk15r53+88z1ZR6V2EB1lwGJ8pEEPJk8l3ccujziROSEsUj6+Ji14VL8KWg crrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ivLJ4kNs; 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 q7si745803jat.69.2021.04.06.02.08.49; Tue, 06 Apr 2021 02:09:01 -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=ivLJ4kNs; 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 S240715AbhDEUSc (ORCPT + 99 others); Mon, 5 Apr 2021 16:18:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240674AbhDEUS3 (ORCPT ); Mon, 5 Apr 2021 16:18:29 -0400 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57861C06178C for ; Mon, 5 Apr 2021 13:18:23 -0700 (PDT) Received: by mail-pg1-x52d.google.com with SMTP id y32so5628287pga.11 for ; Mon, 05 Apr 2021 13:18:23 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=USPccDuBErsrLDvo9xZKt8gJcCaFBKn/zm39axGDpig=; b=ivLJ4kNskyKx3gkIq2Y10JTtg5e54/ou8XBMfsszwFNQXPnljfa4yyZVeRoGRzDekH 3SgUqx8dcQdPgszpsgfUL8hmwz+nJWc8rCE1v7DjnJW/6uvnuncVeh4F4q8MCzUse59U 31y1IQIvRFPM0Sn76meZ5DPJL5YE2S5HqOJ+A= 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:mime-version:content-transfer-encoding; bh=USPccDuBErsrLDvo9xZKt8gJcCaFBKn/zm39axGDpig=; b=aUyZrY/a4sG2SyUl72HYtKNNSzdmjAG/DGseIM8cJ9gf8TGoS1e4nI+Zl/98gn1k0L VI5hiFpm6olWYGaog6lWmNpE9pjOC7rfMaTK2+Q5JyNqGf3zht0TWRuWc1LeUKS8no47 Bgf5G3aLjE13RBdrjTfQbF/Usj/Ui7hcBXYfzcuU1oUJYlk5ArIusdbioZoptQ2n6Mql km6VIxD0R7XDhYLfPRV8BaCEwzR8db39208Ciwc4wOZDYOuFCavtIqIWRgPzrMfJ5Rdu XeGO8Nfv1tjQmWFb8rfiJm6pjwZ9xn2I7pBD9HFQHJXbZmUcVcusKLTyGb+E1C1WOAmZ 36qA== X-Gm-Message-State: AOAM531UefQTEcbW2YCfD2EJ1N3rlKA2IDcNgwjMHC6Iwn5lcVfYG114 jYPhw8Cf5q9RUUGtuIW4qKAxQw== X-Received: by 2002:a63:338e:: with SMTP id z136mr24333155pgz.115.1617653902952; Mon, 05 Apr 2021 13:18:22 -0700 (PDT) Received: from localhost ([2620:15c:202:201:455e:b8cf:5939:67da]) by smtp.gmail.com with UTF8SMTPSA id v14sm263916pju.19.2021.04.05.13.18.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 05 Apr 2021 13:18:22 -0700 (PDT) From: Matthias Kaehlcke To: Greg Kroah-Hartman , Alan Stern , Rob Herring , Frank Rowand Cc: linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Douglas Anderson , Peter Chen , Michal Simek , linux-usb@vger.kernel.org, Ravi Chandra Sadineni , Bastien Nocera , devicetree@vger.kernel.org, Stephen Boyd , Matthias Kaehlcke Subject: [PATCH v6 1/5] dt-bindings: usb: Add binding for Realtek RTS5411 hub controller Date: Mon, 5 Apr 2021 13:18:13 -0700 Message-Id: <20210405124900.v6.1.I248292623d3d0f6a4f0c5bc58478ca3c0062b49a@changeid> X-Mailer: git-send-email 2.31.0.208.g409f899ff0-goog In-Reply-To: <20210405201817.3977893-1-mka@chromium.org> References: <20210405201817.3977893-1-mka@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Realtek RTS5411 is a USB 3.0 hub controller with 4 ports. This initial version of the binding only describes USB related aspects of the RTS5411, it does not cover the option of connecting the controller as an i2c slave. Signed-off-by: Matthias Kaehlcke --- Changes in v7: - added type ref for 'companion-hub' property Changes in v6: - Realtek binding instead of generic onboard_usb_hub - added 'companion-hub' property - added reference to 'usb-device.yaml' - 'fixed' indentation of compatible entries to keep yamllint happy - added 'additionalProperties' entry - updated commit message Changes in v5: - updated 'title' - only use standard USB compatible strings - deleted 'usb_hub' node - renamed 'usb_controller' node to 'usb-controller' - removed labels from USB nodes - added 'vdd-supply' to USB nodes Changes in v4: - none 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/realtek,rts5411.yaml | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/realtek,rts5411.yaml diff --git a/Documentation/devicetree/bindings/usb/realtek,rts5411.yaml b/Documentation/devicetree/bindings/usb/realtek,rts5411.yaml new file mode 100644 index 000000000000..b59001972749 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/realtek,rts5411.yaml @@ -0,0 +1,59 @@ +# SPDX-License-Identifier: GPL-2.0-only or BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/realtek,rts5411.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Binding for the Realtek RTS5411 USB 3.0 hub controller + +maintainers: + - Matthias Kaehlcke + +allOf: + - $ref: usb-device.yaml# + +properties: + compatible: + items: + - enum: + - usbbda,5411 + - usbbda,411 + + vdd-supply: + description: + phandle to the regulator that provides power to the hub. + + companion-hub: + $ref: '/schemas/types.yaml#/definitions/phandle' + description: + phandle to the companion hub on the controller. + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + usb-controller { + dr_mode = "host"; + #address-cells = <1>; + #size-cells = <0>; + + /* 2.0 hub on port 1 */ + hub_2_0: hub@1 { + compatible = "usbbda,5411"; + reg = <1>; + vdd-supply = <&pp3300_hub>; + companion-hub = <&hub_3_0>; + }; + + /* 3.0 hub on port 2 */ + hub_3_0: hub@2 { + compatible = "usbbda,411"; + reg = <2>; + vdd-supply = <&pp3300_hub>; + companion-hub = <&hub_2_0>; + }; + }; -- 2.31.0.208.g409f899ff0-goog