From nobody Fri Dec 19 19:09:45 2025 Received: from mail-pg1-f169.google.com (mail-pg1-f169.google.com [209.85.215.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8760428F528 for ; Tue, 15 Apr 2025 09:42:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744710161; cv=none; b=ERzM82hBaWDjQAdNl/ipIleF8NoDaOF6gbkQKjHNVdoakFGDkDWNQSpb0NrKcoCNIow0hdGQv0WmJSQyuHinM1Gpc86poly74jmqiYz9G7jlN2twYGjqP4/UdqBZBDfdQWcsbIjiydZWQxgAzVTjd9eDbkd28yX4VCuwzX7jwd8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744710161; c=relaxed/simple; bh=u/xh1SzwJolarxDS+l2/MHtZxOawnZxq4T8iPrK6eHE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Coa4MivPunLBAuQnWXDP0Aw6M2+IMxqf85uUYSQeJs7IB4MrPd4Ydfdn8dgp3HMlKTZNaxQ5NKBGGp3uzIyt9Z2pfcFtXYW5QlZzEOXJ1ono1jLKxrWoHmnalSeLGiJ4CpIy9jbmpF00map4mBOlg0uDXXjsETlyi6KAazj1iBA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=N3aFnQd7; arc=none smtp.client-ip=209.85.215.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="N3aFnQd7" Received: by mail-pg1-f169.google.com with SMTP id 41be03b00d2f7-af589091049so3629649a12.1 for ; Tue, 15 Apr 2025 02:42:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1744710159; x=1745314959; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=WqjBaj3EhtrpvOSdInIc8UJK8DAPvGXIW4PIR9rJ1xU=; b=N3aFnQd7apItLEn/o5GVf0a0Dki9x0VLj/8ukbraPcyNNp6c08gDCZ2cFscSP+oLMC ztKl/Tq3mZUAfcNKyKYsVW6YD3blqimcOgFdtmbOHVQ1nRQbwUE/6ycKOot1PHj+OUB5 l4s7f7p+Z6hFrxLH/RxV9H75k2uwSBc9RRCy8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744710159; x=1745314959; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WqjBaj3EhtrpvOSdInIc8UJK8DAPvGXIW4PIR9rJ1xU=; b=P8rKazvKUSki8Fwq2TMoXxLKUfMDERVcUcLrl7rd6bYyxZ82bxB7mQHW6v9Jcqe5LK 8DCXRLlkObST5M72ubp889MZAcMFIEsQB7xEVH4DLbbDXS8HW0pGezldJB6U4RnV8NaD ZYBRFmrAU24w2PPglMP5DPPIs0FLES4L2+5cl4OIw1CQyPp7uzwOgKTwk2QiMA7q3LR+ xTnBZ9fWAx+F5uJRlbHq3oGA3+I/c/WtHZSNef3HH/0cmxowzt/4seGCIasSMFZ7uTWE ++/stHmLJ/QK9+DdFY1ib9TXjjnuqN0jeAilhKmM34K8fQQ4wNP1mVj+vi7MBQrfatdJ ZaRQ== X-Forwarded-Encrypted: i=1; AJvYcCWyR/ETqgZ4NPIhUm6G1tK9gvEfxL58JNcw1sPqDqoGZXnyEen9foUjGKA/cMUrZ8ZdDRSmR2IdeVrI9D4=@vger.kernel.org X-Gm-Message-State: AOJu0YzBhJj6WN3PwkAHnZBTA7RPuQhABUpVal4D6Be8Y2OyMHNwNNGv RrSAWj1NlJiES+NiYi6Q6Us4oFZHFfMp4pTHMXXGBo2ivxf7UpxJkpDQvB2Tkw== X-Gm-Gg: ASbGncvO9+I+KyOoE8Tz3yj96Th1Ih+hbiCg0foTf4TiraMmcgTTSrJRhRAipa+NLo0 0oST59hx5g2VGuTC9Bnxi1KfMuROYGu11ESbbKqzkpljpWNsTOWhdFJea5hK9Knklmtgv+u5pPx QezZgNlSeGzxTDUqYNY2mfmqm6Qf8Fx/0uTMiHTxyiksCuN1O4tliAQk8tfuxmQi+h3xIHRIlmb seyOHtQqiBQEx2la2frLcc9XPJKbTmy2R59V36zfbrF7/+dahZvOLgnZ/Zq3PRmotulF9QZXIit aL0OiGW8j60iDodNeQlCzdXrmxP4c8bViBCOQd83eqWnpkGI/Y8rNZsGR0KfxQ5g X-Google-Smtp-Source: AGHT+IHTPefmEfMnTS/yOpKZkHtZEcW7+f3HO/Nzl4fBj1qjIetkYxcjVASlATaL9A0c6R8fuH9P0w== X-Received: by 2002:a17:90b:274e:b0:2f9:c139:b61f with SMTP id 98e67ed59e1d1-30823670d71mr26179495a91.14.1744710158710; Tue, 15 Apr 2025 02:42:38 -0700 (PDT) Received: from treapking.tpe.corp.google.com ([2401:fa00:1:10:7d0d:86ea:ee84:cd08]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22ac7ccca5asm113135215ad.254.2025.04.15.02.42.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Apr 2025 02:42:38 -0700 (PDT) From: Pin-yen Lin To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Kaehlcke Cc: Stephen Boyd , linux-kernel@vger.kernel.org, Pin-yen Lin , devicetree@vger.kernel.org, linux-usb@vger.kernel.org Subject: [PATCH v2 1/4] dt-bindings: usb: Introduce usb-hub.yaml Date: Tue, 15 Apr 2025 17:41:58 +0800 Message-ID: <20250415094227.3629916-2-treapking@chromium.org> X-Mailer: git-send-email 2.49.0.777.g153de2bbd5-goog In-Reply-To: <20250415094227.3629916-1-treapking@chromium.org> References: <20250415094227.3629916-1-treapking@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Introduce a general USB hub binding that describes downstream ports and hard wired USB devices for on-board USB hubs. Signed-off-by: Pin-yen Lin --- Changes in v2: - New in v2 .../devicetree/bindings/usb/usb-hub.yaml | 91 +++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/usb-hub.yaml diff --git a/Documentation/devicetree/bindings/usb/usb-hub.yaml b/Documenta= tion/devicetree/bindings/usb/usb-hub.yaml new file mode 100644 index 00000000000000..34cd248fa43c2d --- /dev/null +++ b/Documentation/devicetree/bindings/usb/usb-hub.yaml @@ -0,0 +1,91 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/usb-hub.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Generic USB Hub + +maintainers: + - Pin-yen Lin + +allOf: + - $ref: usb-device.yaml# + +properties: + compatible: true + + reg: true + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + peer-hub: + $ref: /schemas/types.yaml#/definitions/phandle + description: + phandle to the peer hub on the controller. + + ports: + $ref: /schemas/graph.yaml#/properties/ports + description: + The downstream facing USB ports + + patternProperties: + "^port@[1-9]$": + $ref: /schemas/graph.yaml#/properties/port + +patternProperties: + '^.*@[1-9]$': + description: The hard wired USB devices + type: object + $ref: /schemas/usb/usb-device.yaml + additionalProperties: true + +required: + - compatible + - reg + +additionalProperties: true + +examples: + - | + usb { + #address-cells =3D <1>; + #size-cells =3D <0>; + + /* 2.0 hub on port 1 */ + hub_2_0: hub@1 { + compatible =3D "usb123,4567"; + reg =3D <1>; + peer-hub =3D <&hub_3_0>; + #address-cells =3D <1>; + #size-cells =3D <0>; + /* USB 2.0 device on port 5 */ + device@5 { + reg =3D <5>; + compatible =3D "usb765,4321"; + }; + }; + + /* 3.0 hub on port 2 */ + hub_3_0: hub@2 { + compatible =3D "usb123,abcd"; + reg =3D <2>; + peer-hub =3D <&hub_2_0>; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + /* Type-A connector on port 3 */ + port@3 { + reg =3D <3>; + endpoint { + remote-endpoint =3D <&usb_a0_ss>; + }; + }; + }; + }; + }; --=20 2.49.0.777.g153de2bbd5-goog From nobody Fri Dec 19 19:09:45 2025 Received: from mail-pj1-f49.google.com (mail-pj1-f49.google.com [209.85.216.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DA75728A1C7 for ; Tue, 15 Apr 2025 09:42:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744710164; cv=none; b=laRyqJdnFAE+ALf2CiAhnhF/2CuPBd28vzA2aqfWhLzDX3BY96WRSMGaQWcRPRH66484jY4mwM8JDYmcMdzfuSKN8iWRo3I3xJzNGwx3SrPQ1GxaTGLQUcF7/s+a5thEFmGasAOeKGpt3zEMZQmf2o2CanFfeYbEwNThN49Xsts= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744710164; c=relaxed/simple; bh=UlpZc9cCqCpIhLMxs5zgaUafyixOE2FIeer5YHLGC3k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TTh5FmlxxqTtoh13eiSEtRKWUSFqCM99RxvkgetE9r11UPmlW8YHzmGWjRU0qoQFAfsiy46x/eXnog7GMXl/VNpxVgHyIGb+Csi6iT+jsig491MtxzFEebKpOHRObXEbPkfeEbwcdZ56eLv0mfzA+wgOqDcTw2Tswpw1ILKA2RI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=I1Copvuz; arc=none smtp.client-ip=209.85.216.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="I1Copvuz" Received: by mail-pj1-f49.google.com with SMTP id 98e67ed59e1d1-301302a328bso5191030a91.2 for ; Tue, 15 Apr 2025 02:42:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1744710161; x=1745314961; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=WnJU5baJ5Eg2/vwwu6yMmjdlQVpJwD/xMPuO2yvaXh0=; b=I1CopvuzRB1tvNhGJQ8CcSz2rk4J7O6xmbOJTn46J9JNSh9hyV5XxcYTveYrmiD7EA SJh9CQwQbk0bm38GhXPtaquK2BaDPM+wg8Dvp5KRR0xSgBzhC9kHYoRuiUac1mCYNUFH Hkk3ls9UxPglE7jjZAvW58f13st0wQOsPHDfU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744710161; x=1745314961; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WnJU5baJ5Eg2/vwwu6yMmjdlQVpJwD/xMPuO2yvaXh0=; b=KJydKTY5JcFYf3lOo8xPGgHCIxPMHs3fqqY+/3jixPJEFzpuvqAUdMfvkyVh59J8qo IIsDag7SoBhnWnA27wgbv3zIf57r5sNulSY5UJqfPnXVfk0aLMp2iCBgBFAhXU+yYEsI rmZCZ0iasaCQ5iLxED6TKUiJRSEn0CYvcvsj4begTY+SJwDNFIC/VtcG/a/iFeUXasci MYhWdDaWUawD6Qrn3NNVLbG9kWzJaqwCKOm3hoQU5dgmkYE1QbW4pEOFcSdXamdT7XuD 1x1Hgs14Wuxh17tp0V6IzWXFmpsEPSOlDVLAQ1w3SB8j85XbwCmj1WkbZ2OnDgRoC9jq EyBQ== X-Forwarded-Encrypted: i=1; AJvYcCVDjoY3IrYvvs0fCo8zmYGHoAzE+sgGxuSIErAC6+6PR6YJC9fjxozja5qCN/5Rlj0yg1dwz9oFKrxu/8Y=@vger.kernel.org X-Gm-Message-State: AOJu0YyURsjCkoATXbRYoLQkV5l3O3YCL6cmZuoynStQVmCv1UTC7zKQ 5k2eMnVnPbIMelwbMQgiQFwaJIAJ1u6/lrugyPZPS5NCrP1+vBes42iaGQqLgw== X-Gm-Gg: ASbGncsJFYlcbMOoTwik4HY+Sy1WxQQQAwTRhtUxcOa44IddlGxCsMQzAOq7m+1LIWl lKYgYNtX8PDiTyeiDlodQDN6JgRoQ5rhVDoraw3nx9a46s8zmyP+PWjhQ0UjSbuZBR8oq+qvIUi s8ls3ivrV3N6hcbwKyLIgGUFH+J50BtKLa7fBT9/IJ0mW0lmohTVVNEdsQlydI/D6zaZqIv+NF1 h9g++ianpRXwMBhgcdMVsAtjhJveP3enR2JNk4+skjIH91G3aSYNBiGi9PnX2fT4GrMc3Bvov0Q i2x0AaULIuHz/VWAeSIPr4sWWdWCb3T7EW3n+Ik1QeZu3HSAxzC7S3B5507Dlu6h X-Google-Smtp-Source: AGHT+IFYEO0FRkq9r8p2esNrZS2XQicrI+beFZYT0XbtFFoj2iHwLBu4VGy6UUvFln6UUpQ4h0D96A== X-Received: by 2002:a17:90b:50ce:b0:2ee:aed6:9ec2 with SMTP id 98e67ed59e1d1-3082363a243mr28381783a91.14.1744710161133; Tue, 15 Apr 2025 02:42:41 -0700 (PDT) Received: from treapking.tpe.corp.google.com ([2401:fa00:1:10:7d0d:86ea:ee84:cd08]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22ac7ccca5asm113135215ad.254.2025.04.15.02.42.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Apr 2025 02:42:40 -0700 (PDT) From: Pin-yen Lin To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Kaehlcke Cc: Stephen Boyd , linux-kernel@vger.kernel.org, Pin-yen Lin , devicetree@vger.kernel.org, linux-usb@vger.kernel.org Subject: [PATCH v2 2/4] dt-bindings: usb: Add binding for PS5511 hub controller Date: Tue, 15 Apr 2025 17:41:59 +0800 Message-ID: <20250415094227.3629916-3-treapking@chromium.org> X-Mailer: git-send-email 2.49.0.777.g153de2bbd5-goog In-Reply-To: <20250415094227.3629916-1-treapking@chromium.org> References: <20250415094227.3629916-1-treapking@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Parade PS5511 is USB hub with 4 USB 3.2 compliant 5Gbps downstream(DS) ports, and 1 extra USB 2.0 downstream port. The hub has one reset pin control and two power supplies (3V3 and 1V1). Signed-off-by: Pin-yen Lin --- Changes in v2: - Inherit usb-hub.yaml - Fix bindings to reject port@5/device@5 for 3.0 hub correctly - Minor string fixes .../bindings/usb/parade,ps5511.yaml | 115 ++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/parade,ps5511.yaml diff --git a/Documentation/devicetree/bindings/usb/parade,ps5511.yaml b/Doc= umentation/devicetree/bindings/usb/parade,ps5511.yaml new file mode 100644 index 00000000000000..86c75d69ee35b2 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/parade,ps5511.yaml @@ -0,0 +1,115 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/parade,ps5511.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Parade PS5511 4+1 Port USB 3.2 Gen 1 Hub Controller + +maintainers: + - Pin-yen Lin + +properties: + compatible: + enum: + - usb1da0,5511 + - usb1da0,55a1 + + reg: true + + '#address-cells': true + + '#size-cells': true + + reset-gpios: + items: + - description: GPIO specifier for RESETB pin. + + vddd11-supply: + description: + 1V1 power supply to the hub + + vdd33-supply: + description: + 3V3 power supply to the hub + + peer-hub: true + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + '#address-cells': true + + '#size-cells': true + + patternProperties: + '^port@[1-5]$': true + + additionalProperties: false + +patternProperties: + '^.*@[1-5]$': true + +required: + - compatible + - reg + - peer-hub + +additionalProperties: false + +allOf: + - $ref: usb-hub.yaml# + - if: + not: + properties: + compatible: + enum: + - usb1da0,55a1 + then: + properties: + ports: + properties: + port@5: false + patternProperties: + '^.*@5$': false + +examples: + - | + usb { + #address-cells =3D <1>; + #size-cells =3D <0>; + + /* 2.0 hub on port 1 */ + hub_2_0: hub@1 { + compatible =3D "usb1da0,55a1"; + reg =3D <1>; + peer-hub =3D <&hub_3_0>; + #address-cells =3D <1>; + #size-cells =3D <0>; + /* USB 2.0 device on port 5 */ + device@5 { + reg =3D <5>; + compatible =3D "usb123,4567"; + }; + }; + + /* 3.0 hub on port 2 */ + hub_3_0: hub@2 { + compatible =3D "usb1da0,5511"; + reg =3D <2>; + peer-hub =3D <&hub_2_0>; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + /* Type-A connector on port 3 */ + port@3 { + reg =3D <3>; + endpoint { + remote-endpoint =3D <&usb_a0_ss>; + }; + }; + }; + }; + }; --=20 2.49.0.777.g153de2bbd5-goog From nobody Fri Dec 19 19:09:45 2025 Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2E117291170 for ; Tue, 15 Apr 2025 09:42:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744710165; cv=none; b=cHNTPb6Ja1zVJxfMqqrQ42Op8IzKx+H/X/4DDHVcEWBILL+sMcQKYvfuammmqriIaD1VpQVTPHH1cezriEH6kobF//KM8nBoGwNUVcasA5MAY/oe80f0P0Qmh5JWkst8P4+3mSSpgCYPJKnHErViwOg0Zsg/iVRknWvNSg5PCoM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744710165; c=relaxed/simple; bh=ONXSgzh9c6IpKB4NMWKJprMd6baGNhHuNXrdpm2GO2Q=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=g5kjg/TUXOpjwOs/iAYxRgoW8EvQOXpYGIZEtMjPkusQlf02RjcPjMxEU2X5bZJQR5Ixajn8LPvsp71XKV+0yPILazlkyEvlOOEBUeLul0sJiEk20mpEFNHWnKRqPpGvErGjegEO2Nk5c8L5oGBMVZxKrdTSYhXbguG8fWXRhtg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=lt5Y2zKE; arc=none smtp.client-ip=209.85.214.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="lt5Y2zKE" Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-224191d92e4so50984815ad.3 for ; Tue, 15 Apr 2025 02:42:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1744710163; x=1745314963; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=EnnKr2l4LbB38k4Mhz6nIOWpASIGRG3czOC4OX6mJP0=; b=lt5Y2zKE50YZBW4KMaeax2b7+VUtHIcyx8zTp4QsHIVNt9oJL0vKXREra0OD9rn3JR 1HDu4gqmzbj0OqPJBLo3aEN48GMxQLKMJCnkbd39Uwtvjlsa3g4+QA6BLDKxivGCTCqc CKAwp5p0sDS3Krj2dLp9gVF46+OH6gZ9k91Gs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744710163; x=1745314963; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EnnKr2l4LbB38k4Mhz6nIOWpASIGRG3czOC4OX6mJP0=; b=kmPU/1SrvaDzg4FIM4E3dWikzdnDiAY6ins520e4sy0L1/nutvWCGXXbmYzVFvR071 Q1+MUqArbjHBhkvNT1/3fFNBvywyI4KibdujfTJS8UaRo+lAsVjqPTYnykV6TIFnMnei UiN1SB0zWZV5SOxOIacL/TzwmnMQ6ndCW7U3ch4GSR+zZ42y2ElUl1ys3pBaOv8h9ol8 cb/dVxG8PVTV+3M1kGZQxh9yka0JGEJALneY5OwuYuEG7OQTt7efJRemNicW+JSw2/qp SDuQH11z1TjUT4o5R5Hqbb2RRsQjGvloEyiTvs/PWxFmZ3kQckEZXGzMgd946Pyr1zil lEIA== X-Forwarded-Encrypted: i=1; AJvYcCVbmgBZQm0cJ3AqgLBPqOqIFTgH9+hGLxuMM+Ddvycsfc6GyYzesXMbvtTsfL8otpZAa/EiGTavcCu8mIQ=@vger.kernel.org X-Gm-Message-State: AOJu0YxXlUe+qc/s2JpGGu2MuHvC8ZrcylAk7ZSaqLFFLLERoTKQQd5m YkxTtlT1PzjOzlDGuoro8J7ls4nErGoxYTa/CkTAaOqzrvP6E1G7YrhkrUlILw== X-Gm-Gg: ASbGncu0ail/CQXMKwV83+zZ1BhQmCHmR3BzUIbqSQyMI2RU/yGTPvwBcLdcGH9IG7D bQWaopCD0rdKxY0yU469Tlmrkd3scFWCUqBfK2rOFNoLQALsPrrS7T0d/VDxfXDhrQxlhgFkv7k shgylGW2ukO3NHjFpKFtkY5JV1XgrYAG3hAv/Dw/lR5DpycJaBiWynJKtKCQpuCcLdGOcpNKd+n 3bF+h5kfy/cl8TiyaFYRcMKn6ZDyIp9w3fXD2EIYqCaogev1MEM+OGJjnvbsJe+3lKsJnFKpQW8 efSUGXkRv7+8OQAdaQ3HMjTGLzyQKor4KauwqvFvs5pF4oa01ghgBfcTV2t0JI7u X-Google-Smtp-Source: AGHT+IE9w43CJv/UOue4t3Qpb3ePg00zQx/RfidlriRmSUsZqjwz6p1TKUXguwdh81XU2yIGyaoZRw== X-Received: by 2002:a17:902:ef0a:b0:21f:2a2:3c8b with SMTP id d9443c01a7336-22bea49d314mr228210365ad.11.1744710163568; Tue, 15 Apr 2025 02:42:43 -0700 (PDT) Received: from treapking.tpe.corp.google.com ([2401:fa00:1:10:7d0d:86ea:ee84:cd08]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22ac7ccca5asm113135215ad.254.2025.04.15.02.42.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Apr 2025 02:42:43 -0700 (PDT) From: Pin-yen Lin To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Kaehlcke Cc: Stephen Boyd , linux-kernel@vger.kernel.org, Pin-yen Lin , devicetree@vger.kernel.org, linux-usb@vger.kernel.org Subject: [PATCH v2 3/4] dt-bindings: usb: realtek,rts5411: Adapt usb-hub.yaml Date: Tue, 15 Apr 2025 17:42:00 +0800 Message-ID: <20250415094227.3629916-4-treapking@chromium.org> X-Mailer: git-send-email 2.49.0.777.g153de2bbd5-goog In-Reply-To: <20250415094227.3629916-1-treapking@chromium.org> References: <20250415094227.3629916-1-treapking@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Inherit usb-hub.yaml and remove duplicated schemas. Signed-off-by: Pin-yen Lin --- Changes in v2: - New in v2 .../bindings/usb/realtek,rts5411.yaml | 47 +++++-------------- 1 file changed, 13 insertions(+), 34 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/realtek,rts5411.yaml b/D= ocumentation/devicetree/bindings/usb/realtek,rts5411.yaml index 6577a61cc07531..52fad201a56c82 100644 --- a/Documentation/devicetree/bindings/usb/realtek,rts5411.yaml +++ b/Documentation/devicetree/bindings/usb/realtek,rts5411.yaml @@ -10,7 +10,7 @@ maintainers: - Matthias Kaehlcke =20 allOf: - - $ref: usb-device.yaml# + - $ref: usb-hub.yaml# =20 properties: compatible: @@ -21,51 +21,30 @@ properties: =20 reg: true =20 - '#address-cells': - const: 1 + '#address-cells': true =20 - '#size-cells': - const: 0 + '#size-cells': true =20 vdd-supply: description: phandle to the regulator that provides power to the hub. =20 - peer-hub: - $ref: /schemas/types.yaml#/definitions/phandle - description: - phandle to the peer hub on the controller. + peer-hub: true =20 ports: $ref: /schemas/graph.yaml#/properties/ports - properties: - port@1: - $ref: /schemas/graph.yaml#/properties/port - description: - 1st downstream facing USB port - - port@2: - $ref: /schemas/graph.yaml#/properties/port - description: - 2nd downstream facing USB port - - port@3: - $ref: /schemas/graph.yaml#/properties/port - description: - 3rd downstream facing USB port - - port@4: - $ref: /schemas/graph.yaml#/properties/port - description: - 4th downstream facing USB port + '#address-cells': true + + '#size-cells': true + + patternProperties: + '^port@[1-4]$': true + + additionalProperties: false =20 patternProperties: - '^.*@[1-4]$': - description: The hard wired USB devices - type: object - $ref: /schemas/usb/usb-device.yaml - additionalProperties: true + '^.*@[1-4]$': true =20 required: - peer-hub --=20 2.49.0.777.g153de2bbd5-goog From nobody Fri Dec 19 19:09:45 2025 Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D794029117B for ; Tue, 15 Apr 2025 09:42:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744710169; cv=none; b=eWnRYfZ7zKxWUOArsqZDPsXr1xVyXxlCiOC6/aQ3aHWK928wtSYUu8U3cc58VxNwsFy8fc2sMlZVmmx/f1vszD+xEtYILGOkhK4u2yH7lz/pR8r5cX8f2HDGejRY+YceWPHFwf0kJdnDgxdpVawDaCElYRHKdF7IExgwEhstisU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744710169; c=relaxed/simple; bh=/nBMOP+mjkengzFCUOyb+JIzXxW87Mah/5W754BehRE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=d1TUFLrV8ah+5xV5tp2hNo5IPKmoOCNRHLmmzOI5YWx8oo4ghy4DEChNvBaBPlXswaiBEogM9/UxFWUVSkPKtKxPsz8GZz/JuW378JRmQx91KWyFmRP+N7u192RtRtq3zjw+L3p81NM9GklLvkCcEq47cjcoXxKKXcgKE4qLL3M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=BZPcIG1T; arc=none smtp.client-ip=209.85.214.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="BZPcIG1T" Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-223fb0f619dso56500475ad.1 for ; Tue, 15 Apr 2025 02:42:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1744710166; x=1745314966; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=YpO334l3cl7LKBvhDLO3AWNd5+6mtKhWKdxedh3WdDQ=; b=BZPcIG1TceCevjooIdZP4m+okVUvdalurOrDFG+JSyMH+8fUQ8EoMXl5R0uZ9vF9t8 fU6bn7dNMmkbJAE7xCIVZEml4jqiJhMQGJjzbWIhNLJzYv79+uKzknFsi5Rg7eORVSNV cHvCJH8QdTWVzLTs2qUsC76wG0V50QTEz9IJw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744710166; x=1745314966; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YpO334l3cl7LKBvhDLO3AWNd5+6mtKhWKdxedh3WdDQ=; b=Owsp3B/Li9cH1R3756lM5LoWxEp6VPOfGTXwfv0IJGyWdJxCChR6ONSZetEsUM0NeK eIhF5BXQOCDhooF+qN/e+iuDt+EV9JyKWiQmZXk8wDmWQzbVPke4XwvLu9cNrawCVt6K xBuE5Jhtra8iEd+k4HlAFhrgKiTn1sjzG+bPdZXpiw4QhoSwk2JF2TceBKdc4ca5IdXO EXKXrIJxeXGTE+TooyFNsgy3m5OzjJRSwtXsqlaIve4ctKg4+mpawi2zngeUMFZUdwtR tEl/hzyeustif//8Mu/rQPAWu/HoGktGnX0XvRJvgxi2SCBYJkLo4rgguPDhxtAO4xKv ID/w== X-Forwarded-Encrypted: i=1; AJvYcCVaWCLUSiHDJMohTvYM7rpdd0x3DXiMaqHgMAJ2mSrE2HBJfpw+LBFe5WjW9yHzb/1O4hLrdVcLiGveA6g=@vger.kernel.org X-Gm-Message-State: AOJu0YzGvcCVXZ+Tx7PBJEbGPammi83MAddKpiVW6RterTOopvV22wAA YlVglPTRViUeqBYgFfD2cvPgGqy3HtG7iYHo9/wEQtxE0+hatU43W0AbaqP0nlbgOmFWSInU708 = X-Gm-Gg: ASbGnct2BX48B3jS+BADk2D0eMpnXGY7tk3AsHEnqmFUaueibwo4pwYymUtaTpZoRRp NcTQdc7hRWQXby+XP7XXd4mptzyjcmGowYwcY0OdoGkrLXRRfvjTU9etYYpdu8lglzt7LkRjfhI e3+RfXbQHyWTqC7ar/MlalExmfACeQ2sd3GsXNG97rJUU331qYBkAthKXT95mrJixpUqhaTJvsI aYhZ6k/L9NXJQgoQK1DsmbQyi6wXRyJL6aZSaczkcwvWR2IXmn6p+mhhnq4GyOC90lKFjU56KvB 898tHWiuyy3lDpC4GEG1c7UWDHnNexs52USZ74USf1dB+N1wGNQ0hb4seIZbjB7B X-Google-Smtp-Source: AGHT+IHBEMPrfPelV2330zwHPA4rKcksLCkHmzMsaQxLYWTxwvUzyGNeqz9IHoGnlcQAVmX7iP454w== X-Received: by 2002:a17:903:2f82:b0:223:fb3a:8631 with SMTP id d9443c01a7336-22bea4bcce9mr224713015ad.24.1744710165999; Tue, 15 Apr 2025 02:42:45 -0700 (PDT) Received: from treapking.tpe.corp.google.com ([2401:fa00:1:10:7d0d:86ea:ee84:cd08]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22ac7ccca5asm113135215ad.254.2025.04.15.02.42.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Apr 2025 02:42:45 -0700 (PDT) From: Pin-yen Lin To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Kaehlcke Cc: Stephen Boyd , linux-kernel@vger.kernel.org, Pin-yen Lin , devicetree@vger.kernel.org, linux-usb@vger.kernel.org Subject: [PATCH v2 4/4] usb: misc: onboard_usb_dev: Add Parade PS5511 hub support Date: Tue, 15 Apr 2025 17:42:01 +0800 Message-ID: <20250415094227.3629916-5-treapking@chromium.org> X-Mailer: git-send-email 2.49.0.777.g153de2bbd5-goog In-Reply-To: <20250415094227.3629916-1-treapking@chromium.org> References: <20250415094227.3629916-1-treapking@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Parade PS5511 is 4+1 port USB 3.2 gen 1 hub with a reset pin and two power supplies (3V3 and 1V1). Add the support for this hub for the reset pin control and power supply. Signed-off-by: Pin-yen Lin --- (no changes since v1) drivers/usb/misc/onboard_usb_dev.c | 3 +++ drivers/usb/misc/onboard_usb_dev.h | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/drivers/usb/misc/onboard_usb_dev.c b/drivers/usb/misc/onboard_= usb_dev.c index 75ac3c6aa92d0d..91b49e58664d6b 100644 --- a/drivers/usb/misc/onboard_usb_dev.c +++ b/drivers/usb/misc/onboard_usb_dev.c @@ -490,6 +490,7 @@ static struct platform_driver onboard_dev_driver =3D { #define VENDOR_ID_CYPRESS 0x04b4 #define VENDOR_ID_GENESYS 0x05e3 #define VENDOR_ID_MICROCHIP 0x0424 +#define VENDOR_ID_PARADE 0x1da0 #define VENDOR_ID_REALTEK 0x0bda #define VENDOR_ID_TI 0x0451 #define VENDOR_ID_VIA 0x2109 @@ -580,6 +581,8 @@ static const struct usb_device_id onboard_dev_id_table[= ] =3D { { USB_DEVICE(VENDOR_ID_MICROCHIP, 0x2517) }, /* USB2517 USB 2.0 HUB */ { USB_DEVICE(VENDOR_ID_MICROCHIP, 0x2744) }, /* USB5744 USB 2.0 HUB */ { USB_DEVICE(VENDOR_ID_MICROCHIP, 0x5744) }, /* USB5744 USB 3.0 HUB */ + { USB_DEVICE(VENDOR_ID_PARADE, 0x5511) }, /* PS5511 USB 3.2 */ + { USB_DEVICE(VENDOR_ID_PARADE, 0x55a1) }, /* PS5511 USB 2.0 */ { USB_DEVICE(VENDOR_ID_REALTEK, 0x0411) }, /* RTS5411 USB 3.1 HUB */ { USB_DEVICE(VENDOR_ID_REALTEK, 0x5411) }, /* RTS5411 USB 2.1 HUB */ { USB_DEVICE(VENDOR_ID_REALTEK, 0x0414) }, /* RTS5414 USB 3.2 HUB */ diff --git a/drivers/usb/misc/onboard_usb_dev.h b/drivers/usb/misc/onboard_= usb_dev.h index 933797a7e0841c..2963689958fc2a 100644 --- a/drivers/usb/misc/onboard_usb_dev.h +++ b/drivers/usb/misc/onboard_usb_dev.h @@ -38,6 +38,13 @@ static const struct onboard_dev_pdata microchip_usb5744_= data =3D { .is_hub =3D true, }; =20 +static const struct onboard_dev_pdata parade_ps5511_data =3D { + .reset_us =3D 500, + .num_supplies =3D 2, + .supply_names =3D { "vddd11", "vdd33"}, + .is_hub =3D true, +}; + static const struct onboard_dev_pdata realtek_rts5411_data =3D { .reset_us =3D 0, .num_supplies =3D 1, @@ -122,6 +129,8 @@ static const struct of_device_id onboard_dev_match[] = =3D { { .compatible =3D "usbbda,5411", .data =3D &realtek_rts5411_data, }, { .compatible =3D "usbbda,414", .data =3D &realtek_rts5411_data, }, { .compatible =3D "usbbda,5414", .data =3D &realtek_rts5411_data, }, + { .compatible =3D "usb1da0,5511", .data =3D ¶de_ps5511_data, }, + { .compatible =3D "usb1da0,55a1", .data =3D ¶de_ps5511_data, }, { .compatible =3D "usb2109,817", .data =3D &vialab_vl817_data, }, { .compatible =3D "usb2109,2817", .data =3D &vialab_vl817_data, }, { .compatible =3D "usb20b1,0013", .data =3D &xmos_xvf3500_data, }, --=20 2.49.0.777.g153de2bbd5-goog