1 // SPDX-License-Identifier: BSD-3-Clause 1 // SPDX-License-Identifier: BSD-3-Clause 2 /* 2 /* 3 * OnePlus 5 (cheeseburger) device tree 3 * OnePlus 5 (cheeseburger) device tree 4 * 4 * 5 * Copyright (c) 2021, Jami Kettunen <jamipkett 5 * Copyright (c) 2021, Jami Kettunen <jamipkettunen@gmail.com> 6 */ 6 */ 7 7 8 #include <dt-bindings/leds/common.h> 8 #include <dt-bindings/leds/common.h> 9 #include "msm8998-oneplus-common.dtsi" 9 #include "msm8998-oneplus-common.dtsi" 10 10 11 / { 11 / { 12 model = "OnePlus 5"; 12 model = "OnePlus 5"; 13 compatible = "oneplus,cheeseburger", " 13 compatible = "oneplus,cheeseburger", "qcom,msm8998"; 14 chassis-type = "handset"; << 15 /* Required for bootloader to select c 14 /* Required for bootloader to select correct board */ 16 qcom,board-id = <8 0 16859 23>; 15 qcom,board-id = <8 0 16859 23>; 17 16 18 /* Capacitive keypad button backlight 17 /* Capacitive keypad button backlight */ 19 leds { 18 leds { 20 compatible = "gpio-leds"; 19 compatible = "gpio-leds"; 21 20 22 pinctrl-names = "default"; 21 pinctrl-names = "default"; 23 pinctrl-0 = <&button_backlight 22 pinctrl-0 = <&button_backlight_default>; 24 23 25 led-keypad-backlight { !! 24 button-backlight { 26 gpios = <&pmi8998_gpio !! 25 gpios = <&pmi8998_gpio 5 GPIO_ACTIVE_HIGH>; 27 color = <LED_COLOR_ID_ 26 color = <LED_COLOR_ID_WHITE>; 28 function = LED_FUNCTIO 27 function = LED_FUNCTION_KBD_BACKLIGHT; 29 default-state = "off"; 28 default-state = "off"; 30 }; 29 }; 31 }; 30 }; 32 }; 31 }; 33 32 34 &pmi8998_gpios { !! 33 &pmi8998_gpio { 35 button_backlight_default: button-backl !! 34 button_backlight_default: button-backlight-default { 36 pins = "gpio5"; !! 35 pinconf { 37 function = "normal"; !! 36 pins = "gpio5"; 38 bias-pull-down; !! 37 function = "normal"; 39 qcom,drive-strength = <PMIC_GP !! 38 bias-pull-down; >> 39 qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>; >> 40 }; 40 }; 41 }; 41 }; 42 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.