Skip to content

Commit

Permalink
dt-bindings: at24: Add address-width property
Browse files Browse the repository at this point in the history
Currently the only way to use a variant of a supported model with
a different address width is to define a new compatible string and
the corresponding chip data structure.

Provide a flexible way to specify the size of the address pointer
by defining a new property: address-width.

Signed-off-by: Alan Chiang <[email protected]>
Signed-off-by: Andy Yeh <[email protected]>
Acked-by: Sakari Ailus <[email protected]>
Reviewed-by: Rob Herring <[email protected]>
[Bartosz: fixed the commit message]
Signed-off-by: Bartosz Golaszewski <[email protected]>
  • Loading branch information
Alan Chiang authored and brgl committed Jul 25, 2018
1 parent d72e90f commit 21d0405
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Documentation/devicetree/bindings/eeprom/at24.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ Optional properties:

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

- address-width: number of address bits (one of 8, 16).

Example:

eeprom@52 {
Expand Down

0 comments on commit 21d0405

Please sign in to comment.