1 // SPDX-License-Identifier: BSD-3-Clause 2 /* 3 * OnePlus 5 (cheeseburger) device tree 4 * 5 * Copyright (c) 2021, Jami Kettunen <jamipkett 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", " 14 chassis-type = "handset"; 15 /* Required for bootloader to select c 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 24 25 led-keypad-backlight { 26 gpios = <&pmi8998_gpio 27 color = <LED_COLOR_ID_ 28 function = LED_FUNCTIO 29 default-state = "off"; 30 }; 31 }; 32 }; 33 34 &pmi8998_gpios { 35 button_backlight_default: button-backl 36 pins = "gpio5"; 37 function = "normal"; 38 bias-pull-down; 39 qcom,drive-strength = <PMIC_GP 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.