Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp6112026imm; Wed, 27 Jun 2018 02:23:11 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfdLOk8XToH8dF6oFRn8ccUEkzB0TweAE/D5c5wY29PnM7VoEoQFMjcLT9sd8zqXQcyUx83 X-Received: by 2002:a62:6d42:: with SMTP id i63-v6mr5071385pfc.41.1530091391446; Wed, 27 Jun 2018 02:23:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530091391; cv=none; d=google.com; s=arc-20160816; b=WG7YUFHGLb6MdNPERAT2dQFBZmfN0Odi90IsTXdVDgvoqlVJBq4lNzGSZqQNhkOoZC xM8yIb4xJ/6T6rN4xDUFp3jWSG/SRQiqhS1UwjJAUAv/IuFGiqWibuSQCg37O69GeLTs SwA1RUnULkOcnWQcmReYfw+bZKwDYg1laG7kKV5PNJy2KuXc8iX7TXxlWmYk2NHHsM+l ZVHByBlCQnhplCLXL0J9Z/rdnl+ZivY0eAx7kJ2bojWVqg1I6N94DCa6FiTEpE96eHMc qR2Uk4JimOcaSUJv+V22xQ4SdLc8oXVHwG66TE+FvRba2bWaGDCoRUh0f7oxypeMISbb GyKw== 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=SbJ+20LruyQJ9GkB1x5FY5U2rBRriwwJWwTgxqdht+w=; b=BNYBVtMO9xrdfRn+M8f2dXBzNXhAJraa2bDHWV0a1iRVXGL/CIKfAb24Pjzvw0Rs6u ZD794LEGSpfeGbeeQUS+XPgtmR2K7syd0o8JhZ4+WaQAnGGaq3gY0d9R4MAEdu/QWRug bBID7LCFweDke/mcx/JuUKzORnI7bQkuJLfvNKwSk1T9HL/xCZZFbd0PF5AmaHDK0Jjq Ba/db5yCBOBTD010o28Q896k5JBQMukRHOw3Ms3R0R2ImHf+MXSZi7dl9p/Kh7TqVZ31 ENxaBJBAW+Vb78E6I946+E6JVNNigbAT/razu68N8zcoVN3/+yjSsdPbmsq2QPF1EPNc V6bA== 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 e1-v6si3106879pgc.566.2018.06.27.02.22.54; Wed, 27 Jun 2018 02:23:11 -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 S932424AbeF0HUx convert rfc822-to-8bit (ORCPT + 99 others); Wed, 27 Jun 2018 03:20:53 -0400 Received: from mail.bootlin.com ([62.4.15.54]:58542 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752741AbeF0HUu (ORCPT ); Wed, 27 Jun 2018 03:20:50 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id A8BA12079C; Wed, 27 Jun 2018 09:20:47 +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, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (AAubervilliers-681-1-87-188.w90-88.abo.wanadoo.fr [90.88.29.188]) by mail.bootlin.com (Postfix) with ESMTPSA id E60E8206D8; Wed, 27 Jun 2018 09:20:36 +0200 (CEST) Date: Wed, 27 Jun 2018 09:20:36 +0200 From: Boris Brezillon To: Randy Dunlap Cc: Wolfram Sang , linux-i2c@vger.kernel.org, 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 , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Vitor Soares , Geert Uytterhoeven , Linus Walleij , Xiang Lin , linux-gpio@vger.kernel.org, Sekhar Nori , Przemyslaw Gaj Subject: Re: [PATCH v5 02/10] docs: driver-api: Add I3C documentation Message-ID: <20180627092036.605dbf12@bbrezillon> In-Reply-To: <4898e391-f954-a399-0bca-7588942280b9@infradead.org> References: <20180622104930.32050-1-boris.brezillon@bootlin.com> <20180622104930.32050-3-boris.brezillon@bootlin.com> <4898e391-f954-a399-0bca-7588942280b9@infradead.org> 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=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Randy, On Tue, 26 Jun 2018 14:07:49 -0700 Randy Dunlap wrote: > > + > > +I3C Private SDR transfers > > +------------------------- > > + > > +Private SDR (Single Data Rate) transfers should be used for anything that is > > +device specific and does not require high transfer speed. > > + > > +It is the equivalent of I2C transfers but in the I3C world. Each transfer is > > +passed the device address (dynamic address assigned during DAA), a payload > > +and a direction. > > + > > +The only difference with I2C is that the transfer is much faster (typical SCL > > what is SCL? It's not used anywhere else in this doc. It's an acronym used by I²C, it means Serial Clock Line. I'll just replace that by "typical clock frequency is 12.5MHz". > > > +frequency is 12.5MHz). > > + > > +I3C HDR commands > > +---------------- > > + > > +HDR commands should be used for anything that is device specific and requires > > +high transfer speed. > > + > > +The first thing attached to an HDR command is the HDR mode. There are currently > > +3 different modes defined by the I3C specification (refer to the specification > > +for more details): > > + > > +* HDR-DDR: Double Data Rate mode > > +* HDR-TSP: Ternary Symbol Pure. Only usable on busses with no I2C devices > > +* HDR-TSL: Ternary Symbol Legacy. Usable on busses with I2C devices > > + > > +When sending an HDR command, the whole bus has to enter HDR mode, which is done > > +using a broadcast CCC command. > > +Once the bus has entered a specific HDR mode, the master sends the HDR command. > > +An HDR command is made of: > > + > > +* one 16-bits command word > > +* N 16-bits data words > > I supposed the I3C spec will tell me the byte order of these words on the bus? > or this doc could tell us here. It's big endian. I'll make it clear in this doc. I'll also fix all the other mistakes you pointed out. > > and you can add (if you want to): > Reviewed-by: Randy Dunlap I'll definitely add your R-b. Thanks for the review. Boris