Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp423859lqp; Thu, 21 Mar 2024 05:44:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXTR8ArKnRzqHlQkYD54k4l3oL9RohlvruHbOL5xJbvX3Q/ylaYghCpJJno8C17054Kxwn3HCOz61vcChLSTnlFdNXACroP19dWylXthQ== X-Google-Smtp-Source: AGHT+IGPA+vXyvc7pJngGn4IxmliMnopckBBo/5TYauAbSk3V9juR3HjEhUfLWMHti0EpxMcppUo X-Received: by 2002:ac8:5cc2:0:b0:431:bd0:7988 with SMTP id s2-20020ac85cc2000000b004310bd07988mr3991543qta.16.1711025084430; Thu, 21 Mar 2024 05:44:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711025084; cv=pass; d=google.com; s=arc-20160816; b=QslxYZz7eH5hvdJxkKXWKMD2ucFrArygYrCU9BJny16TpWGIO6XktHWCrf7ewHJQsk UTksvK6NwWFnyVYScuNgIbekpZPEAUrPtkx/jDCSX7CcmUxltywMlVRrSzG1MC+prEMX YNBxm5mVvzfqZHOF+CDyUp/FyACRPrUMKXuC2i7Dbflu9kKgYuXj0Oy9Ve55u+86FfBV StwZqYBK+GZBBZdmgSO9NTfwvFAyO9KSEpc1vTQbh6nchXGtHahCuTmV/Xh+ORhs/yDD wjV7X/SEN3G2aAJ23nvCra7uuXEKch5NbxNatb5ft5PuScH9xdg5cdVypXb186Obk05a LgeA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:to:from:cc:subject:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence; bh=kni4eWCHFF40qHCSnZLjp/dQ9NcG702kv7F2q36U0LM=; fh=PDawto4ZkfompHzZDdj1UyyDMAUxxMD5s2ZVcjLbenQ=; b=ckkoci3iPQfOk+wA09+CwHeSqqeuKgKmA1s8Trl16kdVChjHB+aSt/p4egIC4m1GcT FG1vEhJHn5CKBwN2bs1tC3zn9ylFyfhw3pZAyTAOFxm6iYzDT+jF+i7i7T4c1lUxnyeh U1eAcRmYVrHYKsiBZJ99GSduYEOya74eFAZP/YKrDxLcJ2Qmy1ykgB0fAhtG78APTIq7 WqiiWxSTVkrrVAEQg1EZVeD0Hx62jdBjgDtmdF/WX72xx1R+ohKYKF86m0VDMPwzZMjJ htKGVQMeJBfHiUk9p3aZ/9srUwNg1C7BQwmGZqq8vLFR+FyIPGz2A7E+ST4nE52YeNxO DbTg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=walle.cc); spf=pass (google.com: domain of linux-kernel+bounces-110047-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110047-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id m11-20020a05622a118b00b0042eb487594csi8759347qtk.174.2024.03.21.05.44.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 05:44:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-110047-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=walle.cc); spf=pass (google.com: domain of linux-kernel+bounces-110047-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110047-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D94321C217B0 for ; Thu, 21 Mar 2024 12:44:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BA7A783CC4; Thu, 21 Mar 2024 12:44:35 +0000 (UTC) Received: from mail.3ffe.de (0001.3ffe.de [159.69.201.130]) (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 37A7E83CAA; Thu, 21 Mar 2024 12:44:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.201.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711025075; cv=none; b=DtOJnmM4xolYnoDP+1BVdOzg53GHoLRE0F1nsfB2bCoqdv/BPvXPkhN7UmJrh+jRP+xtI1uX3d5ngOL6l2QRx/YJJxmYB/ZB8f6z5q5PX6no1XRLzpJMdiUU1oNN4bGuiMS7+ENErLj7QeJlF0g0Cz2iRx+AcKH3N8MAHu6ZkV0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711025075; c=relaxed/simple; bh=u+yR7s3tG85i6kdERMVCt3n56ayETNZhoAGnRsXV+sU=; h=Mime-Version:Content-Type:Date:Message-Id:Subject:Cc:From:To: References:In-Reply-To; b=F0XFFl933TLmKC5TncUW0dTllItdxovX4LuYG7yDmlf477cJ5t63XFvqaMKcknAg0V7ELMXVd7sUgjaRE9Ex/6t905CPJ7IIbo2AmldG25EWcbsszoua2ZVr9UEqIpJiDKelpohh8r8EgRJMnKLl/PzyQzh7t25s3tJPJAUXjg4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=walle.cc; arc=none smtp.client-ip=159.69.201.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=walle.cc Received: from localhost (unknown [IPv6:2a02:810b:4340:6430:4685:ff:fe12:5967]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.3ffe.de (Postfix) with ESMTPSA id 1D1C9AA; Thu, 21 Mar 2024 13:44:30 +0100 (CET) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 21 Mar 2024 13:44:29 +0100 Message-Id: Subject: Re: [PATCH v4 1/5] dt-bindings: misc: Add mikrobus-connector Cc: "Russell King (Oracle)" , "Ayush Singh" , "open list" , , , , "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" From: "Michael Walle" To: "Vaishnav Achath" , "Andrew Lunn" X-Mailer: aerc 0.16.0 References: <20240317193714.403132-1-ayushdevel1325@gmail.com> <20240317193714.403132-2-ayushdevel1325@gmail.com> <4b319264-bff7-48e5-85e8-201ca0bafec6@ti.com> <4c299d42-84c7-46fc-952f-292cef1bb4b4@lunn.ch> In-Reply-To: Hi, > >>> Is that because the current software support is too limited? Are ther= e > >>> manufactures who want to create more complex designed, but are limite= d > >>> by what can be described in the manifest? > >>> > >> > >> most mikroBUS add-on boards in production lies in the category of > >> sensors, displays, connectivity, mixed signal (ADC/DAC .etc) and if yo= u > >> look at the existing bindings under bindings/iio/ , most devices need > >> only simple descriptions and the properties are mainly standard bus > >> properties (SPI/I2C properties), IRQ, named-gpios, named properties, > >> regulators, clocks the extension to manifest was made taking this into > >> account and the named property description interface just maps the > >> manifest entries to the unified device property interface under > >> include/linux/property.h > >=20 > > How will the ethernet boards ([1], [2]) work? Where do they get > > their MAC address from, for example. The DT has some nice properties > > for that, but I doubt that will be possible with the manifest files. > > I've looked at the manifest file for the w5500 board [3] and to me > > it looks like that board will come up with a random MAC address on > > each start. Thus, even today, you have some boards which require > > a more complex description. > >=20 > > Agreed, this is a limitation, unless the corresponding=20 > drivers/subsystems use device_property_read_* helper to fetch=20 > properties, it will not work and net/core/of_net.c only implements=20 > of_get_* helpers even though the underlying functions can be implemented= =20 > with equivalent device_property_read_* equivalent as well. And I don't think this is a good idea given that the alternative is just working. > > Apart from the discussion whether the manifest is a suitable or > > sufficient mechanism to describe the hardware, I think the main > > problem with the proposed binding, is that it doesn't follow the > > binding Rob was proposing for a socket. If I want to use DT > > overlays, how would you describe an add-on board? > >=20 > > The proposal was that the base board has something like > >=20 > > mikrobus: socket { > > compatible =3D "mikrobus-socket"; > > i2c-parent =3D <&i2c0>; > > spi-parent =3D <&spi0>; > >=20 > > i2c {}; > > spi {}; > > }; > >=20 > > an add-on board can then have a DT snippet/overlay like the > > following: > >=20 > > &mikrobus { > > i2c { > > eeprom@52: { > > reg =3D <52>; > > compatible =3D ; > > } > > }; > >=20 > > spi { > > sensor@0: { > > reg =3D <0>; > > compatible =3D ; > > }; > > }; > > }; > >=20 > > That should be possible with a binding for the mikrobus, which > > in fact it is just a pin header with a standard pinout. Also as > > Russell pointed out in v3, the EEPROM/manifest is not part of the > > mikrobus standard. So maybe that deserves an own compatible, like > >=20 > > compatible =3D "mikroe,click", "mikrobus-socket"; > >=20 > > Or maybe click-eeprom? Although click seems to be the brand name of > > MikroElektronika. > > Agreed, there is nothing preventing us to convert the binding and update= =20 > the driver to follow the above proposed format and will be done in next= =20 > revision. Click is brand name of MikroElektronika and they don't allow=20 > custom boards to use that branding, however clickid can be used in the=20 > case where EEPROM is present/enable the socket to be probeable. Thinking about this again. I'm not sure this additional compatible really helps the discovery. It's a chicken egg problem. Only the modules knows if it has an EEPROM, but then, we already have to know it's in the socket. So while it might help for a static configuration, it does not for the discovery. -michael > > [1] https://www.mikroe.com/eth-3-click > > [2] https://www.mikroe.com/eth-wiz-click > > [3] https://github.com/MikroElektronika/click_id/blob/main/manifests/ET= H-WIZ-CLICK.mnfs