| 1 |
// SPDX-License-Identifier: GPL-2.0+ OR MIT |
| 2 |
/* |
| 3 |
* Apple iPad Air common device tree |
| 4 |
* Based on A7 (APL5698), up to 1.4GHz |
| 5 |
* |
| 6 |
* Copyright (c) 2022, Konrad Dybcio <[email protected]> |
| 7 |
*/ |
| 8 |
|
| 9 |
#include "s5l8960x.dtsi" |
| 10 |
#include "s5l8960x-common.dtsi" |
| 11 |
#include "s5l8965x-opp.dtsi" |
| 12 |
#include <dt-bindings/input/input.h> |
| 13 |
|
| 14 |
/ { |
| 15 |
chassis-type = "tablet"; |
| 16 |
|
| 17 |
gpio-keys { |
| 18 |
compatible = "gpio-keys"; |
| 19 |
|
| 20 |
button-home { |
| 21 |
label = "Home Button"; |
| 22 |
gpios = <&pinctrl 2 GPIO_ACTIVE_LOW>; |
| 23 |
linux,code = <KEY_HOMEPAGE>; |
| 24 |
wakeup-source; |
| 25 |
}; |
| 26 |
|
| 27 |
button-power { |
| 28 |
label = "Power Button"; |
| 29 |
gpios = <&pinctrl 3 GPIO_ACTIVE_LOW>; |
| 30 |
linux,code = <KEY_POWER>; |
| 31 |
wakeup-source; |
| 32 |
}; |
| 33 |
|
| 34 |
button-voldown { |
| 35 |
label = "Volume Down"; |
| 36 |
gpios = <&pinctrl 4 GPIO_ACTIVE_LOW>; |
| 37 |
linux,code = <KEY_VOLUMEDOWN>; |
| 38 |
}; |
| 39 |
|
| 40 |
button-volup { |
| 41 |
label = "Volume Up"; |
| 42 |
gpios = <&pinctrl 5 GPIO_ACTIVE_LOW>; |
| 43 |
linux,code = <KEY_VOLUMEUP>; |
| 44 |
}; |
| 45 |
|
| 46 |
switch-mute { |
| 47 |
label = "Mute Switch"; |
| 48 |
gpios = <&pinctrl 110 GPIO_ACTIVE_LOW>; |
| 49 |
linux,code = <KEY_MUTE>; |
| 50 |
}; |
| 51 |
}; |
| 52 |
}; |
| 53 |
|
| 54 |
&framebuffer0 { |
| 55 |
power-domains = <&ps_disp0 &ps_dp>; |
| 56 |
}; |