devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: Shawn Guo <shawnguo@kernel.org>,
	Linus Walleij <linus.walleij@linaro.org>
Cc: linux-arm-kernel@lists.infradead.org,
	Denys Drozdov <denys.drozdov@toradex.com>,
	Fabio Estevam <festevam@denx.de>,
	Frieder Schrempf <frieder.schrempf@kontron.de>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Li Yang <leoyang.li@nxp.com>,
	Marcel Ziswiler <marcel.ziswiler@toradex.com>,
	Matthias Schiffer <matthias.schiffer@tq-group.com>,
	Max Krummenacher <max.krummenacher@toradex.com>,
	NXP Linux Team <linux-imx@nxp.com>, Peng Fan <peng.fan@nxp.com>,
	Rob Herring <robh+dt@kernel.org>,
	Tim Harvey <tharvey@gateworks.com>,
	devicetree@vger.kernel.org
Subject: Re: [PATCH 2/2] arm64: dts: imx8mp: Add support for Data Modul i.MX8M Plus eDM SBC
Date: Tue, 10 Jan 2023 13:52:43 +0100	[thread overview]
Message-ID: <bf2ae708-588a-d566-641b-67b47b5f5993@denx.de> (raw)
In-Reply-To: <20230109035444.GA18301@T480>

On 1/9/23 04:54, Shawn Guo wrote:

[...]

>>>> +		backlight = <&backlight>;
>>>> +		power-supply = <&reg_panel_vcc>;
>>>> +		/* Disabled by default, unless display board plugged in. */
>>>> +		status = "disabled";
>>>> +	};
>>>> +
>>>> +	reg_panel_vcc: regulator-panel-vcc {
>>>> +		compatible = "regulator-fixed";
>>>> +		pinctrl-names = "default";
>>>> +		pinctrl-0 = <&pinctrl_panel_vcc_reg>;
>>>> +		regulator-name = "PANEL_VCC";
>>>> +		regulator-min-microvolt = <5000000>;
>>>> +		regulator-max-microvolt = <5000000>;
>>>> +		gpio = <&gpio3 6 0>;
>>>
>>> GPIO_ACTIVE_HIGH?
>>
>> No, the 0 is correct and you're not the first one to wonder about this
>> oddity.
> 
> I understand that the polarity is ignored by Linux Kernel.  But it
> shouldn't prevent us from describing the polarity cell with defines
> for better readability.
> 
> I'm always looking for the pattern below when reviewing the device tree.
> 
> 	regulator-xxx {
> 		compatible = "regulator-fixed";
> 		...
> 		gpio = <&gpio3 6 GPIO_ACTIVE_HIGH>;
> 		enable-active-high;
> 	}
> 
> Or for low polarity:
> 
> 	regulator-xxx {
> 		compatible = "regulator-fixed";
> 		...
> 		gpio = <&gpio3 6 GPIO_ACTIVE_LOW>;
> 	}
> 
> The polarity define is helpful for me to validate whether
> `enable-active-high` property should present.

Maybe the best thing we can do to resolve this is to ask GPIO maintainer 
Linus what is the preferred way of describing this in DT -- whether with 
valid GPIO flags which are ignored or with 0 instead of GPIO flags ?

  reply	other threads:[~2023-01-10 12:53 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-18  5:17 [PATCH 1/2] dt-bindings: arm: Add Data Modul i.MX8M Plus eDM SBC Marek Vasut
2022-12-18  5:18 ` [PATCH 2/2] arm64: dts: imx8mp: Add support for " Marek Vasut
2023-01-01  4:00   ` Shawn Guo
2023-01-05 21:30     ` Marek Vasut
2023-01-09  3:54       ` Shawn Guo
2023-01-10 12:52         ` Marek Vasut [this message]
2023-01-11  7:38   ` Ahmad Fatoum
2023-01-16 10:39     ` Marek Vasut
2023-01-16 10:51       ` Frieder Schrempf
2023-01-16 11:25         ` Marek Vasut
2023-01-16 11:34           ` Frieder Schrempf
2023-01-16 11:47             ` Marek Vasut
2023-01-16 11:56               ` Frieder Schrempf
2023-01-16 11:28       ` Ahmad Fatoum
2022-12-19  9:10 ` [PATCH 1/2] dt-bindings: arm: Add " 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=bf2ae708-588a-d566-641b-67b47b5f5993@denx.de \
    --to=marex@denx.de \
    --cc=denys.drozdov@toradex.com \
    --cc=devicetree@vger.kernel.org \
    --cc=festevam@denx.de \
    --cc=frieder.schrempf@kontron.de \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=leoyang.li@nxp.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-imx@nxp.com \
    --cc=marcel.ziswiler@toradex.com \
    --cc=matthias.schiffer@tq-group.com \
    --cc=max.krummenacher@toradex.com \
    --cc=peng.fan@nxp.com \
    --cc=robh+dt@kernel.org \
    --cc=shawnguo@kernel.org \
    --cc=tharvey@gateworks.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).