Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp7146041imm; Tue, 24 Jul 2018 09:06:03 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcdvDnatH8cTqUwWwzKSAtW89xRojrlUkcGN8ZJM+U6fDLO/Y4I/eRXvruLX0/vLrM7akPc X-Received: by 2002:a62:ff0e:: with SMTP id b14-v6mr18350046pfn.135.1532448363903; Tue, 24 Jul 2018 09:06:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532448363; cv=none; d=google.com; s=arc-20160816; b=qjGvogsZi0oGXoVoc8aD+q176Zmt9+lDGWoWy68aDR55zvpxG4qhozcD8y5PSWiyH6 L23+DyEUzbPGFhHf0aUy2HG5rHYGKa8iV+MA8ofmzzfKR+oNDtqRSjiboBkN6Sm5SnZJ 6aUevXndPV3x7j1ap+OgRlvp3iRaYBrpxvfGkTLB95+rXJus0IaZ5OxuSECTCN1ByCbQ KMq4BuH4HROuL65X9zTl0zWqb9TAXNfH860rvHxdq2oVhAhpQxLr5ZZLw6YfLCXpRfO9 gVTbcBTkCoCkQylXJP69fKGOAiq1xTW++7gwzpq4pUWC9xTIYMgS8id80Or0KbOXVb4s H1Yw== 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=1w9pC2fbBCNAcULw7MsRyCA+ppCJSj519xcHvbe50do=; b=AbSLaKltngSpb3VWuXydoDl4nk11vIh7xKw2BNhwKd9ORgDwAODY48OIcT8zFu3wqS DagmBi5daScCMUoPWuaBN2x+ChGdyt9nolcJcDI8vo18B1LKWDcS9O8jkC5W3O3zb6MY vNAPgZUo+oRCrSKp9n+5Si7ZLHNBhSp+7GsJ4b/oL02P7n4/oqY4tMEigGZglYKAEI+2 8vQcfa7x8Ew4vJBwuZpXQZM+izpAqSWHtcS1UiTms5OVCuD3BwiUpzF+B4gxnPaEOfT2 zbHmniJ8TvqgQX8BosobgF0hLaTxUpX7Dfa3BcS81+ReZFV50lawr+wPhEmwDICrKyjf a/dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=BdPBOFhb; 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 r23-v6si12066253pgb.623.2018.07.24.09.05.48; Tue, 24 Jul 2018 09:06:03 -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=BdPBOFhb; 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 S2388541AbeGXRMF (ORCPT + 99 others); Tue, 24 Jul 2018 13:12:05 -0400 Received: from mail-qt0-f194.google.com ([209.85.216.194]:46510 "EHLO mail-qt0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388361AbeGXRME (ORCPT ); Tue, 24 Jul 2018 13:12:04 -0400 Received: by mail-qt0-f194.google.com with SMTP id d4-v6so4618928qtn.13; Tue, 24 Jul 2018 09:04:54 -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=1w9pC2fbBCNAcULw7MsRyCA+ppCJSj519xcHvbe50do=; b=BdPBOFhb8tgFvAAKDwYnXJ0eEc0q/rLcoXH58LnCNsnY0pJ8nz/RA23M7HYmzhLW7j iDAK+xZMywDguziiFwPJ044v1rVAvdvwSLt5PUvMVY64Y59aItUdhLoodMwU+G0HFxbe xxWdvC1f2/gbrdp2DGryp7LzN4augKxHOd/gwvDpBL2jaxtmsGz+z81lRcz5wAp/8dkh tqV8tQ2dkAEbB9HaOzttwrDSS6pegNv+4cwxJ3um4dYr4MqgeqsttGA9ZlPlEbTL+Zgz 9axngNc3YYvkYAvL26PUHwRhX+LF4Hy8TXYKIJSpoPuw2qHdCMP560vo6Rx3sGuxoJli VRjg== 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=1w9pC2fbBCNAcULw7MsRyCA+ppCJSj519xcHvbe50do=; b=oB9WZ7Bqft25LKf/1FeZKw9I7JEWKeIcHnD0MIzTWvxaqcRZxEZ83009XvadEAUfTN gg/tITjQFOSi7CRO/42Gjum+NpNFiFxkpR70pem3Xzw4kq/JLnfOfqbnzxItuj8ItMev dYgrB2qXAp/RcZUxYxBS/YjDHfoyP93ghHOIcLQ5ZhlANm+w46wsKFFiD96IlIVQcBvx AOy+wonf7rQY0I7DSG4St6NvTORWRH0cIrlPt9WxiGsZFlzsXsO+Yaz9SX/ogZLu0rVP qAxECJ6Up8WCy1cUmFcOfC1JyieVz25csKWmRG5s4NvA2GXAvJ0gXBqmJ/Ix8jNUVyxO kxmQ== X-Gm-Message-State: AOUpUlFRoseUlNdpmmeKm9XgUhGwRHlhgz+/AAwF1atbrMQNuKzjAbnq k1cD9KzWWL7TsqEAfma947KVgEVA5IStRU8RnFM= X-Received: by 2002:ac8:3676:: with SMTP id n51-v6mr16927376qtb.163.1532448293734; Tue, 24 Jul 2018 09:04:53 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a0c:967d:0:0:0:0:0 with HTTP; Tue, 24 Jul 2018 09:04:52 -0700 (PDT) In-Reply-To: <20180724155717.aodl6xehacparo7b@katana> References: <20180719152930.3715-1-boris.brezillon@bootlin.com> <2ab0ab75-2df0-2714-f007-c33b25481016@axentia.se> <20180720101206.tv7nsoanwo5ftnia@ninjato> <21b269c5-a3a7-c5de-c81e-c9c9301ae13e@axentia.se> <20180720154132.2fwmwpiwtxa73ljf@ninjato> <20180724155717.aodl6xehacparo7b@katana> From: Arnd Bergmann Date: Tue, 24 Jul 2018 18:04:52 +0200 X-Google-Sender-Auth: -XVV6IL7yeAQkuo5mzE1K2QBOvM Message-ID: Subject: Re: [PATCH v6 00/10] Add the I3C subsystem To: Wolfram Sang Cc: Peter Rosin , Boris Brezillon , Linux I2C , Jonathan Corbet , "open list:DOCUMENTATION" , Greg Kroah-Hartman , 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 , DTML , Linux Kernel Mailing List , Vitor Soares , Geert Uytterhoeven , Linus Walleij , Xiang Lin , "open list:GPIO SUBSYSTEM" , Sekhar Nori , Przemyslaw Gaj 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 On Tue, Jul 24, 2018 at 5:57 PM, Wolfram Sang wrote: > >> > Renesas R-Car Gen2 has two I2C IP cores. One can do DMA and automatic >> > transfers to the PMIC, the other has I2C slave functionality. One cannot >> > do I2C_SMBUS_QUICK, the other can. And some more kind of quirks. >> > Sometimes you can mux the pins to GPIO, so you have a third option. >> > >> > This setup is the reason the demux driver exists. >> >> Have you run into scenarios where you dynamically switch between >> the two masters in order to do different things (on one slave, or >> on multiple slaves), or could you always decide on one of them >> at boot time with that particular chip? > > My personal use case is debugging. R-Car H2 is great because I can > always pinmux this or that I2C IP core to the same set of pins, and in 2 > out of 4 cases even GPIO bitbang on top of that. So, it is great to > compare behaviour, do scopes with the same type of setup, etc... > For that, I do runtime switches, but the slaves are not really under > real usage. Ok, so runtime here still means it's chosen by an operator (i.e. you), not part of regular operation. > I have absolutely no idea how $customers use it, sadly. Right. >> I think an SoC design we will likely see is an i3c master multiplexed with >> an i2c master to access one bus. The i2c master can then use clock >> stretching and other things that may not work in the i3c master, and it >> may be used in the absence of proper i3c drivers in the OS. > > Multiplexed? Well, as soon you want to use I3C features like IBI, this > is not going to work, right? It will not even work with Linux being an > I2C slave itself. Or do you mean running the I3C and I2C controller > simultaneously using the same wires? I meant multiplexing it through the pinmux framework, with one of the two being active at any time. Obviously this makes no sense for i3c slaves, but it can be useful if the bus only contains i2c slaves. >> However, that case cannot be handled with the abstraction in the >> proposed i3c framework, which can only deal with multiple i3c >> standard compliant masters. I'm also not sure if it can be added >> to the i2c-demux-pinctrl driver. > > The I2C demuxer maps the whole bus to an i2c_adapter. You cannot select > a master per client. What I meant here was switching the bus between an i2c master and an i3c master like you do with the i2c demuxer. Right now, this wouldn't work because i2c and i3c use different representations in DT and in Linux for the same devices. Arnd