mirror of
https://github.com/torvalds/linux.git
synced 2024-11-19 18:41:48 +00:00
e8813c15be
This gets rid of the need for a pointless 'reg' property for i2c arbitrators. I.e. this new and more compact style some-arbitrator { i2c-arb { #address-cells = <1>; #size-cells = <0>; some-i2c-device@50 { reg = <0x50>; }; }; }; instead of the old some-arbitrator { #address-cells = <1>; #size-cells = <0>; i2c@0 { reg = <0>; #address-cells = <1>; #size-cells = <0>; some-i2c-device@50 { reg = <0x50>; }; }; }; Acked-by: Rob Herring <robh@kernel.org> Reviewed-by: Wolfram Sang <wsa@the-dreams.de> Signed-off-by: Peter Rosin <peda@axentia.se>
36 lines
612 B
Plaintext
36 lines
612 B
Plaintext
Common i2c arbitration bus properties.
|
|
|
|
- i2c-arb child node
|
|
|
|
Required properties for the i2c-arb child node:
|
|
- #address-cells = <1>;
|
|
- #size-cells = <0>;
|
|
|
|
Optional properties for i2c-arb child node:
|
|
- Child nodes conforming to i2c bus binding
|
|
|
|
|
|
Example :
|
|
|
|
/*
|
|
An NXP pca9541 I2C bus master selector at address 0x74
|
|
with a NXP pca8574 GPIO expander attached.
|
|
*/
|
|
|
|
arb@74 {
|
|
compatible = "nxp,pca9541";
|
|
reg = <0x74>;
|
|
|
|
i2c-arb {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
gpio@38 {
|
|
compatible = "nxp,pca8574";
|
|
reg = <0x38>;
|
|
#gpio-cells = <2>;
|
|
gpio-controller;
|
|
};
|
|
};
|
|
};
|