kernel_samsung_a34x-permissive/arch/arm64/boot/dts/samsung/i2c-gpio.dtsi
2024-04-28 15:51:13 +02:00

48 lines
981 B
Plaintext

&pio {
gpio_i2c_0_sda {
gpio_i2c_0_sda_default: gpio_i2c_0_sda_default {
GPIO_CONFIG_PUD_DRV(AP,pio,102, FUNC_INPUT, PULL_NONE, DRV_LV1);
};
};
};
&pio {
gpio_i2c_0_scl {
gpio_i2c_0_scl_default: gpio_i2c_0_scl_default {
GPIO_CONFIG_PUD_DRV(AP,pio,117, FUNC_INPUT, PULL_NONE, DRV_LV1);
};
};
};
/ {
fragment@model {
target-path = "/";
__overlay__ {
aliases {
i2c30 = "/i2c@30";
};
/* Software I2C */
sw_i2c0: i2c@30 {
cell-index = <30>;
compatible = "i2c-gpio";
gpios = <
SEC_GPIO_REF(AP,pio,102) 0 /* SDA */
SEC_GPIO_REF(AP,pio,117) 0 /* SCL */
>;
#i2c-gpio,delay-us = <2>;
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <
&gpio_i2c_0_sda_default
&gpio_i2c_0_scl_default
>;
status = "disabled";
};
};
};
};