Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4129036ybi; Tue, 11 Jun 2019 01:14:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqx0Wg+nMKfYxTr5BfA1mRJDo3uavwDtYh6mp2YCCuM/aayS4JQ15LJQKFxAVSizRMWOOrBw X-Received: by 2002:a17:902:8f87:: with SMTP id z7mr48108337plo.65.1560240880823; Tue, 11 Jun 2019 01:14:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560240880; cv=none; d=google.com; s=arc-20160816; b=qlHnsvtHy6mCQwzbV7TuuXuvhe4rHQNCKq6nlJprOOm8FZ1I8GqumskE+bUVtTGl/8 iN61v4rPl/OhaxWcOKVZEvbeA+ZRiUoYwfS9cr8JQloTnpf2ZPonsBAhsHaMX47VDfdo 06BUTNbKnV7WNvce2/P+0PEvKphUsqSFrI6oSjwZVRnPhh3WotV1UOlf0I7eAzw2ud3Z /oqdTWRo3OS2EgDzEyzigK9BVOdvjAD9uBFUcBYsP+cPjDCTKgcUISbjJ8an7gYHOXM4 0jKOy7xsOm1QAkSKT6SvHE/chc4IYoOK11EFSRm0EDUsGYQU88hX8ctndcIPr9r6FUEg EWxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=x0LnCCpt0j1UJidgapjf/Ak+au92Ln8ODGnludi5QRE=; b=K15iV8veQxQglBQkSXHX3DYyu5OUhZ943Laq7wb7KoFuxoa6MBPMzYOSriwzj3iqaA xYaYh5Qt9rTlLez089emQl/k1I+LPwoHfFQn4MbtMHSXw3mXZ3MSiiUqO7/ZW98VYHmt dAOWDJXHAydnwYQd3A3bqkdxFSUuEPP2AiQCew1tl2jCpPlllYSvWCwsydLWqIZlvG8T Fcn07Yl+v/gA+G7i2IONFHNlBxamYrxs1HwBNEJ8hp0XEckhbpMn+GSeHrVt5HsisTtn KCPdaMtE9+ZtFbdURRh53cNcfwCxNGHayJo0EGTs5T8D8v/nSBi9ejjsBZ38S8vjOAeP GgVQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v22si12715893pfe.275.2019.06.11.01.14.25; Tue, 11 Jun 2019 01:14:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404673AbfFKIM7 (ORCPT + 99 others); Tue, 11 Jun 2019 04:12:59 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:62965 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2404512AbfFKIM5 (ORCPT ); Tue, 11 Jun 2019 04:12:57 -0400 X-UUID: 55954d84e960454bb1d0a693af0dfb87-20190611 X-UUID: 55954d84e960454bb1d0a693af0dfb87-20190611 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 561174206; Tue, 11 Jun 2019 16:12:49 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 11 Jun 2019 16:12:48 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 11 Jun 2019 16:12:47 +0800 From: Qii Wang To: CC: , , , , , , , , , Subject: [PATCH 1/2] dt-bindings: i2c: Add MediaTek i2c AC timing binding Date: Tue, 11 Jun 2019 16:11:54 +0800 Message-ID: <1560240715-22595-2-git-send-email-qii.wang@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1560240715-22595-1-git-send-email-qii.wang@mediatek.com> References: <1560240715-22595-1-git-send-email-qii.wang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add i2c AC timing binding to binding file. It can give the AC timing parameters to meet I2C specification at different speed. Signed-off-by: Qii Wang --- .../devicetree/bindings/i2c/i2c-mt65xx.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/i2c-mt65xx.txt b/Documentation/devicetree/bindings/i2c/i2c-mt65xx.txt index 68f6d73..0f92813 100644 --- a/Documentation/devicetree/bindings/i2c/i2c-mt65xx.txt +++ b/Documentation/devicetree/bindings/i2c/i2c-mt65xx.txt @@ -30,6 +30,7 @@ Optional properties: - mediatek,have-pmic: platform can control i2c form special pmic side. Only mt6589 and mt8135 support this feature. - mediatek,use-push-pull: IO config use push-pull mode. + - ac-timing: give some AC timing parameters to meet i2c spec fully. Example: @@ -43,5 +44,15 @@ Example: clock-div = <16>; clocks = <&i2c0_ck>, <&ap_dma_ck>; clock-names = "main", "dma"; + ac-timing = /bits/ 16 < + 0x8001 /* 0:ext */ + 0x0005 /* 1:inter_clk_div */ + 0x0102 /* 2:scl_hl_ratio */ + 0x0102 /* 3:hs_scl_hl_ratio */ + 0x0002 /* 4:scl_mis_comp */ + 0x0002 /* 5:sta_stop */ + 0x0002 /* 6:hs_sta_stop */ + 0x0002 /* 7:sda_timing */ + >; }; -- 1.7.9.5