Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp820349lqt; Tue, 19 Mar 2024 05:08:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWY2raorGCZo2j9ZNc25KICNnDDouIiHwCNE6xaXnHQmyeB/0g/CLSQGFZRInWr/iH5xWQ5OPnVMKXF271zupPVNHTQf32mXnMXi+x5uQ== X-Google-Smtp-Source: AGHT+IHylpX6EcJlrBhtEwaVrVYU9KQH0xi4VRHkgeGC6KWYUSAfsccKH5yPKYIGzcdxnasDUiy0 X-Received: by 2002:a17:906:124b:b0:a46:ba8f:bcdc with SMTP id u11-20020a170906124b00b00a46ba8fbcdcmr2480015eja.8.1710850131688; Tue, 19 Mar 2024 05:08:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710850131; cv=pass; d=google.com; s=arc-20160816; b=fIMeYeAhqdciJwqZCnxr86ivQNRMUfUilEY10Y8rUAknygipN0nXD3OohFW6Utumjr 2jgbSX9cKmLgIu6HkkQIa26A1QtX3ciDyaMNbtcwTk/W0MD2EUEl71p97LBOm9ZMzoDi eKgX57R7keMhuZJlhwr4iXjL0++zkwsWrgeLIov88NxRGMJrfoCwTC6eS3h0mnyGa+3C vCzrPlSbMaqwJKiepQ8XCyaFH2DjabnN1mJohCA04mBAfur2GqZlCAFWBQM6l/JAUWNp rTbgeEAwMgiDIqP4meB0dQ62rfucC6ce+X6SXZZzTgUhxnnS6NCZXE5/lRdl3yfZonZm /NYA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to :references:to:from:cc:subject:message-id:date:dkim-signature; bh=hnSVsLiLejS2+H2QkSYnP/1VC+dBGjS25lGVUBroTNM=; fh=8C2vIkX2O/Y+tS7CvJM/4QHFd/6uiBuwa71NhPmrzwA=; b=ocM79AY6KKxVNNGXaS7SY3HNEz48+Y3p0TK9NR/02su2nu1HmzxGmTG1ghsX0AVTZV Gpw+6Rvw/ReM5gmh95K/zTzCElLYP4DDSQt4vmRMVwajvGlzmrcJ6WTKMiO0gC7/1n1+ y9bycqyvz/PlJkA3zc9grS1WacVGScK3WWwxg5E9bWTaA8RsY2PaKfbN3A6ItoJ2sm95 PFy2LiiZncGFECAnHGG+2R/+72phRcwnc5FILxDV81yoppd0Yc6oNX5UhxSIGSdBatrY L1Mcm3evXTJ4rSqYP5VVg94V011/qLU0q+X9zsxxi2cucKPqI4wBeePsAQSCnOn5l6YL QBZw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="S/6qC1AN"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-107502-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107502-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id t17-20020a17090616d100b00a46a2552dd4si3369510ejd.881.2024.03.19.05.08.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 05:08:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-107502-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="S/6qC1AN"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-107502-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107502-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 3A1781F23451 for ; Tue, 19 Mar 2024 12:08:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 80CB97F7C8; Tue, 19 Mar 2024 12:08:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="S/6qC1AN" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 84E197F486; Tue, 19 Mar 2024 12:08:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710850121; cv=none; b=TXsO3dkkdWqsM7OJSMT+DXa9Iu6J5WJp5+D8IX2cfC/SCZG6Slj7zbf/Lt6FOELln7y81k53hHje5nVztDPnouIOtblTjmTGGlK5L3jraobRh9sqHkhqgFq+v7sqWTQrH8Xl9Jqdt3c3ZzaGxCdoGpOEaMQ7J0euf3PTxntmyac= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710850121; c=relaxed/simple; bh=hnSVsLiLejS2+H2QkSYnP/1VC+dBGjS25lGVUBroTNM=; h=Content-Type:Date:Message-Id:Subject:Cc:From:To:References: In-Reply-To; b=Jn1OSnbl2ewGkFOupkk44HNM/dvIvOEJOMb89mcDnkCRv1uiXHbzrpIRa4AeAupzAfvIH9/BntqyLRVZPspFDtaY6T16NLn5FbQbbloe4fIwSS+p6Dt2guVBW/txnqoWxMDad0dgwmkjXz0Y1E3QepMHl1aOYGaIx6ULQD5kvOU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=S/6qC1AN; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF96AC433C7; Tue, 19 Mar 2024 12:08:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710850121; bh=hnSVsLiLejS2+H2QkSYnP/1VC+dBGjS25lGVUBroTNM=; h=Date:Subject:Cc:From:To:References:In-Reply-To:From; b=S/6qC1ANHMIvVNMlBpY/FEIfzg21ybAe6BjNnNSWe8VX2Vi9A9XudWvAdNx8j3uzE 03fdkU/dTxYfY0WC10r3RaK90sK8IRwKczX5EcXA6TkbvCdm0ZyVrnCBtVmzF5/l1N OFYILoRBkXVG3NdZP7iKDcLTKEX1q/32L1nNVy+0adleyZttizwpNd6uemATz4pUgw 72rca3a2DSz5SzoAiDwOKYbSd/+ukCpCNZVRdudSoUIznilfrnizhX8RXqAJRvChP6 M7S4iIIqDRjikI/KpbcctbztXR6V+Fxo23LkHwnyRJilvGAZ1nYFph1dBYdlirp6ZX UqHT4RLzgE+hQ== Content-Type: multipart/signed; boundary=c332393a90d01da165088274218ef3aba6b575ac7f9169419f630293fb78; micalg=pgp-sha256; protocol="application/pgp-signature" Date: Tue, 19 Mar 2024 13:08:33 +0100 Message-Id: Subject: Re: [PATCH v4 1/5] dt-bindings: misc: Add mikrobus-connector Cc: , , , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Nishanth Menon" , "Vignesh Raghavendra" , "Tero Kristo" , "Derek Kiernan" , "Dragan Cvetic" , "Arnd Bergmann" , "Greg Kroah-Hartman" , "Vaishnav M A" , "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" From: "Michael Walle" To: "Ayush Singh" , "Krzysztof Kozlowski" , "open list" X-Mailer: aerc 0.16.0 References: <20240317193714.403132-1-ayushdevel1325@gmail.com> <20240317193714.403132-2-ayushdevel1325@gmail.com> <0f3f56d4-3381-44f1-91bc-c126f3ced085@linaro.org> <5a9b1cd9-05ec-4606-92b6-eadbc7af6202@gmail.com> In-Reply-To: <5a9b1cd9-05ec-4606-92b6-eadbc7af6202@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: --c332393a90d01da165088274218ef3aba6b575ac7f9169419f630293fb78 Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 On Tue Mar 19, 2024 at 12:36 PM CET, Ayush Singh wrote: > >> Regardless, this patch actually does not contain any code for EEPROM > >> support I have just mentioned it to give more context on why mikroBUS > >> manifest is the focus of this patch instead of DT overlay or something > >> else. > > Right, and I think this is the crux here. Why can't you use DT > > overlays? The manifest files, seem to be yet another hardware > > description (method) and we already have DT. Can't we have some kind > > of userspace helper that could translate them to DT overlays? That > > way, you could also handle the EEPROM vs non-EEPROM case, or have > > some other kind of method to load a DT overlay. > > > > Admittedly, I've never worked with in-kernel overlays, but AFAIK > > they work with some subsystems. > > > > -michael > > > So let me 1st go over 3 cases that the driver needs to support: > > 1. Non EEPROM boards: > > Using overlays should be pretty similar to current solution. If the=20 > manifest is converted to overlay in userspace, then we do not even need= =20 > to do manifest parsing, setting up spi, i2c etc in the kernel driver. > > > 2. EEPROM boards > > How do you propose handling these. If you are proposing storing dt=20 > overlay in EEPROM, then this raises some questions regarding support=20 > outside of Linux. > > The other option would be generating overlay from manifest in the kernel= =20 > driver, which I'm not sure is significantly better than registering the= =20 > i2c, spi, etc. interfaces separately using standard kernel APIs. You did answer that yourself in (1): you could use a user space helper to translate it to a DT overlay, I don't think this has to be done in the kernel. Also how do you know whether there is an EEPROM or not? > 3. Over Greybus > > It is quite important to have mikroBUS over greybus for BeagleConnect.=20 > This is one of the major reasons why greybus manifest was chosen for the= =20 > manifest format. > > Also, it is important to note that mikroBUS manifest is being used since= =20 > 2020 now and thus manifests for a lot of boards (both supporting clickID= =20 > and not supporting it exist). So I would prefer using it, unless of=20 > course there are strong reasons not to. And also here, I'm not really familiar with greybus. Could you give a more complex example? My concern is that some driver might need additional properties from DT (or software nodes) to function properly. It might not only be a node with a compatible string but also more advanced bindings. How would that play together with this? My gut feeling is that you can handle any missing properties easier/better (eg. for existing modules) in user space. But maybe that is already solved in/with greybus? Here's a random one: the manifest [1] just lists the compatible string apparently, but the actual DT binding has also reset-gpios, some -supply and interrupt properties. -michael [1] https://github.com/MikroElektronika/click_id/blob/main/manifests/WEATHE= R-CLICK.mnfs --c332393a90d01da165088274218ef3aba6b575ac7f9169419f630293fb78 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIgEABYIADAWIQQCnWSOYTtih6UXaxvNyh2jtWxG+wUCZfmAQRIcbXdhbGxlQGtl cm5lbC5vcmcACgkQzcodo7VsRvssqgEA04NYkPfPrSqNNIGZGNCkWoEFhm0cSpD1 0kMsQQMcLz8BAMO9O7XV3ER/VGUaI2mQh9OOZ4XJDT0M2vanXUGYPBMA =d2XY -----END PGP SIGNATURE----- --c332393a90d01da165088274218ef3aba6b575ac7f9169419f630293fb78--