From patchwork Fri Jan 19 12:58:10 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: 19185 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp985906dyb; Fri, 19 Jan 2024 04:59:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IFy9lPTTw+Q6FLmX94jemMXrvDonNpzAcmTe/WA2EL4tnGKAeRrQQYdHfhDheJX12rb6U+M X-Received: by 2002:a17:903:11c6:b0:1d6:f243:9bea with SMTP id q6-20020a17090311c600b001d6f2439beamr2737603plh.3.1705669171878; Fri, 19 Jan 2024 04:59:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705669171; cv=pass; d=google.com; s=arc-20160816; b=aqY5ELHzVKjEqS1/R/vHgDmt3jifBQZOxqqQIgcBZnVgQq38coflPD/jog3K70cu34 cEIhHwgXMSohNyBa1IkxT77HEQ4y9uJoNDDgY04+BzbcFWuSB7Sya2J7e7XOK/RghWPg aLz1nOsbJQY9loaDy7+vqbQURbL9xrS8FZWlfctfR3+MPm8iAwsBj61WQyKhk3w90DM8 UmG6DeZmWIu9LCNd0hKxpi6N8Nv418ZNBrTOO2qI5ndmnVIoAx7rtmxXlAkPNkEKls+X C6HekSu+RRkk5+mtSDA1I+QdvMee70tmgAn0s4PSCHjCPzfN2h7Na+xCqed6rkslngRI m4uQ== 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=L7R0rM+dfY8BfVM0tiwahRm291+uVOKMOygaYokiphA=; fh=O+hxQb1tPiWW366IuM3Ct7PQxz5i8S3IpT0spXRM4/E=; b=u+NR7LoeMfnTNHejDVFxLE43OPeQ0sqOjmQX8DUESuS70FR4GRxJ0fZeaHU8HzPZpU 3S/jWwAi0AMoq/dpe61iJ2oQbMHTPl0/bYJ28rBOWFDRs3QqP7kzZYZzU0KeDKULnU/z PmfSOJjuELQJRDiGEH1I6plfylQxrtwkgAlRrISfV3EPWp2YRvy00VrKyXMgrH6OUzoP 85zjknOvytgF2MnfUw/ZCMB3ctRni4zpKrnH90/kno33mb+TjbKPduFrag9mjhS4vAZK jNWFRqFcjyVKFwEdjHmF3xfiGjPg93MmpV2TzuK8YIu7PzJR74i6xF0YJQ+1g9W7tdGK a5WQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=AfvubQDP; 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-31150-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31150-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id b6-20020a170903228600b001d713ec976esi2100137plh.80.2024.01.19.04.59.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 04:59:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31150-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=AfvubQDP; 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-31150-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31150-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id D02FEB2344F for ; Fri, 19 Jan 2024 12:59:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 59FE252F94; Fri, 19 Jan 2024 12:58:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="AfvubQDP" 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 55A043C493; Fri, 19 Jan 2024 12:58:18 +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=1705669099; cv=none; b=Ls9RfjiNaRO4jXiyj2hDtpegqtlUaEoTSUfYBIcX768gaIiJujOcbI6jIfor16VjDXsFtXh/j8KqIaUCyHt/j6gUOkWcbvbtqk3eOiX8s8iRuDXQPeihuBfCJSPcj2Ms8ozdSX1wzXd3k/fKA6QPy5M02St2FdKil1jiGKzxxM0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705669099; c=relaxed/simple; bh=bGrbcVKvkDIoSfHBTxlivOML0alDs0Jm3cTz73DwTkU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DSVFISoFPfdQK9Ts1NHfQlGddDnFeYzG0kVAll6xBlnKl0uFDKw8Jauu8s4YfpBzlDZzIOsstaZOmhT2fUGVPEJOUqxPyeeoEGJPK3sOMbTz7/FGLXHabCpAqPwwxZwljyRPtSNlX0EnaADzjFle+OHaejSUi/6kovHH6aeiwDE= 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=AfvubQDP; 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=1705669096; bh=bGrbcVKvkDIoSfHBTxlivOML0alDs0Jm3cTz73DwTkU=; h=From:To:Cc:Subject:Date:From; b=AfvubQDPxx1z+zoJEr13Zm7CA4GIl5QXvLMMXzoULV6oQUHsAVLlwSLQrqWEojT4T QFBS0scpSnOD0UwuwQLt+7SnZP4BD2NRskBqR8IgbM1qB8ZPUQUNAned1tTVR3cElo i0OKPjxaaA5a+BlVnnqKOvcLwiAKnk/V/HhpXxTJFV+zp0TO6JSfkE94eYZotKpkjE KdePlcbHbSM4DfVxYafEOvokgtyfhhpyJkooH6f/CsD6GMGnQ3ew2ufWD4w7bXl8Wb 63nEeQ+/U4IKpzefHJw4EKiinW7zWyBhwzWf/BxuLmNfTMjWHJsJEUBSCaCr2nOx2q eBzNy5ZfOCuhg== 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 4532437803EE; Fri, 19 Jan 2024 12:58:15 +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 v2 0/2] Add ITE IT5205 Passive MUX Date: Fri, 19 Jan 2024 13:58:10 +0100 Message-ID: <20240119125812.239197-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: 1788523757664298542 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. Changes in v2: - Reordered headers and removed unused ones - Added a check for altmode in it5205_mux_set() 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 | 294 ++++++++++++++++++ 4 files changed, 377 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/ite,it5205.yaml create mode 100644 drivers/usb/typec/mux/it5205.c