mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
791d3ef2e1
'interrupt-parent' is often documented as part of define bindings, but it is really outside the scope of a device binding. It's never required in a given node as it is often inherited from a parent node. Or it can be implicit if a parent node is an 'interrupt-controller' node. So remove it from all the binding files. Cc: Mark Rutland <mark.rutland@arm.com> Cc: devicetree@vger.kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
46 lines
1.4 KiB
Plaintext
46 lines
1.4 KiB
Plaintext
Invensense MPU-3050 Gyroscope device tree bindings
|
|
|
|
Required properties:
|
|
- compatible : should be "invensense,mpu3050"
|
|
- reg : the I2C address of the sensor
|
|
|
|
Optional properties:
|
|
- interrupts : interrupt mapping for the trigger interrupt from the
|
|
internal oscillator. The following IRQ modes are supported:
|
|
IRQ_TYPE_EDGE_RISING, IRQ_TYPE_EDGE_FALLING, IRQ_TYPE_LEVEL_HIGH and
|
|
IRQ_TYPE_LEVEL_LOW. The driver should detect and configure the hardware
|
|
for the desired interrupt type.
|
|
- vdd-supply : supply regulator for the main power voltage.
|
|
- vlogic-supply : supply regulator for the signal voltage.
|
|
- mount-matrix : see iio/mount-matrix.txt
|
|
|
|
Optional subnodes:
|
|
- The MPU-3050 will pass through and forward the I2C signals from the
|
|
incoming I2C bus, alternatively drive traffic to a slave device (usually
|
|
an accelerometer) on its own initiative. Therefore is supports a subnode
|
|
i2c gate node. For details see: i2c/i2c-gate.txt
|
|
|
|
Example:
|
|
|
|
mpu3050@68 {
|
|
compatible = "invensense,mpu3050";
|
|
reg = <0x68>;
|
|
interrupt-parent = <&foo>;
|
|
interrupts = <12 IRQ_TYPE_EDGE_FALLING>;
|
|
vdd-supply = <&bar>;
|
|
vlogic-supply = <&baz>;
|
|
|
|
/* External I2C interface */
|
|
i2c-gate {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
fnord@18 {
|
|
compatible = "fnord";
|
|
reg = <0x18>;
|
|
interrupt-parent = <&foo>;
|
|
interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
|
|
};
|
|
};
|
|
};
|