The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/device-tree/src/arm64/qcom/msm8998-oneplus-cheeseburger.dts

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    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                 button-backlight {
   26                         gpios = <&pmi8998_gpio 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_gpio {
   35         button_backlight_default: button-backlight-state {
   36                 pinconf {
   37                         pins = "gpio5";
   38                         function = "normal";
   39                         bias-pull-down;
   40                         qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
   41                 };
   42         };
   43 };

Cache object: ac9ff6fa884f234501ae054691dc77d1


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.