Hello Support,
My board is based off of the verdin dev board and I am trying to enable I2C 5/6 (there is some switching where they are called different things). I am doing an overlay which should overlay the dev board settings.
Using the pinout designer, I find that the pins are used elsewhere on the dev board (SODIMM 34, DIGITAL_AUDIO_1_I2S_MASTER_D_OUT0). On our board, which is modeled after the verdin dev board, has no digital audio lines connected. So, in theory, all I should have to do is disable that line I think and then build my I2c6 connections.
I have disabled the existing conflicting pin thusly:
&pwm3dsi1hpdgpiogrp {
status = âdisabledâ;
};
However, when I try to set the GPIOâs up as:
scl-gpios = <&gpio3 19 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
sda-gpios = <&gpio3 20 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
Builder gives me a syntax error on either line (if I comment out the previous one). Yet these same basic lines are used to describe other I2C lines, such as here in imx8mp-verdin.dtsi:
&i2c3 {
clock-frequency = <400000>;
pinctrl-names = âdefaultâ, âgpioâ;
pinctrl-0 = <&pinctrl_i2c3>;
pinctrl-1 = <&pinctrl_i2c3_gpio>;
scl-gpios = <&gpio5 18 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
sda-gpios = <&gpio5 19 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
};
Here is my section:
&i2c6 {
clock-frequency = <400000>;
pinctrl-names = âdefaultâ, âgpioâ;
pinctrl-0 = <&pinctrl_i2c6>;
pinctrl-1 = <&pinctrl_i2c6_gpio>;
scl-gpios = <&gpio3 19 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
sda-gpios = <&gpio3 20 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
status = âokayâ;
};
Which does compile and build correctly if I take the offending lines out.