mirror of
https://github.com/Evolution-X-Devices/kernel_oneplus_sm8550-devicetrees
synced 2026-02-01 09:04:24 +00:00
dt-bindings: i2c-slave: Add DT bindings for I2C Slave driver
Add DT bindings for I2C Slave driver. Change-Id: Ie481f7dd53d651c710609a8b95066419cc059972
This commit is contained in:
29
bindings/i2c/qcom,i2c-slave.txt
Normal file
29
bindings/i2c/qcom,i2c-slave.txt
Normal file
@@ -0,0 +1,29 @@
|
||||
I2c Slave: Qualcomm Technologies Inc Universal Peripheral.
|
||||
|
||||
Required properties:
|
||||
- compatible: Should be: "qcom,i2c-slave".
|
||||
- reg: Should contain base register address and length.
|
||||
- interrupts: Should contain I2C slave interrupt.
|
||||
- clocks: AHB clock and XO clocks needed by the device.
|
||||
- pinctrl-names/pinctrl-0/1: The GPIOs assigned to this core. The names
|
||||
should be "active" and "sleep" for the pin confuguration when core is active
|
||||
or when entering sleep state.
|
||||
|
||||
Optional property:
|
||||
|
||||
Child nodes should conform to i2c bus binding.
|
||||
|
||||
Example:
|
||||
|
||||
i2c_slave{
|
||||
compatible = "qcom,i2c-slave";
|
||||
reg = <0x088ca000 0x64>;
|
||||
interrupt-names = "smbus_alert";
|
||||
interrupts = <GIC_SPI 535 IRQ_TYPE_LEVEL_HIGH>;
|
||||
clock-names = "sm_bus_xo_clk", "sm_bus_ahb_clk";
|
||||
clocks = <&gcc GCC_SM_BUS_XO_CLK>, <&gcc GCC_SM_BUS_AHB_CLK>;
|
||||
pinctrl-names = "default", "sleep";
|
||||
pinctrl-0 = <&i2c_slave_sda_active>, <&i2c_slave_scl_active>;
|
||||
pinctrl-1 = <&i2c_slave_sleep>;
|
||||
status = "ok";
|
||||
};
|
||||
Reference in New Issue
Block a user