Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1081814ybi; Sat, 27 Jul 2019 02:20:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqwbdc3wPcuTdHWHusokFAA6gOtXHotMqsir/tCMagxTK6W19A7W13rGOCUYg9JIFqj17onY X-Received: by 2002:a62:be02:: with SMTP id l2mr27268123pff.63.1564219255695; Sat, 27 Jul 2019 02:20:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564219255; cv=none; d=google.com; s=arc-20160816; b=wEUoZDR7DtxLVyeOgjqjL7BsvN5WJ+7VKPq5rZAG24vWUbB9FfIeeSSgEo7BzufNDQ 3NCeop1BTva1L15IJUviROWqXACRy5LRw3Vv+pFOzJMUhKwmPWC5vs3IAQdpUgVQpj8I 7l7DzEGdOi1hCj1XK13g2XwyhkVzB4qqW2XIBYavyp5iXTSNoZ8B8ZNN+M9ppEGgSfZM ht7NgmRVpNFKSwn+/MraHay4Us5F2TuKLHESa6vCRYcoSAZlt3pwaRTR8cdKsBRw1djE JBZO8xvmiqyAoVzA/u9E+l8AhjrQgDFGFoV17yZ7ilNEstLmGd+On34DdxBnh5DSg5pm yaGg== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=wUsM0jR2HyeFdeTe4AmSG2Uorkz2697DT3AeLI/wqMk=; b=lon6vwHNac6zDDUPbcKuvtK6Sh4pL0XAG+HKa8LoeQ4vOYnnbfOPW0Wzlq7jk3rxnQ 2qZUk95V8ZKZ9ZU+N1FkOTxE4JNob6Hfy6RwOxEDnc1I/UE8sWLzChdepuljRhayH7jI 7/gNYNRto1zxrf9Nr1oOPulIoa8+oea1aGiqtRleMks/hLoqEIJZ5JIzTAonBVuQO7lM SzVJDra4Uu3NP6iOG/M1R8jBmkVr879Ce0IHkxvvvwnwo+AyqqP9bOvE1D9EXX+Foz46 K4uFST8CYloMtMo+TB2ss4lx4xBOcI5v9N5le3RXUGGFOqdi20dwU7hEuFhOWAGV4KzI 7XNQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y65si21486171pgd.487.2019.07.27.02.20.40; Sat, 27 Jul 2019 02:20:55 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728643AbfG0JTG (ORCPT + 99 others); Sat, 27 Jul 2019 05:19:06 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:39062 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728264AbfG0JTF (ORCPT ); Sat, 27 Jul 2019 05:19:05 -0400 Received: from localhost (unknown [IPv6:2a01:e0a:2c:6930:5cf4:84a1:2763:fe0d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: bbrezillon) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 6A01527DC68; Sat, 27 Jul 2019 10:19:03 +0100 (BST) Date: Sat, 27 Jul 2019 11:18:59 +0200 From: Boris Brezillon To: Qii Wang Cc: Rob Herring , , , , , , , , , , , , Subject: Re: [PATCH v3 1/2] dt-bindings: i3c: Document MediaTek I3C master bindings Message-ID: <20190727111859.315994c3@collabora.com> In-Reply-To: <1564190613.24702.11.camel@mhfsdcap03> References: <1562677762-24067-1-git-send-email-qii.wang@mediatek.com> <1562677762-24067-2-git-send-email-qii.wang@mediatek.com> <20190724202119.GA26566@bogus> <1564190613.24702.11.camel@mhfsdcap03> Organization: Collabora X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 27 Jul 2019 09:23:33 +0800 Qii Wang wrote: > On Wed, 2019-07-24 at 14:21 -0600, Rob Herring wrote: > > On Tue, Jul 09, 2019 at 09:09:21PM +0800, Qii Wang wrote: > > > 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" > > > > Needs to be SoC specific. > > > > We hope that the SOCs will use the same driver and try to avoid big > changes. If there are inevitable changes in the future, then we will > modify the compatible to be SoC specific. cdns,i3c-master.txt is not SoC > specific either. The cadence case is a bit different I think. When the driver was developed there was no SoC integrating this IP. I guess Mediatek knows already which SoC(s) will embed the I3C master block. > > > > +- 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 > > > > >