From patchwork Fri Jan 19 10:45:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 19178 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp924246dyb; Fri, 19 Jan 2024 02:51:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IG30XdH/YALQaKkxni81XiYpBH104TJDDQXT8V5ACiCXdi1DnEg5UAyW/TvHhr+KERYQPjK X-Received: by 2002:a17:906:154b:b0:a28:aa7f:1183 with SMTP id c11-20020a170906154b00b00a28aa7f1183mr812077ejd.102.1705661500150; Fri, 19 Jan 2024 02:51:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705661500; cv=pass; d=google.com; s=arc-20160816; b=R4bg6t2Lx42WL7LFr0TtZ4e38NAsgKU9fFkSTciyO/Uf5s1SXUG+I5ei0w51Qs5OGr P8RRVzMGTCS5jRgWbFoqtdHUIO0ePYTSV3XLBP7HRt/3ikQfCUo1ebl/k5WD/COwgCu9 B4hNgKHqAv2M/XL+jg4wwatU2vTqCY15oumjtQpM+clc1+GrhWZ5q4a7NuesbvRJW1+E ISr5NZwaDphOm6uW8w5VQ2LPIhLblduyjSbf41RrFKi3IO9L4B3eJphglxY5n661s6hl tyvltatAyWcLbqWbWjyJau3xB9MgN43rGLK0RZHHx39vwmqFbDSpcyFKklJrmkU+4fb5 wvjQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=kvlpkFBsC6q3hKHHJmMXxD34HwTNwUyxphdh1/InhRM=; fh=O+hxQb1tPiWW366IuM3Ct7PQxz5i8S3IpT0spXRM4/E=; b=X3cFeL1Uxs7FbZKK3y4iczJWiC7t2b2tLrwKr25i0Ky7ADVou8hNLDtbnMRx02FHsR bJn3W0wY1QgGVv0TkI0trlhosD75zQnduQjo4eFCuf2btn6eFz4lszRid8E/3Ew7oJRT OUF5RU53z3yzs7gZN0hpIIEa1ov7rUFj+DC6ZZb8Z1NqjMc08D8mvbTSxRHEruEOUPfX q/UmF/xakrusAYsHU8eyZcnECSM1r+VuGBVSXo329EIMW80xlo6lylhckbr3IpkIMaJE Oyj/G2Pv7rKoK/Zp71qtPwKfZ00IAKEAZprwJycA0jmvBBlfm7LKaEbeHN5+GLR8kEvg ddZQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=kQi+KwgB; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-31050-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31050-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id n17-20020a1709062bd100b00a28ec8903f9si7823821ejg.800.2024.01.19.02.51.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 02:51:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31050-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=kQi+KwgB; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-31050-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31050-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id E502F1F22F5A for ; Fri, 19 Jan 2024 10:51:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AA89E53E11; Fri, 19 Jan 2024 10:46:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="kQi+KwgB" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BE4074C605; Fri, 19 Jan 2024 10:46:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705661168; cv=none; b=Wsu1tOvuqYjpBXoprB8YLZZa2ITmVNdzEqdqb2vyBLMO3zrFy52/B/mKMdH03OW3VCrzQ04dIBJTVXI+GEFh2+qYvSl/KfGG9H/l6eSLQee7WIIM90dRO9MS49vB+94BTw225+yfVzuw6fwLpA0XW2Px1DknJ8TlAZcZjcR7lec= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705661168; c=relaxed/simple; bh=+BtwhZWZLy/TV7bT5xQL0CluIjxMSGPYSHEHTV2fZ3E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=steguazP/4Ty4LhmfEc9qr4vjKJwPj+s07mKekTd+qeBW5sudH7Jl55aEitonoXpjqpQAsirBfBN55o0ai9/4tyBhq20A54mxaZDW828bUokj6tfjMVcP/HANrGsoEAAIsB0lNCAYM4S9jCSkDZcaIO14falZs5VagniUfklkF0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=kQi+KwgB; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1705661157; bh=+BtwhZWZLy/TV7bT5xQL0CluIjxMSGPYSHEHTV2fZ3E=; h=From:To:Cc:Subject:Date:From; b=kQi+KwgBvloxAnur4ACXtrvBUdciPBgjm4NPdwynxtEzi36qqnIUGCX2Q/rk4MF+B z0Jnn4dSB/i9e0ueNQaKD/FeHD0UfuVviadwz//b7mww8YRKNvA9yqDXV1/HvruUSM iqzjZ6MCibi9dXyg91ehzUWoUBplevDftfVGWQcg8zXORHwU4nhzzDrm7ZexiCDgso wwlH0B1vmWOydihSb1m3DZSurvScU2qWq19jJgDUw/J9rhydTgSF3Sr7EYOQxi/qlN 9zJa0km4Jh2J2/9NnFYikx+NyCyb3A7DVZEUTJo5hYFfvpdj14HYPryAdoa/QDOAjh DBSeJLN0uTctA== Received: from IcarusMOD.eternityproject.eu (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 04E09378202D; Fri, 19 Jan 2024 10:45:55 +0000 (UTC) From: AngeloGioacchino Del Regno To: gregkh@linuxfoundation.org Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, heikki.krogerus@linux.intel.com, matthias.bgg@gmail.com, dmitry.baryshkov@linaro.org, neil.armstrong@linaro.org, andersson@kernel.org, nathan@kernel.org, luca.weiss@fairphone.com, tianping.fang@mediatek.com, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, kernel@collabora.com, AngeloGioacchino Del Regno Subject: [PATCH 0/2] Add ITE IT5205 Passive MUX Date: Fri, 19 Jan 2024 11:45:48 +0100 Message-ID: <20240119104550.140061-1-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788515713090176800 X-GMAIL-MSGID: 1788515713090176800 This series adds a driver for the ITE IT5205/FN, found on various MediaTek board designs, including the MT8395Genio 1200 EVB and others following that. AngeloGioacchino Del Regno (2): dt-bindings: usb: Introduce ITE IT5205 Alt. Mode Passive MUX usb: typec: mux: Add ITE IT5205 Alternate Mode Passive MUX driver .../devicetree/bindings/usb/ite,it5205.yaml | 72 +++++ drivers/usb/typec/mux/Kconfig | 10 + drivers/usb/typec/mux/Makefile | 1 + drivers/usb/typec/mux/it5205.c | 292 ++++++++++++++++++ 4 files changed, 375 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/ite,it5205.yaml create mode 100644 drivers/usb/typec/mux/it5205.c