blob: 1a64b7d09c24de17c8c349ca7105284f2d21b884 [file] [log] [blame]
Jonas Smedegaard997b8572019-04-20 18:24:16 +08001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (C) 2019 Vasily Khoruzhick <anarsoul@gmail.com>
4 *
5 */
6
7#include "sunxi-u-boot.dtsi"
8
9/ {
10 vdd_bl: regulator@0 {
11 compatible = "regulator-fixed";
12 regulator-name = "bl-3v3";
13 regulator-min-microvolt = <3300000>;
14 regulator-max-microvolt = <3300000>;
15 gpio = <&pio 7 6 GPIO_ACTIVE_HIGH>; /* PH6 */
16 enable-active-high;
17 };
18
19 backlight: backlight {
20 compatible = "pwm-backlight";
21 pwms = <&pwm 0 50000 0>;
22 brightness-levels = <0 5 10 15 20 30 40 55 70 85 100>;
23 default-brightness-level = <2>;
24 enable-gpios = <&pio 3 23 GPIO_ACTIVE_HIGH>; /* PD23 */
25 power-supply = <&vdd_bl>;
26 };
27};
28
29/* The ANX6345 eDP-bridge is on i2c */
30&i2c0 {
31 anx6345: edp-bridge@38 {
32 compatible = "analogix,anx6345";
33 reg = <0x38>;
34 reset-gpios = <&pio 3 24 GPIO_ACTIVE_LOW>; /* PD24 */
35 status = "okay";
36 };
37};
38
39&pwm {
40 status = "okay";
41};