From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (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 9AAE737D105 for ; Tue, 17 Mar 2026 18:08:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773770892; cv=none; b=qy7QdQWiqG4yxC8D0i1coDWMJtQjThRNnQaJ0e9eZI7TXI//W6I2iFaqRYEgSubUzSsL3NXHTfmomTXgYs13KYlDlY+IKd+4oQemzHJYjyzt5gTVaCpt9gEEQlTfuL2s7+eWkqwWg7/J5Ds0BUsyvLmZpk0wbzG5RmyqKK9CbMI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773770892; c=relaxed/simple; bh=akAl2/DG0rdw7GlbNngJ+xuwwxnaipw/AQYp8maIV00=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=mjJ6kp8yl/UhYDUtfpzCaTFCOcrNYvS8ZXE8li/5hQqnhiNwNOj+DtJXOTcflT+wmXoVTgMVClle/EPcHCeGtVQkMbZsPioeC5HpVWEfJQ5dJrQ+SkwjTDJxeSWoIBepPMH339vGDRwfsMTVTRvGpd72fqA7J0TRMHFLxiWGZU8= 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=nFr/9wnB; arc=none smtp.client-ip=209.85.128.52 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="nFr/9wnB" Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-486b96760easo10566405e9.2 for ; Tue, 17 Mar 2026 11:08:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flipper.net; s=google; t=1773770889; x=1774375689; 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=HT1vwWl+a38V7qIi5t2z8SaT/U8JFZY0mnIb8ncq2Gk=; b=nFr/9wnBAV5+DBAoMvmJ01HtGUUcrRjDoa18LaaKI3SyGLsBU2+pG6AfHsJWMUJ+v3 0+ZUA/Q+ebu8oIXfwSHkFCPncOCWObgMRYeJAtMGJfFuAzlz2idMK+g6/J0/+KJXn/i1 JmuRU8cfYKQx/bbMrl3cB0O9eZUcGXkkY8TQbdt4r4bOB4p+w2tuuE2vKxemjwYiW179 n22XP99NiwGHp9GMhKXY3cBHFi3IOwBUr1vaa4zAccarALATqQs9Bs4MwB2NDWdX8qLs q2fBEz3AQ8aIi1ZRd7h8aqCyOYdy0GmzCvTok/9um+PSalgaJVz9IpYppY8Po0oZTAAT 8a0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773770889; x=1774375689; 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=HT1vwWl+a38V7qIi5t2z8SaT/U8JFZY0mnIb8ncq2Gk=; b=KL0IpMEQ6mOkZinMmTQyd+XloU/uRfjdJx3d1mk4rFW62etRgwifW5xgCs+xFnxL7c reC46XYtci2XrpIzC4b5Q/2JXBRp9LSrwRN2s225pQcfsMJ8VXlvLJSf4fA/+Mf7qlm+ f2+ly/WSyWpvJl1/Z4D7JTak0YlvcCU28+/0QTG9WapYoeIrsv0Vo5Sghb1P5PUOZxWF TZzN2QFAVUKk8qg+WzlG3NRykmh7bmngknT5BX7rxxaqUa1nOD7P1Fm0K484MB/rjS0s 2UvpS9ZMtPwdv2g/5prcUWef3RXGKfiaX5sYxlzd0ovt1gb+OiUwwwvxmBZ2wi93OIJk d1rA== X-Forwarded-Encrypted: i=1; AJvYcCVHqvYFrkeYvleBXTIgPJz8L1B0R7/mn0MTPDFpSLDou4AtgCj1NkTDX7EgQkufaXbjKFT2K4BLeEGAPrA=@vger.kernel.org X-Gm-Message-State: AOJu0YyWaZZVqTn40SbtqbR61xrZS7EjVD96ksiw7bQh5R5EVWNl9EhJ MIFxAP3gAaZqEB8sE/9sE5bYwYICa08/XoyAVMQPeWVSOPYM7pHCIek26bAetiBoB4M= X-Gm-Gg: ATEYQzw2k3qC0JwT34bUqz1ZgYD/MaHFlaApuJWas0RX0QxOTBjfZtuZpMAzAMhY3KD dVWPrD/GoOYTj1hRTRGyBrYJ/aNY7nbB3ZJbgSrbqQWF9wfAmVrL3XmQcvpeJUWZxVGP/M+nxCh 7ukBqtXhTcP0iFFa/hXgJaXQFgeqoJeh59dMlnDXsCCXi8bPx3vuPdIezwUB0TI94SqdYWJRvB/ /CCdzADJBzueXW/qxptvVPRM/s98xtsOnUurAvz+ehkpfDvUQHJt58KDzmLH7WQAgXYi5M1l/rt IZU/AH8FmGJmZv5ERXrxWgQjWyakvNnZdhEROC0qHjKKafvCCwlsJ9gkrb2j/a0hj/pwgtmwVEa Y+zefh/sGIzmZntsUg8Gp46/kZmz37ZHJ5+RL7wn26D0BI0RuPBNG4AOvozOXm5LubT/vPuyVMO hogvc3eAis63ZV+ju39OV6qoydEWwUjZsV0iVjKRKOdvj/uihYKiPrQ59zNpvXs+WzynXuqHnb8 3NZQw== X-Received: by 2002:a05:600c:1d0b:b0:485:30f7:6e88 with SMTP id 5b1f17b1804b1-486f4577061mr8194215e9.31.1773770888892; Tue, 17 Mar 2026 11:08:08 -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 ffacd0b85a97d-43b5184b8b9sm1436536f8f.1.2026.03.17.11.08.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Mar 2026 11:08:08 -0700 (PDT) From: Alexey Charkov Subject: [PATCH v2 0/5] Add HUSB311 Type-C controller Date: Tue, 17 Mar 2026 22:07:57 +0400 Message-Id: <20260317-husb311-v2-0-03c17c986abe@flipper.net> Precedence: bulk X-Mailing-List: linux-kernel@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=H4sIAH2YuWkC/zXMwQ6CMAzG8VchPTtDZ2DqifcwHCh20sSMZcNFQ /buDozHf9Pvt0LkIBzhWq0QOEmU2ZXQhwrGaXAPVnIvDbrWbY3YqOkV6YSo9AWJCAdjTAvl2we 28t6lW196krjM4bPDCbfrz9i2fyOhqpXVDY3UnEdrTWef4j2Ho+MF+pzzF7urctmgAAAA X-Change-ID: 20260115-husb311-291bbb1a7776 To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heikki Krogerus , Greg Kroah-Hartman , Gene Chen , Heiko Stuebner , Yuanshen Cao Cc: Sebastian Reichel , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, Krzysztof Kozlowski , Alexey Charkov , Conor Dooley X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=2698; i=alchark@flipper.net; h=from:subject:message-id; bh=akAl2/DG0rdw7GlbNngJ+xuwwxnaipw/AQYp8maIV00=; b=owGbwMvMwCW2adGNfoHIK0sZT6slMWTunNF6r7Z+eZ2E4oJ2I+HNT2ROywbkLzbi7/zRrbxM4 o/qsqxLHRNZGMS4GCzFFFnmfltiO9WIb9YuD4+vMHNYmUCGSIs0MAABCwNfbmJeqZGOkZ6ptqGe oaGOsY4RAxenAEy1LBcjw8nDy1/9mst7L2zPdOOAlW2RyZm3DoeVcTIVL3mslC5yOYvhn37WtUW BX4vqPti9vzJPwm3qHTN+i5oTzdy36vprLj4X4QcA 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) This also enables a bare-bones DT node for HUSB311 on RK3576 EVB1, but currently misses the connections graph for the USB SS and SBU lines, as those might require the USBDP PHY ports schema to be updated first for proper DP AltMode support as indicated by Sebastian. Signed-off-by: Alexey Charkov --- 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 (5): 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 arm64: dts: rockchip: Add HUSB311 Type-C controller on RK3576 EVB1 .../devicetree/bindings/usb/richtek,rt1711h.yaml | 16 ++++-- .../devicetree/bindings/vendor-prefixes.yaml | 2 + arch/arm64/boot/dts/rockchip/rk3576-evb1-v10.dts | 20 ++++++++ drivers/usb/typec/tcpm/tcpci_rt1711h.c | 59 +--------------------- 4 files changed, 36 insertions(+), 61 deletions(-) --- base-commit: 95c541ddfb0815a0ea8477af778bb13bb075079a change-id: 20260115-husb311-291bbb1a7776 Best regards, -- Alexey Charkov