Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1640817lqt; Wed, 20 Mar 2024 09:39:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWtXe5y3Nl4OBXexHrRCbJPGAau71FB6tUnQUNc1FT0GLmjJvxqQr1P3b/57SHY1vua/RLn+4ZUGKOSl3oigot65x1zHjeBSokncgm1SQ== X-Google-Smtp-Source: AGHT+IFvPw+GjxamuAS0jSLTHkiJgtbadii3ULo9hoeT39utti4LxDNw6AMNxllyGHnHytcNCmrW X-Received: by 2002:a17:906:5913:b0:a46:9cc5:c3b4 with SMTP id h19-20020a170906591300b00a469cc5c3b4mr8156329ejq.76.1710952777763; Wed, 20 Mar 2024 09:39:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710952777; cv=pass; d=google.com; s=arc-20160816; b=nKhVoRiy4Gvta4meO7Hq0dzUVgLCjQ4tyf4r4jHWQCBKANTDrkuLFvC8jlfbYEWQC3 oQOn+zg+l7MqLN4G0Ucbro/uf7wtCEPj0ESXqMQGHOicK2ae7VjZqDtOy1ViTUDV9w9W NTi6d7xsdSy2e6z9wxwQqYVkLTIcGQLAgb4uwXbGCXooQFtZ431W/FeR3R4ifKjXoknS barsB0+G3U4CMrxVcQCNiS+0h7Nky24E8gx0YL3hQLhxtKoSSr9t5zwqnbQgAEXXLrRR NMfuEl5IlfI861/9uoy32enJNsSbblxPFB4fS9Uh0YuL00MHJBt0/Mbijj6TuEm+U7Sv XuXA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=wQauky859kuXAuDXbgdFBECQEJeQkaoXwKu7AZgTe6c=; fh=NwwKLpALRwC1wfWlrGRcllUqbaeSB/NzlGSoX6hjScA=; b=R5A75BcRv4Jd7ZO9mjHPltnqvjJ9wJ8CmQTpow3Hkt7dIuBN+ROqMbC/Yf4ZnGjuri x33r+zoOgsfwhEDfOln5VzyBMeiIPqKQd8p+bZR/kbh0oTq53UMMygYYgcY5qj2fNesQ h9YzE+IjoBWDzbzJ1tYBFotTTyrrN37NzGVazTxKEMm3TEbAnzkFxjDrhjgYeewWfG/0 nyW/yI9m9Ib+ZBTCuyb8vEw5Tj2tibr6QYQCQ8gEAetdCqmY5aD3n8/GUZ4Oc9AmNkIV WcjKGSL4c7WBVpL2Mar3ysSP0sVLlJVhH1xaJ7YrLe/flxpV9gUFBuN0R87TV5oUuX/l HWMg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="FE/W/R+b"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-109177-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109177-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id z2-20020a170906074200b00a46caa13e58si2726763ejb.418.2024.03.20.09.39.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 09:39:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-109177-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="FE/W/R+b"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-109177-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109177-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 548531F238A4 for ; Wed, 20 Mar 2024 16:39:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D34261860; Wed, 20 Mar 2024 16:39:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FE/W/R+b" Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6E8C64685; Wed, 20 Mar 2024 16:39:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710952767; cv=none; b=ecqNNU+DpfsOBr+mwDPpg6NEHRJbtgZm2FF8Mv0pdNoIc51e0koQNiAZ2gIpl3zHjdEDz8u5eZmgYuwcz9Acm4zJCmFkD9v8bjaxwsxIMOT5K8UlRi7YcS+sapnRwOhIzzH5A2AUdOcczeHw+99sI1Ixi8dYUFLBLyLJvdQIhnY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710952767; c=relaxed/simple; bh=b3Wgrv370MNhkIWJDgsfRqLYrGNcOEH8Dzj361MsETU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=CVqXS78unQCeuxayiODTTN1eb4GNEkYUFhTalNZuCak1QNAAXfgLXrodMvXckIos5oopii2Mj/v5hkqDYhWkYam67WaamOEMHLmjTDsWI/mdnps0jIPBs/KgXu4EbBtOdwUiO3fuqkLDdbNlAfgz+pzA446VOrwFpoPPhbIoNLo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=FE/W/R+b; arc=none smtp.client-ip=209.85.214.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-1deffa23bb9so37053495ad.2; Wed, 20 Mar 2024 09:39:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710952766; x=1711557566; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=wQauky859kuXAuDXbgdFBECQEJeQkaoXwKu7AZgTe6c=; b=FE/W/R+bJtFICSj9lX9Hr9zOaQW7WbXdTCpSsxEJcStwdooRjbF7Gfqq8xi1Tn9z6y vRiUxgLm8jrE9vwRgrTBsRjq1MbpzFUu9RBwuGTsw4mmayd8jYmVVSmmOB+65xsptv1z RRnuHpSXqI/Y144aJOYbfEeJMLSmVyWEecoNp2bDwC3VAiYPJ9UuV/PjgtegCmUXu3QB L60QYGbXB6B+Vi3kZEZ4i2i4LGIwUerOQF0eZqcHby17q46QVo/QhKo8Hgh9YrUYTpHC E6XsGmBX3Te0HDdzKQSsKQ7yBAYLv2VqJnyuk3aBmMkbMFTTjDaz5s30Idf8O7oVCD+Y VKvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710952766; x=1711557566; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wQauky859kuXAuDXbgdFBECQEJeQkaoXwKu7AZgTe6c=; b=f/zgDxQka/Z/8HIpKkCrorpup+j7XHVxwlYvLLUC0Q1FicPv7aw8ZYAkCkgm31Q3a3 u2kUAJgVz7mfmRCR6+A9s8VwOZlP+mY8D4Ye1QYefWUB6FBKluiIDZ7et7yq5wrTcj0D FyqnKN3GP05AVQnFwhSU578HDHZ0SshQYBXWJFE6KULgnVbdtWqa8+IWDC8X38iVR+55 Jcvib3E+0UUBCgFTbK/YL6CPSSxLaYbo+h4kljDmZjXKJxhOmJu6n0AKy5l4+dYqV+zJ Qij17nlsN6u23FB7dMbfXc4q40WF1Qc6I9CVjDHyJK39Yg9rni+kZmwN0b4yEiIZ6n35 /czA== X-Forwarded-Encrypted: i=1; AJvYcCX1Qiu4FuoCH3yVapsx9NTiavar0gjy6nMXOIXM1ccbMXK9jCsZSRvVfmpJ49tMYZL1Zemz56TFnXv97jkhW25tUmXnMcfMlZit+uUeccMbDTkzSPrZ+hcaWxGzBOQU9KprHspk6/m1Y+BfD8RjyVIfTLQfXpyrR/XW51pe9PmanamR+A== X-Gm-Message-State: AOJu0Ywu4UboA7TdmyekRqJ89wepFf7kHbvYypLU/UtkHjIMYEPXyGTJ XY3OFkGOwMCWr8sp+aP5RMIJrmMGRhG2aBF7afHJVU4+H+/0PnKs X-Received: by 2002:a17:902:e5c2:b0:1de:e026:1b8e with SMTP id u2-20020a170902e5c200b001dee0261b8emr23472945plf.41.1710952765579; Wed, 20 Mar 2024 09:39:25 -0700 (PDT) Received: from [172.16.116.58] ([103.15.228.94]) by smtp.gmail.com with ESMTPSA id mm14-20020a1709030a0e00b001dd2b965a8esm13846928plb.163.2024.03.20.09.39.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 20 Mar 2024 09:39:25 -0700 (PDT) Message-ID: Date: Wed, 20 Mar 2024 22:09:05 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 1/5] dt-bindings: misc: Add mikrobus-connector To: Andrew Lunn Cc: Vaishnav Achath , Michael Walle , Krzysztof Kozlowski , open list , jkridner@beagleboard.org, robertcnelson@beagleboard.org, lorforlinux@beagleboard.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Derek Kiernan , Dragan Cvetic , Arnd Bergmann , Greg Kroah-Hartman , Mark Brown , Johan Hovold , Alex Elder , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/TEXAS INSTRUMENTS K3 ARCHITECTURE" , "open list:SPI SUBSYSTEM" , "moderated list:GREYBUS SUBSYSTEM" , Vaishnav M A References: <0f3f56d4-3381-44f1-91bc-c126f3ced085@linaro.org> <5a9b1cd9-05ec-4606-92b6-eadbc7af6202@gmail.com> <81ec4156-8758-406e-876b-5acf13951d09@gmail.com> <2eec6437-dd11-408d-9bcb-92ba2bee4487@ti.com> <28c995cb-1660-435f-9ee4-1195439231f0@gmail.com> Content-Language: en-US From: Ayush Singh In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 3/20/24 01:02, Andrew Lunn wrote: >> Yes, after discussion with Vaishnav and trying to brainstorm some way to do >> the same thing with dt overlays, it seems that trying to use dt overlays >> will mean need to have completely separate implementation of mikroBUS for >> local ports and mikroBUS over greybus. > Could you explain why please? > > Are greybus I2C bus masters different from physical I2C bus masters? > Are greybus SPI bus masters different from physical SPI bus masters? Well, they are virtual, so they are not declared in the device tree. I have linked the greybus i2c implementation. It basically allocates an i2c_adpater and then adds it using `i2c_add_adapter` method. This adapter can then be passed to say mikroBUS driver where it can be used as a normal i2c_adapter, and we can register the device to it. >> Additionally, trying to put dt overlays in EEPROM would mean they >> will be incompatible with use in local ports and vice versa. > I don't think you need to put the DT overlay in the EEPROM. All you > need to do is translate the manifest into DT for those simple devices > which can be described by the limited manifest format. For more > complex devices, you use the ID to go find a DT fragment which > describes the board, and skip the manifest to DT transformation. > > Andrew I am not familiar enough to know if the device tree can work with virtual devices created by greybus subsystem. Maybe the problem stems from the fact that mikroBUS does not have a physical controller (and my inability to explain the patch properly). However, the purpose of this patchset is to in fact provide a virtual mikroBUS controller to allow us to register a mikroBUS addon board described by board_info struct similar to how it is possible to create and register an i2c device on an i2c adapter using `i2c_new_client_device` or spi device using `spi_new_device`. The manifest is used to populate this board_info struct, but it will be possible to use something other than mikroBUS manifest if someone wants to. I can make the necessary adjustments by moving manifest support to its own config option. Link: https://elixir.bootlin.com/linux/latest/source/drivers/staging/greybus/i2c.c#L230 Greybus i2c Ayush Singh