Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp341597ybd; Tue, 25 Jun 2019 22:39:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqyMJB36p89LzXIwIb/+HPRxCTwC8FfoCR0GfGruPKAL0nP+Wp8Z6dNutRXqsCnzOS8NC4JH X-Received: by 2002:a17:90a:342c:: with SMTP id o41mr2418345pjb.1.1561527569423; Tue, 25 Jun 2019 22:39:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561527569; cv=none; d=google.com; s=arc-20160816; b=XnceVRNRlXvVmecVxLi26N0lAR3c1JrPoLgjtkVnqqR6pcJ043GJFDh90ey8Goa68g rWJeRGgl0U8qtKvBa+/PmDb83QrHOOhiMumoDg/BlZ/MuJEivsuFwbBGAFI3xpF1NXWq QInbdVFMMfWligqRNukaAf+scvLMgoYFqsTD4ueJYdbuC8Bc8d02Ht8EUH+JGiEp98tJ UhMMwj1cskcQmMK6iUOOL32fADFs+F1thMeFoBa3ug52LBgn43brtpJ47zAAbK2fdBRm wf98loxXbZIxMvJBqPjAW7She/+RiThBuC7MGyV9DMdzacqeupKLX9SRlCY63mYrpBAv aD0A== 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=YmvMnaU0TneeIzMwn902HANxQrHN+kO4MTKoE+ulJe8=; b=FQYxG7aaa3XiF6LU51A1Mwr5TTNfybJUR1A5dRSuyB23/ueBZECARLavIWVoaB9jVE 6W2zV0onwylO01f1q4EXMOcg44PyZtOi1tgw2GbRzlw2JAz9YaYVIpPQZ67WRHInMSiE GpJi1Zf7IeF/kdy+ssBWfsyUzaQrIckd8zTOaQqrtqyA9EbUwW7mHFKjCYLl6HqFIpL7 8NkeACdT2kJNsheOMyqn+gN9JkwryzpyxPzknlZdHdHus4HdvZ/TnoBaSp1QNErEl2pB zw5xXCIzz9MrOfK9Qrp3gLDyLCfYg5bv8kh+KdKqlSi2D5O30BuR2xGMrkVXSE0BK8YQ xbZA== 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 i19si17115728pfa.232.2019.06.25.22.39.13; Tue, 25 Jun 2019 22:39:29 -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 S1726612AbfFZFhf (ORCPT + 99 others); Wed, 26 Jun 2019 01:37:35 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:15760 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725536AbfFZFhd (ORCPT ); Wed, 26 Jun 2019 01:37:33 -0400 X-UUID: ceaba03412e849c7a4f017e85164143e-20190626 X-UUID: ceaba03412e849c7a4f017e85164143e-20190626 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 566864346; Wed, 26 Jun 2019 13:36:58 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 26 Jun 2019 13:36:57 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 26 Jun 2019 13:36:56 +0800 From: Qii Wang To: CC: , , , , , , , , , , , Subject: [PATCH v2 1/2] dt-bindings: i3c: Document MediaTek I3C master bindings Date: Wed, 26 Jun 2019 13:36:27 +0800 Message-ID: <1561527388-4829-2-git-send-email-qii.wang@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1561527388-4829-1-git-send-email-qii.wang@mediatek.com> References: <1561527388-4829-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 Document MediaTek I3C master DT bindings. Signed-off-by: Qii Wang --- .../devicetree/bindings/i3c/mtk,i3c-master.txt | 47 ++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Documentation/devicetree/bindings/i3c/mtk,i3c-master.txt diff --git a/Documentation/devicetree/bindings/i3c/mtk,i3c-master.txt b/Documentation/devicetree/bindings/i3c/mtk,i3c-master.txt new file mode 100644 index 0000000..3fd4f17 --- /dev/null +++ b/Documentation/devicetree/bindings/i3c/mtk,i3c-master.txt @@ -0,0 +1,47 @@ +Bindings for MediaTek I3C master block +===================================== + +Required properties: +-------------------- +- compatible: shall be "mediatek,i3c-master" +- reg: physical base address of the controller and apdma base, length of + memory mapped region. +- reg-names: should be "main" for controller and "dma" for apdma. +- interrupts: interrupt number to the cpu. +- clocks: clock name from clock manager. +- clock-names: must include "main" and "dma". + +Mandatory properties defined by the generic binding (see +Documentation/devicetree/bindings/i3c/i3c.txt for more details): + +- #address-cells: shall be set to 3 +- #size-cells: shall be set to 0 + +Optional properties defined by the generic binding (see +Documentation/devicetree/bindings/i3c/i3c.txt for more details): + +- i2c-scl-hz +- i3c-scl-hz + +I3C device connected on the bus follow the generic description (see +Documentation/devicetree/bindings/i3c/i3c.txt for more details). + +Example: + + i3c0: i3c@1100d000 { + compatible = "mediatek,i3c-master"; + reg = <0x1100d000 0x100>, + <0x11000300 0x80>; + reg-names = "main", "dma"; + interrupts = ; + clocks = <&i3c0_ck>, <&ap_dma_ck>; + clock-names = "main", "dma"; + #address-cells = <1>; + #size-cells = <0>; + i2c-scl-hz = <100000>; + + nunchuk: nunchuk@52 { + compatible = "nintendo,nunchuk"; + reg = <0x52 0x80000010 0>; + }; + }; -- 1.7.9.5