xref: /linux/arch/arm64/boot/dts/apple/t8010-7.dtsi (revision 7f71507851fc7764b36a3221839607d3a45c2025)
1// SPDX-License-Identifier: GPL-2.0+ OR MIT
2/*
3 * Apple iPhone 7 / 7 Plus 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 = "handset";
14
15	gpio-keys {
16		compatible = "gpio-keys";
17
18		button-power {
19			label = "Power Button";
20			gpios = <&pinctrl_ap 179 GPIO_ACTIVE_LOW>;
21			linux,code = <KEY_POWER>;
22			wakeup-source;
23		};
24
25		button-voldown {
26			label = "Volume Down";
27			gpios = <&pinctrl_ap 180 GPIO_ACTIVE_LOW>;
28			linux,code = <KEY_VOLUMEDOWN>;
29		};
30
31		button-volup {
32			label = "Volume Up";
33			gpios = <&pinctrl_ap 23 GPIO_ACTIVE_LOW>;
34			linux,code = <KEY_VOLUMEUP>;
35		};
36
37		switch-mute {
38			label = "Mute Switch";
39			gpios = <&pinctrl_ap 86 GPIO_ACTIVE_LOW>;
40			linux,code = <KEY_MUTE>;
41		};
42	};
43};
44