| .. | .. |
|---|
| 1 | | -/* |
|---|
| 2 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 3 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 4 | | - * published by the Free Software Foundation. |
|---|
| 5 | | - */ |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 6 | 2 | |
|---|
| 7 | 3 | / { |
|---|
| 8 | 4 | gpio_keys { |
|---|
| .. | .. |
|---|
| 83 | 79 | }; |
|---|
| 84 | 80 | |
|---|
| 85 | 81 | &dss { |
|---|
| 86 | | - status = "ok"; |
|---|
| 82 | + status = "okay"; |
|---|
| 87 | 83 | vdds_dsi-supply = <&vpll2>; |
|---|
| 88 | 84 | vdda_video-supply = <&video_reg>; |
|---|
| 89 | 85 | pinctrl-names = "default"; |
|---|
| .. | .. |
|---|
| 108 | 104 | regulator-max-microvolt = <3300000>; |
|---|
| 109 | 105 | }; |
|---|
| 110 | 106 | |
|---|
| 111 | | - lcd0: display@0 { |
|---|
| 112 | | - compatible = "panel-dpi"; |
|---|
| 113 | | - label = "28"; |
|---|
| 114 | | - status = "okay"; |
|---|
| 115 | | - /* default-on; */ |
|---|
| 107 | + lcd0: display { |
|---|
| 108 | + /* This isn't the exact LCD, but the timings meet spec */ |
|---|
| 109 | + compatible = "logicpd,type28"; |
|---|
| 116 | 110 | pinctrl-names = "default"; |
|---|
| 117 | 111 | pinctrl-0 = <&lcd_enable_pin>; |
|---|
| 118 | | - enable-gpios = <&gpio5 27 GPIO_ACTIVE_HIGH>; /* gpio155, lcd INI */ |
|---|
| 112 | + backlight = <&bl>; |
|---|
| 113 | + enable-gpios = <&gpio5 27 GPIO_ACTIVE_HIGH>; |
|---|
| 119 | 114 | port { |
|---|
| 120 | 115 | lcd_in: endpoint { |
|---|
| 121 | 116 | remote-endpoint = <&dpi_out>; |
|---|
| 122 | 117 | }; |
|---|
| 123 | | - }; |
|---|
| 124 | | - |
|---|
| 125 | | - panel-timing { |
|---|
| 126 | | - clock-frequency = <9000000>; |
|---|
| 127 | | - hactive = <480>; |
|---|
| 128 | | - vactive = <272>; |
|---|
| 129 | | - hfront-porch = <3>; |
|---|
| 130 | | - hback-porch = <2>; |
|---|
| 131 | | - hsync-len = <42>; |
|---|
| 132 | | - vback-porch = <3>; |
|---|
| 133 | | - vfront-porch = <2>; |
|---|
| 134 | | - vsync-len = <11>; |
|---|
| 135 | | - hsync-active = <1>; |
|---|
| 136 | | - vsync-active = <1>; |
|---|
| 137 | | - de-active = <1>; |
|---|
| 138 | | - pixelclk-active = <0>; |
|---|
| 139 | 118 | }; |
|---|
| 140 | 119 | }; |
|---|
| 141 | 120 | |
|---|