Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2483283rdb; Wed, 21 Feb 2024 08:58:27 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXbJ4wKxr8wwVG+tEfOiWyB7LFjD2NlAX9RGzgMPXYRIn/OQxZ+xsfNaqhBo9P2b9OQ38txC6I1FovGhKpAtnHSrAmOx4kc+ybZrd7ikg== X-Google-Smtp-Source: AGHT+IGV6DFGa5SXxveYzd8hC/oKRqYsK9NpLZ5kLYYQa+ZcTd+qKaEotpvmbSV3H5O15I5jyX1o X-Received: by 2002:a17:902:6847:b0:1db:9fef:b996 with SMTP id f7-20020a170902684700b001db9fefb996mr14858561pln.33.1708534706774; Wed, 21 Feb 2024 08:58:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708534706; cv=pass; d=google.com; s=arc-20160816; b=rwPrmGg2zduqKqV9hTgiXLJJti/awok8GBLuw7gSjY7XCFnttVVFsEcOtbB6FEUAe+ 1zRX8ALdVnOVmqYfc4tQMSVMuQb3Th5qxGKgX3lQygNig3b5IntU0e4MTbBlTzm4ry/r JRsyXFY2EUg4wK5rnsqCScTRaLdGZimkCp7z2h28Q4gbjwfXUpIQXckUoX4BGjx7HnaW Tfqywk68M8l/M4twupGS6Y0Bl2V9DYQUU/AQYM1WBU1pPMlQ1hrzbSpk8C49OC5Seu3L vTl8F/t259DfQZEVSdWWp076f061DGXXajpUnx7OZTt44f+iREnSXYhoWLjfjhb57FgG ZZdg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:to:cc:subject:from:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=wty1BLxtNSbJqrHVxaApJzAOEfZH1zGeAlvur02vYvI=; fh=uXg89GIo9Q1EVU5ZVRZ65G56sZE0934QLkvD3PpCcus=; b=KGJj27jbZttoxPy3yzHkbF6G5BspyHfppReuLlhote0tWzYy6AD8Yb3NVC4tuwdqQx aPDAbzSy0IP9gfjzcAoav/e0NfMqJLc+h+3gxK7fS2Gw3vfCDte/UmeZOFrkAUhNkRbn WWp5eJpEMOleWPwOrNCYy3hRJyAuKa4zb0bLcZouPbdpfvoZcJCDJH/MgFMBxIOdckGS UVoOBEGYC11BbrKS6xhOQhWh05RBe2Tv38ErmLIVrXOZ+tM9KDTbLLi419/nMkW92Hqo Woc2DOnErJZsZEYY2U4J0ZSYOLkCeLI5Izh/DCc+WAeVMT5aXTS8A9lkri4NBjECiFDk OX1Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=SfJ0k8TL; 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-75151-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75151-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id lq6-20020a170903144600b001dc04aa3863si4781972plb.473.2024.02.21.08.58.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 08:58:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75151-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=SfJ0k8TL; 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-75151-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75151-linux.lists.archive=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 7103A2837AF for ; Wed, 21 Feb 2024 16:58:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6684883A00; Wed, 21 Feb 2024 16:58:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="SfJ0k8TL" Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) (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 AAE7C82D99; Wed, 21 Feb 2024 16:58:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708534698; cv=none; b=cMNgn2I/LfhA41dGSfwsYBnY8L8AwTTUyd+8b1Gzo2lsLtgiS7Nve2FWtwdZ45Rxity2ffWd7zF7VO4VoDpFRqUTHU/+IUuXcmn5+Kfu/2PcRdVCZniMAqXY/z16xNTOj0LOyR5gWHURrgodWfgyeyH/ojBr2A1E5bmEoKDRb5w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708534698; c=relaxed/simple; bh=wty1BLxtNSbJqrHVxaApJzAOEfZH1zGeAlvur02vYvI=; h=Mime-Version:Content-Type:Date:Message-Id:From:Subject:Cc:To: References:In-Reply-To; b=kThnPf+sQpn4+haKgkZ6CYnyBlgxOB6Ej7q1FS+TmYCGoYxlePcHjVnggyAt1dljoRdNGcL3xRspFJMWYzDNb3wgkminYuOaAhUvta6uzA00QU4I1BoZEOamslW4sSCggoRUATPTzBQnTRw5zPzAZcvYB6udNs0Bv3Le/NGNDCU= 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=SfJ0k8TL; arc=none smtp.client-ip=217.70.183.195 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 635216000C; Wed, 21 Feb 2024 16:58:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1708534694; 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=wty1BLxtNSbJqrHVxaApJzAOEfZH1zGeAlvur02vYvI=; b=SfJ0k8TLbTGFe6vYyZiRNzhgl7QOjFdxgoS6K+byz3NEqavL3nTTuDDhrg3ngPUhK3anxM 6KzhhiLlqKkNS1JagCdArjvU2lSR1DuzKGWLYlsvRNlv5G6vMUvkHqxHNW6Js++uVze4LH 5Gi6LGEM3pwpq53tW63VvZoIbmx0hf4vH2UMT+91JnWUNM8rKJvbo9GhGuzbtggd9DXR52 8Fk5vtUDsHzsigFox75xnFxUjnEZywaEKh5SX2euXoCrw6pNFw12B1317QGh8zgV+NPEqH YZl7UBNflE8i9AaSwJ6FlhnYKvLArPDe5L7bi/DxQD+9VcvWL9afKVHjmuq6fA== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 21 Feb 2024 17:58:13 +0100 Message-Id: From: =?utf-8?q?Th=C3=A9o_Lebrun?= Subject: Re: [PATCH 01/13] dt-bindings: i2c: nomadik: add timeout-usecs property bindings Cc: "Rob Herring" , "Andi Shyti" , "Krzysztof Kozlowski" , "Conor Dooley" , "Thomas Bogendoerfer" , , , , , , "Gregory Clement" , "Vladimir Kondratiev" , "Thomas Petazzoni" , "Tawfik Bayouk" To: =?utf-8?q?Th=C3=A9o_Lebrun?= , "Linus Walleij" X-Mailer: aerc 0.15.2 References: <20240215-mbly-i2c-v1-0-19a336e91dca@bootlin.com> <20240215-mbly-i2c-v1-1-19a336e91dca@bootlin.com> <20240216022704.GB850600-robh@kernel.org> In-Reply-To: X-GND-Sasl: theo.lebrun@bootlin.com Hello, On Mon Feb 19, 2024 at 3:29 PM CET, Th=C3=A9o Lebrun wrote: > On Mon Feb 19, 2024 at 3:06 PM CET, Linus Walleij wrote: > > On Fri, Feb 16, 2024 at 10:16=E2=80=AFAM Th=C3=A9o Lebrun wrote: > > > i2c-mpc (fsl,timeout) and i2c-gpio (i2c-gpio,timeout-ms). I agree thi= s > > > prop has no reason to be compatible-specific. > > > > > > Feedback from dt-bindings and I2C host maintainers would be useful: w= hat > > > should the property be named? Having the unit makes it self-descripti= ve, > > > which sounds like a good idea to me. timeout-usecs, timeout-us, anoth= er > > > option? > > > > Use i2c-transfer-timeout-ms in my opinion, so it us crystal clear > > what that property is for. > > Using =C2=B5s (microseconds) would be OK? I'm not sure yet about the exac= t > timeout desired but a one millisecond granularity might not be enough > for the Mobileye usecase. > > Expect incoming patches to use the I2C controller in Fast Mode Plus > (1Mbps) and High Speed Mode (3.4Mbps). Gotta go fast! > > > As Rob mentioned this isn't in the kernel schemas but in dtschema, so > > you need to patch this: > > https://github.com/robherring/dt-schema > > Indeed. The other question if we do microseconds is the > suffix: -us, -usecs, -microseconds, etc? I picked -usecs for my v1, but > a grep tells me I am the only user of this suffix. -us is much more > common. > > BTW i2c-controller.yaml already has a =C2=B5s timeout: > i2c-scl-clk-low-timeout-us Note: I've sent a draft patch to dt-schema. See: https://github.com/devicetree-org/dt-schema/pull/129 Feedback from I2C maintainers would confirm or infirm that this goes in the right direction. Thanks, -- Th=C3=A9o Lebrun, Bootlin Embedded Linux and Kernel engineering https://bootlin.com