mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user