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