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 chassis-type = "handset"; 15 /* Required for bootloader to select correct board */ 16 qcom,board-id = <8 0 16859 23>; 17 18 /* Capacitive keypad button backlight */ 19 leds { 20 compatible = "gpio-leds"; 21 22 pinctrl-names = "default"; 23 pinctrl-0 = <&button_backlight_default>; 24 25 led-keypad-backlight { 26 gpios = <&pmi8998_gpios 5 GPIO_ACTIVE_HIGH>; 27 color = <LED_COLOR_ID_WHITE>; 28 function = LED_FUNCTION_KBD_BACKLIGHT; 29 default-state = "off"; 30 }; 31 }; 32 }; 33 34 &pmi8998_gpios { 35 button_backlight_default: button-backlight-state { 36 pins = "gpio5"; 37 function = "normal"; 38 bias-pull-down; 39 qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>; 40 }; 41 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.