VisionFive 2 Board Level Configuration
The board level device tree file (DTSI file) stores all differentiation information for each board-level device. (For example, common.dtsi, jh7110-visionfive-v2.dts, and jh7110-visionfive-v2.dtsi, etc. )
The common.dtsi file is stored in the following path:
freelight-u-sdk/linux/arch/riscv/boot/dts/starfive/jh7110-common.dtsi
For example, the pin configuration of PWM on the VisionFive 2 SBC is listed under the pwm_pins node in the file jh7110-visionfive-v2.dtsi.
The following code block provides an example of the pins used by PWM including
dout (Data Output), doen (Data Output
Enable), and so on.
pwm_pins: pwm-pins { pwm_ch0-pins { sf,pins = <PAD_GPIO46>; sf,pinmux = <PAD_GPIO46_FUNC_SEL 0>; sf,pin-ioconfig = <IO(GPIO_IE(1))>; sf,pin-gpio-dout = <GPO_PTC0_PWM_0>; sf,pin-gpio-doen = <OEN_PTC0_PWM_0_OE_N>; }; pwm_ch1-pins { sf,pins = <PAD_GPIO59>; sf,pinmux = <PAD_GPIO59_FUNC_SEL 0>; sf,pin-ioconfig = <IO(GPIO_IE(1))>; sf,pin-gpio-dout = <GPO_PTC0_PWM_1>; sf,pin-gpio-doen = <OEN_PTC0_PWM_1_OE_N>; }; };