From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4BCB560A261B for ; Tue, 10 Nov 2026 08:19:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=smP0GZuB; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=KBVHUeCt DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:MIME-Version:Message-Id :Date:Subject:From:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Unsubscribe-Post:List-Owner; bh=6g3Ovp1ORLcMehEa+viVZyOIDEFfa5hhct6K4zQsHzs=; b=smP0GZuBO8fgh8E6DVdf0VYBoK Qt72X6++lPSDGHhvH5eeqj+PdISXrpZuO6CzasNehLBbh3B4JKdAoeNVrttSP4/pUIWT9a/9A+eCe tLI4G9LTy59cYg+cgZNUabc507E4qCJntJNAZhVO1mTmjawfqVLCCpV9XdPc/o2ldTr74HhP9SxbV glZt9t3IyDhscp6LlnzZbX7Ljr/aAdWy171CqtB/JXtGdW0WfWlj9G4jKaDsTiszOD1f8k+DwwChy Rr2WuS2KjE9LZZwnfxlRtqc+KHWByBVQuDeg5R4PmUxRs2Z+FNcQkN4MQsC6fZIYJGBpvrNQ+CzdN ++xeJAkw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xQh4w-000000035uL-0HDd; Tue, 10 Nov 2026 08:19:42 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xQh4u-000000035tC-2DTj for linux-amlogic@lists.infradead.org; Tue, 10 Nov 2026 08:19:40 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id D607343261; Tue, 10 Nov 2026 08:19:39 +0000 (UTC) Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1794298779; b=i/d9WJRfDxBfw+xynJkITLlNoMH8dYTpjBBfQO8/5GF443vWgxHbs+13Goe01SyjYRrc WZHViCzPN+oRifscoasdxbKKjSxIu8Me3RSuTzDi51HG6kB+jAXbkfQuejaAYlrZ88eiO gdXLTfnML2g5R00S3QlSSzqHgDfQjx11jCkf+gAzJaXaaNtOIphZJVmxt1d8f4S8rxRBc i3oJdLEc3EhJMf9EN7Gce00tXmVbdF5yX2+s5MiZuZ5ZXXZqeHmP3sT+cAMnG8qCU25fy JsgmGjzDT3Ydq4XoS1Sh8Y/Xs+dPtJRB1PcmuA8CDDsfulwQaQcQVK+39JF1L9W4yWQ== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1794298779; h=DKIM-Signature:Received:From:Subject:Date:Message-Id:MIME-Version: Content-Type:Content-Transfer-Encoding:X-B4-Tracking:X-Change-ID:To: Cc:X-Mailer:X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To; bh=wo1lN9Ka7SbNhyRK9N5flN97TBFUTexosNLejofEZvs=; b=CUiJtGz8VoTRJTqescNcQ+HQe9EtGFnZ+omx5rYOz1JFqToHuGx2hCMHUYJFH/66uj1c pXjTv4VvDfUUj9OQQOnexdTz17oA38FpdRAfFuV55ikY0vlJTyETtofDuslpgOS45JLgp YU2YKyCJsICy768HBfslUODdBGOW9KBGt1Bl7fQM3w/lAjYYemLHb8voL4OrbjkaeHH0L dSzP0tpUS6JeYB0jSDQM9AVtm6YwovTZyJwAXLo9lmFjazuP6tfl6xLeU3TaG1tCH6FmP QAK3uw5R83eyDFHcz7cfviRMnhUThJc3P0ZfAY9ZGQ8IHmte1wuaQUnTnEF1ZR03U1A== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id 25DEE1F008A5; Tue, 10 Nov 2026 08:19:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794298779; bh=wo1lN9Ka7SbNhyRK9N5flN97TBFUTexosNLejofEZvs=; h=From:Subject:Date:To:Cc:Reply-To; b=KBVHUeCtjLmA6UOXBaYU3EypVJ4+TcM2KN+lRVsw1mC2nA6PBv61bxqUSgShsKR2P N8+bLmCgl7Fe+WzJRIRRMYlugN0m61dUU6i2oTSssaOsJni5+ttyLoddCHaK7lMED1 8XMAwUVU5KS7s7bvzvwDR281+IfxugZhufnV6gjB1Iwl/mm7CuACbja8nfvGrglPwH G3j9Eh8AVRA5fJJCo7cN2I0+ZoqL4RXOwz+E3gSXmblOoJVihLNCqxlX+3LzE36QWN DjLa5weEVmN9YWRB85WTopl6j84IyAgXqqwemCuplK4qRAD7UwijmUW6HYZ2V3ypD5 KHlzd1RoJtAow== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 7BFE548A3B; Tue, 10 Nov 2026 08:19:38 +0000 (UTC) From: Xianwei Zhao via B4 Relay Subject: [PATCH v8 0/2] i2c: Add driver support Amlogic A9 I2C Date: Tue, 10 Nov 2026 08:19:32 +0000 Message-Id: <20261110-a9-i2c-v8-0-1e9d2682f86b@amlogic.com> X-Archived-By: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAJTT8moC/23QTW7DIBAF4KtErEsLw39XvUeVBeAhRmrsyo6sR JHvXohax5W9HHgfT8ydjDhkHMn74U4GnPKY+64M9uVAYuu7E9LclJkAA80c59Q7miFSkNJYBEB tBSnh4EekYfBdbGu8RN5qrMPrpV5/D5jy9dHzeSxzm8dLP9wetROvp78NIP8aJk4ZDdY3Lkidp Lcf/vzVn3J8jf2Z1EcmWCBnAAuEAqVCETFxo0LaQrGGboGiQBMEizEypoTYQvmERS5QFqg81w6 4ChbdFqo1FAtUBVqdoIkNN67Z+aNew+dydF2O95obnkCnHWj2oalQFBSUSD7J/3Ce5x93s28IE wIAAA== X-Change-ID: 20260911-a9-i2c-24478e22e683 To: Junyi Zhao , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Xianwei Zhao Cc: Junyi Zhao , linux-i2c@vger.kernel.org, linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Xianwei Zhao , Conor Dooley X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1794298777; l=2706; i=xianwei.zhao@amlogic.com; s=20251216; h=from:subject:message-id; bh=7OD2ZHZexewbKStsaM4JRg547aSZ2bzA2tErIvhXRqg=; b=z4KN8ySuSHewU8QqwYLOawLI5n1jEnP8ebyfm6o+JDR6sCgCov2SbimzEEtm/Tc2GYiG7PcCw BuPoghEaCoWBsWR09Gu+H82vN5/A60tUcoigTlTF6PFBv58sV8bVrwA X-Developer-Key: i=xianwei.zhao@amlogic.com; a=ed25519; pk=dWwxtWCxC6FHRurOmxEtr34SuBYU+WJowV/ZmRJ7H+k= X-Endpoint-Received: by B4 Relay for xianwei.zhao@amlogic.com/20251216 with auth_id=578 X-Original-From: Xianwei Zhao X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: xianwei.zhao@amlogic.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" X-Spam-Status: No, score=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Add a Device Tree binding and driver for the I2C controller found on the Amlogic A9 SoC. Signed-off-by: Xianwei Zhao --- Changes in v8: - Reserve complete(done) into lock, and adjust the code process in irq func. - Link to v7: https://lore.kernel.org/r/20261104-a9-i2c-v7-0-b31f2b53faf4@amlogic.com Changes in v7: - Move complete(done) out of lock, and when state = idle not complete(done) in irq func. - Link to v6: https://lore.kernel.org/r/20261104-a9-i2c-v6-0-baa6171f26f8@amlogic.com Changes in v6: - use xfer instead of master_xfer interface, and when div=8 remain valid. - Optimized the function. - Link to v5: https://lore.kernel.org/r/20261103-a9-i2c-v5-0-86f2dcd179d8@amlogic.com Changes in v5: - Mask out I2C_FUNC_SMBUS_QUICK and return I2C_FUNC_I2C | (I2C_FUNC_SMBUS_EMUL & ~I2C_FUNC_SMBUS_QUICK). - Link to v4: https://lore.kernel.org/r/20261102-a9-i2c-v4-0-5a169215b8e9@amlogic.com Changes in v4: - Repocess xfer len equal 0 use I2C_AQ_NO_ZERO_LEN, and Optimized the function. - Disable A9_RX_THRESH_READ/A9_TX_THRESH_WRITE enables of irq when xfer timeout. - Use guard(spinlock_irqsave) instead for direct call spinlock in xfer timeout process. - Link to v3: https://lore.kernel.org/r/20261029-a9-i2c-v3-0-7b30ccc00533@amlogic.com Changes in v3: - Based on the questions raised by the robot, the data flow was reorganized. - Some processing was optimized according to Andi's and Markus's suggestions. - Link to v2: https://lore.kernel.org/r/20261022-a9-i2c-v2-0-45e3cef175bf@amlogic.com Changes in v2: - dtbinding: make some minor modifications, suggestted by Conor and robot. - driver: Make some adjustments, including macro definitions, format adjustments, adding quirks, process optimization, and so on. According to Andi and robot's suggestion - Give up MAINTAINERS file the separate submission, make it together with the driver. - Link to v1: https://lore.kernel.org/r/20260924-a9-i2c-v1-0-b8ad9b46f4a8@amlogic.com --- Junyi Zhao (1): i2c: amlogic: Add Amlogic A9 I2C controller driver Xianwei Zhao (1): dt-bindings: i2c: add Amlogic A9 I2C controller .../devicetree/bindings/i2c/amlogic,a9-i2c.yaml | 56 +++ MAINTAINERS | 9 + drivers/i2c/busses/Kconfig | 8 + drivers/i2c/busses/Makefile | 1 + drivers/i2c/busses/i2c-amlogic-a9.c | 430 +++++++++++++++++++++ 5 files changed, 504 insertions(+) --- base-commit: 4ec2365c08de306f52650d8736aef5862baedb8d change-id: 20260911-a9-i2c-24478e22e683 Best regards, -- Xianwei Zhao _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic