1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Copyright (c) 2018 Fuzhou Rockchip Electronics Co., Ltd 4 * 5 */ 6 7/ { 8 backlight: backlight { 9 status = "okay"; 10 compatible = "pwm-backlight"; 11 pwms = <&pwm1 0 25000 0>; 12 brightness-levels = < 13 0 1 2 3 4 5 6 7 14 8 9 10 11 12 13 14 15 15 16 17 18 19 20 21 22 23 16 24 25 26 27 28 29 30 31 17 32 33 34 35 36 37 38 39 18 40 41 42 43 44 45 46 47 19 48 49 50 51 52 53 54 55 20 56 57 58 59 60 61 62 63 21 64 65 66 67 68 69 70 71 22 72 73 74 75 76 77 78 79 23 80 81 82 83 84 85 86 87 24 88 89 90 91 92 93 94 95 25 96 97 98 99 100 101 102 103 26 104 105 106 107 108 109 110 111 27 112 113 114 115 116 117 118 119 28 120 121 122 123 124 125 126 127 29 128 129 130 131 132 133 134 135 30 136 137 138 139 140 141 142 143 31 144 145 146 147 148 149 150 151 32 152 153 154 155 156 157 158 159 33 160 161 162 163 164 165 166 167 34 168 169 170 171 172 173 174 175 35 176 177 178 179 180 181 182 183 36 184 185 186 187 188 189 190 191 37 192 193 194 195 196 197 198 199 38 200 201 202 203 204 205 206 207 39 208 209 210 211 212 213 214 215 40 216 217 218 219 220 221 222 223 41 224 225 226 227 228 229 230 231 42 232 233 234 235 236 237 238 239 43 240 241 242 243 244 245 246 247 44 248 249 250 251 252 253 254 255>; 45 default-brightness-level = <200>; 46 }; 47 48 panel: panel { 49 compatible = "simple-panel"; 50 bus-format = <MEDIA_BUS_FMT_RGB888_1X24>; 51 backlight = <&backlight>; 52 enable-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>; 53 enable-delay-ms = <20>; 54 reset-gpios = <&gpio0 RK_PC4 GPIO_ACTIVE_LOW>; 55 reset-delay-ms = <10>; 56 prepare-delay-ms = <20>; 57 unprepare-delay-ms = <20>; 58 disable-delay-ms = <20>; 59 width-mm = <95>; 60 height-mm = <54>; 61 status = "okay"; 62 63 display-timings { 64 native-mode = <&stt0430_enl2c_timing>; 65 66 stt0430_enl2c_timing: timing0 { 67 clock-frequency = <12000000>; 68 hactive = <480>; 69 vactive = <272>; 70 hback-porch = <60>; 71 hfront-porch = <20>; 72 vback-porch = <28>; 73 vfront-porch = <20>; 74 hsync-len = <20>; 75 vsync-len = <20>; 76 hsync-active = <0>; 77 vsync-active = <0>; 78 de-active = <0>; 79 pixelclk-active = <0>; 80 }; 81 }; 82 83 port { 84 panel_in_rgb: endpoint { 85 remote-endpoint = <&rgb_out_panel>; 86 }; 87 }; 88 }; 89}; 90 91&display_subsystem { 92 status = "okay"; 93}; 94 95&pwm1 { 96 status = "okay"; 97}; 98 99&rgb { 100 status = "okay"; 101 pinctrl-names = "default"; 102 pinctrl-0 = <&lcdc_ctl &lcdc_rgb888_m1>; 103 104 ports { 105 rgb_out: port@1 { 106 reg = <1>; 107 #address-cells = <1>; 108 #size-cells = <0>; 109 110 rgb_out_panel: endpoint@0 { 111 reg = <0>; 112 remote-endpoint = <&panel_in_rgb>; 113 }; 114 }; 115 }; 116}; 117 118&route_rgb { 119 status = "okay"; 120}; 121 122&vop { 123 status = "okay"; 124}; 125