Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1737780ybd; Thu, 27 Jun 2019 00:26:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqzSmQF67CPkXqJ+MFSnKKhXLevRUN+zdvcxw42/mfWNJtLAKAxSXNyinjoyCFv+6lUCUPoC X-Received: by 2002:a17:902:9a42:: with SMTP id x2mr2977489plv.106.1561620366286; Thu, 27 Jun 2019 00:26:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561620366; cv=none; d=google.com; s=arc-20160816; b=iRtGTJZHLMX6F8m4A1HCNLVXdwpx8YZlyrZtxUIDjJblo4rD9h5e8NIYCxwXvFFrc8 c+17cO0IClJ3nENiFwSQPVh3dkVOhDn8XWJ7NHuhChzS6Z8otHbg2agIhrOXnsgJhzlQ NW0lRI18VqRYagl1K7FZdGoPovNnTR6GKKGTM2yFbgMueYjyg3giqRawgeidl7g8dXbl k79iic1dz+B6u7Aqlj1j83Z24y9cDROcLMfu2HqxgBIdKaWK5yeMZubOul5/h/7fOMF/ fk5Z7p4zmlhimN3ncOmNo0+jzyawHFLb6JLNbYGEQzlvN3nXyrWbpXE8epqnt/wTaL2a xqXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=TxcNyub7/6UzMbiy6pG4fuThdc99vV03f/9J6y8dnk0=; b=lqslPwSjqA/qi/mWo2nfyhg6aCN13l+Z/6B0zEQ6MC2eA+9jxfS39lnYCCuklWk6CA PTiDuoKlJ4qGvGukfW8iUwTirOD8hBM4nMkU6Y7qlMV6kAHh7We67VuU+EdHfFwmxETK xTUZJF5VC3Qy38BoSJw2msegsaqOVqZPv1jb3eIAoR3tkKsqMaZ8hv+tlccE+aqsRAFN F24xLcDU25A9K23r/Gb4ER6PqJDaP7wspyoIAKqu1LAi/tXf7fxi9oMx6PyDc7rb/6pj mMefrRMzjF8BPq9a8bz6xiS0FyxdLw5Ga25ssnEAjRxdzRLU3DdOPDVXli1LFMv8Sqq4 stxQ== 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 u67si1420610pgu.219.2019.06.27.00.25.50; Thu, 27 Jun 2019 00:26:06 -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 S1726550AbfF0HZh (ORCPT + 99 others); Thu, 27 Jun 2019 03:25:37 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:15498 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726054AbfF0HZg (ORCPT ); Thu, 27 Jun 2019 03:25:36 -0400 X-UUID: 614d39dd1c094839a0d063f808a5f889-20190627 X-UUID: 614d39dd1c094839a0d063f808a5f889-20190627 Received: from mtkcas32.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 916891549; Thu, 27 Jun 2019 15:25:29 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS31N2.mediatek.inc (172.27.4.87) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 27 Jun 2019 15:25:27 +0800 Received: from [10.17.3.153] (172.27.4.253) by MTKCAS32.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 27 Jun 2019 15:25:27 +0800 Message-ID: <1561620327.12217.27.camel@mhfsdcap03> Subject: Re: [PATCH v2 1/2] dt-bindings: i3c: Document MediaTek I3C master bindings From: Qii Wang To: Boris Brezillon CC: , , , , , , , , , , , Date: Thu, 27 Jun 2019 15:25:27 +0800 In-Reply-To: <20190626182339.0c6301a2@collabora.com> References: <1561527388-4829-1-git-send-email-qii.wang@mediatek.com> <1561527388-4829-2-git-send-email-qii.wang@mediatek.com> <20190626182339.0c6301a2@collabora.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2019-06-26 at 18:23 +0200, Boris Brezillon wrote: > On Wed, 26 Jun 2019 13:36:27 +0800 > Qii Wang wrote: > > > 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. > > Depending on the interrupt controller, each interrupt cell might > contain more than just the interrupt number. > ok, I will modify it as "the interrupt line connected to this I3C master" > > +- clocks: clock name from clock manager. > > This property does not contain clock names but clk references. > ok, I will modify it as "shall reference the i3c and apdma clocks" > > +- 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>; > > reg is wrong here, should be > > reg = <0x52 0x0 0x10>; > > While at it, can you send a patch to fix the example in the cadence > binding doc? > ok, I will do it. Thanks for your review. > > + }; > > + }; >