/* * Add this piece of dtsi fragment as #include "socfpga_agilex_ghrd.dtsi" * in the file socfpga_agilex_socdk.dts. Compile it in the kernel along with * socfpga_agilex.dtsi. */ /{ soc { led_pio: gpio@f9001080 { compatible = "altr,pio-1.0"; reg = <0xf9001080 0x8>; altr,gpio-bank-width = <4>; #gpio-cells = <2>; gpio-controller; resetvalue = <0>; }; button_pio: gpio@f9001060 { compatible = "altr,pio-1.0"; reg = <0xf9001060 0x10>; interrupt-parent = <&intc>; interrupts = <0 18 4>; altr,gpio-bank-width = <4>; altr,interrupt-type = <2>; altr,interrupt_type = <2>; #gpio-cells = <2>; gpio-controller; }; dipsw_pio: gpio@f9001070 { compatible = "altr,pio-1.0"; reg = <0xf9001070 0x10>; interrupt-parent = <&intc>; interrupts = <0 17 4>; altr,gpio-bank-width = <4>; altr,interrupt-type = <3>; altr,interrupt_type = <3>; #gpio-cells = <2>; gpio-controller; }; trigger_pio: gpio@f9001040 { compatible = "altr,pio-1.0"; reg = <0xf9001040 0x20>; altr,gpio-bank-width = <4>; #gpio-cells = <2>; gpio-controller; resetvalue = <0>; }; soc_leds: leds { compatible = "gpio-leds"; led_fpga0: fpga0 { label = "fpga_led0"; gpios = <&led_pio 0 1>; }; //end fpga0 (led_fpga0) led_fpga1: fpga1 { label = "fpga_led1"; gpios = <&led_pio 1 1>; }; //end fpga1 (led_fpga1) led_fpga2: fpga2 { label = "fpga_led2"; gpios = <&led_pio 2 1>; }; //end fpga2 (led_fpga2) }; }; };