Message ID | 20241009-mbly-i2c-v2-0-ac9230a8dac5@bootlin.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 421B4CF0449 for <linux-arm-kernel@archiver.kernel.org>; Wed, 9 Oct 2024 10:34:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To: Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date:Subject: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=sciMm2xaCbtFbC/q7bparVgAbNpRaWLZ9FYaBQz2d4A=; b=jeW6kIl38Ej0r3 0vqBOwsoqEAynKNtOUTdLcWiRMmn1YGWAY9R3ezkZouHN6wtygWo6JCNHM78hgRdnYvVstcFIj8Rf ChdCxd1r6bxUHARPJHz9Z57ZDklhOoFbcwpJ01aZLvMlEU31sBkQm5RWaNMleXgR4OPZDLpCLTgBV cmZObfxG18HbKK+iY+yGJ5l8pmjcUDnBVMtKJsvBdy2zeB9AzLcDzclGw5dokoskDmgIrE1l2S2U7 e4UYXjBVCI6EnN09fEwGXgjVFe4Oj6NWZ9IPdLSd58DHnxt+jcVbL1TjG4yEFq5yRwkgJFgkufeC/ VviNXiBYTuU9/fDSmZUA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1syU1a-00000008tqd-2uhm; Wed, 09 Oct 2024 10:34:34 +0000 Received: from relay6-d.mail.gandi.net ([2001:4b98:dc4:8::226]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1syTqu-00000008ri9-3n34 for linux-arm-kernel@lists.infradead.org; Wed, 09 Oct 2024 10:23:36 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id 18AD5C0008; Wed, 9 Oct 2024 10:23:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1728469409; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=sciMm2xaCbtFbC/q7bparVgAbNpRaWLZ9FYaBQz2d4A=; b=Sroc8VNIMhDIyF2UmZSK0zg1nxhr/xzKhwKnpIJLcoUInfvTqaj9WO8BOF+qwwlQ/i+/9w clt8IdD/muxFjBr8BwlVa0hjLznJSaG4pttMHeMW6m8y7R9egunpWDo+v5FFvILsikaRMm Vp6ZGURp3w1pdajzYVexMzjTEZssDhuLsww6M6KbdA4drwEQJVT4shy8f+uIBeWpoOMOzd kezG1VI+Ce0VqdjwgbIaL6Jm2rUC/sWDpRkH2GYUZdUca0WOFVCZ1+V9XLFLfVGwye7PDG wQ/ZMaFOiuHlUAtMLPZYtmA7GPMYpNQr0vGRRf+3THrJ1Pk+y5vW7KCLOuHMng== From: =?utf-8?q?Th=C3=A9o_Lebrun?= <theo.lebrun@bootlin.com> Subject: [PATCH v2 0/6] i2c: nomadik: support >=1MHz & Mobileye EyeQ6H platform Date: Wed, 09 Oct 2024 12:23:26 +0200 Message-Id: <20241009-mbly-i2c-v2-0-ac9230a8dac5@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIAJ5ZBmcC/0XM0QqDIBTG8VeJcz2HnkXWrvYeows1WwdKQ0MW4 bvPBWOX/4+P3wHRBrIR7tUBwSaK5F0JvFRgJuVeltFQGpBjLTiXbNHzzggNw0aabqhb1B2Hcl+ DHel9Us++9ERx82E/5SS+6w9p/0gSjDPFGyNuQioc5UN7v83krsYv0OecP9jFI+eiAAAA X-Change-ID: 20241007-mbly-i2c-267c9d482b90 To: Linus Walleij <linus.walleij@linaro.org>, Andi Shyti <andi.shyti@kernel.org>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org> Cc: linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Vladimir Kondratiev <vladimir.kondratiev@mobileye.com>, =?utf-8?q?Gr=C3=A9?= =?utf-8?q?gory_Clement?= <gregory.clement@bootlin.com>, Thomas Petazzoni <thomas.petazzoni@bootlin.com>, Tawfik Bayouk <tawfik.bayouk@mobileye.com>, =?utf-8?q?Th=C3=A9o_Lebrun?= <theo.lebrun@bootlin.com> X-Mailer: b4 0.14.2 X-GND-Sasl: theo.lebrun@bootlin.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241009_032333_531972_C4D5ACAD X-CRM114-Status: GOOD ( 11.23 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
i2c: nomadik: support >=1MHz & Mobileye EyeQ6H platform
|
expand
|
Hi, Three patches are about adding Mobileye EyeQ6H support to the Nomadik I2C controller driver, in the same vein as was done a few months ago for EyeQ5. - dt-bindings: - [PATCH 1/6]: add new compatible. - driver: - [PATCH 3/6]: we switch from using a match table, before adding the new EyeQ6H compatible. - [PATCH 4/6]: adding EyeQ6H is only about creating a new match table entry thanks to the previous patch; we reuse the .has_32b_bus flag created for EyeQ5. Three patches are about supporting higher speeds (fast-plus and high-speed). - dt-bindings: - [PATCH 2/6]: fix them, they indicated only a max of 400kHz. - driver: - [PATCH 5/6]: fix computation of the bus rate clock divider (BRCR). It picks the smallest divider that gives a bus rate above target. Switch to picking the largest divider that gives a bus rate below target. - [PATCH 6/6]: then support high SM (speed-mode) values. This is not much work. It works on EyeQ6H HW just fine. 1MHz has been tested but not 3.4MHz because HW doesn't support it. The theory is there, and BRCR computation has been checked to be valid with 3.4MHz clocks. DTS patches are not provided because they depend on the platform's clock series [0]. Lore being down at the moment, see Patchwork [1]. Have a nice day, Théo [0]: https://lore.kernel.org/lkml/20241007-mbly-clk-v5-0-e9d8994269cb@bootlin.com/ [1]: https://patchwork.kernel.org/project/linux-clk/cover/20241007-mbly-clk-v5-0-e9d8994269cb@bootlin.com/ Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com> --- Changes in v2: - dt-bindings: change `clock-frequency: maximum` from 400kHz to 3.4MHz in a separate patch. - dt-bindings: use enum to list compatibles. - Switch away from of_device_is_compatible() in probe. Use a match table with flags inside .data, using of_match_device() from probe. This is done as a separate commit before adding EyeQ6H support. - Link to v1: https://lore.kernel.org/r/20241008-mbly-i2c-v1-0-a06c1317a2f7@bootlin.com --- Théo Lebrun (6): dt-bindings: i2c: nomadik: add mobileye,eyeq6h-i2c bindings dt-bindings: i2c: nomadik: support 400kHz < clock-frequency <= 3.4MHz i2c: nomadik: switch from of_device_is_compatible() to of_match_device() i2c: nomadik: support Mobileye EyeQ6H I2C controller i2c: nomadik: fix BRCR computation i2c: nomadik: support >=1MHz speed modes .../devicetree/bindings/i2c/st,nomadik-i2c.yaml | 13 ++-- drivers/i2c/busses/i2c-nomadik.c | 88 +++++++++++++--------- 2 files changed, 60 insertions(+), 41 deletions(-) --- base-commit: 6f1cfa7816af8b3286140f1b0476200d5e914eb9 change-id: 20241007-mbly-i2c-267c9d482b90 Best regards,