From nobody Fri Dec 19 19:17:26 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