更新1h的设备树,现在可以显示了mipi
This commit is contained in:
@ -15,6 +15,13 @@
|
||||
#include <dt-bindings/sensor-dev.h>
|
||||
#include "rk3568.dtsi"
|
||||
|
||||
//HDMI输出
|
||||
#include "rk3566-lubancat-hdmi.dtsi"
|
||||
|
||||
//MIPI摄像头配置
|
||||
#include "rk3568-lubancat-csi2-double.dtsi"
|
||||
|
||||
|
||||
/ {
|
||||
model = "EmbedFire LubanCat-1H";
|
||||
compatible = "embedfire,lubancat-1h", "rockchip,rk3566";
|
||||
@ -166,60 +173,21 @@
|
||||
vin-supply = <&vdd_5v>;
|
||||
};
|
||||
|
||||
// #if 0
|
||||
// mipi_dsi0_power: mipi-dsi0-power-regulator {
|
||||
// compatible = "regulator-fixed";
|
||||
// enable-active-high;
|
||||
// gpio = <&gpio3 RK_PA3 GPIO_ACTIVE_HIGH>;
|
||||
// pinctrl-names = "default";
|
||||
// pinctrl-0 = <&mipi_dsi0_pwr_en>;
|
||||
// regulator-name = "mipi_dsi0_power";
|
||||
// regulator-always-on;
|
||||
// };
|
||||
mipi_dsi0_power: mipi-dsi0-power-regulator {
|
||||
compatible = "regulator-fixed";
|
||||
enable-active-high;
|
||||
gpio = <&gpio3 RK_PD1 GPIO_ACTIVE_HIGH>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&mipi_dsi0_pwr_en>;
|
||||
regulator-name = "mipi_dsi0_power";
|
||||
regulator-always-on;
|
||||
};
|
||||
|
||||
// vdd_cam_5v: vdd-cam-5v-regulator {
|
||||
// compatible = "regulator-fixed";
|
||||
// regulator-name = "vdd_cam_5v";
|
||||
// regulator-min-microvolt = <3300000>;
|
||||
// regulator-max-microvolt = <3300000>;
|
||||
// gpio = <&gpio3 RK_PA4 GPIO_ACTIVE_HIGH>;
|
||||
// pinctrl-names = "default";
|
||||
// pinctrl-0 = <&cam_pwr_en>;
|
||||
// enable-active-high;
|
||||
// regulator-always-on;
|
||||
// };
|
||||
|
||||
// cam_dovdd: cam-dovdd {
|
||||
// compatible = "regulator-fixed";
|
||||
// regulator-name = "cam_dovdd";
|
||||
// regulator-always-on;
|
||||
// regulator-boot-on;
|
||||
// regulator-min-microvolt = <1800000>;
|
||||
// regulator-max-microvolt = <1800000>;
|
||||
// vin-supply = <&vdd_cam_5v>;
|
||||
// };
|
||||
|
||||
// cam_avdd: cam-avdd {
|
||||
// compatible = "regulator-fixed";
|
||||
// regulator-name = "cam_avdd";
|
||||
// regulator-always-on;
|
||||
// regulator-boot-on;
|
||||
// regulator-min-microvolt = <2800000>;
|
||||
// regulator-max-microvolt = <2800000>;
|
||||
// vin-supply = <&vdd_cam_5v>;
|
||||
// };
|
||||
|
||||
// cam_dvdd: cam-dvdd {
|
||||
// compatible = "regulator-fixed";
|
||||
// regulator-name = "cam_dvdd";
|
||||
// regulator-always-on;
|
||||
// regulator-boot-on;
|
||||
// regulator-min-microvolt = <1200000>;
|
||||
// regulator-max-microvolt = <1200000>;
|
||||
// vin-supply = <&vdd_cam_5v>;
|
||||
// };
|
||||
|
||||
// #endif 0
|
||||
mipi_dsi1_power: mipi-dsi1-power-regulator {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "mipi_dsi0_power";
|
||||
regulator-always-on;
|
||||
};
|
||||
|
||||
leds: leds {
|
||||
status = "okay";
|
||||
@ -279,7 +247,8 @@
|
||||
>;
|
||||
};
|
||||
|
||||
backlight: backlight {
|
||||
|
||||
backlight0: backlight0 {
|
||||
status = "okay";
|
||||
compatible = "pwm-backlight";
|
||||
pwms = <&pwm13 0 50000 0>;
|
||||
@ -320,23 +289,89 @@
|
||||
default-brightness-level = <200>;
|
||||
};
|
||||
|
||||
test-power {
|
||||
status = "okay";
|
||||
backlight1: backlight1 {
|
||||
status = "disable";
|
||||
compatible = "pwm-backlight";
|
||||
pwms = <&pwm5 0 50000 0>;
|
||||
brightness-levels = <
|
||||
95 95 95 95 95 95 95 95
|
||||
95 95 95 95 95 95 95 95
|
||||
95 95 95 95 95 95 95 95
|
||||
95 95 95 95 95 95 95 95
|
||||
95 95 95 95 95 95 95 95
|
||||
95 95 95 95 95 95 95 95
|
||||
95 95 95 95 95 95 95 95
|
||||
95 95 95 95 95 95 95 95
|
||||
95 95 95 95 95 95 95 95
|
||||
95 95 95 95 95 95 95 95
|
||||
95 95 95 95 95 95 95 95
|
||||
88 89 90 91 92 93 94 95
|
||||
96 97 98 99 100 101 102 103
|
||||
104 105 106 107 108 109 110 111
|
||||
112 113 114 115 116 117 118 119
|
||||
120 121 122 123 124 125 126 127
|
||||
128 129 130 131 132 133 134 135
|
||||
136 137 138 139 140 141 142 143
|
||||
144 145 146 147 148 149 150 151
|
||||
152 153 154 155 156 157 158 159
|
||||
160 161 162 163 164 165 166 167
|
||||
168 169 170 171 172 173 174 175
|
||||
176 177 178 179 180 181 182 183
|
||||
184 185 186 187 188 189 190 191
|
||||
192 193 194 195 196 197 198 199
|
||||
200 201 202 203 204 205 206 207
|
||||
208 209 210 211 212 213 214 215
|
||||
216 217 218 219 220 221 222 223
|
||||
224 225 226 227 228 229 230 231
|
||||
232 233 234 235 236 237 238 239
|
||||
240 241 242 243 244 245 246 247
|
||||
248 249 250 251 252 253 254 255
|
||||
>;
|
||||
default-brightness-level = <200>;
|
||||
};
|
||||
|
||||
hdmi_sound: hdmi-sound {
|
||||
compatible = "simple-audio-card";
|
||||
simple-audio-card,format = "i2s";
|
||||
simple-audio-card,mclk-fs = <128>;
|
||||
simple-audio-card,name = "rockchip,hdmi";
|
||||
status = "okay";
|
||||
backlight2: backlight2 {
|
||||
status = "disable";
|
||||
compatible = "pwm-backlight";
|
||||
pwms = <&pwm0 0 500000 0>; //2khz
|
||||
brightness-levels = <
|
||||
0 1 2 3 4 5 6 7
|
||||
8 9 10 11 12 13 14 15
|
||||
16 17 18 19 20 21 22 23
|
||||
24 25 26 27 28 29 30 31
|
||||
32 33 34 35 36 37 38 39
|
||||
40 41 42 43 44 45 46 47
|
||||
48 49 50 51 52 53 54 55
|
||||
56 57 58 59 60 61 62 63
|
||||
64 65 66 67 68 69 70 71
|
||||
72 73 74 75 76 77 78 79
|
||||
80 81 82 83 84 85 86 87
|
||||
88 89 90 91 92 93 94 95
|
||||
96 97 98 99 100 101 102 103
|
||||
104 105 106 107 108 109 110 111
|
||||
112 113 114 115 116 117 118 119
|
||||
120 121 122 123 124 125 126 127
|
||||
128 129 130 131 132 133 134 135
|
||||
136 137 138 139 140 141 142 143
|
||||
144 145 146 147 148 149 150 151
|
||||
152 153 154 155 156 157 158 159
|
||||
160 161 162 163 164 165 166 167
|
||||
168 169 170 171 172 173 174 175
|
||||
176 177 178 179 180 181 182 183
|
||||
184 185 186 187 188 189 190 191
|
||||
192 193 194 195 196 197 198 199
|
||||
200 201 202 203 204 205 206 207
|
||||
208 209 210 211 212 213 214 215
|
||||
216 217 218 219 220 221 222 223
|
||||
224 225 226 227 228 229 230 231
|
||||
232 233 234 235 236 237 238 239
|
||||
240 241 242 243 244 245 246 247
|
||||
248 249 250 251 252 253 254 255>;
|
||||
default-brightness-level = <200>;
|
||||
};
|
||||
|
||||
simple-audio-card,cpu {
|
||||
sound-dai = <&i2s0_8ch>;
|
||||
};
|
||||
simple-audio-card,codec {
|
||||
sound-dai = <&hdmi>;
|
||||
};
|
||||
test-power {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
sdio_pwrseq: sdio-pwrseq {
|
||||
@ -386,6 +421,7 @@
|
||||
};
|
||||
|
||||
|
||||
|
||||
&saradc {
|
||||
vref-supply = <&vcca_1v8>;
|
||||
status = "okay";
|
||||
@ -750,6 +786,127 @@
|
||||
};
|
||||
};
|
||||
|
||||
&dsi1 {
|
||||
status = "disabled";
|
||||
power-supply = <&mipi_dsi1_power>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
dsi1_panel: panel@0 {
|
||||
status = "disabled";
|
||||
compatible = "simple-panel-dsi";
|
||||
reg = <0x0>;
|
||||
backlight = <&backlight0>;
|
||||
reset-gpios = <&gpio3 RK_PA7 GPIO_ACTIVE_LOW>;
|
||||
|
||||
ports {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
port@0 {
|
||||
reg = <0>;
|
||||
panel_in_dsi1: endpoint {
|
||||
remote-endpoint = <&dsi1_out_panel>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
ports {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
port@1 {
|
||||
reg = <1>;
|
||||
dsi1_out_panel: endpoint {
|
||||
remote-endpoint = <&panel_in_dsi1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
&i2c1 {
|
||||
status = "okay";
|
||||
clock-frequency = <100000>;
|
||||
|
||||
gt911_dsi1: gt911@5d {
|
||||
status = "disabled";
|
||||
compatible = "goodix,gt911";
|
||||
reg = <0x5d>;
|
||||
interrupt-parent = <&gpio3>;
|
||||
interrupts = <RK_PA6 IRQ_TYPE_LEVEL_LOW>;
|
||||
reset-gpios = <&gpio3 RK_PA5 GPIO_ACTIVE_LOW>;
|
||||
irq-gpios = <&gpio3 RK_PA6 GPIO_ACTIVE_HIGH>;
|
||||
touchscreen-inverted-x = <1>;
|
||||
touchscreen-inverted-y = <1>;
|
||||
};
|
||||
|
||||
gt928_dsi1: gt928@5d {
|
||||
status = "disabled";
|
||||
compatible = "goodix,gt928";
|
||||
reg = <0x5d>;
|
||||
interrupt-parent = <&gpio3>;
|
||||
interrupts = <RK_PA6 IRQ_TYPE_LEVEL_LOW>;
|
||||
reset-gpios = <&gpio3 RK_PA5 GPIO_ACTIVE_LOW>;
|
||||
irq-gpios = <&gpio3 RK_PA6 GPIO_ACTIVE_HIGH>;
|
||||
touchscreen-inverted-y;
|
||||
};
|
||||
|
||||
rockpi_mcu_1: rockpi-mcu-1@45 {
|
||||
compatible = "rockpi_mcu";
|
||||
reg = <0x45>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
rockpi_ft5406_1: rockpi_ft5406-1@38 {
|
||||
compatible = "rockpi_ft5406";
|
||||
reg = <0x38>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
//cam0-gpio-setting
|
||||
&ov5647 {
|
||||
pwdn-gpios = <&gpio3 RK_PA1 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
&ov5648 {
|
||||
pwdn-gpios = <&gpio3 RK_PA1 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio3 RK_PA2 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
&ov8858 {
|
||||
pwdn-gpios = <&gpio3 RK_PA1 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio3 RK_PA2 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
&sc132gs {
|
||||
pwdn-gpios = <&gpio3 RK_PA1 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio3 RK_PA2 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
//cam1-gpio-setting
|
||||
&cam1_ov5647 {
|
||||
pwdn-gpios = <&gpio3 RK_PA3 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
&cam1_ov5648 {
|
||||
pwdn-gpios = <&gpio3 RK_PA3 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio3 RK_PA4 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
&cam1_ov8858 {
|
||||
pwdn-gpios = <&gpio3 RK_PA3 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio3 RK_PA4 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
&cam1_sc132gs {
|
||||
pwdn-gpios = <&gpio3 RK_PA3 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio3 RK_PA4 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
|
||||
&i2s0_8ch {
|
||||
status = "okay";
|
||||
};
|
||||
@ -1019,23 +1176,6 @@
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&route_hdmi {
|
||||
status = "okay";
|
||||
connect = <&vp0_out_hdmi>;
|
||||
};
|
||||
|
||||
&hdmi_in_vp0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&hdmi_in_vp1 {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&hdmi {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pinctrl {
|
||||
pmic {
|
||||
pmic_int: pmic_int {
|
||||
@ -1091,7 +1231,7 @@
|
||||
|
||||
lcd {
|
||||
mipi_dsi0_pwr_en: mipi-dsi0-pwr-en {
|
||||
rockchip,pins = <3 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
rockchip,pins = <3 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user