Followed this tutorial & have included my device tree config below. I've configured my pull up resistor for my button to function properly once my app is running, but I'm curious; is there a way to change which pins are configured to create a reset (on button press) rather than 5&6? I already have my connections soldered & would like to just reconfigure GPIO 23 (my button) to be able to shutdown/reboot. Is this possible? I'm new to electronics so the whole 'set high', 'set low' thing is new to me.

raspberry pi model B

raspian jessie


/ {
    compatible = "brcm,bcm2708";

    fragment@0 {
        target = <&gpio>;
        __overlay__ {
            pinctrl-names = "default";
            pinctrl-0 = <&my_pins>;

            my_pins: my_pins {
                brcm,pins = <23>;     /* gpio no. */
                brcm,function = <0>; /* 0:in, 1:out */
                brcm,pull = <2>;     /* 2:up 1:down 0:none */
  • 1
    I have never understood the point of a question when a simple test is enough to give a definitive answer (without the delay in waiting for an answer). – joan Jan 4 '16 at 15:37
  • Yeah that would be fine if I knew how to test it. You're saying that the config I have right now should work? Cause guess what...it doesn't... – Justin Young Jan 4 '16 at 15:48
  • "I've got this working just fine"? – joan Jan 4 '16 at 16:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.