Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1// SPDX-License-Identifier: GPL-2.0+ OR MIT
2/*
3 * Apple iPad 5 common device tree
4 *
5 * Copyright (c) 2022, Konrad Dybcio <konradybcio@kernel.org>
6 */
7
8#include "s800-0-3-common.dtsi"
9#include <dt-bindings/input/input.h>
10
11/ {
12 chassis-type = "tablet";
13
14 gpio-keys {
15 compatible = "gpio-keys";
16
17 button-home {
18 label = "Home Button";
19 gpios = <&pinctrl_ap 96 GPIO_ACTIVE_LOW>;
20 linux,code = <KEY_HOMEPAGE>;
21 wakeup-source;
22 };
23
24 button-power {
25 label = "Power Button";
26 gpios = <&pinctrl_ap 97 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_POWER>;
28 wakeup-source;
29 };
30
31 button-voldown {
32 label = "Volume Down";
33 gpios = <&pinctrl_ap 143 GPIO_ACTIVE_LOW>;
34 linux,code = <KEY_VOLUMEDOWN>;
35 };
36
37 button-volup {
38 label = "Volume Up";
39 gpios = <&pinctrl_ap 144 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_VOLUMEUP>;
41 };
42 };
43};
44
45&framebuffer0 {
46 power-domains = <&ps_disp0 &ps_dp>;
47};