From nobody Fri Dec 19 19:18:57 2025 Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (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 A05C829617E for ; Tue, 22 Apr 2025 08:30:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745310616; cv=none; b=FyZg/gr71X3Kngnb8nk+FDGs/5vRwH+nk1cYQ6f/XVyIIbybXubI79qWN4kxRz8hBbJ/aFIKawGzmz8jce1pc+3h8rwmBh+Dv7XthB40/4o40xkn9o2Mn7GUPyqNpRqJ9m9LkJo3zJJU089DkcZL9jOXR7UpcgQW8uKUXWmhBXU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745310616; c=relaxed/simple; bh=OLzKae4I998fNj/zk9Djh7y8ZWg4PpchrZAtCztxhu4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=U0dhQJ1f0VTwrBaMi1wibqjRDmrC0IDiPbzKn2rbSVcXViS7VyHg4Az54Xc2N0QB431cLP2OKdTaMZUrmv/G0cdvW9F2in9I2DFJPyt+eeYtTWK8fObI5ByTlMI5ey317f5MQWKCdZMaqKHiM4x3ybb16A/UL6xK8owyk/iYYPw= 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=CONSz473; arc=none smtp.client-ip=209.85.214.174 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="CONSz473" Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-227a8cdd241so54456995ad.3 for ; Tue, 22 Apr 2025 01:30:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1745310614; x=1745915414; 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=HRLvv5HiEyH3iLEdmowlRjZc+EOHCnDKoYX5NsqMYbM=; b=CONSz473HK+jFEPqoN/PAEmGGdoYliUcx604dVbz6E8IckXBgnUXeIvfmjbxHtLu4h pMpdkfbF+z7s5eV56TlaKqOJLzfJsGt9vxeiSz7tMZ4qm4Nih3TeHoQRjQEPw817Qp2J bKkn5oL8xMttlnTFSEnLsM9bdiBHb3iIR/ESU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745310614; x=1745915414; 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=HRLvv5HiEyH3iLEdmowlRjZc+EOHCnDKoYX5NsqMYbM=; b=m5t3PkAtYkztLrGF9oHnpm+8dvNim1Be6VahtRMa3pDVzLil4RuhM+XWtBNCoQcyj3 BI7zVRHM6eZIpsdthOdnxNhQImZsZL4c47J0GGTNp3/Zv2GELbYTVIdVCbLRkuyClX+5 H4SgWV8XUywv6avhHPnrs/JOnxIW5JM6Vq0NF7qOv9AeO+YKLjFatZIHx0ijIgWwFnTw 6VDPwG2GtqxijGi44gCQfA9A1Qal31UfTCtLd4ZTV8QIKPc7yRgZdh2oi6LeA9m4NHQK h4Dnfe4/kZGLvdm4O3P21YWxXhTd5FH20veqgBGQVpokON9yhR4V8Y6Lz3PK+X8TLSY8 ajlw== X-Forwarded-Encrypted: i=1; AJvYcCVCYiLJ6xy9J5gWJS7fEXqt2sGOjVAk4mYK0qL2qYhZmKzjEWLkaNeAVLmyDhO7WOROzK+4i1/ej2DU2y8=@vger.kernel.org X-Gm-Message-State: AOJu0Yw3lsqoNUMTw/YKP2b/DSh+IdcLoOjOWwrgk2Oa3i5HvbEI1bZq +HtD1qYpp7RHvWJHyN4+PUDbLL4qZaeHnGZlzkcus0AH2dQx5/ZqM86TJf4OYw== X-Gm-Gg: ASbGncujU34nPeTttI1eI1qSCvE8mqXgc/0+qFjrftrJaobkQm2Pd6mTf1fib9duEAv NlAJjjG9NOnMycIoT+WM/IXG6jwwwH7Y7O+Z4K1PJXXDdwG1ftcz2GjL270pzJcqetYytluDOXr Owoa/lUe3HDIFhmC/nLpJZKVetHcHsRVZy39Q5J8bFZE2XUsk4bjtJ4Zc1OKNx3bLuKzpsEz1sT 9VQsqEhR47vlbwxPeBbIdFCHlqrZqjsumHHI5l9PsShwWeQJRJpHFLc6fXPJuJZL45zGK7xMrZE UqgzvpBeYsruP1t1YQiUd4A8E5zYDEIRET3vW+yTze1gKwVp771FZmAzWS31Ed9e X-Google-Smtp-Source: AGHT+IGFVBZMSXezmJu45/qaFcB/uHZsgGdMKJG/2+9zUCCtVU6t3oJE9FXRAtpFbxEhMSdiz+OzHw== X-Received: by 2002:a17:902:e5cf:b0:220:d078:eb33 with SMTP id d9443c01a7336-22c536195bdmr221367945ad.36.1745310613817; Tue, 22 Apr 2025 01:30:13 -0700 (PDT) Received: from treapking.tpe.corp.google.com ([2401:fa00:1:10:90d6:56e4:9d90:9df3]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-73dbf8e0be0sm7993576b3a.49.2025.04.22.01.30.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Apr 2025 01:30:13 -0700 (PDT) From: Pin-yen Lin To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Kaehlcke Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Pin-yen Lin , Stephen Boyd , linux-usb@vger.kernel.org Subject: [PATCH v3 2/4] dt-bindings: usb: Add binding for PS5511 hub controller Date: Tue, 22 Apr 2025 16:28:28 +0800 Message-ID: <20250422082957.2058229-3-treapking@chromium.org> X-Mailer: git-send-email 2.49.0.805.g082f7c87e0-goog In-Reply-To: <20250422082957.2058229-1-treapking@chromium.org> References: <20250422082957.2058229-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 Reviewed-by: Rob Herring (Arm) --- Changes in v3: - Remove redundant schemas - Update the schema for downstream ports and devices 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 | 108 ++++++++++++++++++ 1 file changed, 108 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..10d002f09db8af --- /dev/null +++ b/Documentation/devicetree/bindings/usb/parade,ps5511.yaml @@ -0,0 +1,108 @@ +# 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 + + 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 + + patternProperties: + '^port@': + $ref: /schemas/graph.yaml#/properties/port + + properties: + reg: + minimum: 1 + maximum: 5 + +additionalProperties: + properties: + reg: + minimum: 1 + maximum: 5 + +required: + - peer-hub + +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.805.g082f7c87e0-goog