1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-or-later 2724ba675SRob Herring 3724ba675SRob Herring#include "ep7211.dtsi" 4724ba675SRob Herring#include <dt-bindings/gpio/gpio.h> 5724ba675SRob Herring 6724ba675SRob Herring/ { 7724ba675SRob Herring model = "Cirrus Logic EP7211 Development Board"; 8724ba675SRob Herring compatible = "cirrus,edb7211", "cirrus,ep7211", "cirrus,ep7209"; 9724ba675SRob Herring 10724ba675SRob Herring memory@c0000000 { 11724ba675SRob Herring device_type = "memory"; 12724ba675SRob Herring reg = <0xc0000000 0x02000000>; 13724ba675SRob Herring }; 14724ba675SRob Herring 15724ba675SRob Herring backlight: backlight { 16724ba675SRob Herring compatible = "pwm-backlight"; 17724ba675SRob Herring pwms = <&pwm 0>; 18724ba675SRob Herring brightness-levels = < 19724ba675SRob Herring 0x0 0x1 0x2 0x3 0x4 0x5 0x6 0x7 20724ba675SRob Herring 0x8 0x9 0xa 0xb 0xc 0xd 0xe 0xf 21724ba675SRob Herring >; 22724ba675SRob Herring default-brightness-level = <0x0>; 23724ba675SRob Herring power-supply = <&blen>; 24724ba675SRob Herring }; 25724ba675SRob Herring 26724ba675SRob Herring display: display { 27724ba675SRob Herring model = "320x240x4"; 28724ba675SRob Herring bits-per-pixel = <4>; 29724ba675SRob Herring ac-prescale = <17>; 30724ba675SRob Herring 31724ba675SRob Herring display-timings { 32724ba675SRob Herring native-mode = <&timing0>; 33*f3ed3b12SKrzysztof Kozlowski timing0: timing-320x240 { 34724ba675SRob Herring hactive = <320>; 35724ba675SRob Herring hback-porch = <0>; 36724ba675SRob Herring hfront-porch = <0>; 37724ba675SRob Herring hsync-len = <0>; 38724ba675SRob Herring vactive = <240>; 39724ba675SRob Herring vback-porch = <0>; 40724ba675SRob Herring vfront-porch = <0>; 41724ba675SRob Herring vsync-len = <0>; 42724ba675SRob Herring clock-frequency = <6500000>; 43724ba675SRob Herring }; 44724ba675SRob Herring }; 45724ba675SRob Herring }; 46724ba675SRob Herring 47724ba675SRob Herring i2c: i2c { 48724ba675SRob Herring compatible = "i2c-gpio"; 49724ba675SRob Herring gpios = <&portd 4 GPIO_ACTIVE_HIGH>, 50724ba675SRob Herring <&portd 5 GPIO_ACTIVE_HIGH>; 51724ba675SRob Herring i2c-gpio,delay-us = <2>; 52724ba675SRob Herring i2c-gpio,scl-output-only; 53724ba675SRob Herring #address-cells = <1>; 54724ba675SRob Herring #size-cells = <0>; 55724ba675SRob Herring }; 56724ba675SRob Herring 57724ba675SRob Herring lcddc: lcddc { 58724ba675SRob Herring compatible = "regulator-fixed"; 59724ba675SRob Herring regulator-name = "BACKLIGHT ENABLE"; 60724ba675SRob Herring regulator-min-microvolt = <3300000>; 61724ba675SRob Herring regulator-max-microvolt = <3300000>; 62724ba675SRob Herring gpio = <&portd 1 GPIO_ACTIVE_HIGH>; 63724ba675SRob Herring }; 64724ba675SRob Herring 65724ba675SRob Herring blen: blen { 66724ba675SRob Herring compatible = "regulator-fixed"; 67724ba675SRob Herring regulator-name = "BACKLIGHT ENABLE"; 68724ba675SRob Herring regulator-min-microvolt = <3300000>; 69724ba675SRob Herring regulator-max-microvolt = <3300000>; 70724ba675SRob Herring gpio = <&portd 3 GPIO_ACTIVE_HIGH>; 71724ba675SRob Herring }; 72724ba675SRob Herring}; 73724ba675SRob Herring 74724ba675SRob Herring&bus { 75724ba675SRob Herring flash: nor@0 { 76724ba675SRob Herring compatible = "cfi-flash"; 77724ba675SRob Herring reg = <0 0x00000000 0x02000000>; 78724ba675SRob Herring bank-width = <2>; 79724ba675SRob Herring #address-cells = <1>; 80724ba675SRob Herring #size-cells = <1>; 81724ba675SRob Herring }; 82724ba675SRob Herring}; 83724ba675SRob Herring 84724ba675SRob Herring&fb { 85724ba675SRob Herring display = <&display>; 86724ba675SRob Herring lcd-supply = <&lcddc>; 87724ba675SRob Herring status = "okay"; 88724ba675SRob Herring}; 89724ba675SRob Herring 90724ba675SRob Herring&portd { 91724ba675SRob Herring lcden { 92724ba675SRob Herring gpio-hog; 93724ba675SRob Herring gpios = <2 GPIO_ACTIVE_HIGH>; 94724ba675SRob Herring output-high; 95724ba675SRob Herring line-name = "LCD ENABLE"; 96724ba675SRob Herring }; 97724ba675SRob Herring}; 98