GNU Linux-libre 4.19.264-gnu1
[releases.git] / arch / arm / boot / dts / ep7211-edb7211.dts
1 /*
2  * The code contained herein is licensed under the GNU General Public
3  * License. You may obtain a copy of the GNU General Public License
4  * Version 2 or later at the following locations:
5  */
6
7 #include "ep7211.dtsi"
8 #include <dt-bindings/gpio/gpio.h>
9
10 / {
11         model = "Cirrus Logic EP7211 Development Board";
12         compatible = "cirrus,edb7211", "cirrus,ep7211", "cirrus,ep7209";
13
14         memory {
15                 reg = <0xc0000000 0x02000000>;
16         };
17
18         backlight: backlight {
19                 compatible = "pwm-backlight";
20                 pwms = <&pwm 0>;
21                 brightness-levels = <
22                         0x0 0x1 0x2 0x3 0x4 0x5 0x6 0x7
23                         0x8 0x9 0xa 0xb 0xc 0xd 0xe 0xf
24                 >;
25                 default-brightness-level = <0x0>;
26                 power-supply = <&blen>;
27         };
28
29         display: display {
30                 model = "320x240x4";
31                 native-mode = <&timing0>;
32                 bits-per-pixel = <4>;
33                 ac-prescale = <17>;
34
35                 display-timings {
36                         timing0: 320x240 {
37                                 hactive = <320>;
38                                 hback-porch = <0>;
39                                 hfront-porch = <0>;
40                                 hsync-len = <0>;
41                                 vactive = <240>;
42                                 vback-porch = <0>;
43                                 vfront-porch = <0>;
44                                 vsync-len = <0>;
45                                 clock-frequency = <6500000>;
46                         };
47                 };
48         };
49
50         i2c: i2c {
51                 compatible = "i2c-gpio";
52                 gpios = <&portd 4 GPIO_ACTIVE_HIGH>,
53                         <&portd 5 GPIO_ACTIVE_HIGH>;
54                 i2c-gpio,delay-us = <2>;
55                 i2c-gpio,scl-output-only;
56                 #address-cells = <1>;
57                 #size-cells = <0>;
58         };
59
60         lcddc: lcddc {
61                 compatible = "regulator-fixed";
62                 regulator-name = "BACKLIGHT ENABLE";
63                 regulator-min-microvolt = <3300000>;
64                 regulator-max-microvolt = <3300000>;
65                 gpio = <&portd 1 GPIO_ACTIVE_HIGH>;
66         };
67
68         blen: blen {
69                 compatible = "regulator-fixed";
70                 regulator-name = "BACKLIGHT ENABLE";
71                 regulator-min-microvolt = <3300000>;
72                 regulator-max-microvolt = <3300000>;
73                 gpio = <&portd 3 GPIO_ACTIVE_HIGH>;
74         };
75 };
76
77 &bus {
78         flash: nor@0 {
79                 compatible = "cfi-flash";
80                 reg = <0 0x00000000 0x02000000>;
81                 bank-width = <2>;
82                 #address-cells = <1>;
83                 #size-cells = <1>;
84         };
85 };
86
87 &fb {
88         display = <&display>;
89         lcd-supply = <&lcddc>;
90         status = "okay";
91 };
92
93 &portd {
94         lcden {
95                 gpio-hog;
96                 gpios = <2 GPIO_ACTIVE_HIGH>;
97                 output-high;
98                 line-name = "LCD ENABLE";
99         };
100 };