Documentation: bindings: add DT documentation for rk_sensor.txt

Change-Id: I06710a0adf648deff3700ec66fba5ac658a49fe7
Signed-off-by: Bin Yang <yangbin@rock-chips.com>
This commit is contained in:
Bin Yang
2016-09-12 17:45:25 +08:00
committed by Huang, Tao
parent 9cb1ed8edf
commit 7d9036b161

View File

@@ -11,6 +11,14 @@ Required properties:
Example:
hall_sensor: hall-mh248 {
compatible = "hall-mh248";
pinctrl-names = "default";
pinctrl-0 = <&mh248_irq_gpio>;
irq-gpio = <&gpio1 2 IRQ_TYPE_EDGE_RISING>;
hall-active = <1>;
status = "okay";
};
sensor@1d {
compatible = "gs_mma8452";
reg = <0x1d>;
@@ -44,4 +52,4 @@ TYPE:
SENSOR_TYPE_TEMPERATURE 7
SENSOR_TYPE_PRESSURE 8
SENSOR_TYPE_HALL 9
define SENSOR_NUM_TYPES 10
define SENSOR_NUM_TYPES 10