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