xref: /freebsd/sys/contrib/device-tree/Bindings/iio/sensorhub.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotSamsung Sensorhub driver
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotSensorhub is a MCU which manages several sensors and also plays the role
4*c66ec88fSEmmanuel Vadotof a virtual sensor device.
5*c66ec88fSEmmanuel Vadot
6*c66ec88fSEmmanuel VadotRequired properties:
7*c66ec88fSEmmanuel Vadot- compatible: "samsung,sensorhub-rinato" or "samsung,sensorhub-thermostat"
8*c66ec88fSEmmanuel Vadot- spi-max-frequency: max SPI clock frequency
9*c66ec88fSEmmanuel Vadot- interrupts: communication interrupt
10*c66ec88fSEmmanuel Vadot- ap-mcu-gpios: [out] ap to sensorhub line - used during communication
11*c66ec88fSEmmanuel Vadot- mcu-ap-gpios: [in] sensorhub to ap - used during communication
12*c66ec88fSEmmanuel Vadot- mcu-reset-gpios: [out] sensorhub reset
13*c66ec88fSEmmanuel Vadot
14*c66ec88fSEmmanuel VadotExample:
15*c66ec88fSEmmanuel Vadot
16*c66ec88fSEmmanuel Vadot	shub_spi: shub {
17*c66ec88fSEmmanuel Vadot		compatible = "samsung,sensorhub-rinato";
18*c66ec88fSEmmanuel Vadot		spi-max-frequency = <5000000>;
19*c66ec88fSEmmanuel Vadot		interrupt-parent = <&gpx0>;
20*c66ec88fSEmmanuel Vadot		interrupts = <2 0>;
21*c66ec88fSEmmanuel Vadot		ap-mcu-gpios = <&gpx0 0 0>;
22*c66ec88fSEmmanuel Vadot		mcu-ap-gpios = <&gpx0 4 0>;
23*c66ec88fSEmmanuel Vadot		mcu-reset-gpios = <&gpx0 5 0>;
24*c66ec88fSEmmanuel Vadot	};
25