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