xref: /freebsd/sys/contrib/device-tree/src/arm64/apple/t7001-air2.dtsi (revision 8ccc0d235c226d84112561d453c49904398d085c)
15f62a964SEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0+ OR MIT
25f62a964SEmmanuel Vadot/*
35f62a964SEmmanuel Vadot * Apple iPad Air 2 common device tree
45f62a964SEmmanuel Vadot * Copyright (c) 2022, Konrad Dybcio <konradybcio@kernel.org>
55f62a964SEmmanuel Vadot */
65f62a964SEmmanuel Vadot
75f62a964SEmmanuel Vadot#include "t7001.dtsi"
85f62a964SEmmanuel Vadot#include <dt-bindings/input/input.h>
95f62a964SEmmanuel Vadot
105f62a964SEmmanuel Vadot/ {
115f62a964SEmmanuel Vadot	chassis-type = "tablet";
125f62a964SEmmanuel Vadot
135f62a964SEmmanuel Vadot	chosen {
145f62a964SEmmanuel Vadot		#address-cells = <2>;
155f62a964SEmmanuel Vadot		#size-cells = <2>;
165f62a964SEmmanuel Vadot		ranges;
175f62a964SEmmanuel Vadot
185f62a964SEmmanuel Vadot		stdout-path = "serial0";
195f62a964SEmmanuel Vadot
205f62a964SEmmanuel Vadot		framebuffer0: framebuffer@0 {
215f62a964SEmmanuel Vadot			compatible = "apple,simple-framebuffer", "simple-framebuffer";
225f62a964SEmmanuel Vadot			reg = <0 0 0 0>; /* To be filled by loader */
23*8ccc0d23SEmmanuel Vadot			power-domains = <&ps_disp0 &ps_dp>;
245f62a964SEmmanuel Vadot			/* Format properties will be added by loader */
255f62a964SEmmanuel Vadot			status = "disabled";
265f62a964SEmmanuel Vadot		};
275f62a964SEmmanuel Vadot	};
285f62a964SEmmanuel Vadot
295f62a964SEmmanuel Vadot	gpio-keys {
305f62a964SEmmanuel Vadot		compatible = "gpio-keys";
315f62a964SEmmanuel Vadot
325f62a964SEmmanuel Vadot		button-home {
335f62a964SEmmanuel Vadot			label = "Home Button";
345f62a964SEmmanuel Vadot			gpios = <&pinctrl 0 GPIO_ACTIVE_LOW>;
355f62a964SEmmanuel Vadot			linux,code = <KEY_HOMEPAGE>;
365f62a964SEmmanuel Vadot			wakeup-source;
375f62a964SEmmanuel Vadot		};
385f62a964SEmmanuel Vadot
395f62a964SEmmanuel Vadot		button-power {
405f62a964SEmmanuel Vadot			label = "Power Button";
415f62a964SEmmanuel Vadot			gpios = <&pinctrl 1 GPIO_ACTIVE_LOW>;
425f62a964SEmmanuel Vadot			linux,code = <KEY_POWER>;
435f62a964SEmmanuel Vadot			wakeup-source;
445f62a964SEmmanuel Vadot		};
455f62a964SEmmanuel Vadot
465f62a964SEmmanuel Vadot		button-volup {
475f62a964SEmmanuel Vadot			label = "Volume Up";
485f62a964SEmmanuel Vadot			gpios = <&pinctrl 92 GPIO_ACTIVE_LOW>;
495f62a964SEmmanuel Vadot			linux,code = <KEY_VOLUMEUP>;
505f62a964SEmmanuel Vadot		};
515f62a964SEmmanuel Vadot
525f62a964SEmmanuel Vadot		button-voldown {
535f62a964SEmmanuel Vadot			label = "Volume Down";
545f62a964SEmmanuel Vadot			gpios = <&pinctrl 93 GPIO_ACTIVE_LOW>;
555f62a964SEmmanuel Vadot			linux,code = <KEY_VOLUMEDOWN>;
565f62a964SEmmanuel Vadot		};
575f62a964SEmmanuel Vadot	};
585f62a964SEmmanuel Vadot
595f62a964SEmmanuel Vadot	memory@800000000 {
605f62a964SEmmanuel Vadot		device_type = "memory";
615f62a964SEmmanuel Vadot		reg = <0x8 0 0 0>; /* To be filled by loader */
625f62a964SEmmanuel Vadot	};
635f62a964SEmmanuel Vadot
645f62a964SEmmanuel Vadot	reserved-memory {
655f62a964SEmmanuel Vadot		#address-cells = <2>;
665f62a964SEmmanuel Vadot		#size-cells = <2>;
675f62a964SEmmanuel Vadot		ranges;
685f62a964SEmmanuel Vadot
695f62a964SEmmanuel Vadot		/* To be filled by loader */
705f62a964SEmmanuel Vadot	};
715f62a964SEmmanuel Vadot};
725f62a964SEmmanuel Vadot
735f62a964SEmmanuel Vadot&serial0 {
745f62a964SEmmanuel Vadot	status = "okay";
755f62a964SEmmanuel Vadot};
76