Device Tree Configuration

The general configuration profile of the JH7110 SoC platform is in the following file:
linux/arch/riscv/boot/dts/starfive/jh7110.dtsi
Important: DO NOT make any change to the above file.
The following code block shows the content of the configuration file.
        gpio: gpio@13040000 {
                compatible = "starfive,jh7110-sys-pinctrl";
                reg = <0x0 0x13040000 0x0 0x10000>;
                reg-names = "control";
                clocks = <&clkgen JH7110_SYS_IOMUX_PCLK>;
                resets = <&rstgen RSTN_U0_SYS_IOMUX_PRESETN>;
                interrupts = <86>;
                interrupt-controller;
                #gpio-cells = <2>;
                ngpios = <64>;
                status = "okay";
        };

        gpioa: gpio@17020000 {
                compatible = "starfive,jh7110-aon-pinctrl";
                reg = <0x0 0x17020000 0x0 0x10000>;
                reg-names = "control";
                resets = <&rstgen RSTN_U0_AON_IOMUX_PRESETN>;
                interrupts = <85>;
                interrupt-controller;
                #gpio-cells = <2>;
                ngpios = <4>;
                status = "okay";
        };
The following list provides explanations for the parameters included in the above code block.
  • compatible: Compatibility information, used to associate the driver and its target device.
  • reg: Register base address "0x13040000" and range "0x10000".
  • reg-names: Names of the registers used by the GPIO module.
  • clocks: The clocks used by the GPIO module.
  • clock-names: The names of the above clocks.
  • resets: The reset signals used by the GPIO module.
  • interrupts: Hardware interrupt ID.
  • status: The work status of the GPIO module. To enable the module, set this bit as "okay" or to disable the module, set this bit as "disabled".

Make sure you do not change the bits of gpio-cells and ngpios.