xref: /linux/arch/arm64/boot/dts/apple/s5l8960x-5s.dtsi (revision 7f71507851fc7764b36a3221839607d3a45c2025)
1// SPDX-License-Identifier: GPL-2.0+ OR MIT
2/*
3 * Apple iPhone 5s common device tree
4 * Based on A7 (APL0698), up to 1.3GHz
5 *
6 * Copyright (c) 2022, Konrad Dybcio <konradybcio@kernel.org>
7 */
8
9#include "s5l8960x.dtsi"
10#include "s5l8960x-common.dtsi"
11#include <dt-bindings/input/input.h>
12
13/ {
14	chassis-type = "handset";
15
16	gpio-keys {
17		compatible = "gpio-keys";
18
19		button-home {
20			label = "Home Button";
21			gpios = <&pinctrl 2 GPIO_ACTIVE_LOW>;
22			linux,code = <KEY_HOMEPAGE>;
23			wakeup-source;
24		};
25
26		button-power {
27			label = "Power Button";
28			gpios = <&pinctrl 3 GPIO_ACTIVE_LOW>;
29			linux,code = <KEY_POWER>;
30			wakeup-source;
31		};
32
33		button-voldown {
34			label = "Volume Down";
35			gpios = <&pinctrl 5 GPIO_ACTIVE_LOW>;
36			linux,code = <KEY_VOLUMEDOWN>;
37		};
38
39		button-volup {
40			label = "Volume Up";
41			gpios = <&pinctrl 4 GPIO_ACTIVE_LOW>;
42			linux,code = <KEY_VOLUMEUP>;
43		};
44
45		switch-mute {
46			label = "Mute Switch";
47			gpios = <&pinctrl 16 GPIO_ACTIVE_LOW>;
48			linux,code = <KEY_MUTE>;
49		};
50	};
51};
52