dt-bindings: i2c: add support for 'i2c-gate' subnode
authorPeter Rosin <peda@axentia.se>
Fri, 8 Jul 2016 10:13:49 +0000 (12:13 +0200)
committerPeter Rosin <peda@axentia.se>
Thu, 25 Aug 2016 20:11:01 +0000 (22:11 +0200)
commit0ac8eb6452e128abd7af08e5d4a38768833da0ca
tree7488c1c165fdc8fcd747280e8e706858b2af32fc
parente8813c15be0a9e7f2c79c58d3329d92bcf056ecc
dt-bindings: i2c: add support for 'i2c-gate' subnode

Handle i2c gates similarly to how i2c arbitrators are handled.
This gets rid of a pointless 'reg' property for i2c gates.

I.e. this new and more compact style

        some-gate {
                i2c-gate {
                        #address-cells = <1>;
                        #size-cells = <0>;

                        some-i2c-device@50 {
                                reg = <0x50>;
                        };
                };
        };

instead of the old

        some-gate {
                #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>
Documentation/devicetree/bindings/i2c/i2c-gate.txt [new file with mode: 0644]
MAINTAINERS
This page took 0.024683 seconds and 5 git commands to generate.