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: 14031753 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>; + }; + }; + }; + }; + };