From: Rob Herring <robh+dt@kernel.org>
To: Eliav Farber <farbere@amazon.com>
Cc: Bartosz Golaszewski <brgl@bgdev.pl>,
Mark Rutland <mark.rutland@arm.com>,
Arnd Bergmann <arnd@arndb.de>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Linux I2C <linux-i2c@vger.kernel.org>,
devicetree@vger.kernel.org,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Talel Shenhar <talel@amazon.com>,
"Hawa, Hanna" <hhhawa@amazon.com>,
Jonathan Chocron <jonnyc@amazon.com>,
"Hanoch, Uri" <hanochu@amazon.com>,
"Krupnik, Ronen" <ronenk@amazon.com>,
itamark@amazon.com, shellykz@amazon.com, shorer@amazon.com,
amitlavi@amazon.com, almogbs@amazon.com, dkl@amazon.com,
"Woodhouse, David" <dwmw@amazon.co.uk>
Subject: Re: [PATCH v3 1/2] dt-bindings: at24: add new optional power-supply property
Date: Mon, 29 Aug 2022 13:55:51 -0500 [thread overview]
Message-ID: <CAL_JsqL1UAM80wydnq7hjsKB1zO9tE_Xnba8U3KjDiFY157TOA@mail.gmail.com> (raw)
In-Reply-To: <20220828154904.20477-2-farbere@amazon.com>
On Sun, Aug 28, 2022 at 10:49 AM Eliav Farber <farbere@amazon.com> wrote:
>
> Boards using the AT24 EEPROMs might have a GPIO that controls the power
> supply of the chip, and it must be set to enable the usage of it.
>
> Add a new optional property to the device tree binding document, which
> allows to specify a GPIO regulator for the pin that controls the power.
>
> On Linux this means that we need to enable the GPIO at the beginning of
> probe function, before trying to access the chip.
>
> Signed-off-by: Eliav Farber <farbere@amazon.com>
> ---
> V2 -> V3:
> Apply on top of v6.0-rc1
>
> Documentation/devicetree/bindings/eeprom/at24.yaml | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/eeprom/at24.yaml b/Documentation/devicetree/bindings/eeprom/at24.yaml
> index d14e0accbda8..82f0046f67a9 100644
> --- a/Documentation/devicetree/bindings/eeprom/at24.yaml
> +++ b/Documentation/devicetree/bindings/eeprom/at24.yaml
> @@ -179,6 +179,10 @@ properties:
> description:
> phandle of the regulator that provides the supply voltage.
>
> + power-supply:
The datasheets I looked at say the supply name is 'VCC', so vcc-supply.
> + description:
> + phandle of the gpio regulator that provides the supply voltage.
What the connection is is outside the scope of the binding. IOW, it
might not be a GPIO controlled regulator. So drop the description.
> +
> required:
> - compatible
> - reg
> --
> 2.37.1
>
next prev parent reply other threads:[~2022-08-29 18:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-28 15:49 [PATCH v3 0/2] add power-supply control to enable eeprom usage Eliav Farber
2022-08-28 15:49 ` [PATCH v3 1/2] dt-bindings: at24: add new optional power-supply property Eliav Farber
2022-08-29 18:55 ` Rob Herring [this message]
2022-08-28 15:49 ` [PATCH v3 2/2] eeprom: at24: add support for power-supply control Eliav Farber
2022-08-31 13:00 ` [PATCH v3 0/2] add power-supply control to enable eeprom usage Bartosz Golaszewski
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=CAL_JsqL1UAM80wydnq7hjsKB1zO9tE_Xnba8U3KjDiFY157TOA@mail.gmail.com \
--to=robh+dt@kernel.org \
--cc=almogbs@amazon.com \
--cc=amitlavi@amazon.com \
--cc=arnd@arndb.de \
--cc=brgl@bgdev.pl \
--cc=devicetree@vger.kernel.org \
--cc=dkl@amazon.com \
--cc=dwmw@amazon.co.uk \
--cc=farbere@amazon.com \
--cc=gregkh@linuxfoundation.org \
--cc=hanochu@amazon.com \
--cc=hhhawa@amazon.com \
--cc=itamark@amazon.com \
--cc=jonnyc@amazon.com \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=ronenk@amazon.com \
--cc=shellykz@amazon.com \
--cc=shorer@amazon.com \
--cc=talel@amazon.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).