Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7903708ybi; Tue, 9 Jul 2019 06:10:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqy9ZIsYkXj759+/g8F9OcGqviQaPal8dLYalpPwdbbd3GGopcw1O7Xwutzmt8zTpl6eUvBu X-Received: by 2002:a17:902:2a68:: with SMTP id i95mr32637458plb.167.1562677854967; Tue, 09 Jul 2019 06:10:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562677854; cv=none; d=google.com; s=arc-20160816; b=m95LPU+wkcuIGSw/JfiY/C22Vl+u4JNnasoNWedDzW+c04qMxEZaU4MIV6FK1nXBR7 rp4s+eRCIjXTY6l02DaKM/z71JZ5Ast/rd16EwItTiwCkedveu2xnELGWnskXmLENlJ+ Bfzo6XUfg1tb6kMKH1jJ0yZX0rlDC+o4iSrPdyPjCywaVD27v5w9e64Vubbu+xCwCTNX aB6hW9Jab6/PXk9VIemCqEKs46MuXuVP7+dDr2e1rWBkGIN6aeMaofcbDCRUznz/6Oh7 SS4bcuw2/VkJpOawpcFs7sxUIwQJPLqpPifEd+r9MnuOjDY5No7Wgep7AV+ICha0A6ag 2gtw== 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=CvOs8OHTTJZVnh7B9bOCHDjTrczxIbpjNZlC62zE8SI=; b=r94dvLnRaRFo5C3e9Ww0HMeMSkO+HIOXlEC70hhjZGoF9XNQw9aD+q/UAFOC5W0DSg xHBY9Ff8nRTF/JSH+JmelAG7nATXYgbipbnBwq+iM/HwSrbTEFudh+ylFHwi+FL992Um 8RK0k0Ys1xTGXBqr61f+awWusheTLfDFm57nP/l3U9qgGGyMK9Ky0sU9gVDZVjykx7Lg 2uy/81xE51WdQ28YgkvvFJeqNmkbDZUZAfSK216IMeoCnq51g4J6WVlC+awwW57pLkBO OpzClGCMrDAmnFPlmD9uwolYnTLqkceU+5y4V7qaucvpMAJUlsA6XN7M9JN54INIufWu X80Q== 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 z20si22036699pfa.282.2019.07.09.06.10.29; Tue, 09 Jul 2019 06:10:54 -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 S1727016AbfGINJy (ORCPT + 99 others); Tue, 9 Jul 2019 09:09:54 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:22880 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726345AbfGINJx (ORCPT ); Tue, 9 Jul 2019 09:09:53 -0400 X-UUID: 040cb6db70d6486b9edf9840134d1ed8-20190709 X-UUID: 040cb6db70d6486b9edf9840134d1ed8-20190709 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 696691753; Tue, 09 Jul 2019 21:09:46 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 9 Jul 2019 21:09:45 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 9 Jul 2019 21:09:45 +0800 From: Qii Wang To: CC: , , , , , , , , , , , , Subject: [PATCH v3 1/2] dt-bindings: i3c: Document MediaTek I3C master bindings Date: Tue, 9 Jul 2019 21:09:21 +0800 Message-ID: <1562677762-24067-2-git-send-email-qii.wang@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1562677762-24067-1-git-send-email-qii.wang@mediatek.com> References: <1562677762-24067-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 | 48 ++++++++++++++++++++ 1 file changed, 48 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..d32eda6 --- /dev/null +++ b/Documentation/devicetree/bindings/i3c/mtk,i3c-master.txt @@ -0,0 +1,48 @@ +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: shall be "main" for master controller and "dma" for apdma. +- interrupts: the interrupt line connected to this I3C master. +- clocks: shall reference the i3c and apdma clocks. +- clock-names: shall 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 0x1000>, + <0x11000300 0x80>; + reg-names = "main", "dma"; + interrupts = ; + clocks = <&infracfg CLK_INFRA_I3C0>, + <&infracfg CLK_INFRA_AP_DMA>; + clock-names = "main", "dma"; + #address-cells = <3>; + #size-cells = <0>; + i2c-scl-hz = <100000>; + + nunchuk: nunchuk@52 { + compatible = "nintendo,nunchuk"; + reg = <0x52 0x0 0x10>; + }; + }; -- 1.7.9.5