xref: /freebsd/sys/contrib/device-tree/src/arm64/qcom/msm8998-oneplus-cheeseburger.dts (revision 77013d11e6483b970af25e13c9b892075742f7e5)
1// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * OnePlus 5 (cheeseburger) device tree
4 *
5 * Copyright (c) 2021, Jami Kettunen <jamipkettunen@gmail.com>
6 */
7
8#include <dt-bindings/leds/common.h>
9#include "msm8998-oneplus-common.dtsi"
10
11/ {
12	model = "OnePlus 5";
13	compatible = "oneplus,cheeseburger", "qcom,msm8998";
14	/* Required for bootloader to select correct board */
15	qcom,board-id = <8 0 16859 23>;
16
17	/* Capacitive keypad button backlight */
18	leds {
19		compatible = "gpio-leds";
20
21		pinctrl-names = "default";
22		pinctrl-0 = <&button_backlight_default>;
23
24		button-backlight {
25			gpios = <&pmi8998_gpio 5 GPIO_ACTIVE_HIGH>;
26			color = <LED_COLOR_ID_WHITE>;
27			function = LED_FUNCTION_KBD_BACKLIGHT;
28			default-state = "off";
29		};
30	};
31};
32
33&pmi8998_gpio {
34	button_backlight_default: button-backlight-default {
35		pinconf {
36			pins = "gpio5";
37			function = "normal";
38			bias-pull-down;
39			qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
40		};
41	};
42};
43