Debian Codegraph @

scripts/dtc/include-prefixes/arm64/apple/s8001-pro.dtsi

raw
1 // SPDX-License-Identifier: GPL-2.0+ OR MIT
2 /*
3 * Apple iPad Pro (1st generation) common device tree
4 *
5 * Copyright (c) 2022, Konrad Dybcio <[email protected]>
6 */
7
8 #include "s8001.dtsi"
9 #include "s8001-common.dtsi"
10 #include <dt-bindings/input/input.h>
11
12 / {
13 chassis-type = "tablet";
14
15 gpio-keys {
16 compatible = "gpio-keys";
17
18 button-home {
19 label = "Home Button";
20 gpios = <&pinctrl_ap 122 GPIO_ACTIVE_LOW>;
21 linux,code = <KEY_HOMEPAGE>;
22 wakeup-source;
23 };
24
25 button-power {
26 label = "Power Button";
27 gpios = <&pinctrl_ap 123 GPIO_ACTIVE_LOW>;
28 linux,code = <KEY_POWER>;
29 wakeup-source;
30 };
31
32 button-voldown {
33 label = "Volume Down";
34 gpios = <&pinctrl_ap 15 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_VOLUMEDOWN>;
36 };
37
38 button-volup {
39 label = "Volume Up";
40 gpios = <&pinctrl_ap 12 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_VOLUMEUP>;
42 };
43 };
44 };