From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) (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 8D4751DE3CA for ; Mon, 15 Sep 2025 06:02:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757916123; cv=none; b=f/B5eB0Igied5zHNIu+1yI8FILrsDyBw0lUETEN8N6g8zXocvE+7SAoz3DwX67O/3VUR6+Upj/t7Omra5rlHN2+yDlKZ+C4XKmgL3v85p4tqqV+pCohUu3vNxUmNQtRmW9s5c8heElqAiZ4fcF3xWmQIGH0vJL8Fz0USndtSsIc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757916123; c=relaxed/simple; bh=0i8+DknoxQAjvpBVwLLCnjqj1KkrlAyOUec1giywe+c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=j5StRslUFUL+DFcShVXSEdu6gDIumVFkocuKxfJS0fkcBou8ZVFZ9OTyt4+MGMhrMAftMMjqrdHgeb87MD9kFdCryP7p4Htweai3RhH38NS4bvtOiKkbw782k77Z+7LEbweLV9yEcmh9RPtAvB/raFgR13AI5G9ht5Dt/E2+vPg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=IGPA1C5N; arc=none smtp.client-ip=209.85.167.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="IGPA1C5N" Received: by mail-lf1-f44.google.com with SMTP id 2adb3069b0e04-55f7ab2a84eso3602340e87.1 for ; Sun, 14 Sep 2025 23:02:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757916120; x=1758520920; 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=uZUcnCRcwQHZ20XjWalfDU23D3XdkLxWMGXACq1syco=; b=IGPA1C5NBFhAp4EUg3Zdc/FUc8obGmBmha5eAy2nVDlxnr7TrYrwCMe/8e4TZAfBMD rsn48LoK9Ve0VfLjiOa/ZRjiJWnH9Vg1wvvwQP9upkcta35OuT+OmAPcJd0DTU82sW0I SEvzdheR7kyHy5hRJObVhzlUxunOMRwbhLc0shjLUEK6PONdRFUXfhBiZb4qIHMlR9hJ /Grpa2ipd4Tn8XtdPjNRHEi4ChQ6GX/XZtTgm53zjBUPcEdjehz3JUvwEO5kYHVCdCXE CU476MxnlbYei3Itg2EuLoUCeGG3nx+X+jA6wmSclGKKYpNtpayPgJFwZifuV/bWvbYH f/sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757916120; x=1758520920; 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=uZUcnCRcwQHZ20XjWalfDU23D3XdkLxWMGXACq1syco=; b=GC8qb4K943AZkS2QuQv+xe7LV9i8zdpKIgSGoT8Ko7bVFqm12R6B6PsB0yIrQveL3U 97NZlAzJXns/dlIDmlSzFO+FgtN3y/GTH4JmGRS6rt3ZOK7dkB/o8K2ioNu+11n4GXi/ dkxiysv1RFrsdq6J9/+LnYF+BZdOpGQ3J/wbRXeI5NupSYsgLe8rjNJaMZGUHEl1fR+P g+LoXK6s3OmVYSdkG8IcSGn6hZ063N+Ur/1s/vbgEY8ZYVK18GQrcV5QxQ3F4ooRMSsR vpU7xoOBshD1z0LaDCj7J/HorHiG0HdbBncOw2vXAXJn1y3rTw3vFGwwb4FShbokkwmA 4PpA== X-Forwarded-Encrypted: i=1; AJvYcCUL1uUiQq2atBuU9DTQn+/B3MjcdjqxG/mCF7vspLf+VVKXHrvxBmPLjL/0k1dVAI0WSoyj9ks4emgJJBU=@vger.kernel.org X-Gm-Message-State: AOJu0Yxox6L5rO133MhuMoVtpwDU711N16ZPLEgTtxjjS6aCG30TbjFJ Rd2dP+93GkfxZnjZlYrBkR2Ojk4nhxkmkJ7pDcH8vcA97OKSccLUI74X X-Gm-Gg: ASbGnctSpid01i6ReeWmRcQlaAKLGhlExbsqKr79Z0OYvJNDa0mwHYEmABHl4aJCRf2 ahtHhfS8F++CcBpvecTt/WJH4UquQAfhdAmt6sftisICK+sra0UVjJmM/wM2jjScYHggh2SC8ig q2xCCdHVIPt/2iAExwsqtuhO17I26f4Gq/mu2ZuoDDcV/bnQU/EeG7CFfw7G1V7EDt8km//66zB NoxJfkYzGd+gtBycwapGSSvwmakQJzNRx3LdAdwV/2LrRzTNOZI9NJHHNuUI5+PAgsllb9DAi5s BzpDnmiFuYU2Wc+UCA068Sz+/dr8ygICQ87n9Ldyfaqzpjw48jOw4F/TfEs324ZbdkznryfJL4Q ZGRY9ZqXjUZ3Xyw== X-Google-Smtp-Source: AGHT+IHDjCsT9FHnjoOO4pQ1o6E03HlGS5iXY22PkYNYih/D6j5nfiMo/CGz7SI8qhM2srkPhzPUKw== X-Received: by 2002:a05:6512:361a:b0:560:95c0:a523 with SMTP id 2adb3069b0e04-5704fb86b89mr3166947e87.35.1757916119435; Sun, 14 Sep 2025 23:01:59 -0700 (PDT) Received: from xeon.. ([188.163.112.70]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-571d16e79d0sm2062214e87.86.2025.09.14.23.01.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Sep 2025 23:01:59 -0700 (PDT) From: Svyatoslav Ryhel To: Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Peter Rosin , =?UTF-8?q?Micha=C5=82=20Miros=C5=82aw?= , Svyatoslav Ryhel , =?UTF-8?q?Jonas=20Schw=C3=B6bel?= Cc: linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 0/2] i2c: muxes: Add GPIO-detected hotplug I2C Date: Mon, 15 Sep 2025 09:01:36 +0300 Message-ID: <20250915060141.12540-1-clamor95@gmail.com> X-Mailer: git-send-email 2.48.1 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: 8bit Implement driver for hot-plugged I2C busses, where some devices on a bus are hot-pluggable and their presence is indicated by GPIO line. This feature is used by the ASUS Transformers family, by the Microsoft Surface RT/2 and maybe more. ASUS Transformers expose i2c line via proprietary 40 pin plug and wire that line through optional dock accessory. Devices in the dock are connected to this i2c line and docks presence is detected by a dedicted GPIO. Michał Mirosław (1): i2c: muxes: Add GPIO-detected hotplug I2C Svyatoslav Ryhel (1): dt-bindings: i2c: Document GPIO detected hot-plugged I2C bus .../bindings/i2c/i2c-hotplug-gpio.yaml | 65 +++++ drivers/i2c/muxes/Kconfig | 11 + drivers/i2c/muxes/Makefile | 1 + drivers/i2c/muxes/i2c-hotplug-gpio.c | 263 ++++++++++++++++++ 4 files changed, 340 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/i2c-hotplug-gpio.yaml create mode 100644 drivers/i2c/muxes/i2c-hotplug-gpio.c -- 2.48.1