New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

overlays: Add gpio-shutdown overlay #2103

Merged
merged 2 commits into from Jul 9, 2017

Conversation

Projects
None yet
2 participants
@matthijskooijman
Copy link
Contributor

matthijskooijman commented Jul 7, 2017

This overlay facilitates the addition of a powerbutton by converting
GPIO edges into KEY_POWER keypresses, which can be handled by
systemd-logind to shut down the system.

The overlay was separately tested on:

  • Raspberry Pi Zero W running Linux telegraaf 4.9.28+ #998 Mon May 15 16:50:35 BST 2017 armv6l GNU/Linux
  • Raspberry Pi B+ running Linux raspberrypi 4.4.50+ #970 Mon Feb 20 19:12:50 GMT 2017 armv6l GNU/Linux
  • Rasbperry Pi B running Linux raspberrypi 4.4.34+ #930 Wed Nov 23 15:12:30 GMT 2016 armv6l GNU/Linux

I tested manually using dtc -@ -I dts -O dtb -o gpio-shutdown.dtbo gpio-shutdown-overlay.dts. I did not test compilation inside the kernel tree, for I have not got the environment set up for that.

For some more background, see the comments in the overlay source file and this blogpost: http://www.stderr.nl/Blog/Hardware/RaspberryPi/PowerButton.html

matthijskooijman and others added some commits Jul 7, 2017

overlays: Add gpio-shutdown overlay
This overlay facilitates the addition of a powerbutton by converting
GPIO edges into KEY_POWER keypresses, which can be handled by
systemd-logind to shut down the system.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>

@pelwell pelwell merged commit 91aa495 into raspberrypi:rpi-4.9.y Jul 9, 2017

@pelwell

This comment has been minimized.

Copy link
Contributor

pelwell commented Jul 9, 2017

The kernel patches build the overlay as expected. Nice job, especially on the comments.

@matthijskooijman

This comment has been minimized.

Copy link
Contributor

matthijskooijman commented Jul 10, 2017

Thanks, great to have it merged so fast :-D

pelwell added a commit that referenced this pull request Jul 10, 2017

