xref: /linux/arch/arm64/boot/dts/apple/t8010-ipad6.dtsi (revision fcc79e1714e8c2b8e216dc3149812edd37884eef)
1// SPDX-License-Identifier: GPL-2.0+ OR MIT
2/*
3 * Apple iPad 6 common device tree
4 *
5 * Copyright (c) 2022, Konrad Dybcio <konradybcio@kernel.org>
6 */
7
8#include "t8010.dtsi"
9#include "t8010-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 180 GPIO_ACTIVE_LOW>;
21			linux,code = <KEY_HOMEPAGE>;
22			wakeup-source;
23		};
24
25		button-power {
26			label = "Power Button";
27			gpios = <&pinctrl_ap 179 GPIO_ACTIVE_LOW>;
28			linux,code = <KEY_POWER>;
29			wakeup-source;
30		};
31
32		button-voldown {
33			label = "Volume Down";
34			gpios = <&pinctrl_ap 89 GPIO_ACTIVE_LOW>;
35			linux,code = <KEY_VOLUMEDOWN>;
36		};
37
38		button-volup {
39			label = "Volume Up";
40			gpios = <&pinctrl_ap 90 GPIO_ACTIVE_LOW>;
41			linux,code = <KEY_VOLUMEUP>;
42		};
43	};
44};
45