From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (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 2EF963DA5A8 for ; Wed, 18 Mar 2026 14:33:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773844395; cv=none; b=sa4HD7YwdHlhBzuISrTbdWivXF7J+HlhYkGlQ46EHtAbBtjkwEmO1iibWHnTMlEJv792PHZ+OLzfvCdsDEYRjTDhCtNxrclWjeQ01W9WNQA0yQhaa38RSXPqv9Qgzf1bRxYXqF/a7nJFW4FQEc3Vmu9L8skgtQmUIva3cf3NTcM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773844395; c=relaxed/simple; bh=hPnozSgqnYTOtRcflEokCMCaBCLnXXWPrNJFmfU/cPY=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=JFjHzDcZ/DJIPyGK/KieEI3nfDveK2sKuEw1ONX1H66RjE1DKqr22G1W6w0YV2bf6722I3mxmoxjJ97EigsfQ7teA1lh/uU1WKJzmHGCbhgrbIGdVnYxUkG+DBGRZ5jOU4p3xJSqv0akBadvyIKIDCkKjkmbXWa7pOBXMEdCwhU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=flipper.net; spf=pass smtp.mailfrom=flipper.net; dkim=pass (2048-bit key) header.d=flipper.net header.i=@flipper.net header.b=ODjR7wxq; arc=none smtp.client-ip=209.85.128.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=flipper.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flipper.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=flipper.net header.i=@flipper.net header.b="ODjR7wxq" Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-48535a0ef86so57677755e9.1 for ; Wed, 18 Mar 2026 07:33:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flipper.net; s=google; t=1773844391; x=1774449191; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=kMQM3TQmX/3PoqKaquuCSb30y26xWFnUEXhCi5bjZZs=; b=ODjR7wxqioj2e9+lp6UeFCgD/l5mOcT9+uBnEnWHwQX9kVuKNJsoPa+ODRQNs9Ad7R 5KZgZ7sY1dU3AKmTJCQa5Azb4aCbr//+6P0lpsqyn3agrvcEydSC6qGuobPJqGjcO/Vk yioJiJ7nL+oE/kOZEyMqm55zOiZ+7vVFyjC5KLd6HxI7WqaKR1AdYq2VnrtaZCDFtEBg TKXbh+4bkcS8XGmkGBzMTkxZGgc43Vf39HznDlejqixyOmLtPJmHq1gPwZPWeCvnz/Yd OjX5VpqgHJCxDBaoyMkM960jrZ7TuXMyXL3GbOPmn13TzlqJ7YfH7ZDCavpLxY/lUx3U gf2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773844391; x=1774449191; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=kMQM3TQmX/3PoqKaquuCSb30y26xWFnUEXhCi5bjZZs=; b=qMDFQgpVwUvmjqt/YquPlGkOi9P9X6O+tI6JPXTpzy/JwMP+ATm6H8ZmtVISAFipPL 9C3QtBEtsMj0I6y+et8steIEMj+jThvhJQpqMp2ePIg0kHuke5/NLIrEp3dLTqDXYA6l IUDzx4j6S4J6nCmigja456QucSQ9jNxohgVnLM87LZKRgxk08ajoC1vrLuOQtfWn4bnS OuvZAQSqVDpy4lyUbRsL819F2tZ2HkutLoan7muIFD//xcZJM69mJOn4rGA73fsmNlmp a+VCt8Y/n+MatGtAm8WYUm35/od/HVIoqMYdzTBQCD43enUV7FmQHVSvyt2munnL/EWa 8MaA== X-Forwarded-Encrypted: i=1; AJvYcCXsRMgg9YsHE9BF96GccTQhHwRHM/JzXTtV/CQS1dDE7+oECEOcXwKsHO9y3YaQUGjYRGralHwxirQ+@vger.kernel.org X-Gm-Message-State: AOJu0YzkkK5neX7ysg1M96Pf1FI8q0LkWjuoRtI5ZhtgEUSDYCJJcAgk /ZnMPxhnBnA4felKvMipeNaO8w3+2M2NKZwzcXiDsgHgU0Nc7ga2hUN/823TA9PBQ8o= X-Gm-Gg: ATEYQzzf7WV2wn9HFfLsvFbLxLokjhJkz1mvbFeBOzMVhhrjtFaUC0G0AsnEfn3yWEC z+SwFtR0cbiruFwNgrH+GQyucscuBuVCWUJRemTV78wqapZNx4sU0AzcTjlEvUw1Po7cE2Rg3Y+ 964xzCVaz6m2pB9CjUdP0nvm1l5ro2NvMMeMo4MxpHHheXjesyIQFtiC2BGGPHBAbiU7f7ns3qo H3zskRwjVYhWce1vdAG7erczryWp2nOlNnDIdOH8etw2947OBZ5ur2rucIOmzUYyM+R+lS9G1Oh 0IJS++/t9SkmMWJi5n4QjNe0iW7vOtd4ltE0qoq1VPjwm10uJFr4IzUcmeIkKXj6mWtYj65/yP6 X5oe4IT2+60BMakBTN+8F57cGoK5Vy9RfOih05M2HtMNkzf35xPtko11uILEULeUy8p+0oxGiTU jtCObY1mopqmKgob1bYii2Oi4W/Dv916uU7qRNRFjI3IrVuX8xBeu84d54Kups/RGg2kFNbTMpL M30Yg== X-Received: by 2002:a05:600c:3e0e:b0:485:4eaf:eb14 with SMTP id 5b1f17b1804b1-486f4475054mr60737565e9.21.1773844391115; Wed, 18 Mar 2026 07:33:11 -0700 (PDT) Received: from alchark-surface.localdomain (bba-86-98-192-109.alshamil.net.ae. [86.98.192.109]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4856ea8fb0dsm270642085e9.3.2026.03.18.07.33.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Mar 2026 07:33:10 -0700 (PDT) From: Alexey Charkov Subject: [PATCH v4 0/4] Add HUSB311 Type-C controller Date: Wed, 18 Mar 2026 18:32:52 +0400 Message-Id: <20260318-husb311-v4-0-69e029255430@flipper.net> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAJS3umkC/2XMQQ6CMBCF4auQrq1hpkLBlfcwLpg6lSYGSItEQ 7i7BWPAuHyT+f5RBPaOgzgmo/A8uODaJo7DLhGmrpobS3eNW2CKeQqQyfoRSAFILIGIoNJa5yJ +d56tey6l8yXu2oW+9a8lPMB8/TRm+20MIFNpMSNDWWGs1Sd7d13Hft9wL+bKgFupV4lRpsqAN mWRV8T/Um1lsUoVJZJCzqFEKs2vnKbpDZNYZrQUAQAA X-Change-ID: 20260115-husb311-291bbb1a7776 To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heikki Krogerus , Greg Kroah-Hartman , Gene Chen , Yuanshen Cao Cc: Sebastian Reichel , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Krzysztof Kozlowski , Alexey Charkov , Conor Dooley X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=3101; i=alchark@flipper.net; h=from:subject:message-id; bh=hPnozSgqnYTOtRcflEokCMCaBCLnXXWPrNJFmfU/cPY=; b=owGbwMvMwCW2adGNfoHIK0sZT6slMWTu2r5k+vf/32MDdRte2UWfEmi1m/76dpBpyiZH44pf1 +94fZGu65jIwiDGxWAppsgy99sS26lGfLN2eXh8hZnDygQyRFqkgQEIWBj4chPzSo10jPRMtQ31 DA11jHWMGLg4BWCqzXUZ/mlXr/DtURS7uiDMrffsP2nvvnUuV2ST32TtF/W/8zyC14WRYVKdsXb zjytsyS8XZJ49dVnp52GDWZdq/+m3LFb7o+X9hB8A X-Developer-Key: i=alchark@flipper.net; a=openpgp; fpr=9DF6A43D95320E9ABA4848F5B2A2D88F1059D4A5 HUSB311 is a drop-in replacement for RT1711H, used in Rockchip RK3576 EVB1 board and some other boards closely following the reference schematic. The existing RT1711H driver seems to work fine with HUSB311, and publicly available documentation does not provide enough information for HUSB311 to identify any meaningful differences, so this series wires up the existing driver to treat HUSB311 in the same way it treats RT1711H, by the way of introducing fallback compatibles in the binding and removing unnecessary VID/PID/DID checks from the driver. Note that patches 2 and 4 are on top of commits by Yanshen Cao which are currently in next but not in master. Maybe they can be squashed in full or in part to reduce churn, if we agree on using fallback compatibles. >From what I can tell, ET7304 can also be used with a fallback compatible alone and without driver changes once VID/PID/DID checks are removed (I don't see it used in any DTS in either mainline or next yet, though) Signed-off-by: Alexey Charkov --- Changes in v4: - Picked up the review tag from Heikki Krogerus (thanks!) - Kept the format of "enum" for the single-value compatibles instead of converting them to "const" entries directly under "oneOf" (thanks Krzysztof) - Clarify the commit message stating that ET7304 is identical to RT1715 except for its VID value (thanks Krzysztof) - Adjusted the style of the "Link:" tag with [1] in it (thanks Krzysztof) - Link to v3: https://lore.kernel.org/r/20260318-husb311-v3-0-2b32e6192b9c@flipper.net Changes in v3: - Dropped the DTS change from this USB-centric patch series (thanks Krzysztof) - Dropped commit references for patches not yet in mainline to avoid confusion, as they will change upon merging - Link to v2: https://lore.kernel.org/r/20260317-husb311-v2-0-03c17c986abe@flipper.net Changes in v2: - Changed the binding to use fallback compatibles (thanks Conor for the suggestion) - Rebased on top of recent next, thus also adjusted the binding for ET7304 to fall back to RT1715. There are no in-tree DT users yet - Removed the VID/PID/DID checks altogether instead of endlessly multiplying the list of matches for new clones (thanks Conor for the suggestion) - Link to v1: https://lore.kernel.org/r/20260311-husb311-v1-0-f25bcb58cff7@flipper.net --- Alexey Charkov (4): dt-bindings: vendor-prefixes: Add Hynetek Semiconductor Co., Ltd. dt-bindings: usb: richtek,rt1711h: Switch ETEK ET7304 to use a fallback compatible dt-bindings: usb: richtek,rt1711h: Add Hynetek HUSB311 usb: typec: tcpci_rt1711h: Drop unnecessary VID/PID/DID checks .../devicetree/bindings/usb/richtek,rt1711h.yaml | 17 +++++-- .../devicetree/bindings/vendor-prefixes.yaml | 2 + drivers/usb/typec/tcpm/tcpci_rt1711h.c | 59 +--------------------- 3 files changed, 17 insertions(+), 61 deletions(-) --- base-commit: 8e5a478b6d6a5bb0a3d52147862b15e4d826af19 change-id: 20260115-husb311-291bbb1a7776 Best regards, -- Alexey Charkov