1// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 2/* 3 * Copyright (C) 2021 Marek Vasut 4 */ 5#include <dt-bindings/gpio/gpio.h> 6#include <dt-bindings/input/input.h> 7#include <dt-bindings/interrupt-controller/arm-gic.h> 8#include <dt-bindings/pwm/pwm.h> 9 10&{/} { 11 display_bl: display-bl { 12 compatible = "pwm-backlight"; 13 brightness-levels = <0 16 22 30 40 55 75 102 138 188 255>; 14 default-brightness-level = <8>; 15 enable-gpios = <&gpioi 0 GPIO_ACTIVE_HIGH>; 16 power-supply = <®_panel_bl>; 17 status = "okay"; 18 }; 19 20 panel: panel { 21 backlight = <&display_bl>; 22 power-supply = <®_panel_bl>; 23 24 port { 25 panel_in: endpoint { 26 }; 27 }; 28 }; 29 30 reg_panel_bl: regulator-panel-bl { 31 compatible = "regulator-fixed"; 32 regulator-name = "panel_backlight"; 33 regulator-min-microvolt = <3300000>; 34 regulator-max-microvolt = <3300000>; 35 vin-supply = <®_panel_supply>; 36 }; 37 38 reg_panel_supply: regulator-panel-supply { 39 compatible = "regulator-fixed"; 40 regulator-name = "panel_supply"; 41 regulator-min-microvolt = <24000000>; 42 regulator-max-microvolt = <24000000>; 43 }; 44}; 45 46&timers2 { 47 #address-cells = <1>; 48 #size-cells = <0>; 49 status = "okay"; 50 51 pwm2: pwm { 52 #pwm-cells = <3>; 53 pinctrl-0 = <&pwm2_pins_a>; 54 pinctrl-names = "default"; 55 status = "okay"; 56 }; 57 58 timer@1 { 59 reg = <1>; 60 status = "okay"; 61 }; 62}; 63 64<dc { 65 pinctrl-names = "default", "sleep"; 66 pinctrl-0 = <<dc_pins_b>; 67 pinctrl-1 = <<dc_sleep_pins_b>; 68 status = "okay"; 69 70 port { 71 ltdc_dpi_out: endpoint { 72 }; 73 }; 74}; 75