All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Mathieu Dubois-Briand" <mathieu.dubois-briand@bootlin.com>
To: "Uwe Kleine-König" <ukleinek@kernel.org>
Cc: "Lee Jones" <lee@kernel.org>, "Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"Kamel Bouhara" <kamel.bouhara@bootlin.com>,
	"Linus Walleij" <linus.walleij@linaro.org>,
	"Bartosz Golaszewski" <brgl@bgdev.pl>,
	"Dmitry Torokhov" <dmitry.torokhov@gmail.com>,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-gpio@vger.kernel.org, linux-input@vger.kernel.org,
	linux-pwm@vger.kernel.org,
	"Grégory Clement" <gregory.clement@bootlin.com>,
	"Thomas Petazzoni" <thomas.petazzoni@bootlin.com>
Subject: Re: [PATCH v2 0/7] Add support for MAX7360
Date: Mon, 23 Dec 2024 18:53:03 +0100	[thread overview]
Message-ID: <D6J9SRCAVWY8.1RY8GDZHEBG3P@bootlin.com> (raw)
In-Reply-To: <guxwaw4gapkak3ooy5njkcehk7r7zcfy5ibbkzvnqzwth443hj@wcqvllfixfg5>

On Mon Dec 23, 2024 at 6:09 PM CET, Uwe Kleine-König wrote:
> Hello Mathieu,
>
> On Mon, Dec 23, 2024 at 06:05:39PM +0100, Uwe Kleine-König wrote:
> > On Mon, Dec 23, 2024 at 05:42:32PM +0100, Mathieu Dubois-Briand wrote:
> > > - Removing device tree subnodes for keypad, rotary encoder and pwm
> > >   functionalities.
> > 
> > How did you test the pwm? Just using sysfs? Without a node there is
> > hardly any other usage left, because you cannot pass the pwm to e.g. a
> > pwm-fan node. So it might be sensible to drop the nodes for keypad and
> > rotary encoder, but I think you better keep the pwm one.
>
> I think I was to quick here. It might just work ...
>
> Best regards
> Uwe

Hi Uwe,

I also had some doubt here, keeping the node might be bit more clear but
I thought you wanted me to drop it.

And yes, as you said, it does work. For reference, I test it using some
pwm-led:

pwm-leds {
	compatible = "pwm-leds";

	battery {
		label = "battery";
		pwms = <&max7360 0 2000000 0>;
		max-brightness = <128>;
		linux,default-trigger = "heartbeat";
	};
};

Where &max7360 is a reference to the root node (io-expander@38 in the
binding example).

Best regards,
Mathieu

-- 
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


      reply	other threads:[~2024-12-23 17:53 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-23 16:42 [PATCH v2 0/7] Add support for MAX7360 Mathieu Dubois-Briand
2024-12-23 16:42 ` [PATCH v2 1/7] dt-bindings: mfd: gpio: Add MAX7360 Mathieu Dubois-Briand
2024-12-23 17:08   ` Uwe Kleine-König
2024-12-24  9:12   ` Krzysztof Kozlowski
2024-12-24 12:22     ` Mathieu Dubois-Briand
2024-12-23 16:42 ` [PATCH v2 2/7] mfd: Add max7360 support mathieu.dubois-briand
2024-12-23 16:42 ` [PATCH v2 3/7] pwm: max7360: Add MAX7360 PWM support mathieu.dubois-briand
2024-12-31 17:31   ` Christophe JAILLET
2024-12-23 16:42 ` [PATCH v2 4/7] gpio: max7360: Add MAX7360 gpio support Mathieu Dubois-Briand
2024-12-31 17:40   ` Christophe JAILLET
2025-01-21 15:20   ` Andy Shevchenko
2025-01-22 13:04     ` Mathieu Dubois-Briand
2025-01-22 16:31       ` Andy Shevchenko
2025-01-27 13:08         ` Andy Shevchenko
2024-12-23 16:42 ` [PATCH v2 5/7] input: keyboard: Add support for MAX7360 keypad Mathieu Dubois-Briand
2024-12-31 17:45   ` Christophe JAILLET
2024-12-23 16:42 ` [PATCH v2 6/7] input: misc: Add support for MAX7360 rotary Mathieu Dubois-Briand
2024-12-31 17:49   ` Christophe JAILLET
2025-01-02  9:34     ` Mathieu Dubois-Briand
2024-12-23 16:42 ` [PATCH v2 7/7] MAINTAINERS: Add entry on MAX7360 driver Mathieu Dubois-Briand
2024-12-23 17:05 ` [PATCH v2 0/7] Add support for MAX7360 Uwe Kleine-König
2024-12-23 17:09   ` Uwe Kleine-König
2024-12-23 17:53     ` Mathieu Dubois-Briand [this message]

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=D6J9SRCAVWY8.1RY8GDZHEBG3P@bootlin.com \
    --to=mathieu.dubois-briand@bootlin.com \
    --cc=brgl@bgdev.pl \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=gregory.clement@bootlin.com \
    --cc=kamel.bouhara@bootlin.com \
    --cc=krzk+dt@kernel.org \
    --cc=lee@kernel.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pwm@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=thomas.petazzoni@bootlin.com \
    --cc=ukleinek@kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.