{"id":2218705,"url":"http://patchwork.ozlabs.org/api/1.0/covers/2218705/?format=json","project":{"id":35,"url":"http://patchwork.ozlabs.org/api/1.0/projects/35/?format=json","name":"Linux I2C development","link_name":"linux-i2c","list_id":"linux-i2c.vger.kernel.org","list_email":"linux-i2c@vger.kernel.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20260401180648.337834-1-adilov@disroot.org>","date":"2026-04-01T18:06:40","name":"[v6,0/8] i2c: rtl9300: support for RTL9607C I2C controller","submitter":{"id":92795,"url":"http://patchwork.ozlabs.org/api/1.0/people/92795/?format=json","name":"Rustam Adilov","email":"adilov@disroot.org"},"series":[{"id":498375,"url":"http://patchwork.ozlabs.org/api/1.0/series/498375/?format=json","date":"2026-04-01T18:06:41","name":"i2c: rtl9300: support for RTL9607C I2C controller","version":6,"mbox":"http://patchwork.ozlabs.org/series/498375/mbox/"}],"headers":{"Return-Path":"\n <linux-i2c+bounces-16908-incoming=patchwork.ozlabs.org@vger.kernel.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linux-i2c@vger.kernel.org"],"Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n secure) header.d=disroot.org header.i=@disroot.org header.a=rsa-sha256\n header.s=mail header.b=OUs7Zx68;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-i2c+bounces-16908-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)","smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=disroot.org header.i=@disroot.org\n header.b=\"OUs7Zx68\"","smtp.subspace.kernel.org;\n arc=none smtp.client-ip=178.21.23.139","smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=disroot.org","smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=disroot.org"],"Received":["from tor.lore.kernel.org (tor.lore.kernel.org\n [IPv6:2600:3c04:e001:36c::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fmCdc0VHfz1yFv\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 02 Apr 2026 05:08:04 +1100 (AEDT)","from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id 508AA304A9E3\n\tfor <incoming@patchwork.ozlabs.org>; Wed,  1 Apr 2026 18:07:31 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id D3C8A312803;\n\tWed,  1 Apr 2026 18:07:24 +0000 (UTC)","from layka.disroot.org (layka.disroot.org [178.21.23.139])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 87AC530E0FB;\n\tWed,  1 Apr 2026 18:07:20 +0000 (UTC)","from [127.0.0.1] (localhost [127.0.0.1])\n\tby disroot.org (Postfix) with ESMTP id 45A4D267E0;\n\tWed,  1 Apr 2026 20:07:12 +0200 (CEST)","from layka.disroot.org ([127.0.0.1])\n by localhost (disroot.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id oDo7rCWxQaSS; Wed,  1 Apr 2026 20:07:11 +0200 (CEST)"],"ARC-Seal":"i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775066844; cv=none;\n b=lXjoZCbYYi9IRu3Ra4v5y6XIxVL7rM9sf9QI4GsTo6uLK/ityXAk8NoJkJqHHocIxFQWJRvgxHQ4l8hs471DwFHVYlyFoxX8H487VsaCHCsPzgrVm86gKWYqCBFRHJmJoayNUtXu1NNrTiHUASl9QMDT/siLqBUFsHK2KMQPgcM=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775066844; c=relaxed/simple;\n\tbh=P6J/pDQtdzKb099VvUqh3kUI/mTGY3Jovzx7TNHMv1w=;\n\th=From:To:Cc:Subject:Date:Message-ID:MIME-Version;\n b=JK899W1XJFWfAB7bAeo1Zy7Q97/9UlAwhJ5COJL2z5lj2Ua7glo0tXCYvya798nCSZsaEJx4Q+QdDQNgdApiPKQp7Vn2L2Ng3c1dJD80JXVqn/sxXMHqZl0gwD/RK/PjumWeDvYOSpupttArBZXMLfwl3AYosvQONzRIRyeUAfI=","ARC-Authentication-Results":"i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=disroot.org;\n spf=pass smtp.mailfrom=disroot.org;\n dkim=pass (2048-bit key) header.d=disroot.org header.i=@disroot.org\n header.b=OUs7Zx68; arc=none smtp.client-ip=178.21.23.139","X-Virus-Scanned":"SPAM Filter at disroot.org","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail;\n\tt=1775066831; bh=P6J/pDQtdzKb099VvUqh3kUI/mTGY3Jovzx7TNHMv1w=;\n\th=From:To:Cc:Subject:Date;\n\tb=OUs7Zx68G6pSPzLS4LoABlf6N7i/XMMz3FGhQ3yY/xju4VGaWFj+RO8Se8YqcNbZV\n\t cpOHDTL9WMuePN+E15KjWLY6d28gub3qyF/gGCIrOM21OCjitn5mR8h/BHW3wNOM07\n\t RhwguO1emDqcRfIuAkAs6ag6fiH8SmWBbLeI5Jq2BWrjs7x2MArAK7mgxpxTr6gjUC\n\t EwsDUNP88f/dueFJd75M75A7LqyenSt8U0br2AK5eEbV6phIPgGk6sDkbAeRYtyiBT\n\t 6ILqD63Kxj406lIlsKNqjwyIISQJm+ITFj91AjGVhyXvrLXI+GOXZhsaT3LnD9FmiK\n\t xGE2rXD5CMg3w==","From":"Rustam Adilov <adilov@disroot.org>","To":"Chris Packham <chris.packham@alliedtelesis.co.nz>,\n\tAndi Shyti <andi.shyti@kernel.org>,\n\tRob Herring <robh@kernel.org>,\n\tKrzysztof Kozlowski <krzk+dt@kernel.org>,\n\tConor Dooley <conor+dt@kernel.org>,\n\tlinux-i2c@vger.kernel.org,\n\tdevicetree@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org","Cc":"Rustam Adilov <adilov@disroot.org>","Subject":"[PATCH v6 0/8] i2c: rtl9300: support for RTL9607C I2C controller","Date":"Wed,  1 Apr 2026 23:06:40 +0500","Message-ID":"<20260401180648.337834-1-adilov@disroot.org>","Precedence":"bulk","X-Mailing-List":"linux-i2c@vger.kernel.org","List-Id":"<linux-i2c.vger.kernel.org>","List-Subscribe":"<mailto:linux-i2c+subscribe@vger.kernel.org>","List-Unsubscribe":"<mailto:linux-i2c+unsubscribe@vger.kernel.org>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit"},"content":"This patch series for the RTL9300 I2C driver adds i2c support for\nRTL9607C SoC. They are somewhat different to the RTL9300 and\nRTL9310 but not enough to warrant a new whole driver.\n\nThe patch series was split into patches that add/change something in the\ndriver to smooth out the RTL9607C support addition in the end and for\nease of review. Because of that, the patch 8 depends on all the prior\npatches before it.\n\nRTL9607C primarly uses the i2c controller for communication with laser\ndriver over on i2c interface 1 or 2.\n\nI have successfully tested the byte read operations on my RTL9607C board\nwhich has GN25L95 laser driver in OpenWrt.\n\nThis patch series depends on the patch [1] from Jan Kantert to be applied\nfirst before applying my patch series.\n\n[1] -\nhttps://lore.kernel.org/all/20260227111134.2163701-1-jan-kernel@kantert.net/\n\n---\nChangelog in v6\n- fixed a typo in the commit subject of Patch 7 \"intoduce -> introduce\".\n- added \"Acked-by Conor Dooley\" to Patch 5.\n- Link to v5: https://lore.kernel.org/linux-i2c/20260326152656.14030-1-adilov@disroot.org/\n\nChangelog in v5\n- reworded the commit message in Patch 5 to make it clear that the existing\n  devices also have i2c master controller clocks.\n- Link to v4: https://lore.kernel.org/linux-i2c/20260323071337.15410-1-adilov@disroot.org/\n\nChangelog in v4\n- moved the patch 7 that changes bindings to be before patch 5 where clk\n  is introduced in the driver.\n- changed the \"realtek,rtl9607-i2c\" compatible to require the \"clocks\" to\n  be specified and with it moved it out of \"realtek,rtl9310-i2c\" check to its\n  own place for cleanliness (how it was originally in v1).\n- Link to v3: https://lore.kernel.org/linux-i2c/20260322123411.32102-1-adilov@disroot.org/\n\nChangelog in v3\n- Patch 7\n  - reworded the commit message to better describe i2c clock.\n  - make clocks property available for all compatibles.\n  - change \"realtek,rtl9607-i2c\" compatible to be under the same if statement\n    as \"realtek,rtl9310-i2c\" for \"realtek,scl\".\n- Link to v2: https://lore.kernel.org/linux-i2c/20260319175753.32338-1-adilov@disroot.org/\n\nChangelog in v2\n- rebased on top of the patch from Jan Kantert.\n- Patch 7 (to my best understanding of Krzysztof's request):\n - added the \"clocks: false\" for compatibles that are not realtek,rtl9607-i2c.\n- Link to v1: https://lore.kernel.org/linux-i2c/20260314082628.25206-1-adilov@disroot.org/\n\nRustam Adilov (8):\n  i2c: rtl9300: split data_reg into read and write reg\n  i2c: rtl9300: introduce max length property to driver data\n  i2c: rtl9300: introduce F_BUSY to the reg_fields struct\n  i2c: rtl9300: introduce a property for 8 bit width reg address\n  dt-bindings: i2c: realtek,rtl9301-i2c: extend for clocks and RTL9607C\n    support\n  i2c: rtl9300: introduce clk struct for upcoming rtl9607 support\n  i2c: rtl9300: introduce new function properties to driver data\n  i2c: rtl9300: add RTL9607C i2c controller support\n\n .../bindings/i2c/realtek,rtl9301-i2c.yaml     |  15 ++\n drivers/i2c/busses/i2c-rtl9300.c              | 191 ++++++++++++++----\n 2 files changed, 171 insertions(+), 35 deletions(-)"}