From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (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 9E7923AFAF1 for ; Thu, 20 Aug 2026 21:40:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787262005; cv=none; b=UukH7TS48oZudM1s73P0cjIX6XwIC+EZtci2b4Kc2WvKvG0A90CwqSEMstEZ9Yqlk/ikZh2rxHhrRmu/HeSyhNJO8tiPG356CLSXq+EiAw2vBhf3fqSEzOoflJw12m5b/2nXwC/48KbJwV+3Fkj/wcu3rzbeBbATbmvAwtain5I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787262005; c=relaxed/simple; bh=Zl6wUP1R0MbhaQMe/CaSWH1CK7ZZnf3hPFFpHs1l1QY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=NBlKibF1B3mJL+mXpVSi6na5GcwKr1tHZq5urnQYxRKy46cGxExH6yp1xpJtJnQlVJjZqDFbzpmuGG4AgbNQbaQ3XXs0Ya/YdnIRHcydsf1RuCQWDCaPiu/dKBAWTcCr4/KIRIYKg963MsXLATCUJePc5hMNkgZU+XMlgyMFvfI= 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=tFaY7si3; arc=none smtp.client-ip=209.85.221.48 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="tFaY7si3" Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-471eeac43bfso347457f8f.3 for ; Thu, 20 Aug 2026 14:40:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1787262002; x=1787866802; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:message-id:date :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to :content-type; bh=0/S/n7d60IPenCr0oCOquDxWa23qqnUlu/ruC4GGmms=; b=tFaY7si3Bz6dgDEzxm7F4zLm/Qf7jV5LdV+qQn5Mi+sKWkKUTIJxQYbaZWqz9Nvbnm xpXTAdB60OATbzub86TgzLjUvSzLwU7FVaH935jbwDZ3NKTliJDONWN1sp8aNqBxB57n sOXNthGclLbKsKZ1/utSIITBeYMntZUtkbh7LNkvKgD7kb6mLuvQSAVkJE+MQ2+sFvkA jNE4bIHmbTBbFbNg910ERlMWZCqzZ44N17PNvUDbrB59apTP00XZjSj52GgkiqVzhf08 eRnMfG3KdV6xOjktKuRZ6+ml8z9b18FxpZ4JHZXQ23sCx0d/VdLUekwjRhKrgozBFyE5 zt7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787262002; x=1787866802; h=content-transfer-encoding:content-type:mime-version:message-id:date :subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to:content-type; bh=0/S/n7d60IPenCr0oCOquDxWa23qqnUlu/ruC4GGmms=; b=PFNFo0Qn7M+ek7titKOUJ2SBCWw8c3zpk0jaNF4E66nk54A3Iu6g/Uf824W+BYWzeG 3A23OFZuDZwYilSY/d3GzJgmBFbJH2cWYHqw9SenkQ13f1Pn/6y5QOmCc/WRGVO1YKQl KbSLNmY1o2+jya8fhy1eHCFOcvZDesGx23IxjjzlNEAHST5yv1bbVsPb+xnfHpLgshcj KMVaSNOHetVIEz7OaT88YcIn4CruRtGLEm6GbiXh1CeV3SFkKBcTWlrmUs+SB+iF1RXR Tcq2dz6BSt7WqEybsNc1dIiZWUtb+fAqmL9JjctntHl4nzBEspGidbs6qqAh0sorXvSw 5kUA== X-Forwarded-Encrypted: i=1; AHgh+Rpn/vXxkneyJMurn5NbwlXFBlX9ylqLP26aw89qzTyjfNz/Bqyk7bJm/g+jUy65hYhOoKvj+HxGqDoDVEQ=@vger.kernel.org X-Gm-Message-State: AFuF++mtqLDqfh+91a6uMMxuFbKYJ2R0PHBNdPD91wykIOD6+E/swLyg Tqwk142m+EH0f6o4aO4CtJGfKGvJ+F/+oAP/TdbMro5NjmedVPOc85WC X-Gm-Gg: AR+sD12DsDFakhcJBPuTTTnYl+2Kabgzon3L2eqAA36nQwL8tjVi1cUJCRKasHnoJXQ BGvA8DPg49NS+Pp8MqTwgFfc8GiczbM+iqV//4xCi9b2YMI4LUsW2NviViEeJpcTGXRDkhbCzOj xCUkekq9cQTaSVwQD4D9jC1h1AAgFYXyz8i3FZs45wZTl53aDuC3mkB5SroYJflHIZA5ViAkIDS 347Pcx8Dsm0X8r04W4CEip55t+rTFeLL9LGARSBRCgHuV/7UdltAIz9ZcqvNh95kVMg+AzZq4ir bPWwQSkqQSH8AdEfz/4TJwRE/SfFSwABC70XjB5BtJlTJJb4WoTS6SsAOYHKAmIOpkhm9q3HVwe pey9o/UmIN+Wb3W4fgZj2HsMShR3hDUFp3Tudb+kH1qbIfdAYUQZLd1XFi/8eqvJaKNrpSWd/DM Hr702tr1Elr3vJ3ksLVuCJAmp2MJsubYbZENwl+/HeydfhSO3aOPST1BGEL1RY8TIqW76Oc7lWo giQvbhOD3fYCVPTcWktMiriujO+/fnMH0lIH3/oY4XjzNvOTFZHl9k= X-Received: by 2002:a05:6000:461c:b0:47f:96e3:5309 with SMTP id ffacd0b85a97d-482c0b6331emr2836146f8f.9.1787262001657; Thu, 20 Aug 2026 14:40:01 -0700 (PDT) Received: from localhost.localdomain (88-165-21-128.subs.proxad.net. [88.165.21.128]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-482b14d059bsm13245121f8f.36.2026.08.20.14.39.59 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 20 Aug 2026 14:40:01 -0700 (PDT) From: =?UTF-8?q?Benjamin=20Cab=C3=A9?= To: Till Harbaum , Andi Shyti Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] i2c: tiny-usb: add Zephyr Project VID/PID pair Date: Thu, 20 Aug 2026 23:39:46 +0200 Message-ID: <20260820213958.41276-1-kartben@gmail.com> X-Mailer: git-send-email 2.55.0 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 The Zephyr Project ships an i2c-tiny-usb sample with its USB device stack, which turns any supported board into a USB-to-I2C bridge. The sample implements the same vendor request protocol as the original i2c-tiny-usb firmware, exposing a single vendor-specific interface with no endpoints, so it can be driven by this driver as-is. Zephyr in-tree samples must use the project's own USB vendor ID (0x2fe3) rather than a donated or third-party one, and product ID 0x0013 is reserved for this sample in the project's VID/PID list. Without an entry here, users have to bind the device by hand through the driver's dynamic ID sysfs attribute. Link: https://github.com/zephyrproject-rtos/zephyr/commit/281b5743d183 Assisted-by: Claude:claude-opus-5 Signed-off-by: Benjamin Cabé --- drivers/i2c/busses/i2c-tiny-usb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-tiny-usb.c b/drivers/i2c/busses/i2c-tiny-usb.c index 73355a56aabf..113af96728dd 100644 --- a/drivers/i2c/busses/i2c-tiny-usb.c +++ b/drivers/i2c/busses/i2c-tiny-usb.c @@ -157,11 +157,13 @@ static const struct i2c_algorithm usb_algorithm = { /* * Initially the usb i2c interface uses a vid/pid pair donated by * Future Technology Devices International Ltd., later a pair was - * bought from EZPrototypes + * bought from EZPrototypes. The Zephyr Project reserved a pid from + * its own vid for the i2c-tiny-usb sample of its USB device stack. */ static const struct usb_device_id i2c_tiny_usb_table[] = { { USB_DEVICE(0x0403, 0xc631) }, /* FTDI */ { USB_DEVICE(0x1c40, 0x0534) }, /* EZPrototypes */ + { USB_DEVICE(0x2fe3, 0x0013) }, /* Zephyr Project */ { } /* Terminating entry */ }; -- 2.55.0