|
| 1 | +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 | +// Copyright (c) 2020 Fuzhou Rockchip Electronics Co., Ltd |
| 3 | + |
| 4 | +/dts-v1/; |
| 5 | +#include "rk3288-evb-rk628.dtsi" |
| 6 | + |
| 7 | +/ { |
| 8 | + model = "Rockchip RK3288 EVB RK628 Board"; |
| 9 | + compatible = "rockchip,rk3288-evb-rk628", "rockchip,rk3288"; |
| 10 | + |
| 11 | + chosen { |
| 12 | + bootargs = "rootwait earlycon=uart8250,mmio32,0xff690000 vmalloc=496M swiotlb=1 console=ttyFIQ0 androidboot.baseband=N/A androidboot.veritymode=enforcing androidboot.hardware=rk30board androidboot.console=ttyFIQ0 init=/init kpti=0 androidboot.selinux=permissive"; |
| 13 | + }; |
| 14 | + |
| 15 | + hdmiin-sound { |
| 16 | + compatible = "rockchip,rockchip-rt5651-rk628-sound"; |
| 17 | + rockchip,cpu = <&i2s>; |
| 18 | + rockchip,codec = <&rt5651>; |
| 19 | + status = "okay"; |
| 20 | + }; |
| 21 | +}; |
| 22 | + |
| 23 | +&firmware_android { |
| 24 | + compatible = "android,firmware"; |
| 25 | + boot_devices = "ff0f0000.dwmmc"; |
| 26 | + |
| 27 | + vbmeta { |
| 28 | + compatible = "android,vbmeta"; |
| 29 | + parts = "vbmeta,boot,system,vendor,dtbo"; |
| 30 | + }; |
| 31 | + |
| 32 | + fstab { |
| 33 | + compatible = "android,fstab"; |
| 34 | + |
| 35 | + vendor { |
| 36 | + compatible = "android,vendor"; |
| 37 | + dev = "/dev/block/by-name/vendor"; |
| 38 | + type = "ext4"; |
| 39 | + mnt_flags = "ro,barrier=1,inode_readahead_blks=8"; |
| 40 | + fsmgr_flags = "wait,avb"; |
| 41 | + }; |
| 42 | + }; |
| 43 | +}; |
| 44 | + |
| 45 | +&video_phy { |
| 46 | + status = "okay"; |
| 47 | +}; |
| 48 | + |
| 49 | +&hdmi { |
| 50 | + status = "okay"; |
| 51 | +}; |
| 52 | + |
| 53 | +&hdmi_in_vopb { |
| 54 | + status = "disabled"; |
| 55 | +}; |
| 56 | + |
| 57 | +&hdmi_in_vopl { |
| 58 | + status = "okay"; |
| 59 | +}; |
| 60 | + |
| 61 | +&route_hdmi { |
| 62 | + connect = <&vopl_out_hdmi>; |
| 63 | + status = "disabled"; |
| 64 | +}; |
| 65 | + |
| 66 | +&rk628 { |
| 67 | + reg = <0x51>; |
| 68 | + interrupt-parent = <&gpio7>; |
| 69 | + interrupts = <11 IRQ_TYPE_LEVEL_HIGH>; |
| 70 | + enable-gpios = <&gpio5 RK_PC3 GPIO_ACTIVE_HIGH>; |
| 71 | + reset-gpios = <&gpio7 RK_PB4 GPIO_ACTIVE_LOW>; |
| 72 | + status = "okay"; |
| 73 | +}; |
| 74 | + |
| 75 | +&rk628_combrxphy { |
| 76 | + status = "okay"; |
| 77 | +}; |
| 78 | + |
| 79 | +&rk628_combtxphy { |
| 80 | + status = "okay"; |
| 81 | +}; |
| 82 | + |
| 83 | +&rk628_csi { |
| 84 | + status = "okay"; |
| 85 | + /* |
| 86 | + * If the hpd output level is inverted on the circuit, |
| 87 | + * the following configuration needs to be enabled. |
| 88 | + */ |
| 89 | + /* hpd-output-inverted; */ |
| 90 | + plugin-det-gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; |
| 91 | + power-gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>; |
| 92 | + rockchip,camera-module-index = <0>; |
| 93 | + rockchip,camera-module-facing = "back"; |
| 94 | + rockchip,camera-module-name = "RK628-CSI"; |
| 95 | + rockchip,camera-module-lens-name = "NC"; |
| 96 | + |
| 97 | + port { |
| 98 | + hdmiin_out0: endpoint { |
| 99 | + remote-endpoint = <&mipi_in>; |
| 100 | + data-lanes = <1 2 3 4>; |
| 101 | + }; |
| 102 | + }; |
| 103 | +}; |
| 104 | + |
| 105 | +&mipi_phy_rx0 { |
| 106 | + status = "okay"; |
| 107 | + |
| 108 | + ports { |
| 109 | + #address-cells = <1>; |
| 110 | + #size-cells = <0>; |
| 111 | + |
| 112 | + port@0 { |
| 113 | + reg = <0>; |
| 114 | + #address-cells = <1>; |
| 115 | + #size-cells = <0>; |
| 116 | + |
| 117 | + mipi_in: endpoint@1 { |
| 118 | + reg = <1>; |
| 119 | + remote-endpoint = <&hdmiin_out0>; |
| 120 | + data-lanes = <1 2 3 4>; |
| 121 | + }; |
| 122 | + }; |
| 123 | + |
| 124 | + port@1 { |
| 125 | + reg = <1>; |
| 126 | + #address-cells = <1>; |
| 127 | + #size-cells = <0>; |
| 128 | + |
| 129 | + dphy_rx_out: endpoint@0 { |
| 130 | + reg = <0>; |
| 131 | + remote-endpoint = <&isp_mipi_in>; |
| 132 | + }; |
| 133 | + }; |
| 134 | + }; |
| 135 | +}; |
| 136 | + |
| 137 | +&rkisp1 { |
| 138 | + status = "okay"; |
| 139 | + port { |
| 140 | + #address-cells = <1>; |
| 141 | + #size-cells = <0>; |
| 142 | + |
| 143 | + isp_mipi_in: endpoint@0 { |
| 144 | + reg = <0>; |
| 145 | + remote-endpoint = <&dphy_rx_out>; |
| 146 | + }; |
| 147 | + }; |
| 148 | +}; |
| 149 | + |
| 150 | +&isp_mmu { |
| 151 | + status = "okay"; |
| 152 | +}; |
0 commit comments