|
@@ -11,6 +11,12 @@ Required properties for the SPI bindings:
|
|
|
constrained by external circuitry
|
|
|
- interrupts: the interrupt generated by the device
|
|
|
|
|
|
+Required properties for the I2C bindings:
|
|
|
+ - compatible: should be set to "st,lis3lv02d"
|
|
|
+ - reg: i2c slave address
|
|
|
+ - Vdd-supply: The input supply for Vdd
|
|
|
+ - Vdd_IO-supply: The input supply for Vdd_IO
|
|
|
+
|
|
|
|
|
|
Optional properties for all bus drivers:
|
|
|
|
|
@@ -74,3 +80,33 @@ Example for a SPI device node:
|
|
|
st,wakeup-z-hi;
|
|
|
};
|
|
|
|
|
|
+Example for a I2C device node:
|
|
|
+
|
|
|
+ lis331dlh: lis331dlh@18 {
|
|
|
+ compatible = "st,lis331dlh", "st,lis3lv02d";
|
|
|
+ reg = <0x18>;
|
|
|
+ Vdd-supply = <&lis3_reg>;
|
|
|
+ Vdd_IO-supply = <&lis3_reg>;
|
|
|
+
|
|
|
+ st,click-single-x;
|
|
|
+ st,click-single-y;
|
|
|
+ st,click-single-z;
|
|
|
+ st,click-thresh-x = <10>;
|
|
|
+ st,click-thresh-y = <10>;
|
|
|
+ st,click-thresh-z = <10>;
|
|
|
+ st,irq1-click;
|
|
|
+ st,irq2-click;
|
|
|
+ st,wakeup-x-lo;
|
|
|
+ st,wakeup-x-hi;
|
|
|
+ st,wakeup-y-lo;
|
|
|
+ st,wakeup-y-hi;
|
|
|
+ st,wakeup-z-lo;
|
|
|
+ st,wakeup-z-hi;
|
|
|
+ st,min-limit-x = <120>;
|
|
|
+ st,min-limit-y = <120>;
|
|
|
+ st,min-limit-z = <140>;
|
|
|
+ st,max-limit-x = <550>;
|
|
|
+ st,max-limit-y = <550>;
|
|
|
+ st,max-limit-z = <750>;
|
|
|
+ };
|
|
|
+
|