Change-Id: I06710a0adf648deff3700ec66fba5ac658a49fe7
Signed-off-by: Bin Yang <yangbin@rock-chips.com>
\r
Example:\r
\r
+ hall_sensor: hall-mh248 {\r
+ compatible = "hall-mh248";\r
+ pinctrl-names = "default";\r
+ pinctrl-0 = <&mh248_irq_gpio>;\r
+ irq-gpio = <&gpio1 2 IRQ_TYPE_EDGE_RISING>;\r
+ hall-active = <1>;\r
+ status = "okay";\r
+ };\r
sensor@1d {\r
compatible = "gs_mma8452";\r
reg = <0x1d>;\r
SENSOR_TYPE_TEMPERATURE 7 \r
SENSOR_TYPE_PRESSURE 8\r
SENSOR_TYPE_HALL 9\r
- define SENSOR_NUM_TYPES 10
\ No newline at end of file
+ define SENSOR_NUM_TYPES 10\r