Received: by 10.213.65.68 with SMTP id h4csp1221167imn; Mon, 26 Mar 2018 03:23:48 -0700 (PDT) X-Google-Smtp-Source: AG47ELuT++ldO60QCNmkGJ+RlgnwhIgUTi9qLqLqJ42ry0W8TGLB/M2vgR7DAJ7/sCe7RaefUZyT X-Received: by 10.99.145.193 with SMTP id l184mr27434840pge.394.1522059828271; Mon, 26 Mar 2018 03:23:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522059828; cv=none; d=google.com; s=arc-20160816; b=lA0LkDyrgppET8z+ZS2+xke+Zj9jtNd3UDDVrayAHFb0cgecutKs/eu5XHqI0dK0ji YkmDzOr1O2XR/E9gRb+g2WmR7bsE19Jf30SzpDxj9w2m5x27Ne4Xc88l5itpvUWJPssU sXqt0/GS+SzrLh7dhTBu0VMkqybDmuHqh6jMq3FQrtoz95ljY0oEtQe4i8Ji/a+OmdDj F9tx1EnGp2T4kquztm7ve4i3ouaX2XbMwwDEDTLwMObBjCrM5cY1EQ6sPpcmymG+lOXH cocrajRae/0ycXQTG1pUKDDWH5nfPwtkm7a2cmwmj1denzRtEuccxJlMOuOzXdusEtyN V4mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=qLFfH7b/3FbE1+YzlreJpjA1VSKGglmNy7P6ehv26Po=; b=FCu8y15FVJiHdUhj6cv5HKa+lRKqH3nV4A735XhLjddBVFNgCqm93nFl91y77/bdFi KwgWZuEhAcxAYTfJ+tKR3PaIrpZhlSN/vWX9BbGeYpn4i6mzg8eWanTSTm8iHzr3s6wI G66JjmC5Gb85FVHBjj79pFpH28L39yjm++3XNXNtxZXl3pqNClEJqbrV7f+3dMO74awZ UGnyj0uvapvK9waWO7U/Im4Bn6ewVcniU3QCvD0PGA9U8pxXqo+LXuB/vEKynr6P1vlI pHWGkhJKCT/mzmMdRRq+wQfRBuFUwA01cnl39yCHk3ccfZHxnE9eMWNXQ9h7tuHRXXxs wJGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=f1TVkZxF; 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 9si4376589pge.750.2018.03.26.03.23.33; Mon, 26 Mar 2018 03:23:48 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=f1TVkZxF; 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 S1751692AbeCZKW3 (ORCPT + 99 others); Mon, 26 Mar 2018 06:22:29 -0400 Received: from mail-qk0-f196.google.com ([209.85.220.196]:35801 "EHLO mail-qk0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750972AbeCZKW0 (ORCPT ); Mon, 26 Mar 2018 06:22:26 -0400 Received: by mail-qk0-f196.google.com with SMTP id s188so19467342qkb.2; Mon, 26 Mar 2018 03:22:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=qLFfH7b/3FbE1+YzlreJpjA1VSKGglmNy7P6ehv26Po=; b=f1TVkZxFNqgKWHOwOWZxC+z8hZuA6UPHf1v/N863HHhTU7XJ/Ba5fvRjvGRV10uszq PXGSDgD/XNyqH05nAar2fpvEY6tV4KGB0Y7L6sARciY4Rg/Fcye2b98tS+BMxNcECpdP FoUErpsIo1KFZPkjLjkHX/QbdXAicZtfvxoZS2ftyXuHEhpyGv7/d4mMajqSYYGcxBFI eTVLPTMBX0GWktehSIOcKfUmJGVoDMO9xDiy/JQyz5j8ghZlgQix/xOlvMwLmTtNQOWh 6hZDcoGaQ7VsNd79pNyNN6iHre2rAQ28rmnyb492bE/Wjc7y8MOEuyw67lpVRtRbeO0Q AJxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=qLFfH7b/3FbE1+YzlreJpjA1VSKGglmNy7P6ehv26Po=; b=W8WOiVTeqkKybQeOQiq6ykRaUGy4PAifRqSkAWBchZnVc/ekihNiX5lM9aIpjQcKX2 U/FSk5NPjuEXSXCcXUmcRzcCxpunnlgX2iKvca4r5K7GMw/91mZiFPLO8s0rW8iPaDwd Qik1b+wH8oAU5/2YqPsdUKbLScTymNLpm7+UtWVPpiIRvwrEqLEnmwS1JMedyNtDA6gG AnpLGg0MJEfRTp854qj7ZV3EuylsR9t3+F+8cPgSd74LAKvH+14Rbq7XMLOeid9n/3Ks HxTXGKwxx/IwtHLyfMQToFi2crTqvc1Aem0lEMr70nAsnusf1eZVyTZT6ulVE9yr1Dv1 znmQ== X-Gm-Message-State: AElRT7GDDNJs953cd/5T7M0khq65QqtHFzj4zerkX8CZk7bGOi1AzbYq 3/oAk9Fy+e8IHZDAwO5Lbg0V0Bi2pWCKV5gErsc= X-Received: by 10.55.128.67 with SMTP id b64mr472316qkd.78.1522059745297; Mon, 26 Mar 2018 03:22:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.54.147 with HTTP; Mon, 26 Mar 2018 03:22:24 -0700 (PDT) In-Reply-To: <20180323110020.19080-6-boris.brezillon@bootlin.com> References: <20180323110020.19080-1-boris.brezillon@bootlin.com> <20180323110020.19080-6-boris.brezillon@bootlin.com> From: Geert Uytterhoeven Date: Mon, 26 Mar 2018 12:22:24 +0200 X-Google-Sender-Auth: WvZ9vqglGvDVAt6lprKQlbbkeCU Message-ID: Subject: Re: [PATCH v3 05/11] dt-bindings: i3c: Document core bindings To: Boris Brezillon 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 , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List , Vitor Soares , Linus Walleij , Xiang Lin , "open list:GPIO SUBSYSTEM" , Boris Brezillon Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Boris, On Fri, Mar 23, 2018 at 12:00 PM, Boris Brezillon wrote: > From: Boris Brezillon > > A new I3C subsystem has been added and a generic description has been > created to represent the I3C bus and the devices connected on it. > > Document this generic representation. > > Signed-off-by: Boris Brezillon Thanks for your patch! > --- /dev/null > +++ b/Documentation/devicetree/bindings/i3c/i3c.txt > @@ -0,0 +1,140 @@ > +I3C devices > +=========== > + > +All I3C devices are supposed to support DAA (Dynamic Address Assignment), and > +are thus discoverable. So, by default, I3C devices do not have to be described > +in the device tree. But if they're described, they should have a compatible value, no? > +This being said, one might want to attach extra resources to these devices, > +and those resources may have to be described in the device tree, which in turn > +means we have to describe I3C devices. > + > +Another use case for describing an I3C device in the device tree is when this > +I3C device has a static address and we want to assign it a specific dynamic > +address before the DAA takes place (so that other devices on the bus can't > +take this dynamic address). > + > +The I3C device should be names @,, named So the i3c-pid in the unit address is represented as a 64-bit number, not as two comma-separated 32-bit numbers? > +Example: > + > + i3c-master@d040000 { > + compatible = "cdns,i3c-master"; > + clocks = <&coreclock>, <&i3csysclock>; > + clock-names = "pclk", "sysclk"; > + interrupts = <3 0>; > + reg = <0x0d040000 0x1000>; > + #address-cells = <3>; > + #size-cells = <0>; > + > + status = "okay"; > + i2c-scl-frequency = <100000>; > + > + /* I2C device. */ > + nunchuk: nunchuk@52 { @52,8000001000000000? > + compatible = "nintendo,nunchuk"; > + reg = <0x52 0x80000010 0x0>; > + }; > + > + /* I3C device with a static address. */ > + thermal_sensor: sensor@68,39200144004 { No compatible value? > + reg = <0x68 0x392 0x144004>; > + assigned-address = <0xa>; > + }; > + > + /* > + * I3C device without a static address but requiring resources > + * described in the DT. > + */ > + sensor@0,39200154004 { No compatible value? > + reg = <0x0 0x392 0x154004>; > + clocks = <&clock_provider 0>; > + }; > + }; Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds