lkml.org 
[lkml]   [2022]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/2] dt-bindings: at24: new optional property - enable-gpios
Date
Boards using the AT24 EEPROMs might have a GPIO that must be set to
enable the chip (e.g. pin that controls the power supply).

Add a new optional property to the device tree binding document, which
allows to specify the GPIO line to which the enable pin is connected.

On Linux this means that we need to hog the line at the beginning of
probe function.

Signed-off-by: Eliav Farber <farbere@amazon.com>
---
Documentation/devicetree/bindings/eeprom/at24.txt | 3 +++
1 file changed, 3 insertions(+)

diff --git a/Documentation/devicetree/bindings/eeprom/at24.txt b/Documentation/devicetree/bindings/eeprom/at24.txt
index f9a7c984274c..553b53ed3e4c 100644
--- a/Documentation/devicetree/bindings/eeprom/at24.txt
+++ b/Documentation/devicetree/bindings/eeprom/at24.txt
@@ -73,6 +73,9 @@ Optional properties:

- wp-gpios: GPIO to which the write-protect pin of the chip is connected.

+ - enable-gpios: GPIO to enables the chip (e.g. pin that controls the eeprom
+ power supply).
+
- address-width: number of address bits (one of 8, 16).

Example:
--
2.37.1
\
 
 \ /
  Last update: 2022-08-16 15:04    [W:0.051 / U:0.380 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site