From patchwork Sun Dec 9 20:59:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Panceac X-Patchwork-Id: 1010173 X-Patchwork-Delegate: wolfram@the-dreams.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-i2c-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="nAsLG4IB"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 43CdsB04BKz9s4s for ; Mon, 10 Dec 2018 08:00:46 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726225AbeLIVAo (ORCPT ); Sun, 9 Dec 2018 16:00:44 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:40848 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726194AbeLIVAo (ORCPT ); Sun, 9 Dec 2018 16:00:44 -0500 Received: by mail-wm1-f65.google.com with SMTP id q26so9185000wmf.5 for ; Sun, 09 Dec 2018 13:00:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=FZeR/mKj0AoE9USkh1Qkmo3uZPqHmOdVj1HsSc8ENxo=; b=nAsLG4IB1jKsZuYZ+qSQdn/YUkTm5EWU6+9utSrEZNjmSSZFAe9FldsipKySuyB5Te aIQ2L0YCIGhsrYgX2CKnjWN4OOKcGpew46XrnzQDHuBCEArXlea0Gsy/eYz5Y6cfynUw oq9JzNcF0lLtGAZ7ZNO4gOx6QjYKIIOFKWOtqnmiQEZ7HdlD/QXPZKORsM5T8as6WOLZ 1Zb6tw2pwkosPyA1gZXe2Y+L0YEsKnMEKuP/iDExIcUthecl5Ndnqir/ScHcD1c4gzWl deKsaE1a6eHY3tMY5i0uyGRj3lpo+ch7vhi3zut3cDgU24rAPU5hJco9uBEQlHuIp05a e8LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=FZeR/mKj0AoE9USkh1Qkmo3uZPqHmOdVj1HsSc8ENxo=; b=TDBoU9hhBPO/NnDXFS0aoOkal671udZYU395h8qMPUfZ8eahSyKrPeFyfDlacuKCUe RgjxgNhEJh7OyMI5RlQQuSRlvk6mowcmoqKHey1gJSIxIZiv3xdrQBvy363QX5i0/Dkc A4B8MIYGoZM5QLyisbA0DxjUqK6gMPTD+3keJAjKJq387ELqZUNMU5ZNSNBMcx+vQNZz 0fAJOq3Fw38HoWDJDrv/2w0R8iEYqn/PRRkNbmyLBKwnuUd9UdkxdcF0dJGVxD9xJBnc gafD9zAfgPcIZ0Bi8Ad1jnACpXqze/h9EH1F3p8eUHDIpTumi14OIplcLNR4MfR1Dtc8 wuxg== X-Gm-Message-State: AA+aEWZRQ/2O2Xg7NaSBo6rV3tbMtgCgePEia3yor2K+s7ELbP/rZs/M CaHt1p/yLsHFERWBUn/HyrgZ31/Z/qQ= X-Google-Smtp-Source: AFSGD/ULXb2MZAET943LQQ9HBYRRvsFQKH/lnL53T/k4xTlK6UTr2m7iK0hPl++3xEJQNnKVz3g5Qw== X-Received: by 2002:a1c:83c8:: with SMTP id f191mr8423806wmd.134.1544389242630; Sun, 09 Dec 2018 13:00:42 -0800 (PST) Received: from localhost.localdomain ([188.24.206.105]) by smtp.gmail.com with ESMTPSA id n8sm13151081wrw.59.2018.12.09.13.00.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 09 Dec 2018 13:00:41 -0800 (PST) From: Sebastian Panceac To: linux-i2c@vger.kernel.org Cc: Sebastian Panceac Subject: [PATCH 1/1] i2c: Fix value of the delay-us property in i2c-gpio dt binding docs Date: Sun, 9 Dec 2018 22:59:18 +0200 Message-Id: <1544389158-10465-1-git-send-email-spanceac@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org The clock period for the bitbanged I2C bus is equal to 2*delay-us. This modification sets te correct delay-us value to 5 for a desired frequency of 100KHz. The old value of 2 for delay-us set a frequency of 250KHz and not 100KHz as stated in the comment. Signed-off-by: Sebastian Panceac --- Documentation/devicetree/bindings/i2c/i2c-gpio.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/i2c/i2c-gpio.txt b/Documentation/devicetree/bindings/i2c/i2c-gpio.txt index 38a0556..d418b0e 100644 --- a/Documentation/devicetree/bindings/i2c/i2c-gpio.txt +++ b/Documentation/devicetree/bindings/i2c/i2c-gpio.txt @@ -35,7 +35,7 @@ i2c@0 { compatible = "i2c-gpio"; sda-gpios = <&pioA 23 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; scl-gpios = <&pioA 24 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; - i2c-gpio,delay-us = <2>; /* ~100 kHz */ + i2c-gpio,delay-us = <5>; /* ~100 kHz */ #address-cells = <1>; #size-cells = <0>;