Message ID | 20241008-mbly-i2c-v1-0-a06c1317a2f7@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 A6DE7CEF14D for <linux-arm-kernel@archiver.kernel.org>; Tue, 8 Oct 2024 10:33:57 +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=4UBiSkAGEqIlk6OGBJi+SQVIzbv8Yq+NGeKs31Ac9wc=; b=DMyhMoyDtlFmTQ gTwrRw8uY+AcvKT6vfNtJYesyyb9XT+zIE3w/fX0mf1xfHovpQrv9f8cV4P9TlvzOo39Sg15QKQDI WOctK3TQk04TAVd6P4je0wFIsVk6VsuXBX9WhE1ZHzNQHUQ2fEeKqlp6Ll7jKrrwBwB6xzJDFuOr6 H2R6snYrJ2mugt3IK3CnNbJ0B6hNgBo2RMyi9gvbx8DICvi9GaYWejVdhH7AgT+jZU4A9tzm1agyA a7aCApd3jFHntCgZMNJuw0lHCrgl6NFyidENJI3NmZEzbjGptENcajK95bKY7cnLCs2GooETm2Mba 6ulR0Modn8vRVGu/Fkow==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sy7X8-00000005TJ1-0J8x; Tue, 08 Oct 2024 10:33:47 +0000 Received: from relay4-d.mail.gandi.net ([2001:4b98:dc4:8::224]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sy7TP-00000005Sak-2Jl6 for linux-arm-kernel@lists.infradead.org; Tue, 08 Oct 2024 10:29:49 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id 33384E000B; Tue, 8 Oct 2024 10:29:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1728383382; 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=4UBiSkAGEqIlk6OGBJi+SQVIzbv8Yq+NGeKs31Ac9wc=; b=fTrCiN9C+ENCif56EMf+WWlzWHIjkQ5yIq5T5mlg2OYzryTwD0X0Q0qfQLDPL2Z7ZGxp1m dM8svdZn7t/7JMIgzriua+lwzJka4q7OWDbfQ/fMviTpjU5nkxe9aay64aBGcgj1lXvrEi QKUiTg3KL7pQ+Xq9wvtDV9UgmFEywTqJ6geIY82+R6ubynKFbsk6h7jS9MA4LXREze5xFf 1dQUyVvwOTE0xWpYbqn2dDF/FBqV/xy05R0fgq7aM/2L4onbi0pP1Mhn2gMCMyEsX3dWe9 JhkyT+pGfoiPylw6EhesSD9rQgGwuW5zxPqcOAK+SZ9ULhem+4etDpVRBApA3Q== From: =?utf-8?q?Th=C3=A9o_Lebrun?= <theo.lebrun@bootlin.com> Subject: [PATCH 0/4] i2c: nomadik: support >=1MHz & Mobileye EyeQ6H platform Date: Tue, 08 Oct 2024 12:29:39 +0200 Message-Id: <20241008-mbly-i2c-v1-0-a06c1317a2f7@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIAJMJBWcC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxNDAwNz3dyknErdTKNkXSMz82TLFBMLoyRLAyWg8oKi1LTMCrBR0bG1tQA WVGuPWgAAAA== 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-20241008_032948_095704_3C8D8BF2 X-CRM114-Status: UNSURE ( 9.85 ) X-CRM114-Notice: Please train this message. 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, First two 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 wise, it is only a new compatible. EyeQ6H does NOT require the same mobileye,olb custom prop as EyeQ5. - driver wise, we are again on a 32bit memory bus, so reuse the .has_32b_bus flag. Next two patches are about supporting higher speeds (fast-plus and high-speed). - 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. - 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> --- Théo Lebrun (4): dt-bindings: i2c: nomadik: add mobileye,eyeq6h-i2c bindings 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 | 6 +- drivers/i2c/busses/i2c-nomadik.c | 65 ++++++++++------------ 2 files changed, 35 insertions(+), 36 deletions(-) --- base-commit: 6f1cfa7816af8b3286140f1b0476200d5e914eb9 change-id: 20241007-mbly-i2c-267c9d482b90 Best regards,