xref: /linux/arch/arm64/boot/dts/apple/s800x-se.dtsi (revision 9c39d5ab450f7181775957000f4aff33bfef9f7b)
1// SPDX-License-Identifier: GPL-2.0+ OR MIT
2/*
3 * Apple iPhone SE 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 = "handset";
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 67 GPIO_ACTIVE_LOW>;
34			linux,code = <KEY_VOLUMEDOWN>;
35		};
36
37		button-volup {
38			label = "Volume Up";
39			gpios = <&pinctrl_ap 66 GPIO_ACTIVE_LOW>;
40			linux,code = <KEY_VOLUMEUP>;
41		};
42
43		switch-mute {
44			label = "Mute Switch";
45			gpios = <&pinctrl_ap 149 GPIO_ACTIVE_LOW>;
46			linux,code = <KEY_MUTE>;
47		};
48	};
49};
50