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 9FE72FA373D for ; Fri, 13 Sep 2024 10:24:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type: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=WiZi8VcoHy2dI52u6S90IRih2acHVc5MolxAqjTzino=; b=P0x7zkrCM6n/B2VtcytBCF8cmJ e0ZrlzS6zUHOxKMHz5IHIMEvZT5cEV5E3dDxXRI6rLkumCQodrjg5r/v8bvrF4Zh6r1CoWcaU/y1Y kjZ3g1HeHCWKtPIodKABt1zlXRNFXgjeYGY6mSvzcSZLMeaiaW3YI8kaXZQwUV0LpVi3cfCgcFuAH 0ItfPttUshM3VDDqbbIwuPwbLMZJbCKleDZMJbscsPddtMrg7dNi7uPy1VXvbIacdjRYbL+O8nw3M 1b8H9dczMGajmy03oAdl+Bdg4CLMJG0STs7PcvB/a1q4OWwAoz+IRxTV/lmiEt6Bk3ZYtcOHzqxBc pe64ZgQw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sp3TX-0000000FbJC-1s61; Fri, 13 Sep 2024 10:24:27 +0000 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sp3SO-0000000Fb9w-2P3Y for linux-arm-kernel@lists.infradead.org; Fri, 13 Sep 2024 10:23:18 +0000 Received: by mail-pl1-x643.google.com with SMTP id d9443c01a7336-206f9b872b2so20271085ad.3 for ; Fri, 13 Sep 2024 03:23:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beagleboard-org.20230601.gappssmtp.com; s=20230601; t=1726222996; x=1726827796; darn=lists.infradead.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=WiZi8VcoHy2dI52u6S90IRih2acHVc5MolxAqjTzino=; b=y2Qorda5zmh6VEABQH8ZHmrjOWNcwoimAIpKYhErdQfk2wrLbDYvRQoTrhuBPi7JZl zPtDW6rgLiHqYFLGBmKSpVoxQDOOa4iyDF/EP3KWXBj7YJVZfh/TyiLLne6NYmKYLNXU McCm/n70mBfULqRCzJA72tSuQKagjpcZKYgadmRiPWt38k+ErJ2SNE9Mro4Ra5VaRobi L/gpW3kOp5pyABFLxPEW7SdfoI2uMNo+VeR6KIfse2k2ZRGnz00CYtyTVLArKIOQXgG4 Qymu3mSWK93SXiecK5bfnOU7sNQ5Ff6K16kfJFcsE3prYcp8S6yaAk/schDClCc/ZOSu Zy/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726222996; x=1726827796; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=WiZi8VcoHy2dI52u6S90IRih2acHVc5MolxAqjTzino=; b=Grte2rRAf5zzzJaz6NvGHjx0bcGQU1wpUKSx2foiVeBIwuNDQxu1Cp/i4WOZI5uoFN osd9VzXNpe1O2/ewXTM1GAjjRiQkvELZexkzAz4hsbuC3xU3XjzIjHjnqHU8R3p/eokx 0gxCBuhox/umRAJEkDRLomrtx/l+oMk5RrQepjrbmeBu98zJjUOz+qAZnZ6Ypv1nn3q5 +DZZSme5X03qYCirAfVqJAX77YYKyYcGyv+abHAq1I9U+sXz93MCfLjj0cRYqjiEoPr2 BMzBWpOY40wJgmNOVVH11gaEkNl4ZD/i1V93gnap9Q9E9A5VEU9be8B4Oaa97byE2fWI BQzQ== X-Forwarded-Encrypted: i=1; AJvYcCXKuhXCtjGTCyGVfJcEQ9KkiF31BR+mvxwMCSnKInu8SfqOlVJf4kZDe9XX9k+6tYCS44XvMT7+A75i4zK+pUJD@lists.infradead.org X-Gm-Message-State: AOJu0YyjPNS9ZxaRNM/YQ1GDHRq8RqT0PwKGblFwATNuiJEG4O3GA7+t 7uFfU6/gez8Hg+6X1kNdbiOhRqs4FJvCiSu/dGmCFFYgboYWJTA/VVAf40DYFQ== X-Google-Smtp-Source: AGHT+IE20qpyhTu6c4+KImLY/NAdkYoyLr+IkuhYxS+W9wO2TuFcF1dsqgCQ+UYw47dThwp0pAebmA== X-Received: by 2002:a17:90a:17e1:b0:2cb:4e14:fd5d with SMTP id 98e67ed59e1d1-2db9ffe44b3mr6369987a91.17.1726222995668; Fri, 13 Sep 2024 03:23:15 -0700 (PDT) Received: from [172.16.118.100] ([103.15.228.94]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2dbb9d20029sm1341315a91.50.2024.09.13.03.23.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 13 Sep 2024 03:23:14 -0700 (PDT) Message-ID: Date: Fri, 13 Sep 2024 15:53:03 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/8] Add generic overlay for MikroBUS addon boards Content-Language: en-US To: Alexander Stein , fabien.parent@linaro.org, d-gole@ti.com, lorforlinux@beagleboard.org, jkridner@beagleboard.org, robertcnelson@beagleboard.org, Andrew Davis , Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Derek Kiernan , Dragan Cvetic , Arnd Bergmann , Greg Kroah-Hartman , Nishanth Menon , Vignesh Raghavendra , Tero Kristo Cc: linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20240911-mikrobus-dt-v1-0-3ded4dc879e7@beagleboard.org> <8428068.T7Z3S40VBb@steina-w> From: Ayush Singh In-Reply-To: <8428068.T7Z3S40VBb@steina-w> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240913_032316_656457_8C30A698 X-CRM114-Status: GOOD ( 23.91 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 9/13/24 15:35, Alexander Stein wrote: > Hi, > > Am Mittwoch, 11. September 2024, 16:27:17 CEST schrieb Ayush Singh: >> Hello all, >> >> This is an attempt to add MikroBUS addon support using the approach >> described by Grove connector patch series [0]. >> >> The patch series tests out 2 addon boards + pwm and GPIO on the MikroBUS >> connector. The boards used are GPS3 Click (for UART) [1] and Weather >> Click (for I2C) [2]. Additionally, I have tested relative GPIO numbering >> using devicetree nexus nodes [3]. >> >> The patch series does not attempt to do any dynamic discovery for 1-wire >> eeprom MikroBUS addon boards, nor does it provide any sysfs entry for >> board addition/removal. The connector driver might include them after >> the basic support is ironed out, but the existing patches for dynamic >> overlays work fine. >> [sniip] > To put it in a more abstract perspective, aren't you "just" defining some > kind of connector with a fixed layout of pins and features? > It's not really different to Arduino Shields and Raspberry Pi hats, no? > Ignoring multi-purpose pins for GPIO or e.g. I2C, this is about matching > the plugin module's pins to platform-specific on-board peripherals. > > Sticking the name to MikroBUS might be misleading, because this is AFAICT > just a trademark for a specific connector pin layout. > This concept could be applied for any kind of connector, where e.g. > the I2C interface is mapped to i2c0 on one platform and to lpi2c5 > on a different platform. > > Best regards, > Alexander Yes, the only thing specific to mikroBUS in the patches is the connector symbols. Theoretically, it is supposed to be usable with any connector. MikroBUS is just the connector I am trying to apply the concept to. I think I came across a bit too mikroBUS specific in the patches here, since well that is the connector I am currently trying to support, but as the original patches by Andrew [0] explain, this approach was proposed to work as a generic way to support such connectors, and even do connector stacking. Trying to use it with MikroBUS shows some limitations we have with the current device tree stuff 1. SPI chipselect 2. Nexus nodes need the node to have some kind of existing driver 3. A good place to store the board overlays 4. Stacking needs phandle symbols table support 5. Append property support in devicetree And of course, I might encounter more limitations as I continue to test more boards with it. [0]: https://lore.kernel.org/linux-arm-kernel/20240702164403.29067-1-afd@ti.com/ Ayush Singh