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