kernel_samsung_a34x-permissive/arch/arm64/boot/dts/mediatek/i2c-gpio-1.dtsi
2024-04-28 15:49:01 +02:00

48 lines
981 B
Plaintext
Executable file

&pio {
gpio_i2c_1_sda {
gpio_i2c_1_sda_default: gpio_i2c_1_sda_default {
GPIO_CONFIG_PUD_DRV(AP,pio,190, FUNC_INPUT, PULL_NONE, DRV_LV1);
};
};
};
&pio {
gpio_i2c_1_scl {
gpio_i2c_1_scl_default: gpio_i2c_1_scl_default {
GPIO_CONFIG_PUD_DRV(AP,pio,189, FUNC_INPUT, PULL_NONE, DRV_LV1);
};
};
};
/ {
fragment@model {
target-path = "/";
__overlay__ {
aliases {
i2c31 = "/i2c@31";
};
/* Software I2C */
sw_i2c1: i2c@31 {
cell-index = <31>;
compatible = "i2c-gpio";
gpios = <
SEC_GPIO_REF(AP,pio,190) 0 /* SDA */
SEC_GPIO_REF(AP,pio,189) 0 /* SCL */
>;
#i2c-gpio,delay-us = <2>;
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <
&gpio_i2c_1_sda_default
&gpio_i2c_1_scl_default
>;
status = "disabled";
};
};
};
};