From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ED766C54E58 for ; Wed, 20 Mar 2024 16:39:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=HXFan908BDJUcTQoP1wMp9DUE82PKh1+5JoQv2x/XbU=; b=bHbAgq2DuO9ihJ ojlb4qqFcnjzAOMnk3tGjzNaON3qG7wQAIwEpcSBYbMd3jmy23QAbnPl3lgtQbTT9XQntiIXqn1Ji UY8hdpAGwRQM/wvjTS8Bs8oXbzeRCUQTpbbdFaMJHPFhq4dtnxnkoCvASXzatRb97VtUWei8b8Guf 3cx6zG3IS/IvtGaLyEU7iO5w08FBLwJw7V01iT7YuOTwCVt/YTGyajNPHaui9lxaJzQ8sLErli39k i1W0B81WhPcLydvXku+tnLysqVXlev4jfgHybQleyXOfaArxlqNwWTZJgBMkEDx5xyGObHtVCS6g7 vwK0H7KeYnj1WJS8uPTg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rmyyR-00000000Le6-0MrZ; Wed, 20 Mar 2024 16:39:31 +0000 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rmyyO-00000000LdW-0Dto for linux-arm-kernel@lists.infradead.org; Wed, 20 Mar 2024 16:39:29 +0000 Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1dee5ef2a7bso49881275ad.1 for ; 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=lists.infradead.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=gMWbHnpvS38O+Y4/cRcpBiUdF8+vRh2MKICnnHgT7CmUVBXGpibI+cK1YqoJSiR/gi H9kWcsJTUgMOSG/rndlOpgFL9YPbUTyUTN8kWjZbo2dTth/qZlkwZYINMU2nKG7xilm1 6hkCbE1QL7600EUoT9W5NJV/2olNTFoSUQGBzZGTbfk/dTWjTWlA4MQBXAHQNBzrRd8y XCFxKrZ6jyoh30HfqCP/vtEKoWpyxHWfbCykQya7DlJtKGKbI9AB6z73StWfCSFupNLv M9+TmZ2hIV7BqriyJ8sij8nmWl1RUvj8rfYNALSlNdi7qb4JNeg4w3RT7XJCjd4RuKd5 q7Lg== 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=khBFeKebHrapAOgPld/9rkqtJj2k5/lWl7tAdeApm7ExnccQK5mtJv1IGPCm9xYqLl zf8LFtTkL2Br1RpEpHMpw9m70T7wNzFFzWOAC1TBe0UxuNpxoQndFrgoGq66LESjxUJc Nbrru7uKhrLXA75gQr1ugw0lxrrLtY0PlKlNx55xeOlGnkhdPqC8wVaDF419YseSXiJw GxuWUvCbBlSFMT16cnLkP4ztIGFtMrcrIpXnF8OA6yHpophoGQaDQ7mIvxZQ8bA8XUUH dK7O8g9pUR1cHvsJorFH7kpp45wkA8Oytr+KiOg8fuY9XXWThikaearprj5Fko6/Eq3w RdzA== X-Forwarded-Encrypted: i=1; AJvYcCVAYeX/kslNYVUkWoHy074auirNR2V0uc+lPKH8OQ7GfHR/mXNDbb//uWre8VSCNuy09NBELZhmsHj/Fpn+JVQDC+64AqMI2Eo0ON3hQIVG457BSuo= X-Gm-Message-State: AOJu0Yx+AWg9T1E+a/dBi899rm/Cn+6EWcgv1axPKgg0wKu8XbRwFxmH DFTaNtsMq8hbqoojfWdK8P9BdZPtS0GQxjHfbu2PG8TGgOICUTja X-Google-Smtp-Source: AGHT+IHRwH0VWCUf9JBVUF6vi6xAR3lOSAEpU0/xZlFkKgm6Ojvm2NjLdbfGrZw09mEv5vUlHe6IFg== 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 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: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240320_093928_130296_4C8AB8C3 X-CRM114-Status: GOOD ( 21.97 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel