From patchwork Thu Feb 1 04:46:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aahil Awatramani X-Patchwork-Id: 195157 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:106:209c:c626 with SMTP id mn5csp209090dyc; Wed, 31 Jan 2024 20:47:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IH4H/884nRvD8JCKqjZ0qECLbcH7jIxnea+O2M9KoId4ZjWX/QUz+m8taLu3D2Q2RhvS44N X-Received: by 2002:aa7:c3cc:0:b0:55f:43f4:9ba with SMTP id l12-20020aa7c3cc000000b0055f43f409bamr2269356edr.34.1706762858090; Wed, 31 Jan 2024 20:47:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706762858; cv=pass; d=google.com; s=arc-20160816; b=TNIGHEUCEx3Io+82HPon4RGXWogW0rb6zMmpK0VGaesriJnV/ihm0mvj23jBeb27fL qbQBBJibQ5kD7JZzaqEr0EBvaPgQvaYCVsfhYe3eYYrPCtH5S49sXO+hz+6z5eDFmhGM YV4W3yCTz6bEP7TL37YNBgFRQZk1rMscc7fdxQbg3ZCjprYUsea509EnBf8jrzKkqZsB DXxRRuPkaSWwklhv5zw3A45fQge/Z+Q4HNzZrtIUPFobTEJ6bSNfsMlMXJhcortbvVQv VJ7W0Y7b1K7dLDyhkuw0ZpjpPjmZ50lXsRR/fBVQCox/zlncmuCsUbm2Y1YYdXdFZIwT HKXw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:message-id:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature; bh=uYSo7dLHiN39LMct+TvOkaek+OHlhRLiZBJ+JHrrHE0=; fh=YLsW+5qzeK23MjHZdqmITfNSBmJXtD5RArrXcFu7ix4=; b=KGWLg/CQV7eWnReysjNCptLK2td1zHHNTiMIAYsTn7Y2a43BRKeot9omk53FcC63Fj c5IxziZg3ud4mPeW9WMuLnczep3hqKqUvHZJxlM+sQODxqNJa1P2ql1oC20M4ad3dKkg lnVxXowbBSiKcZQKKSyUYnYfav5IvTnoCi7jFuoWYADOw0hZry0t5Zta8iFy8Ga8GrbH 1AroWDzQP14FKxgFgOiB09DebI5UmcUva50FXCi0++IjeQjDaaTVSu+qQX8ZhvpPmLfx KReklueOIuX8YsYco81sOS+/1V0tGuPRJLk9p9tVXOIRuRo5KG6dpqi0ucR7F3Q9wr6L VK9A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="MtSY0Pj/"; arc=pass (i=1 spf=pass spfdomain=flex--aahila.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-47629-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47629-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com X-Forwarded-Encrypted: i=1; AJvYcCUNtiyPZ+7IP2GNgf906Z9q0bAlzXYypUWZw8IaYdVHlISnliTmbHcWZUxKiLqc8ojf2Q9FqNvYzJ/oO2R2D28ZTGS6Vg== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id fk4-20020a056402398400b0055f986fe347si879489edb.96.2024.01.31.20.47.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 20:47:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47629-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="MtSY0Pj/"; arc=pass (i=1 spf=pass spfdomain=flex--aahila.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-47629-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47629-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 D103F1F22D86 for ; Thu, 1 Feb 2024 04:47:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 837C03CF76; Thu, 1 Feb 2024 04:46:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="MtSY0Pj/" Received: from mail-pg1-f202.google.com (mail-pg1-f202.google.com [209.85.215.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4CCFF3CF52 for ; Thu, 1 Feb 2024 04:46:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.202 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706762807; cv=none; b=RESyq6LlH+dudOJ2kcyHyHJdM7W0Xj7Lc8OaWBoLVS49e/79WNMmFwzc/tatFDKW+5qakwhryNF/GzV53UIhCTia7BrW7h5YRedVqeWFiKvQIu+/HT0ckaB7O3Yw+mc02Ma6ClcK/2hiVyvC7FajdV5tkFMJc6COdQr4r+YeqTI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706762807; c=relaxed/simple; bh=4VGGGcaYk35HxXgdSmdu935kGFSoAd32AIvMtmVqZPQ=; h=Date:Mime-Version:Message-ID:Subject:From:To:Content-Type; b=MGZADbCS1bW7K5jBbwQ46siHlfCcA0NAOFofRWBm0MoFKmg6yDv6UDsxT25eRUvg+YmyFK7H7prrFuvsJz5zVNcVBAbsvcPwX+V3/qpYlmqSqh5Ikufd2lx9yc65MOZLv87ZhWkV9sxjcleF5+Im+TNRL6vUGy9g1nW9BgWGipE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--aahila.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=MtSY0Pj/; arc=none smtp.client-ip=209.85.215.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--aahila.bounces.google.com Received: by mail-pg1-f202.google.com with SMTP id 41be03b00d2f7-5d8c924c8bbso589575a12.3 for ; Wed, 31 Jan 2024 20:46:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1706762805; x=1707367605; darn=vger.kernel.org; h=to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=uYSo7dLHiN39LMct+TvOkaek+OHlhRLiZBJ+JHrrHE0=; b=MtSY0Pj/cyrsCH8V6NyW1kLO7ySRKjHc0+PYyqlrfa3mmN4mkUPx8Gsn9OutO007t+ Rmxg1nesn9bkf5/O2Zn8/gWqYKmqel1mWZvD/Xn5iNeHtAz2bD5TicAYAXBXMKpYrnyg z1IEcHUH5hvlCv0c/W7en6F8ktGwJAjpqaNZQMbhz7cxDLI1L58+boETjp76buNcqoNN dwd2+0y1ya7F6UQHncWBpY0P4csOZmCHzRlGWdD9Anno/YCi8rNzM9AjvShzVIFZH5dz 4LVlljbCzZPQj2zC5ypFH4FqjKkmW+x7G2vEj9OPllsxAHkQTbdqX2bNNf4L7BMUEk7q aIJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706762805; x=1707367605; h=to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=uYSo7dLHiN39LMct+TvOkaek+OHlhRLiZBJ+JHrrHE0=; b=taUeyTV7DUsjIKxOtVHvwZBGHLFX6xuMUwANzkIn2LAEfk2VSIcKm5K9eftJdKLN5m +EBgxdIWkMqFtRln4ODHOvvx34i5SHtTVyPjivNVnBuCoH7WjMRbCgLIJKTCr71amoWi dhOAR0WRxmAxOz4aTBOUbORZx5woNKdi+hjQUoRTjM1y7rpCZcue7z9jV9IYY3b1MyiC Y9Vq4zQGBRoPgZPE57spD8XmqmsbvZY+99AZrFCupJ/T0+llbW3w215XLceZSMeSnvzR Z0REIEbQuvtfYRpISlSjFUKDbQ+uKrVNNjK+VbzfuhB3/eq8zEXuqzOwYXqWAGAChza1 TD0w== X-Gm-Message-State: AOJu0Yzm8fPqdGTyreJIDXIIdB1CqqfxJRKuSUvE1dj42l6+zaekqC+a 2gLoTinrO9Etmqs6r6Wf9sF43dm202VY0arTh6QfhxI6veYRk/9AGlzPsbEOo+FUsiy6GRHugI+ yWg== X-Received: from aahila.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:2f3]) (user=aahila job=sendgmr) by 2002:a65:6115:0:b0:5d4:e18a:1e5 with SMTP id z21-20020a656115000000b005d4e18a01e5mr88518pgu.5.1706762805440; Wed, 31 Jan 2024 20:46:45 -0800 (PST) Date: Thu, 1 Feb 2024 04:46:22 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.43.0.429.g432eaa2c6b-goog Message-ID: <20240201044623.374389-1-aahila@google.com> Subject: [PATCH 1/2] dt-bindings: i2c: designware: allow fine tuning tuning waveform from device tree From: Aahil Awatramani To: Aahil Awatramani , David Dillow , Wolfram Sang , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jarkko Nikula , Andy Shevchenko , Mika Westerberg , Jan Dabros , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789670570576277960 X-GMAIL-MSGID: 1789670570576277960 The Synopsys i2c driver allows a user to override the parameters controlling the waveform using ACPI; this is useful for fine tuning when needed to make spec compliance. Extend this support to the device tree to allow non-ACPI platforms the same capabilities. Signed-off-by: Aahil Awatramani --- Documentation/devicetree/bindings/i2c/i2c.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/i2c.txt b/Documentation/devicetree/bindings/i2c/i2c.txt index fc3dd7ec0445..3c33c36571f9 100644 --- a/Documentation/devicetree/bindings/i2c/i2c.txt +++ b/Documentation/devicetree/bindings/i2c/i2c.txt @@ -45,6 +45,24 @@ wants to support one of the below features, it should adapt these bindings. Number of nanoseconds the SCL signal takes to rise; t(r) in the I2C specification. +- i2c-scl-ss-hcnt + HCNT value for standard speed mode in I2C Controller. + +- i2c-scl-ss-lcnt + LCNT value for standard speed mode in I2C Controller. + +- i2c-scl-fs-hcnt + HCNT value for fast speed mode in I2C Controller. + +- i2c-scl-fs-lcnt + LCNT value for fast speed mode in I2C Controller. + +- i2c-scl-hs-hcnt + HCNT value for high speed mode in I2C Controller. + +- i2c-scl-hs-lcnt + LCNT value for high speed mode in I2C Controller. + - i2c-sda-falling-time-ns Number of nanoseconds the SDA signal takes to fall; t(f) in the I2C specification.