linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: "Florian Fainelli" <f.fainelli@gmail.com>,
	"Pali Rohár" <pali@kernel.org>, "Andrew Lunn" <andrew@lunn.ch>
Cc: Gregory Clement <gregory.clement@bootlin.com>,
	Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>,
	Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Marek Behun <marek.behun@nic.cz>,
	linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ARM: dts: turris-omnia: Add mcu node
Date: Mon, 5 Sep 2022 18:34:48 +0200	[thread overview]
Message-ID: <7a43aa79-9c40-867c-c585-3bb448a54647@linaro.org> (raw)
In-Reply-To: <30d3f753-187f-4a3f-c14a-f3b003f23773@gmail.com>

On 05/09/2022 18:19, Florian Fainelli wrote:
> 
> 
> On 9/3/2022 8:27 AM, Pali Rohár wrote:
>> On Friday 02 September 2022 00:45:58 Andrew Lunn wrote:
>>> On Wed, Aug 31, 2022 at 04:28:09PM +0200, Pali Rohár wrote:
>>>> PING?
>>>>
>>>> On Friday 19 August 2022 15:11:52 Pali Rohár wrote:
>>>>> At i2c address 0x2a is MCU command interface which provides access to GPIOs
>>>>> connected to Turris Omnia MCU. So define mcu node in Turris Omnia DTS file.
>>>>>
>>>>> Signed-off-by: Pali Rohár <pali@kernel.org>
>>>>>
>>>>> ---
>>>>> Same change was already sent to U-Boot project together with driver. As
>>>>> Turris Omnia DTS file is shared between Linux kernel U-Boot, I'm sending
>>>>> this change also in Linux. There is a plan to write also Linux driver for
>>>>> Turris Omnia MCU, like there is already in U-Boot.
>>>>>
>>>>> https://source.denx.de/u-boot/u-boot/-/commit/832738974806e6264a3d0ac2aaa92d0f662fd128
>>>>> https://source.denx.de/u-boot/u-boot/-/blob/master/drivers/gpio/turris_omnia_mcu.c
>>>>> ---
>>>>>   arch/arm/boot/dts/armada-385-turris-omnia.dts | 8 +++++++-
>>>>>   1 file changed, 7 insertions(+), 1 deletion(-)
>>>>>
>>>>> diff --git a/arch/arm/boot/dts/armada-385-turris-omnia.dts b/arch/arm/boot/dts/armada-385-turris-omnia.dts
>>>>> index f4878df39753..f655e9229d68 100644
>>>>> --- a/arch/arm/boot/dts/armada-385-turris-omnia.dts
>>>>> +++ b/arch/arm/boot/dts/armada-385-turris-omnia.dts
>>>>> @@ -184,7 +184,13 @@
>>>>>   			#size-cells = <0>;
>>>>>   			reg = <0>;
>>>>>   
>>>>> -			/* STM32F0 command interface at address 0x2a */
>>>>> +			/* MCU command i2c API */
>>>>> +			mcu: mcu@2a {
>>>>> +				compatible = "cznic,turris-omnia-mcu";
>>>>> +				reg = <0x2a>;
>>>>> +				gpio-controller;
>>>>> +				#gpio-cells = <3>;
>>>>> +			};
>>>
>>> Please document the binding, preferably in yaml.
>>
>> I'm not going to send any new yaml dt binding document as I see that
>> dt bindings is clearly deprecated project. Either patches for dt
>> bindings are waiting without any answer for months (maybe year?) or
>> patches are ignored/not accepted by beyond reasons or there are request
>> for changes which cannot work on the real hardware or that new yaml
>> cannot be parsed/validated due to ton of bugs in other schemas.
> 
> These are some pretty hard statements that are not nearly true, maybe 
> they are based upon your past experience, but Rob and Krysztof provide 
> feedback within a few days at most on DT bindings and DTS files.

Pali, you wrote in the past that you cannot run one command to install
dtschema ("pip") thus for you this automated testing is
difficult/broken/non working. If running one "pip" command is not
possible, what I can say more? Shall I login to your machine and set it
up? Or did you configure your machine that way, that it is not possible
to run one pip command?

Whether the patches are waiting for months and years is difficult to
address to, without actual links. Because for sure you will be able to
find one patch which was missed in our inboxes and you did not get an
answer...  With Rob we both work much more than reasonable/healthy 8h
per day... Yet I recall you always received feedback, just not always
what you expected or wanted.

This binding here was never sent to mailing list:
https://lore.kernel.org/all/?q=cznic%2Cturris-omnia-mcu

>> Sorry, this is just a waste of time and energy to write new those yamls
>> as it does not bring any value.

It brings quite nice value - allows to check whether your bindings and
your DTS are correct. Any difficulty to install and run dtschema is not
equal to "does not bring any value"...

Anyway devices cannot go without bindings, thus it's a NAK.

Best regards,
Krzysztof

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2022-09-05 18:34 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-19 13:11 [PATCH] ARM: dts: turris-omnia: Add mcu node Pali Rohár
2022-08-31 14:28 ` Pali Rohár
2022-09-01 22:45   ` Andrew Lunn
2022-09-03  2:39     ` Marek Behún
2022-09-03 15:12       ` Andrew Lunn
2022-09-03 15:27     ` Pali Rohár
2022-09-04  1:02       ` Andrew Lunn
2022-09-05 16:19       ` Florian Fainelli
2022-09-05 16:34         ` Krzysztof Kozlowski [this message]
2022-09-05 17:12           ` Pali Rohár
2022-09-06  6:34             ` Krzysztof Kozlowski
2022-09-06  7:24               ` Pali Rohár

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7a43aa79-9c40-867c-c585-3bb448a54647@linaro.org \
    --to=krzysztof.kozlowski@linaro.org \
    --cc=andrew@lunn.ch \
    --cc=devicetree@vger.kernel.org \
    --cc=f.fainelli@gmail.com \
    --cc=gregory.clement@bootlin.com \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marek.behun@nic.cz \
    --cc=pali@kernel.org \
    --cc=robh+dt@kernel.org \
    --cc=sebastian.hesselbarth@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).