Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: BSD-3-Clause
0002 /*
0003  * OnePlus 5 (cheeseburger) device tree
0004  *
0005  * Copyright (c) 2021, Jami Kettunen <jamipkettunen@gmail.com>
0006  */
0007 
0008 #include <dt-bindings/leds/common.h>
0009 #include "msm8998-oneplus-common.dtsi"
0010 
0011 / {
0012         model = "OnePlus 5";
0013         compatible = "oneplus,cheeseburger", "qcom,msm8998";
0014         chassis-type = "handset";
0015         /* Required for bootloader to select correct board */
0016         qcom,board-id = <8 0 16859 23>;
0017 
0018         /* Capacitive keypad button backlight */
0019         leds {
0020                 compatible = "gpio-leds";
0021 
0022                 pinctrl-names = "default";
0023                 pinctrl-0 = <&button_backlight_default>;
0024 
0025                 button-backlight {
0026                         gpios = <&pmi8998_gpio 5 GPIO_ACTIVE_HIGH>;
0027                         color = <LED_COLOR_ID_WHITE>;
0028                         function = LED_FUNCTION_KBD_BACKLIGHT;
0029                         default-state = "off";
0030                 };
0031         };
0032 };
0033 
0034 &pmi8998_gpio {
0035         button_backlight_default: button-backlight-state {
0036                 pinconf {
0037                         pins = "gpio5";
0038                         function = "normal";
0039                         bias-pull-down;
0040                         qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
0041                 };
0042         };
0043 };