xref: /freebsd/sys/contrib/device-tree/src/arm64/apple/s800x-se.dtsi (revision 8ccc0d235c226d84112561d453c49904398d085c)
15f62a964SEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0+ OR MIT
25f62a964SEmmanuel Vadot/*
35f62a964SEmmanuel Vadot * Apple iPhone SE common device tree
45f62a964SEmmanuel Vadot *
55f62a964SEmmanuel Vadot * Copyright (c) 2022, Konrad Dybcio <konradybcio@kernel.org>
65f62a964SEmmanuel Vadot */
75f62a964SEmmanuel Vadot
85f62a964SEmmanuel Vadot#include "s800-0-3-common.dtsi"
95f62a964SEmmanuel Vadot#include <dt-bindings/input/input.h>
105f62a964SEmmanuel Vadot
115f62a964SEmmanuel Vadot/ {
125f62a964SEmmanuel Vadot	chassis-type = "handset";
135f62a964SEmmanuel Vadot
145f62a964SEmmanuel Vadot	gpio-keys {
155f62a964SEmmanuel Vadot		compatible = "gpio-keys";
165f62a964SEmmanuel Vadot
175f62a964SEmmanuel Vadot		button-home {
185f62a964SEmmanuel Vadot			label = "Home Button";
195f62a964SEmmanuel Vadot			gpios = <&pinctrl_ap 96 GPIO_ACTIVE_LOW>;
205f62a964SEmmanuel Vadot			linux,code = <KEY_HOMEPAGE>;
215f62a964SEmmanuel Vadot			wakeup-source;
225f62a964SEmmanuel Vadot		};
235f62a964SEmmanuel Vadot
245f62a964SEmmanuel Vadot		button-power {
255f62a964SEmmanuel Vadot			label = "Power Button";
265f62a964SEmmanuel Vadot			gpios = <&pinctrl_ap 97 GPIO_ACTIVE_LOW>;
275f62a964SEmmanuel Vadot			linux,code = <KEY_POWER>;
285f62a964SEmmanuel Vadot			wakeup-source;
295f62a964SEmmanuel Vadot		};
305f62a964SEmmanuel Vadot
315f62a964SEmmanuel Vadot		button-voldown {
325f62a964SEmmanuel Vadot			label = "Volume Down";
335f62a964SEmmanuel Vadot			gpios = <&pinctrl_ap 67 GPIO_ACTIVE_LOW>;
345f62a964SEmmanuel Vadot			linux,code = <KEY_VOLUMEDOWN>;
355f62a964SEmmanuel Vadot		};
365f62a964SEmmanuel Vadot
375f62a964SEmmanuel Vadot		button-volup {
385f62a964SEmmanuel Vadot			label = "Volume Up";
395f62a964SEmmanuel Vadot			gpios = <&pinctrl_ap 66 GPIO_ACTIVE_LOW>;
405f62a964SEmmanuel Vadot			linux,code = <KEY_VOLUMEUP>;
415f62a964SEmmanuel Vadot		};
425f62a964SEmmanuel Vadot
435f62a964SEmmanuel Vadot		switch-mute {
445f62a964SEmmanuel Vadot			label = "Mute Switch";
455f62a964SEmmanuel Vadot			gpios = <&pinctrl_ap 149 GPIO_ACTIVE_LOW>;
465f62a964SEmmanuel Vadot			linux,code = <KEY_MUTE>;
475f62a964SEmmanuel Vadot		};
485f62a964SEmmanuel Vadot	};
495f62a964SEmmanuel Vadot};
50*8ccc0d23SEmmanuel Vadot
51*8ccc0d23SEmmanuel Vadot&framebuffer0 {
52*8ccc0d23SEmmanuel Vadot	power-domains = <&ps_disp0 &ps_mipi_dsi>;
53*8ccc0d23SEmmanuel Vadot};
54