| 1 |
// SPDX-License-Identifier: GPL-2.0+ OR MIT |
| 2 |
/* |
| 3 |
* Apple iPad Air 2 common device tree |
| 4 |
* Copyright (c) 2022, Konrad Dybcio <[email protected]> |
| 5 |
*/ |
| 6 |
|
| 7 |
#include "t7001.dtsi" |
| 8 |
#include <dt-bindings/input/input.h> |
| 9 |
|
| 10 |
/ { |
| 11 |
chassis-type = "tablet"; |
| 12 |
|
| 13 |
chosen { |
| 14 |
#address-cells = <2>; |
| 15 |
#size-cells = <2>; |
| 16 |
ranges; |
| 17 |
|
| 18 |
stdout-path = "serial0"; |
| 19 |
|
| 20 |
framebuffer0: framebuffer@0 { |
| 21 |
compatible = "apple,simple-framebuffer", "simple-framebuffer"; |
| 22 |
reg = <0 0 0 0>; /* To be filled by loader */ |
| 23 |
power-domains = <&ps_disp0 &ps_dp>; |
| 24 |
/* Format properties will be added by loader */ |
| 25 |
status = "disabled"; |
| 26 |
}; |
| 27 |
}; |
| 28 |
|
| 29 |
gpio-keys { |
| 30 |
compatible = "gpio-keys"; |
| 31 |
|
| 32 |
button-home { |
| 33 |
label = "Home Button"; |
| 34 |
gpios = <&pinctrl 0 GPIO_ACTIVE_LOW>; |
| 35 |
linux,code = <KEY_HOMEPAGE>; |
| 36 |
wakeup-source; |
| 37 |
}; |
| 38 |
|
| 39 |
button-power { |
| 40 |
label = "Power Button"; |
| 41 |
gpios = <&pinctrl 1 GPIO_ACTIVE_LOW>; |
| 42 |
linux,code = <KEY_POWER>; |
| 43 |
wakeup-source; |
| 44 |
}; |
| 45 |
|
| 46 |
button-volup { |
| 47 |
label = "Volume Up"; |
| 48 |
gpios = <&pinctrl 92 GPIO_ACTIVE_LOW>; |
| 49 |
linux,code = <KEY_VOLUMEUP>; |
| 50 |
}; |
| 51 |
|
| 52 |
button-voldown { |
| 53 |
label = "Volume Down"; |
| 54 |
gpios = <&pinctrl 93 GPIO_ACTIVE_LOW>; |
| 55 |
linux,code = <KEY_VOLUMEDOWN>; |
| 56 |
}; |
| 57 |
}; |
| 58 |
|
| 59 |
memory@800000000 { |
| 60 |
device_type = "memory"; |
| 61 |
reg = <0x8 0 0 0>; /* To be filled by loader */ |
| 62 |
}; |
| 63 |
|
| 64 |
reserved-memory { |
| 65 |
#address-cells = <2>; |
| 66 |
#size-cells = <2>; |
| 67 |
ranges; |
| 68 |
|
| 69 |
/* To be filled by loader */ |
| 70 |
}; |
| 71 |
}; |
| 72 |
|
| 73 |
&serial0 { |
| 74 |
status = "okay"; |
| 75 |
}; |