Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 
0003 #include "ep7211.dtsi"
0004 #include <dt-bindings/gpio/gpio.h>
0005 
0006 / {
0007         model = "Cirrus Logic EP7211 Development Board";
0008         compatible = "cirrus,edb7211", "cirrus,ep7211", "cirrus,ep7209";
0009 
0010         memory@c0000000 {
0011                 device_type = "memory";
0012                 reg = <0xc0000000 0x02000000>;
0013         };
0014 
0015         backlight: backlight {
0016                 compatible = "pwm-backlight";
0017                 pwms = <&pwm 0>;
0018                 brightness-levels = <
0019                         0x0 0x1 0x2 0x3 0x4 0x5 0x6 0x7
0020                         0x8 0x9 0xa 0xb 0xc 0xd 0xe 0xf
0021                 >;
0022                 default-brightness-level = <0x0>;
0023                 power-supply = <&blen>;
0024         };
0025 
0026         display: display {
0027                 model = "320x240x4";
0028                 bits-per-pixel = <4>;
0029                 ac-prescale = <17>;
0030 
0031                 display-timings {
0032                         native-mode = <&timing0>;
0033                         timing0: 320x240 {
0034                                 hactive = <320>;
0035                                 hback-porch = <0>;
0036                                 hfront-porch = <0>;
0037                                 hsync-len = <0>;
0038                                 vactive = <240>;
0039                                 vback-porch = <0>;
0040                                 vfront-porch = <0>;
0041                                 vsync-len = <0>;
0042                                 clock-frequency = <6500000>;
0043                         };
0044                 };
0045         };
0046 
0047         i2c: i2c {
0048                 compatible = "i2c-gpio";
0049                 gpios = <&portd 4 GPIO_ACTIVE_HIGH>,
0050                         <&portd 5 GPIO_ACTIVE_HIGH>;
0051                 i2c-gpio,delay-us = <2>;
0052                 i2c-gpio,scl-output-only;
0053                 #address-cells = <1>;
0054                 #size-cells = <0>;
0055         };
0056 
0057         lcddc: lcddc {
0058                 compatible = "regulator-fixed";
0059                 regulator-name = "BACKLIGHT ENABLE";
0060                 regulator-min-microvolt = <3300000>;
0061                 regulator-max-microvolt = <3300000>;
0062                 gpio = <&portd 1 GPIO_ACTIVE_HIGH>;
0063         };
0064 
0065         blen: blen {
0066                 compatible = "regulator-fixed";
0067                 regulator-name = "BACKLIGHT ENABLE";
0068                 regulator-min-microvolt = <3300000>;
0069                 regulator-max-microvolt = <3300000>;
0070                 gpio = <&portd 3 GPIO_ACTIVE_HIGH>;
0071         };
0072 };
0073 
0074 &bus {
0075         flash: nor@0 {
0076                 compatible = "cfi-flash";
0077                 reg = <0 0x00000000 0x02000000>;
0078                 bank-width = <2>;
0079                 #address-cells = <1>;
0080                 #size-cells = <1>;
0081         };
0082 };
0083 
0084 &fb {
0085         display = <&display>;
0086         lcd-supply = <&lcddc>;
0087         status = "okay";
0088 };
0089 
0090 &portd {
0091         lcden {
0092                 gpio-hog;
0093                 gpios = <2 GPIO_ACTIVE_HIGH>;
0094                 output-high;
0095                 line-name = "LCD ENABLE";
0096         };
0097 };