/dts-v1/; /plugin/; / { compatible = "ti,beaglebone", "ti,beaglebone-black"; /* identification */ board-name = "MY-CAPE"; part-number = "MY-CAPE"; version = "00A0"; /* Exclusive Pin use */ exclusive-use = "P8.07", "P8.12", "gpio_1_12", "gpio_2_2"; /* Pin-Muxing & Configuration */ fragment@0 { target = <&am33xx_pinmux>; __overlay__ { //Inputs input_pins: pinmux_input_pins{ pinctrl-single,pins = < 0x030 0x37 // P8_12 => GPIO-1[12] >; }; //Outputs output_pins: pinmux_output_pins{ pinctrl-single,pins = < 0x090 0x0F // P8_7 => GPIO-2[2] >; }; }; }; fragmet@1 { target = <&ocp>; //OnChipPeripherals __overlay__ { my_input_pins { compatible = "gpio-of-helper"; //gpio-of-helper, bone-pinmux-helper status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&input_pins>; In0 { //GPIO-1[12] gpio-name = "Input0"; gpio = <&gpio2 12 0x00>; input; active-low; count-rising-edge; count-falling-edge; }; }; gsf_output_pins { compatible = "gpio-of-helper"; status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&output_pins>; Out0 { //GPIO-2[2] gpio-name = "Output0"; gpio = <&gpio3 2 0x00>; output; init-low; }; }; }; }; };