linux-loongson/arch/arm64/boot/dts/apple/s5l8960x-5s.dtsi
Nick Chan 0f8f64b232 arm64: dts: apple: s5l8960x: Add backlight nodes
Add DWI backlight controller nodes for Apple A7 SoC, and enable it for
iPhone 5s.

Signed-off-by: Nick Chan <towinchenmi@gmail.com>
Link: https://lore.kernel.org/r/20250228-dwi-dt-v2-1-69e450bc4bfb@gmail.com
Signed-off-by: Sven Peter <sven@svenpeter.dev>
2025-03-06 20:54:28 +01:00

61 lines
1.1 KiB
Plaintext

// SPDX-License-Identifier: GPL-2.0+ OR MIT
/*
* Apple iPhone 5s common device tree
* Based on A7 (APL0698), up to 1.3GHz
*
* Copyright (c) 2022, Konrad Dybcio <konradybcio@kernel.org>
*/
#include "s5l8960x.dtsi"
#include "s5l8960x-common.dtsi"
#include "s5l8960x-opp.dtsi"
#include <dt-bindings/input/input.h>
/ {
chassis-type = "handset";
gpio-keys {
compatible = "gpio-keys";
button-home {
label = "Home Button";
gpios = <&pinctrl 2 GPIO_ACTIVE_LOW>;
linux,code = <KEY_HOMEPAGE>;
wakeup-source;
};
button-power {
label = "Power Button";
gpios = <&pinctrl 3 GPIO_ACTIVE_LOW>;
linux,code = <KEY_POWER>;
wakeup-source;
};
button-voldown {
label = "Volume Down";
gpios = <&pinctrl 5 GPIO_ACTIVE_LOW>;
linux,code = <KEY_VOLUMEDOWN>;
};
button-volup {
label = "Volume Up";
gpios = <&pinctrl 4 GPIO_ACTIVE_LOW>;
linux,code = <KEY_VOLUMEUP>;
};
switch-mute {
label = "Mute Switch";
gpios = <&pinctrl 16 GPIO_ACTIVE_LOW>;
linux,code = <KEY_MUTE>;
};
};
};
&dwi_bl {
status = "okay";
};
&framebuffer0 {
power-domains = <&ps_disp0 &ps_mipi_dsi>;
};