mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-02 16:44:59 +00:00

Add the device tree for the A9X SoC and the devices based on it: - iPad Pro (9.7 Inch) - iPad Pro (12.9 Inch) (1st generation) Signed-off-by: Konrad Dybcio <konradybcio@kernel.org> [Nick: SMP and m1n1 support, uart interrupt and pinctrl fixes] Co-developed-by: Nick Chan <towinchenmi@gmail.com> Signed-off-by: Nick Chan <towinchenmi@gmail.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Neal Gompa <neal@gompa.dev> Signed-off-by: Hector Martin <marcan@marcan.st>
45 lines
880 B
Plaintext
45 lines
880 B
Plaintext
// SPDX-License-Identifier: GPL-2.0+ OR MIT
|
|
/*
|
|
* Apple iPad Pro (1st generation) common device tree
|
|
*
|
|
* Copyright (c) 2022, Konrad Dybcio <konradybcio@kernel.org>
|
|
*/
|
|
|
|
#include "s8001.dtsi"
|
|
#include "s8001-common.dtsi"
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
/ {
|
|
chassis-type = "tablet";
|
|
|
|
gpio-keys {
|
|
compatible = "gpio-keys";
|
|
|
|
button-home {
|
|
label = "Home Button";
|
|
gpios = <&pinctrl_ap 122 GPIO_ACTIVE_LOW>;
|
|
linux,code = <KEY_HOMEPAGE>;
|
|
wakeup-source;
|
|
};
|
|
|
|
button-power {
|
|
label = "Power Button";
|
|
gpios = <&pinctrl_ap 123 GPIO_ACTIVE_LOW>;
|
|
linux,code = <KEY_POWER>;
|
|
wakeup-source;
|
|
};
|
|
|
|
button-voldown {
|
|
label = "Volume Down";
|
|
gpios = <&pinctrl_ap 15 GPIO_ACTIVE_LOW>;
|
|
linux,code = <KEY_VOLUMEDOWN>;
|
|
};
|
|
|
|
button-volup {
|
|
label = "Volume Up";
|
|
gpios = <&pinctrl_ap 12 GPIO_ACTIVE_LOW>;
|
|
linux,code = <KEY_VOLUMEUP>;
|
|
};
|
|
};
|
|
};
|