From: "Rafał Miłecki" <zajec5@gmail.com>
To: "AngeloGioacchino Del Regno"
<angelogioacchino.delregno@collabora.com>,
"Matthias Brugger" <matthias.bgg@gmail.com>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: "John Crispin" <john@phrozen.org>,
linux-pwm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org,
"Rafał Miłecki" <rafal@milecki.pl>
Subject: Re: [PATCH 2/2] arm64: dts: mediatek: mt7988: add PWM controller
Date: Wed, 14 Feb 2024 10:24:32 +0100 [thread overview]
Message-ID: <bbacfaad-a182-4df5-8317-640e32a1954a@gmail.com> (raw)
In-Reply-To: <36baacb4-4aa9-421f-bde0-c4be7d7f4aa1@collabora.com>
On 14.02.2024 10:09, AngeloGioacchino Del Regno wrote:
> Il 13/02/24 17:46, Rafał Miłecki ha scritto:
>> From: Rafał Miłecki <rafal@milecki.pl>
>>
>> Add binding for on-SoC controller that can control up to 8 PWMs.
>>
>> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
>> ---
>> arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 21 ++++++++++++++++++++-
>> 1 file changed, 20 insertions(+), 1 deletion(-)
>>
>> diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi
>> index bba97de4fb44..67007626b5cd 100644
>> --- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi
>> +++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi
>> @@ -1,5 +1,6 @@
>> // SPDX-License-Identifier: GPL-2.0-only OR MIT
>> +#include <dt-bindings/clock/mediatek,mt7988-clk.h>
>> #include <dt-bindings/interrupt-controller/arm-gic.h>
>> / {
>> @@ -78,7 +79,7 @@ gic: interrupt-controller@c000000 {
>> #interrupt-cells = <3>;
>> };
>> - clock-controller@10001000 {
>> + infracfg: clock-controller@10001000 {
>> compatible = "mediatek,mt7988-infracfg", "syscon";
>> reg = <0 0x10001000 0 0x1000>;
>> #clock-cells = <1>;
>> @@ -103,6 +104,24 @@ clock-controller@1001e000 {
>> #clock-cells = <1>;
>> };
>> + pwm@10048000 {
>> + compatible = "mediatek,mt7988-pwm";
>
> I can't take this unless there's a driver that supports your device.
I'd argue you should rather look for a documented binding rather than a
(Linux?) driver. Otherwise you would refuse changes that are not
strictly Linux related. DTS files are meant to describe hardware in a
generic way and not be driven by Linux drivers / design.
Example:
We have bindings for "brcm,bcm6345-timer" and "bcm63138-timer" (see
commit e112f2de151b) and DTS files with those bindings.
There is no Linux driver for that hardware block as there is no need
for it.
In this context I'm explaining binding thing with Conor in discussion
on PATCH 1/1. So stay tuned :)
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2024-02-14 9:24 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-13 16:46 [PATCH 1/2] dt-bindings: pwm: mediatek,mt2712: add compatible for MT7988 Rafał Miłecki
2024-02-13 16:46 ` [PATCH 2/2] arm64: dts: mediatek: mt7988: add PWM controller Rafał Miłecki
2024-02-14 9:09 ` AngeloGioacchino Del Regno
2024-02-14 9:24 ` Rafał Miłecki [this message]
2024-02-14 9:33 ` AngeloGioacchino Del Regno
2024-02-13 17:48 ` [PATCH 1/2] dt-bindings: pwm: mediatek,mt2712: add compatible for MT7988 Uwe Kleine-König
2024-02-14 9:05 ` Krzysztof Kozlowski
2024-02-16 13:10 ` Uwe Kleine-König
2024-02-13 18:18 ` Conor Dooley
2024-02-14 6:34 ` Rafał Miłecki
2024-02-14 9:27 ` AngeloGioacchino Del Regno
2024-02-14 10:06 ` Conor Dooley
2024-02-14 10:19 ` Rafał Miłecki
2024-02-16 8:56 ` Uwe Kleine-König
2024-02-16 9:07 ` Krzysztof Kozlowski
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=bbacfaad-a182-4df5-8317-640e32a1954a@gmail.com \
--to=zajec5@gmail.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=john@phrozen.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-pwm@vger.kernel.org \
--cc=matthias.bgg@gmail.com \
--cc=rafal@milecki.pl \
--cc=robh@kernel.org \
--cc=u.kleine-koenig@pengutronix.de \
/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).