Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1177845rdb; Mon, 19 Feb 2024 06:48:19 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWmaoLeYLXcq4x1f0nlWfZNnC1yOhlRtVSHNphTke5Ic7wC62IW99lVaxTEE7OGFnXxVZ1djjsP6QY/fJt4VnwntmPujZNpMuWhxzaD4A== X-Google-Smtp-Source: AGHT+IFqLhe7s3Ilfbd+yz8h2c7ADSdhkIVBMVxlC2jvMfcMFWWLPLVJuwmqYbyATJxJiuA+gw3I X-Received: by 2002:a17:906:b785:b0:a3d:6160:fcca with SMTP id dt5-20020a170906b78500b00a3d6160fccamr10696289ejb.69.1708354099095; Mon, 19 Feb 2024 06:48:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708354099; cv=pass; d=google.com; s=arc-20160816; b=xQKu3zNFySdtiHO/SCTWqyNiLQ/z2xT6G8wQ8enT917J1wf2BudvscigYR/qHKHttg CXh9elfBT6ZuYAFEZHCf1ZaU1HwN25/kPf0N0hGh6ST/YQbLqNH6N3U5lUpxSb8bFz2a jyEK9SFGRuz/re6bPasZfCCYfA5WnrRfxCml9OpL8YjfGsYGkPfBxNeODXxnRD+12Xlh jMJEsCIyg3hsdwgd8ClnD4vbUlWFFe+FwMK93rX0yBF85cHVgE+qvc05pD8Q7UUcTRtl J110fQJHgn7zQtUFzLkEIlUcDoodw1f++4+hJJXuYIC/dD5L+D4W7FR2B9vBhfbF13kA RcoQ== 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=jSJtb19xo6U4wrKlOqq7IbDHuxWUa9am9jpce38A2yU=; fh=rTzvvvDXRNjosiPLtlxzbzEcnzhd4vlo6t5jhASuWi8=; b=0wnW+7IFgyKvuZWDv2hAmZs+lhTI+oGTShTrPEGNGEKUhfqpig/x7QZnSgnBVf1lht +KGI4X7BSx6h5he4SYvCNvSupA2Wpc2IR1v8BG5jvOyE4yB25zJC8uuBiN9JgQNsaJms b2pamq5s1ealJ3lS11oy+fXKyMmSExPdMW4dVOE7JG6D4nqPAuVq0UmIHj6/rV2OEgjJ 1fJ7DEuvL7wa9INg4XVDShQSvv4Koaueme89Tp0ISaQ4NLlVELQOibvE7ifpag2ptmjj TMFoXe2WMLHcYje7o9dFdooxC9zk5I9NHH3RZzQ/XG+TnZSCYjBVsY12GPEInAom1C0d O1Vw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Y+Ri8PbE; 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-71478-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71478-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id p12-20020a1709060e8c00b00a3e78d96263si1241116ejf.553.2024.02.19.06.48.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 06:48:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71478-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Y+Ri8PbE; 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-71478-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71478-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 am.mirrors.kernel.org (Postfix) with ESMTPS id CE9B71F24E84 for ; Mon, 19 Feb 2024 14:30:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A762D37704; Mon, 19 Feb 2024 14:30:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="Y+Ri8PbE" Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) (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 5AEF737160; Mon, 19 Feb 2024 14:29:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708353002; cv=none; b=B32Y8fyB4wy0oN6faDdxxHC2zN6nT9jKMxDek8p/cW36xCDYmlOh6UDaPGSLD3t2F5H3xAeZlCRF0zLQl53Jto2BBJuc8TAuIYuWV2OFItinSPeSFxYeTM8GFnUSqFW1+oz64Iacqq73UjXhMveLd3aTaZYWwJ5BNGnWuOoDtuA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708353002; c=relaxed/simple; bh=jSJtb19xo6U4wrKlOqq7IbDHuxWUa9am9jpce38A2yU=; h=Mime-Version:Content-Type:Date:Message-Id:From:Subject:Cc:To: References:In-Reply-To; b=SOCZ5/inIpBqG5OXC7zIdmxNls9ThlbbSIDYI95iNpTyhduuYYAjdVC2mdDsoCAt/rlRbRfRnYJw3sRmJUUWY7qub/Z49V/4lYwoB3uFMdewtOLRaCHg12sevJj71sVv52HpIhRpvtTVH+8swtGLaOkIzZbeOyz3+5bRv1NkGpk= 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=Y+Ri8PbE; arc=none smtp.client-ip=217.70.183.201 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 E74DE1BF209; Mon, 19 Feb 2024 14:29:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1708352998; 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=jSJtb19xo6U4wrKlOqq7IbDHuxWUa9am9jpce38A2yU=; b=Y+Ri8PbEfAVqHYxOyn7iqdOjgEFwTTgLg0MONT5WYr9Pt6gbz+NqkpWDcV/ZjfYuInJ9PT dopPyvTqtIusrhbip7t5fiYVk+sTGQktlAk8uT7Qg0QfMV8xXxjgWQZ4ip+gFuj6pY0IPt 5M/K17pKPtqTOdeueh+LFKt6b5PLLEkrGV0FVcmKJCsN3oChUhbPa2JUZyilf+xSyn1et+ UzAlUgnQjMAigrc2fnsfdl4zlWDCZjsucLO3uEgvwKlnZGmhqAKcPQZIqO6iWoHBESoJEU uKb6etT9INEcZyxkGvsGiWPO8I87me5hCW8S1QAyHAuVcxUARUStsP1mtLPcdg== 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: Mon, 19 Feb 2024 15:29:57 +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: "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:06 PM CET, Linus Walleij wrote: > Hi Th=C3=A9o, > > thanks for your patch! > > 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 this > > prop has no reason to be compatible-specific. > > > > Feedback from dt-bindings and I2C host maintainers would be useful: wha= t > > should the property be named? Having the unit makes it self-descriptive= , > > which sounds like a good idea to me. timeout-usecs, timeout-us, another > > 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 exact 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 Thanks, -- Th=C3=A9o Lebrun, Bootlin Embedded Linux and Kernel engineering https://bootlin.com ------------------------------------------------------------------------