Message ID | 20240215-mbly-i2c-v1-13-19a336e91dca@bootlin.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-67345-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp4487dyb; Thu, 15 Feb 2024 09:36:28 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXtasK7QViTZ+P1Q0uuKOR5U+99MUPFPV46O3FiuxBaoWAtMSVyoMYaPpF96PGBsfB/kjkUq+ABkT7QAl4jpQlGR4pqYQ== X-Google-Smtp-Source: AGHT+IG5FeedMzj6pEEjq1p6YXTFJT5AHYVI7rt2DZHJ2YsSgCSVnXhJku6jSgvCh+/+y/mdKthS X-Received: by 2002:a17:902:c408:b0:1d9:7039:3519 with SMTP id k8-20020a170902c40800b001d970393519mr2381989plk.2.1708018588810; Thu, 15 Feb 2024 09:36:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708018588; cv=pass; d=google.com; s=arc-20160816; b=eM0unt6xzsY/FaWSW+fqQ0H7YtAv8JyvoXOvjCwDIo5IPQOln3TfJ8GMwG0kWCxTy5 MneRRDwezezqgzrW/Y5ly6dV1R7QLceODJZRic62BQ+FaaWT4DD5mq+OuNtYG4GyHqlv P81H86T5QaCOyjrso91Rbw89F+P+OFVaVbzCiGTbNVXUvcynQb+/vlYF3PcGxK5W8VVr wJ7Ms2pnjD9luV53Oa4vJ1mOf4MB4zAmS6mXFq3+sbzMEOCGpYRoyXWkjN3C2KjXUu3h LCrQg187TIt5SfCMpY885G2fzh1xLMpwTGq2m2stKTm+At/3HJdDTpOd8CvCc7ynGeMz 8GjA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=GiFCwkZp1j+zGkHFn7RNrGArILflr3YrUZ1AXzVuNHk=; fh=5JSnMO1qLgeVtLVJilSQcFnAcZn2MWLSM3RnsAdOnEU=; b=sUBU66layJfPBMDBDMFkVE3LKJts+WUBEksc4SiIUXySM/nvYbjYaP23A83Aj/uil+ e1G+XMXW7D3npPRQ6XXF70LUCZ8u8FfA4O2Uh0k9lrXrygy5mbcfAaYTgU/GERiaYnE6 t1Z+CIzjxqOdVViVqmI4p+g9V1FE6uac285gD0tC+vcts0iyQRvcSLDJaqscTgt0wDQF 1D2pVlHeg6qvR1ttZRkbBOk28rpSrEm4f/1J/GJ2k1AQxW1pmp0RtK8Hjs2o8z2b/BuO GjUXnaPZsbG1UrgY2KogT83+Wi2OSVupdWoqmQQp0YUIpuN4XE8LZyBIptT6rDnwOuhq VjOg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Puy0rwxW; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-67345-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67345-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id u1-20020a170902e5c100b001d9004b68f2si1488528plf.239.2024.02.15.09.36.28 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 09:36:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67345-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Puy0rwxW; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-67345-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67345-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id F10ACB26FBF for <ouuuleilei@gmail.com>; Thu, 15 Feb 2024 16:56:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7064B13B7AA; Thu, 15 Feb 2024 16:52:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="Puy0rwxW" Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6710F13A245; Thu, 15 Feb 2024 16:52:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.196 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708015966; cv=none; b=PCwmYLHbQRdjLo2pIL7TV3NIueQI0MmZgCsEJ/8uHHkFr63/hJXDyAWOmqOXUbJ7V8PBXgaEsMQCmykcZv5s7jjzHIt1/MSSXq+mc8+W5spREaZZlYraoY/8POXj3a9M0mLaKiETH9yVJhVdEZnmweq2WCpp6SJH/dktrKwWlAc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708015966; c=relaxed/simple; bh=UvJih+xma5Rq5UrC8pGOHSo+fikaNT91p0IHc5YM7jc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=fOyVhhTZemAXwFId7x/eLtHh+6PVhrL/7vIi8mC0NmyuYJTJ2ZMuz/e77+0iTgzVD1rDPd+4XdlNRUZJa5LNCMQ9uOxmuECvh8B9hKx/Bicbdi+j1u4Za25YKJ2hRUS24t7eFQv7LMW9h6AGL+Qu3mcBMGceYlFlrxI/YtFKixA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=Puy0rwxW; arc=none smtp.client-ip=217.70.183.196 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id EA1E9E0015; Thu, 15 Feb 2024 16:52:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1708015962; 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: in-reply-to:in-reply-to:references:references; bh=GiFCwkZp1j+zGkHFn7RNrGArILflr3YrUZ1AXzVuNHk=; b=Puy0rwxWjmDTOBKb2sbGV5fyIc7/74RRKyfDEgEOtMZjdNSJQ2WyY1gl1DXzAwex5mPdl3 QacCUNY23/JCxMcdT2UXKpoTV4B8dO9OsLu+CnNdAiOvBF8bqodVIf9f+1wIvDh+oZr/Lb 3PVbqKj8FyTFPRN0sQW1MqBc443CBD8wy3gnce+N+g7kWWOvnUS5KVIUG+Cvmt7Dpp5Amk pOlISBbrivjhkjen8z7ieN07ncee27jTekI5xQSkYvkQlFXtF30ObTZnKhnqS/HlJ0UL2D tYa1JOjSwvUj2FaPQKG0S2AMA1PSTK5JPxcI/BjXz7G1oyYuTy0sF+km1tvdwA== From: =?utf-8?q?Th=C3=A9o_Lebrun?= <theo.lebrun@bootlin.com> Date: Thu, 15 Feb 2024 17:52:20 +0100 Subject: [PATCH 13/13] MIPS: mobileye: eyeq5: add resets to I2C controllers Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240215-mbly-i2c-v1-13-19a336e91dca@bootlin.com> References: <20240215-mbly-i2c-v1-0-19a336e91dca@bootlin.com> In-Reply-To: <20240215-mbly-i2c-v1-0-19a336e91dca@bootlin.com> To: Linus Walleij <linus.walleij@linaro.org>, Andi Shyti <andi.shyti@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Thomas Bogendoerfer <tsbogend@alpha.franken.de> Cc: linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, Gregory Clement <gregory.clement@bootlin.com>, Vladimir Kondratiev <vladimir.kondratiev@mobileye.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.12.4 X-GND-Sasl: theo.lebrun@bootlin.com X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790987299870984629 X-GMAIL-MSGID: 1790987299870984629 |
Series |
Add Mobileye EyeQ5 support to the Nomadik I2C controller & use hrtimers for timeouts
|
|
Commit Message
Théo Lebrun
Feb. 15, 2024, 4:52 p.m. UTC
Add resets properties to each I2C controller. This depends on the
reset-eyeq5 platform reset controller driver.
Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
---
arch/mips/boot/dts/mobileye/eyeq5.dtsi | 5 +++++
1 file changed, 5 insertions(+)
Comments
On 15/02/2024 17:52, Théo Lebrun wrote: > Add resets properties to each I2C controller. This depends on the > reset-eyeq5 platform reset controller driver. > > Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com> > --- This should be squashed with previous patch adding i2c controllers. Don't add incomplete nodes just to fix them in next patch. Best regards, Krzysztof
Hello, On Fri Feb 16, 2024 at 8:59 AM CET, Krzysztof Kozlowski wrote: > On 15/02/2024 17:52, Théo Lebrun wrote: > > Add resets properties to each I2C controller. This depends on the > > reset-eyeq5 platform reset controller driver. > > > > Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com> > > --- > > This should be squashed with previous patch adding i2c controllers. > Don't add incomplete nodes just to fix them in next patch. The goal was to isolate reset phandles to a single patch. The series with this patch dropped works because resets in their default state are deasserted, so this isn't a fix. And it allows testing the series on hardware with only the base platform series, which I found useful. Noted, I'll be squashed for next revision. Regards, -- Théo Lebrun, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
On 16/02/2024 10:05, Théo Lebrun wrote: > Hello, > > On Fri Feb 16, 2024 at 8:59 AM CET, Krzysztof Kozlowski wrote: >> On 15/02/2024 17:52, Théo Lebrun wrote: >>> Add resets properties to each I2C controller. This depends on the >>> reset-eyeq5 platform reset controller driver. >>> >>> Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com> >>> --- >> >> This should be squashed with previous patch adding i2c controllers. >> Don't add incomplete nodes just to fix them in next patch. > > The goal was to isolate reset phandles to a single patch. The series That was what you did, not the goal. If that's the goal, then it is clearly wrong. > with this patch dropped works because resets in their default state are > deasserted, so this isn't a fix. And it allows testing the series on > hardware with only the base platform series, which I found useful. Series or half-of-series? Anyway, commits must be logical chunks, so one chunk is to add I2C controllers, not "part of I2C controllers". DTS is also independent of drivers (and it will go via different trees!), so whatever dependency you think of, it does not exist. Best regards, Krzysztof
Hello, On Fri Feb 16, 2024 at 10:17 AM CET, Krzysztof Kozlowski wrote: > On 16/02/2024 10:05, Théo Lebrun wrote: > > Hello, > > > > On Fri Feb 16, 2024 at 8:59 AM CET, Krzysztof Kozlowski wrote: > >> On 15/02/2024 17:52, Théo Lebrun wrote: > >>> Add resets properties to each I2C controller. This depends on the > >>> reset-eyeq5 platform reset controller driver. > >>> > >>> Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com> > >>> --- > >> > >> This should be squashed with previous patch adding i2c controllers. > >> Don't add incomplete nodes just to fix them in next patch. > > > > The goal was to isolate reset phandles to a single patch. The series > > That was what you did, not the goal. If that's the goal, then it is > clearly wrong. > > > with this patch dropped works because resets in their default state are > > deasserted, so this isn't a fix. And it allows testing the series on > > hardware with only the base platform series, which I found useful. > > Series or half-of-series? Anyway, commits must be logical chunks, so one > chunk is to add I2C controllers, not "part of I2C controllers". DTS is > also independent of drivers (and it will go via different trees!), so > whatever dependency you think of, it does not exist. My reasoning was focused on my point-of-view as a contributor and tester of the series. Your explanation makes sense; I had never thought this through from the maintainer's POV. Thanks, -- Théo Lebrun, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
diff --git a/arch/mips/boot/dts/mobileye/eyeq5.dtsi b/arch/mips/boot/dts/mobileye/eyeq5.dtsi index d27e164f0fc1..c0842836fcc8 100644 --- a/arch/mips/boot/dts/mobileye/eyeq5.dtsi +++ b/arch/mips/boot/dts/mobileye/eyeq5.dtsi @@ -80,6 +80,7 @@ i2c0: i2c@300000 { #size-cells = <0>; clocks = <&i2c_ser_clk>, <&i2c_clk>; clock-names = "i2cclk", "apb_pclk"; + resets = <&reset 0 13>; mobileye,olb = <&olb>; mobileye,id = <0>; }; @@ -94,6 +95,7 @@ i2c1: i2c@400000 { #size-cells = <0>; clocks = <&i2c_ser_clk>, <&i2c_clk>; clock-names = "i2cclk", "apb_pclk"; + resets = <&reset 0 14>; mobileye,olb = <&olb>; mobileye,id = <1>; }; @@ -108,6 +110,7 @@ i2c2: i2c@500000 { #size-cells = <0>; clocks = <&i2c_ser_clk>, <&i2c_clk>; clock-names = "i2cclk", "apb_pclk"; + resets = <&reset 0 15>; mobileye,olb = <&olb>; mobileye,id = <2>; }; @@ -122,6 +125,7 @@ i2c3: i2c@600000 { #size-cells = <0>; clocks = <&i2c_ser_clk>, <&i2c_clk>; clock-names = "i2cclk", "apb_pclk"; + resets = <&reset 0 16>; mobileye,olb = <&olb>; mobileye,id = <3>; }; @@ -136,6 +140,7 @@ i2c4: i2c@700000 { #size-cells = <0>; clocks = <&i2c_ser_clk>, <&i2c_clk>; clock-names = "i2cclk", "apb_pclk"; + resets = <&reset 0 17>; mobileye,olb = <&olb>; mobileye,id = <4>; };