msm8998-oneplus-cheeseburger.dts 966 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // SPDX-License-Identifier: BSD-3-Clause
  2. /*
  3. * OnePlus 5 (cheeseburger) device tree
  4. *
  5. * Copyright (c) 2021, Jami Kettunen <[email protected]>
  6. */
  7. #include <dt-bindings/leds/common.h>
  8. #include "msm8998-oneplus-common.dtsi"
  9. / {
  10. model = "OnePlus 5";
  11. compatible = "oneplus,cheeseburger", "qcom,msm8998";
  12. chassis-type = "handset";
  13. /* Required for bootloader to select correct board */
  14. qcom,board-id = <8 0 16859 23>;
  15. /* Capacitive keypad button backlight */
  16. leds {
  17. compatible = "gpio-leds";
  18. pinctrl-names = "default";
  19. pinctrl-0 = <&button_backlight_default>;
  20. button-backlight {
  21. gpios = <&pmi8998_gpio 5 GPIO_ACTIVE_HIGH>;
  22. color = <LED_COLOR_ID_WHITE>;
  23. function = LED_FUNCTION_KBD_BACKLIGHT;
  24. default-state = "off";
  25. };
  26. };
  27. };
  28. &pmi8998_gpio {
  29. button_backlight_default: button-backlight-state {
  30. pinconf {
  31. pins = "gpio5";
  32. function = "normal";
  33. bias-pull-down;
  34. qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
  35. };
  36. };
  37. };