1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Copyright (c) 2022 Rockchip Electronics Co., Ltd. 4 * 5 */ 6 7/ { 8 model = "Rockchip RK3399 Evaluation Board (Chrome OS)"; 9 compatible = "google,rk3399evb", "rockchip,rk3399-evb", "rockchip,rk3399"; 10 11 edp_panel: edp-panel { 12 compatible = "lg,lp097qx1-spa1", "panel-simple"; 13 backlight = <&backlight>; 14 power-supply = <&vcc3v3_s0>; 15 enable-gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>; 16 17 ports { 18 panel_in_edp: endpoint { 19 remote-endpoint = <&edp_out_panel>; 20 }; 21 }; 22 }; 23 24 hdmi_codec: hdmi-codec { 25 compatible = "simple-audio-card"; 26 simple-audio-card,format = "i2s"; 27 simple-audio-card,mclk-fs = <256>; 28 simple-audio-card,name = "HDMI-CODEC"; 29 30 simple-audio-card,cpu { 31 sound-dai = <&i2s2>; 32 }; 33 34 simple-audio-card,codec { 35 sound-dai = <&hdmi>; 36 }; 37 }; 38 39 sound { 40 compatible = "rockchip,cdndp-sound"; 41 rockchip,cpu = <&i2s2>; 42 rockchip,codec = <&cdn_dp>; 43 }; 44}; 45 46&cdn_dp { 47 status = "okay"; 48 extcon = <&fusb0>, <&fusb1>; 49 50 ports { 51 /* Don't use vopl for dp, save it for edp */ 52 dp_in: port { 53 /delete-node/ endpoint@1; 54 }; 55 }; 56}; 57 58&dsi { 59 status = "okay"; 60 61 panel@0 { 62 compatible ="boe,tv080wum-nl0"; 63 reg = <0>; 64 backlight = <&backlight>; 65 enable-gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>; 66 67 ports { 68 #address-cells = <1>; 69 #size-cells = <0>; 70 71 port@0 { 72 reg = <0>; 73 panel_in_dsi: endpoint { 74 remote-endpoint = <&dsi_out_panel>; 75 }; 76 }; 77 }; 78 }; 79 80 ports { 81 #address-cells = <1>; 82 #size-cells = <0>; 83 84 port@1 { 85 reg = <1>; 86 dsi_out_panel: endpoint { 87 remote-endpoint = <&panel_in_dsi>; 88 }; 89 }; 90 }; 91}; 92 93&edp { 94 status = "disabled"; 95 96 ports { 97 edp_out: port@1 { 98 reg = <1>; 99 #address-cells = <1>; 100 #size-cells = <0>; 101 102 edp_out_panel: endpoint@0 { 103 reg = <0>; 104 remote-endpoint = <&panel_in_edp>; 105 }; 106 }; 107 }; 108}; 109 110&hdmi { 111 #address-cells = <1>; 112 #size-cells = <0>; 113 #sound-dai-cells = <0>; 114 status = "disabled"; 115}; 116 117&i2s2 { 118 #sound-dai-cells = <0>; 119 status = "okay"; 120}; 121 122&vopb { 123 status = "okay"; 124}; 125 126&vopb_mmu { 127 status = "okay"; 128}; 129 130&vopl { 131 status = "okay"; 132 133 /* Don't use vopl for dp, save it for edp */ 134 vopl_out: port { 135 /delete-node/ endpoint@3; 136 }; 137}; 138 139&vopl_mmu { 140 status = "okay"; 141}; 142 143&display_subsystem { 144 status = "okay"; 145}; 146