Board Level Configuration

The pinctrl.dtsi file contains the pin control configuration. The file is stored in the following path:
freelight-u-sdk/linux/arch/riscv/boot/dts/starfive/jh7110-visionfive-v2.dts
The following code block provides an example of the pins used by i2c0, including pinmux (Pin MUX), ioconfig (pin control configuration), dout (data output), doen (data output enable) and din (data input) signals.
i2c0_pins: i2c0-pins {
		i2c0-pins-scl {
			sf,pins = <PAD_GPIO57>;
			sf,pinmux = <PAD_GPIO57_FUNC_SEL 0>;
			sf,pin-ioconfig = <IO(GPIO_IE(1) | (GPIO_PU(1)))>;
			sf,pin-gpio-dout = <GPO_LOW>;
			sf,pin-gpio-doen = <OEN_I2C0_IC_CLK_OE>;
			sf,pin-gpio-din =  <GPI_I2C0_IC_CLK_IN_A>;
		};

		i2c0-pins-sda {
			sf,pins = <PAD_GPIO58>;
			sf,pinmux = <PAD_GPIO58_FUNC_SEL 0>;
			sf,pin-ioconfig = <IO(GPIO_IE(1) | (GPIO_PU(1)))>;
			sf,pin-gpio-dout = <GPO_LOW>;
			sf,pin-gpio-doen = <OEN_I2C0_IC_DATA_OE>;
			sf,pin-gpio-din =  <GPI_I2C0_IC_DATA_IN_A>;
		};