overlays: Add gpio-shutdown overlay (#2103)
This overlay facilitates the addition of a powerbutton by converting
GPIO edges into KEY_POWER keypresses, which can be handled by
systemd-logind to shut down the system.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>

pelwell added a commit that referenced this pull request Jul 10, 2017

overlays: Add gpio-shutdown overlay (#2103)
This overlay facilitates the addition of a powerbutton by converting
GPIO edges into KEY_POWER keypresses, which can be handled by
systemd-logind to shut down the system.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>

popcornmix added a commit that referenced this pull request Jul 12, 2017

overlays: Add gpio-shutdown overlay (#2103)
This overlay facilitates the addition of a powerbutton by converting
GPIO edges into KEY_POWER keypresses, which can be handled by
systemd-logind to shut down the system.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>

popcornmix added a commit that referenced this pull request Jul 13, 2017

overlays: Add gpio-shutdown overlay (#2103)
This overlay facilitates the addition of a powerbutton by converting
GPIO edges into KEY_POWER keypresses, which can be handled by
systemd-logind to shut down the system.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>

popcornmix added a commit that referenced this pull request Jul 13, 2017

overlays: Add gpio-shutdown overlay (#2103)
This overlay facilitates the addition of a powerbutton by converting
GPIO edges into KEY_POWER keypresses, which can be handled by
systemd-logind to shut down the system.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>

popcornmix added a commit to raspberrypi/firmware that referenced this pull request Jul 13, 2017

kernel: Bump to 4.9.37
kernel: usb: gadget: f_hid: fix: Move IN request allocation to set_alt()
See: raspberrypi/linux#1943

kernel: overlays: Add gpio-shutdown overlay
See: raspberrypi/linux#2103

kernel: config: enable generic S/PDIF codec drivers
See: raspberrypi/linux#2104

kernel: drm/vc4: firmwarekms DPMS support
See: raspberrypi/linux#2102

popcornmix added a commit to Hexxeh/rpi-firmware that referenced this pull request Jul 13, 2017

kernel: Bump to 4.9.37
kernel: usb: gadget: f_hid: fix: Move IN request allocation to set_alt()
See: raspberrypi/linux#1943

kernel: overlays: Add gpio-shutdown overlay
See: raspberrypi/linux#2103

kernel: config: enable generic S/PDIF codec drivers
See: raspberrypi/linux#2104

kernel: drm/vc4: firmwarekms DPMS support
See: raspberrypi/linux#2102

popcornmix added a commit that referenced this pull request Jul 16, 2017

overlays: Add gpio-shutdown overlay (#2103)
This overlay facilitates the addition of a powerbutton by converting
GPIO edges into KEY_POWER keypresses, which can be handled by
systemd-logind to shut down the system.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>

popcornmix added a commit that referenced this pull request Jul 16, 2017

overlays: Add gpio-shutdown overlay (#2103)
This overlay facilitates the addition of a powerbutton by converting
GPIO edges into KEY_POWER keypresses, which can be handled by
systemd-logind to shut down the system.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>

popcornmix added a commit that referenced this pull request Jul 17, 2017

overlays: Add gpio-shutdown overlay (#2103)
This overlay facilitates the addition of a powerbutton by converting
GPIO edges into KEY_POWER keypresses, which can be handled by
systemd-logind to shut down the system.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>

popcornmix added a commit that referenced this pull request Jul 21, 2017

overlays: Add gpio-shutdown overlay (#2103)
This overlay facilitates the addition of a powerbutton by converting
GPIO edges into KEY_POWER keypresses, which can be handled by
systemd-logind to shut down the system.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>

popcornmix added a commit that referenced this pull request Jul 21, 2017

overlays: Add gpio-shutdown overlay (#2103)
This overlay facilitates the addition of a powerbutton by converting
GPIO edges into KEY_POWER keypresses, which can be handled by
systemd-logind to shut down the system.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>

macmpi referenced this pull request in volumio/Build Jul 26, 2017

popcornmix added a commit that referenced this pull request Jul 27, 2017

overlays: Add gpio-shutdown overlay (#2103)
This overlay facilitates the addition of a powerbutton by converting
GPIO edges into KEY_POWER keypresses, which can be handled by
systemd-logind to shut down the system.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>

popcornmix added a commit that referenced this pull request Jul 29, 2017

overlays: Add gpio-shutdown overlay (#2103)
This overlay facilitates the addition of a powerbutton by converting
GPIO edges into KEY_POWER keypresses, which can be handled by
systemd-logind to shut down the system.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>

popcornmix added a commit that referenced this pull request Aug 1, 2017

overlays: Add gpio-shutdown overlay (#2103)
This overlay facilitates the addition of a powerbutton by converting
GPIO edges into KEY_POWER keypresses, which can be handled by
systemd-logind to shut down the system.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>

popcornmix added a commit that referenced this pull request Aug 8, 2017

overlays: Add gpio-shutdown overlay (#2103)
This overlay facilitates the addition of a powerbutton by converting
GPIO edges into KEY_POWER keypresses, which can be handled by
systemd-logind to shut down the system.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>

popcornmix added a commit that referenced this pull request Aug 8, 2017

overlays: Add gpio-shutdown overlay (#2103)
This overlay facilitates the addition of a powerbutton by converting
GPIO edges into KEY_POWER keypresses, which can be handled by
systemd-logind to shut down the system.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>

popcornmix added a commit that referenced this pull request Aug 10, 2017

overlays: Add gpio-shutdown overlay (#2103)
This overlay facilitates the addition of a powerbutton by converting
GPIO edges into KEY_POWER keypresses, which can be handled by
systemd-logind to shut down the system.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>

popcornmix added a commit that referenced this pull request Aug 13, 2017

overlays: Add gpio-shutdown overlay (#2103)
This overlay facilitates the addition of a powerbutton by converting
GPIO edges into KEY_POWER keypresses, which can be handled by
systemd-logind to shut down the system.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>

popcornmix added a commit that referenced this pull request Aug 13, 2017

overlays: Add gpio-shutdown overlay (#2103)
This overlay facilitates the addition of a powerbutton by converting
GPIO edges into KEY_POWER keypresses, which can be handled by
systemd-logind to shut down the system.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>

popcornmix added a commit that referenced this pull request Aug 14, 2017

overlays: Add gpio-shutdown overlay (#2103)
This overlay facilitates the addition of a powerbutton by converting
GPIO edges into KEY_POWER keypresses, which can be handled by
systemd-logind to shut down the system.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>

popcornmix added a commit that referenced this pull request Aug 23, 2017

overlays: Add gpio-shutdown overlay (#2103)
This overlay facilitates the addition of a powerbutton by converting
GPIO edges into KEY_POWER keypresses, which can be handled by
systemd-logind to shut down the system.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>

popcornmix added a commit that referenced this pull request Aug 23, 2017

overlays: Add gpio-shutdown overlay (#2103)
This overlay facilitates the addition of a powerbutton by converting
GPIO edges into KEY_POWER keypresses, which can be handled by
systemd-logind to shut down the system.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>

popcornmix added a commit that referenced this pull request Aug 25, 2017

overlays: Add gpio-shutdown overlay (#2103)
This overlay facilitates the addition of a powerbutton by converting
GPIO edges into KEY_POWER keypresses, which can be handled by
systemd-logind to shut down the system.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>

popcornmix added a commit that referenced this pull request Aug 30, 2017

overlays: Add gpio-shutdown overlay (#2103)
This overlay facilitates the addition of a powerbutton by converting
GPIO edges into KEY_POWER keypresses, which can be handled by
systemd-logind to shut down the system.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>

popcornmix added a commit that referenced this pull request Sep 1, 2017

overlays: Add gpio-shutdown overlay (#2103)
This overlay facilitates the addition of a powerbutton by converting
GPIO edges into KEY_POWER keypresses, which can be handled by
systemd-logind to shut down the system.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>

popcornmix added a commit that referenced this pull request Sep 4, 2017

overlays: Add gpio-shutdown overlay (#2103)
This overlay facilitates the addition of a powerbutton by converting
GPIO edges into KEY_POWER keypresses, which can be handled by
systemd-logind to shut down the system.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>

popcornmix added a commit that referenced this pull request Sep 8, 2017

overlays: Add gpio-shutdown overlay (#2103)
This overlay facilitates the addition of a powerbutton by converting
GPIO edges into KEY_POWER keypresses, which can be handled by
systemd-logind to shut down the system.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>

popcornmix added a commit that referenced this pull request Sep 13, 2017

overlays: Add gpio-shutdown overlay (#2103)
This overlay facilitates the addition of a powerbutton by converting
GPIO edges into KEY_POWER keypresses, which can be handled by
systemd-logind to shut down the system.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>

popcornmix added a commit that referenced this pull request Sep 13, 2017

overlays: Add gpio-shutdown overlay (#2103)
This overlay facilitates the addition of a powerbutton by converting
GPIO edges into KEY_POWER keypresses, which can be handled by
systemd-logind to shut down the system.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>

popcornmix added a commit that referenced this pull request Sep 14, 2017

overlays: Add gpio-shutdown overlay (#2103)
This overlay facilitates the addition of a powerbutton by converting
GPIO edges into KEY_POWER keypresses, which can be handled by
systemd-logind to shut down the system.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>

popcornmix added a commit that referenced this pull request Sep 14, 2017

overlays: Add gpio-shutdown overlay (#2103)
This overlay facilitates the addition of a powerbutton by converting
GPIO edges into KEY_POWER keypresses, which can be handled by
systemd-logind to shut down the system.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>

popcornmix added a commit that referenced this pull request Sep 22, 2017

overlays: Add gpio-shutdown overlay (#2103)
This overlay facilitates the addition of a powerbutton by converting
GPIO edges into KEY_POWER keypresses, which can be handled by
systemd-logind to shut down the system.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>

popcornmix added a commit that referenced this pull request Oct 29, 2017

overlays: Add gpio-shutdown overlay (#2103)
This overlay facilitates the addition of a powerbutton by converting
GPIO edges into KEY_POWER keypresses, which can be handled by
systemd-logind to shut down the system.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>

ryncsn added a commit to ryncsn/linux-rasp that referenced this pull request Nov 21, 2017

overlays: Add gpio-shutdown overlay (raspberrypi#2103)
This overlay facilitates the addition of a powerbutton by converting
GPIO edges into KEY_POWER keypresses, which can be handled by
systemd-logind to shut down the system.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment