From patchwork Fri Mar 28 08:28:45 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pin-yen Lin X-Patchwork-Id: 876920 Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (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 72F1918DB2B for ; Fri, 28 Mar 2025 08:30:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743150626; cv=none; b=hTn0EYfyXA8zgTasZ9hyVLSVmvheNIO5hmQIclStFUN85VKYC8sOfbwqiaUBW268ie75fxe65yoMGW7DoCAWDZiMaljV4x4qEwWpBc7NQIPxCoOlfCZFhLbDs4Eq54wPKg+EESIaLXz7MGQjgOhDy8DvhkKwE8MgzT4LGS4CG+w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743150626; c=relaxed/simple; bh=fDqF6O4FnTPiRQdfgNkPd+mtmIU2vY7UGxECVEdgvno=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NgP1X56Ij8JwEAerjiDQjuZkuFWCanntexge0p8zeUpf678UTL0IuEQYxqbQiGYPL0dFivuiKEbtTdBlDwgl+9c2UqeXmqKE5EHEsDznbNaahavnSPRm2ZQmPI6vwzohkU7acze1OP5nVCx3l1GfgEUZb9ZXktHd8JVNCQ/5AeI= 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=VzBf0E0k; arc=none smtp.client-ip=209.85.214.178 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="VzBf0E0k" Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-225477548e1so37025265ad.0 for ; Fri, 28 Mar 2025 01:30:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1743150623; x=1743755423; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=iMvSX3/8MLdcWMy6QaV85qtOi5tjLAdkUxquxvyJjpk=; b=VzBf0E0kLGuYHHdVFN3ZEHUhWfc8i6rVrgAk+EkgWmA2Z5LS/PyRRKgST+muqvzSaI j+zUvu7zs8jMjh3EzXcXPe9HLmGHWM8QErcs5jeizznoYs/jxgy2U864AN6CCoXvACRM 5W1kXrO6XcKsr+3ZsPufFmwo+U8DTvCX404WM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743150623; x=1743755423; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=iMvSX3/8MLdcWMy6QaV85qtOi5tjLAdkUxquxvyJjpk=; b=mhE0u2tIpw6SLuPPMRG4+GcFwkh4h++ExJyIs/3D2YBObdps80nYoLY2+cjxzePfXX z+Jsszs39QsA0g3zrln6ABQ3wDdW/1hg+YE2Za2vMb2nAa+z77nPS3QMa/5RBhAzos4p 5+1c6eficGMN1Kqb7rkdazcE2vkk4zHWHriVD0Qh7RKQp2akxz3MrNpwE/z8Q1V+CG+w ulUIJ5eivL2smjf38CUWJKOch9Xeozo8+L/OpipnNCt1yp2egyUK2/0BG2IEL+rD/Jlh oBy9oPfmIIoolpq0rGVuz31dhJ/Xv9Y+jBPGu5R/bmmP6smKM0n37fdNwLaoTY0RX3+u xRNQ== X-Forwarded-Encrypted: i=1; AJvYcCXp9wetpuV/NTw6puUNiTc2E7KWXHLy8KcuM2Gwpna2wl/EueOdXk8MeaCnNcLa8gVV0lYhCqsqwGI=@vger.kernel.org X-Gm-Message-State: AOJu0YygbRZ9eF7Thn7nFg8u5dK0iULm7xqsakJSk0W+2dgGgxGj7OR6 ouW3w24P+J0QPPDoXkJn0ovg+Fjh47FitcB7NqjdJsvuIP+LKdNJZPhpiigZcw== X-Gm-Gg: ASbGncuM/DdA++7k1emAS7HcJhg6B/tq+LppR7IMP4Kf5it018e7g/AnN5IrqeKHDPO zcapvz2TFZgmbne68hungFklpLLWNed7BmErLEoK2C8ZDUBJ5/W9U9/gbDZtgQTm/FQbVp+2sq/ 5dR0Uk7wdTy4qShcRya4m5TiekSFZZKnCFKpaVH6chzLpIVi+ePJoKc4hmdscoDXnE/OTF70IHC urToFig+xgFFxJbVb8SI5LsG/T0myXmuTQv7F6BtInSeOzQj2Ku6HS09T8ym7pminNyqm1ZXi7J LW2QRs+h+6Xasb7lgGC2VBhzOkui/bbxIg8K3UbE49hJppVxbZv3UBLJ2KI0GeHSNA== X-Google-Smtp-Source: AGHT+IHk5g+zM1oUsjRtviy05Z0HNph2qVB5VdMrxZ+hrOLHHnalDkunfM120pSNG/jfbr5zMflnrg== X-Received: by 2002:a17:902:e886:b0:220:e63c:5b13 with SMTP id d9443c01a7336-2280491c3f4mr112692905ad.46.1743150622552; Fri, 28 Mar 2025 01:30:22 -0700 (PDT) Received: from treapking.tpe.corp.google.com ([2401:fa00:1:10:9004:7029:99b:276]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2291f1ef62asm12283775ad.217.2025.03.28.01.30.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Mar 2025 01:30:22 -0700 (PDT) From: Pin-yen Lin To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Kaehlcke Cc: linux-kernel@vger.kernel.org, Stephen Boyd , linux-usb@vger.kernel.org, Pin-yen Lin , devicetree@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: usb: Add binding for PS5511 hub controller Date: Fri, 28 Mar 2025 16:28:45 +0800 Message-ID: <20250328082950.1473406-1-treapking@chromium.org> X-Mailer: git-send-email 2.49.0.472.ge94155a9ec-goog Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 --- .../bindings/usb/parade,ps5511.yaml | 138 ++++++++++++++++++ 1 file changed, 138 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/parade,ps5511.yaml diff --git a/Documentation/devicetree/bindings/usb/parade,ps5511.yaml b/Documentation/devicetree/bindings/usb/parade,ps5511.yaml new file mode 100644 index 00000000000000..605f94df561428 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/parade,ps5511.yaml @@ -0,0 +1,138 @@ +# 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: 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': + const: 1 + + '#size-cells': + const: 0 + + reset-gpios: + items: + - description: GPIO specifier for GRST# pin. + + vddd11-supply: + description: + 1V1 power supply to the hub + + vdd33-supply: + description: + 3V3 power supply to the hub + + peer-hub: + $ref: /schemas/types.yaml#/definitions/phandle + description: + phandle to the peer hub on the controller. + + 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 + + port@5: + $ref: /schemas/graph.yaml#/properties/port + description: + 5th downstream facing USB port + +required: + - compatible + - reg + - peer-hub + +patternProperties: + '^.*@[1-5]$': + description: The hard wired USB devices + type: object + $ref: /schemas/usb/usb-device.yaml + additionalProperties: true + +additionalProperties: false + +allOf: + - $ref: usb-device.yaml# + - if: + not: + properties: + compatible: + enum: + - usb1da0,usb55a1 + then: + properties: + port@5: false + +examples: + - | + #include + + usb { + #address-cells = <1>; + #size-cells = <0>; + + /* 2.0 hub on port 1 */ + hub_2_0: hub@1 { + compatible = "usb1da0,55a1"; + reg = <1>; + peer-hub = <&hub_3_0>; + #address-cells = <1>; + #size-cells = <0>; + /* USB 2.0 device on port 5 */ + device@5 { + reg = <5>; + compatible = "usb123,4567"; + }; + }; + + /* 3.0 hub on port 2 */ + hub_3_0: hub@2 { + compatible = "usb1da0,5511"; + reg = <2>; + peer-hub = <&hub_2_0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + /* Type-A connector on port 3 */ + port@3 { + reg = <3>; + endpoint { + remote-endpoint = <&usb_a0_ss>; + }; + }; + }; + }; + }; From patchwork Fri Mar 28 08:28:46 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pin-yen Lin X-Patchwork-Id: 877137 Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) (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 D11FB2135A9 for ; Fri, 28 Mar 2025 08:30:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743150628; cv=none; b=ZOwg8WEiV+Avy/CmfrTMvpYICWYNlE6qarHev/sy6cd7D2TTjhM5SGEWREFM3fOUUbbBgmanCIn4fwHGg0igoEdvKX3mOjtcB13NkEpzf67DiNqVz62hT6Yy2ZuNMO7Qhl6Tts83HqzL8UR/aIv/y19GZGZgbEK3b6dpyuF2ATQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743150628; c=relaxed/simple; bh=9HztVfNSSbsFpEOdHla0tUCKIZ0HhA//ZtU7g1Uu4gc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rYxw6PjHqs7I3pcDA4LWpzbo5dSSzvT8l4avdHXLdJo2961KH03HRDiY7cZGCwgM5E4WL81nbDWzE28GkGDEHzoedtbY3podCCDuzX5AcTQKH2SutCbDoVtNhXaIwsoeLNicqswIFYCOhqTHSM2UR4w9eU8ww9VmniJN9PCR/wo= 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=Q4cwuRc2; arc=none smtp.client-ip=209.85.214.181 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="Q4cwuRc2" Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-22622ddcc35so53061395ad.2 for ; Fri, 28 Mar 2025 01:30:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1743150626; x=1743755426; 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=makVc1Wy6ZWe2mpSuhAdO4nGFknj+sYe3vzqlSz4ovw=; b=Q4cwuRc2LSEDvnKeLtulkgb3zJg5sk3KvQXbrXGc/onbQwdDoqG2Lp95c77Elvytiw Hnt4dGsZGyAAsrshsRp7XgqNkhvxkIKP0VNwV8XC1IBmXcIO8elKfS6CStbyg8hOwVPQ O7Kt4ievZ6WDBno7Pq+uBZBLFqo/FKzctrUgs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743150626; x=1743755426; 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=makVc1Wy6ZWe2mpSuhAdO4nGFknj+sYe3vzqlSz4ovw=; b=lr4aHaXExWeuGIKi7+Bt6uyo1/D/3ovCrY3odxHcP7W5FotKIGNeYIMHgTAwz6zj8Q gn2Y8qNguNON7VQRfb1lrqdScnQOHYPBpRJ3mv8VTaWwoXQAQwwgeyN4FQ+Xxy/7FtRP MiLSPYqsil5zMPj4JMZqI87T6pX75QY//j+31iXO+92xXUQl+4tmvz0Fi8YZ7MuOBrit sDQW7WEgVvAaInKx/jG1IA1mfbKe2z76UIgFow//S7f52MW+NX4A9wEctDtfDOQNURNL w8ENlUulsj7yNJ8ouKy+Vw5EmDPk3/vvnn2KPvTeKqgF3UQGQ3l6cOBq8DF7DLIE675L U/eQ== X-Forwarded-Encrypted: i=1; AJvYcCWiKsqbklc7TT0Oo1H0US07PDlq9J0qANkpjPRF2tESXL9YDTd7PSqOB9ijEGY2WrZSGG28Vz0viwI=@vger.kernel.org X-Gm-Message-State: AOJu0YwBrkIrIibg+IusmOG4+ky5eHXO3kjewYPK7IlIdMbovb+uV9Sw qD7SWoC7ydiOtZlfw2CDer+C09EiLIuYw2I0K+QzH7YNoxgXGDFVvEb4ab4JvA== X-Gm-Gg: ASbGnctzziBsSNN2AeBA5kwSHul4c4Ru6gabmJTwuDjCZ+wY/54L1ouPVt9WEiPqFdH fofYixlT7PD47Tz+2lpvTLC5u8K40Pf7gZWaPXZ0y7hiEZTnwDFzriJ0xgWh1ObfjIzUzMTXqU8 R6XvJaaUQadbqAmF+JuTAJ8KkAX1kXIG9vM6WD+kKP99FpD0VBoknNW/gP7fLCS2s/AXwT9NMYO r2HX+qhAelSHlP7jKZH3w6fpY9J5bcKDe+BsOtufqwVDmBA+BbmOM8PLwpilv1cquu631VIS5nb I2jas/B2T9TmJ1IXN6E3FvPnEhwJ3uoDiUbDW/7Oo9ooPkzvLFgeTP+BI4Hu6MmX6Q== X-Google-Smtp-Source: AGHT+IH2qRVjHIYQ63E+yeqheYOjTukGTZ19Dk/wXORZYgbt+7wPPWlRjGtmaSz0/LvLJcESsokEfw== X-Received: by 2002:a17:902:d483:b0:224:256e:5e3f with SMTP id d9443c01a7336-228048c7c17mr112158025ad.25.1743150625904; Fri, 28 Mar 2025 01:30:25 -0700 (PDT) Received: from treapking.tpe.corp.google.com ([2401:fa00:1:10:9004:7029:99b:276]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2291f1ef62asm12283775ad.217.2025.03.28.01.30.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Mar 2025 01:30:25 -0700 (PDT) From: Pin-yen Lin To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Kaehlcke Cc: linux-kernel@vger.kernel.org, Stephen Boyd , linux-usb@vger.kernel.org, Pin-yen Lin , devicetree@vger.kernel.org Subject: [PATCH 2/2] usb: misc: onboard_usb_dev: Add Parade PS5511 hub support Date: Fri, 28 Mar 2025 16:28:46 +0800 Message-ID: <20250328082950.1473406-2-treapking@chromium.org> X-Mailer: git-send-email 2.49.0.472.ge94155a9ec-goog In-Reply-To: <20250328082950.1473406-1-treapking@chromium.org> References: <20250328082950.1473406-1-treapking@chromium.org> Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 --- 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 = { #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[] = { { 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 = { .is_hub = true, }; +static const struct onboard_dev_pdata parade_ps5511_data = { + .reset_us = 500, + .num_supplies = 2, + .supply_names = { "vddd11", "vdd33"}, + .is_hub = true, +}; + static const struct onboard_dev_pdata realtek_rts5411_data = { .reset_us = 0, .num_supplies = 1, @@ -122,6 +129,8 @@ static const struct of_device_id onboard_dev_match[] = { { .compatible = "usbbda,5411", .data = &realtek_rts5411_data, }, { .compatible = "usbbda,414", .data = &realtek_rts5411_data, }, { .compatible = "usbbda,5414", .data = &realtek_rts5411_data, }, + { .compatible = "usb1da0,5511", .data = ¶de_ps5511_data, }, + { .compatible = "usb1da0,55a1", .data = ¶de_ps5511_data, }, { .compatible = "usb2109,817", .data = &vialab_vl817_data, }, { .compatible = "usb2109,2817", .data = &vialab_vl817_data, }, { .compatible = "usb20b1,0013", .data = &xmos_xvf3500_data, },