Received: by 10.213.65.68 with SMTP id h4csp667412imn; Wed, 28 Mar 2018 10:29:30 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+bxTIryoChUMW6zaf6+YN1x1BB7wDoDWKx4xm1+J6EI54Df/y47m3h3DOrgGgTEsiajt0t X-Received: by 10.98.33.154 with SMTP id o26mr3713990pfj.54.1522258170641; Wed, 28 Mar 2018 10:29:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522258170; cv=none; d=google.com; s=arc-20160816; b=VNIrQIcGECKZy6TdNUPbq5VSIRbgBMWP4yzR4oH8jEijY+DeVvx1dPJ5p7iTVrAbkL 0IXxygvFlk15fhRPsIRsfMs0kaIS+uiXjn63/D/LyZIkDig3JEaPnzgQoiWAD7NeDcNA UVD32NBI0/LU9d8F0a4G548KUK4SnomZyIk4wX9ZIY9ZvF6h5rusoyv11NSYLj/SL3oW XUwtNk01QlmiE1qZgzZR4rygvbAzRmjXrVrSxFZyXhnXX9HOfVDTG+kktjgSzj8YCDR+ PibmPynsZwo52i/0DxZlMCiRE5DiPO3VOdvKcauerOvv09YZFA59KHk1lpy5FbOWQXPr vP2Q== 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:message-id:subject:cc:to:from:date :arc-authentication-results; bh=S5An/zNZUHa0rGMIJDD/Udmo7cHkBDG4lSvxhFKmSEE=; b=uLrXRYMAs9hmN0yyJ1XKyTAce8Sm2v68fWKZwAUDsWtJ0jk1uiucv+g9B/vSmmXzqb dRloDPwXH221WljDzFUE3eY0zPMtgwcRE7hca14FOMaN9qSfgtjzCD7QjnfjM2d0U76a oawMPySya0lQwW9n7trWMPgG7f+rnMc0Hp98e/7tNYQ2J5kKD31cYpHyucSXPf1Sou54 IBH3JnklAgX3HsFYXOy7edrn2UP3RVVWCfHLv2w4bMDqXA5KH6j339vVTfVbCYbU2FEL 8fjjpeL1YO+qqDZiKdBo7lxQaJPdxl2lfWSJjH5VMFCCFkyRPWgo5OaeKsSFwpX1LYWe aPIw== 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 k4-v6si3900157pll.176.2018.03.28.10.29.16; Wed, 28 Mar 2018 10:29:30 -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 S1752874AbeC1R2Q (ORCPT + 99 others); Wed, 28 Mar 2018 13:28:16 -0400 Received: from mail.bootlin.com ([62.4.15.54]:41265 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751166AbeC1R2L (ORCPT ); Wed, 28 Mar 2018 13:28:11 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id CCEE020720; Wed, 28 Mar 2018 19:28:07 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (91-160-177-164.subs.proxad.net [91.160.177.164]) by mail.bootlin.com (Postfix) with ESMTPSA id 1FAB920146; Wed, 28 Mar 2018 19:28:07 +0200 (CEST) Date: Wed, 28 Mar 2018 19:28:07 +0200 From: Boris Brezillon To: Rob Herring Cc: Wolfram Sang , Linux I2C , Jonathan Corbet , linux-doc@vger.kernel.org, Greg Kroah-Hartman , Arnd Bergmann , Przemyslaw Sroka , Arkadiusz Golec , Alan Douglas , Bartosz Folta , Damian Kos , Alicja Jurasik-Urbaniak , Cyprian Wronka , Suresh Punnoose , Rafal Ciepiela , Thomas Petazzoni , Nishanth Menon , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , Vitor Soares , Geert Uytterhoeven , Linus Walleij , Xiang Lin , linux-gpio@vger.kernel.org, Boris Brezillon Subject: Re: [PATCH v3 05/11] dt-bindings: i3c: Document core bindings Message-ID: <20180328192807.174b794d@bbrezillon> In-Reply-To: References: <20180323110020.19080-1-boris.brezillon@bootlin.com> <20180323110020.19080-6-boris.brezillon@bootlin.com> <20180326071946.dtrhhxx3iwwymk73@rob-hp-laptop> <20180328101922.22a7039d@bbrezillon> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-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 Wed, 28 Mar 2018 11:42:07 -0500 Rob Herring wrote: > >> > >> > +where device-type is describing the type of device connected on the bus > >> > +(gpio-controller, sensor, ...). > >> > + > >> > +Required properties > >> > +------------------- > >> > +- reg: contains 3 cells > >> > + + first cell : encodes the I2C address. Should be 0 if the device does not > >> > + have one (0 is not a valid I3C address). > >> > >> Change here to "encodes the static I2C address". > >> > >> 0 is not a valid I2C address? > > > > According to [1] it is reserved, and it's reserved in the I3C spec > > anyway (see "Table 9 I3C Slave Address Restrictions" in the I3C spec). > > Sorry, what I meant was s/I3C/I2C/. The first cell is I2C address and > 0 is not valid. Okay, got it now :-). > > >> > + > >> > + + second and third cells: should encode the ProvisionalID. The second cell > >> > + contains the manufacturer ID left-shifted by 1. > >> > + The third cell contains ORing of the part ID > >> > + left-shifted by 16, the instance ID left-shifted > >> > + by 12 and the extra information. This encoding is > >> > + following the PID definition provided by the I3C > >> > + specification. > > > > One extra question for you: should I refer to the I3C_DEV(), > > I3C_DEV_WITH_STATIC_ADDR() and I2C_DEV() macros in the bindings doc? > > And if I do, should I use them my example? > > Well, I don't want to see "device@I3C_DEV(...)" for unit-addresses. That wouldn't work anyway. > You can use them for reg property, but it's somewhat pointless to use > it in one place and not the other. Not sure I follow you. These macros have been added to ease definitions of reg, but you'll still have to manually define the unit-address manually. Are you saying I should not use them in dts files or just that I should not mention it in the doc. If this is the former, then patch 6 should be dropped. -- Boris Brezillon, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com