Firefly开源社区

打印 上一主题 下一主题

[技术讨论] core-rk3399-jd4配置LVDS屏,显示不正常,请问如何设置?

108

积分

0

威望

0

贡献

技术小白

积分
108

core-rk3399-jd4配置LVDS屏,显示不正常,请问如何设置?

发表于 2022-9-19 17:44:29      浏览:2842 | 回复:4        打印      只看该作者   [复制链接] 楼主
  • 固件类型: 自行编译的固件
  • SDK包名称: rk3399_linux_release_v2.5.1_20210301_firefly_split
  • SDK更新到哪个COMMIT: 0000-00-00 00:00:00
  • SDK修改内容: 设备树中增加dsi节点
  • Log日志: 日志.zip
问题描述及复现步骤:
在设备树中增加了dsi节点和TC358775G的panel-init-sequence后,LVDS屏可以点亮,但是显示不正确(如图所示)。
怀疑是按照TC358764_5_774_5XBG_DSI-LVDS_Tv11p_nm表格生成的panel-init-sequence不对,
以下是屏的参数和我的配置,请专家大神帮忙看下,是否有哪里配置错了?
  1. /dts-v1/;

  2. #include "rk3399-firefly-port.dtsi"
  3. #include <dt-bindings/sensor-dev.h>
  4. #include <dt-bindings/display/media-bus-format.h>

  5. / {
  6.         model = "AIO-3399-JD4-SCLVDS Board (Linux Opensource)";
  7.         compatible = "rockchip,rk3399-firefly", "rockchip,rk3399";

  8.         test-power {
  9.                 status = "okay";
  10.         };

  11.         rt5640-sound {
  12.                 simple-audio-card,cpu {
  13.                         sound-dai = <&i2s1>;
  14.                 };
  15.                 simple-audio-card,codec {
  16.                         sound-dai = <&rt5640>;
  17.                 };
  18.         };

  19.         adc-keys {
  20.                 compatible = "adc-keys";
  21.                 io-channels = <&saradc 1>;
  22.                 io-channel-names = "buttons";
  23.                 poll-interval = <300>;
  24.                 keyup-threshold-microvolt = <1800000>;

  25.                 esc-key {
  26.                         linux,code = <KEY_ESC>;
  27.                         label = "esc";
  28.                         press-threshold-microvolt = <0>;
  29.                 };
  30.         };

  31.         fan_ctl: fan-ctl-regulator {
  32.                 compatible = "regulator-fixed";
  33.                 enable-active-high;
  34.                 regulator-always-on;
  35.                 regulator-boot-on;
  36.                 gpio = <&gpio3 10 GPIO_ACTIVE_HIGH>;
  37.                 pinctrl-names = "default";
  38.                 regulator-name = "fan_ctl";
  39.                 pinctrl-0 = <&fan_drv>;
  40.         };

  41.         NPU5801_PWR_EN: HUB20-PWR-EN {
  42.                 compatible = "regulator-fixed";
  43.                 enable-active-high;
  44.                 regulator-always-on;
  45.                 regulator-boot-on;
  46.                 gpio = <&gpio0 2 GPIO_ACTIVE_HIGH>;
  47.                 pinctrl-names = "default";
  48.                 pinctrl-0 = <&npu5801_pwr_en>;
  49.                 regulator-name = "vcc5v0_5801_en";
  50.                 status = "okay";
  51.         };

  52. };

  53. &usbdrd_dwc3_0 {
  54.     dr_mode = "host";
  55. };


  56. &gmac {
  57.         tx_delay = <0x2F>;
  58.         rx_delay = <0x1E>;
  59. };


  60. &vcc_sd_h {
  61.         rockchip,pins = <1 22 RK_FUNC_GPIO &pcfg_pull_up>;
  62. };

  63. &vcc_sd {
  64.         gpio = <&gpio1 22 GPIO_ACTIVE_HIGH>;
  65. };

  66. &hdmi_dp_sound {
  67.         status = "okay";
  68. };

  69. &i2c2 {
  70.         status = "disabled";
  71.         i2c-scl-rising-time-ns = <300>;
  72.         i2c-scl-falling-time-ns = <15>;

  73.         sensor@4c {
  74.                 status = "disabled";
  75.                 compatible = "gs_mc3230";
  76.                 reg = <0x4c>;
  77.                 type = <SENSOR_TYPE_ACCEL>;
  78.                 irq_enable = <0>;
  79.                 poll_delay_ms = <30>;
  80.                 layout = <1>;
  81.         };
  82. };

  83. &rt5640 {
  84.     hp-det-adc-value = <900>;
  85.     aux-det-adc-value = <900>;
  86.     hp-con-gpio = <&gpio3 16 GPIO_ACTIVE_HIGH>;
  87.     io-channels = <&saradc 3>,<&saradc 2>;
  88.     io-channel-names = "hp-det","aux-det";
  89. };

  90. &rt5640_hpcon{
  91.     rockchip,pins = <3 16 RK_FUNC_GPIO &pcfg_pull_none>;
  92. };

  93. &vcca1v8_codec {
  94.         regulator-min-microvolt = <900000>;
  95.         regulator-max-microvolt = <900000>;
  96. };

  97. &spi1 {
  98.         dev-port = <0>;
  99.         status = "okay";
  100. };

  101. &spi_wk2xxx {
  102.     status = "okay";
  103.         reset-gpio = <&gpio1 2 GPIO_ACTIVE_HIGH>;
  104.         irq-gpio = <&gpio2 8 IRQ_TYPE_EDGE_FALLING>;
  105.         cs-gpio = <&gpio1 10 GPIO_ACTIVE_HIGH>;
  106. };

  107. // &spi2 {
  108. //     status = "okay";
  109. //     max-freq = <48000000>;
  110. //     spidev@00 {
  111. //         compatible = "linux,spidev";
  112. //         reg = <0x00>;
  113. //         spi-max-frequency = <48000000>;
  114. //                 status = "okay";
  115. //     };
  116. // };

  117. &vcc3v3_3g {
  118.         gpio = <&gpio2 28 GPIO_ACTIVE_HIGH>;
  119. };

  120. &vcc3v3_pcie {
  121.         /delete-property/ gpio;
  122. };

  123. &pcie0 {
  124.         ep-gpios = <&gpio4 30 GPIO_ACTIVE_HIGH>;
  125. };

  126. &uart4 {
  127.     status = "disabled";
  128. };

  129. &dp_in_vopb {
  130.         status = "disabled";
  131. };

  132. &hdmi_in_vopl {
  133.         status = "disabled";
  134. };

  135. &wdt {
  136.         status = "disabled";
  137. };

  138. &io_domains {
  139.         bt656-supply = <&vcc_3v0>;
  140. };

  141. &vcc2v8_dvp {
  142.         regulator-min-microvolt = <1800000>;
  143.         regulator-max-microvolt = <1800000>;
  144. };

  145. &vcca1v8_codec {
  146.         regulator-min-microvolt = <900000>;
  147.         regulator-max-microvolt = <900000>;
  148. };

  149. &fusb0 {
  150.     status = "disabled";
  151. };

  152. &cdn_dp {
  153.     status = "disabled";
  154. };

  155. &tcphy0 {
  156.     /delete-property/ extcon;
  157.     status = "okay";
  158. };

  159. &u2phy0 {
  160.     status = "okay";
  161.     /delete-property/ extcon;

  162.     u2phy0_otg: otg-port {
  163.         rockchip,vbus-always-on;
  164.         vbus-5v-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
  165.         status = "okay";
  166.     };
  167. };

  168. &usbdrd3_0 {
  169.     status = "okay";
  170.     /delete-property/ extcon;
  171. };

  172. &usbdrd_dwc3_0 {
  173.     dr_mode = "host";
  174. };

  175. &route_hdmi {
  176.         // status = "okay";
  177.         status = "disabled";
  178. };

  179. &hdmi_in_vopb {
  180.         status = "disabled";
  181. };



  182. &hdmi {
  183.         // status = "okay";
  184.         status = "disabled";
  185. };

  186. &backlight {
  187.         status = "okay";
  188.         pwms = <&pwm0 0 100000 0>;
  189. };

  190. &edp_in_vopl {
  191.         status = "disabled";
  192. };

  193. &edp_in_vopb {
  194.         status = "disabled";
  195. };

  196. &dsi_in_vopl {
  197.         status = "disabled";
  198. };

  199. &dsi_in_vopb {
  200.         status = "okay";
  201. };

  202. &vopb_out_dsi {
  203.         status = "okay";
  204. };
  205. &vopl_out_dsi {
  206.         status = "okay";
  207. };

  208. &route_dsi {
  209.         status = "disabled";
  210.         connect = <&vopb_out_dsi>;
  211. };

  212. &dsi {
  213.         status = "okay";
  214.         rockchip,lane-rate = <550>;
  215.         panel@0 {
  216.                 status = "okay";
  217.                 compatible = "simple-panel-dsi";
  218.                 // compatible = "auo,g101evn013", "simple-panel-dsi";
  219.                 reg = <0>;
  220.                 backlight = <&backlight>;
  221.                 enable-gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
  222.                 reset-gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
  223.                 dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST | MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET)>;
  224.                 dsi,format = <MIPI_DSI_FMT_RGB888>;
  225.                 bus-format = <MEDIA_BUS_FMT_RGB888_1X24>;
  226.                 dsi,lanes = <4>;

  227.                 reset-delay-ms = <120>;
  228.                 init-delay-ms = <120>;
  229.                 enable-delay-ms = <120>;
  230.                 prepare-delay-ms = <120>;
  231.                 unprepare-delay-ms = <12>;
  232.                 disable-delay-ms = <120>;

  233.                 panel-init-sequence = [
  234.                         29 00 06 3C 01 09 00 07 00                       
  235.                         29 00 06 14 01 06 00 00 00                       
  236.                         29 00 06 64 01 0A 00 00 00                       
  237.                         29 00 06 68 01 0A 00 00 00                       
  238.                         29 00 06 6C 01 0A 00 00 00                       
  239.                         29 00 06 70 01 0A 00 00 00                       
  240.                         29 00 06 34 01 1F 00 00 00                       
  241.                         29 00 06 10 02 1F 00 00 00                       
  242.                         29 00 06 04 01 01 00 00 00                       
  243.                         29 00 06 04 02 01 00 00 00                       
  244.                         29 00 06 50 04 20 01 F0 03                       
  245.                         29 00 06 54 04 20 00 20 00                       
  246.                         29 00 06 58 04 00 05 48 00                       
  247.                         29 00 06 5C 04 04 00 04 00                       
  248.                         29 00 06 60 04 20 03 08 00                       
  249.                         29 00 06 64 04 01 00 00 00                       
  250.                         29 00 06 A0 04 2D 80 44 00                       
  251.                         29 00 06 A0 04 2D 80 04 00                       
  252.                         29 00 06 04 05 04 00 00 00                       
  253.                         29 00 06 80 04 00 01 02 03                       
  254.                         29 00 06 84 04 04 07 05 08                       
  255.                         29 00 06 88 04 09 0A 0E 0F                       
  256.                         29 00 06 8C 04 0B 0C 0D 10                       
  257.                         29 00 06 90 04 16 17 11 12                       
  258.                         29 00 06 94 04 13 14 15 1B                       
  259.                         29 00 06 98 04 18 19 1A 06                       
  260.                         29 00 06 9C 04 63 06 00 00
  261.                 ];
  262.                 panel-exit-sequence = [
  263.                         05 05 01 28
  264.                         05 78 01 10
  265.                 ];

  266.                 disp_timings: display-timings {
  267.                         native-mode = <&timing0>;
  268.                         timing0: timing0 {
  269.                                 clock-frequency = <69327360>; //@60 71214000
  270.                                 hactive = <1280>;
  271.                                 vactive = <800>;
  272.                                 hsync-len = <32>;
  273.                                 hback-porch = <32>;
  274.                                 hfront-porch = <72>;
  275.                                 vsync-len = <4>;
  276.                                 vback-porch = <4>;
  277.                                 vfront-porch = <8>;
  278.                                 hsync-active = <0>;
  279.                                 vsync-active = <0>;
  280.                                 de-active = <0>;
  281.                                 pixelclk-active = <0>;
  282.                         };
  283.                 };
  284.         };
  285. };

  286. &rk808 {
  287.      /delete-property/ pmic,stby-gpio;
  288.      /delete-property/ pmic,hold-gpio;
  289. };

  290. &vcc_mipi {
  291.         status = "okay";
  292. };

  293. &dvdd_1v2 {
  294.         status = "okay";
  295. };

  296. &ov13850 {
  297.         pwdn-gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
  298.         status = "okay";
  299. };

  300. &rkisp1_0 {
  301.         status = "okay";
  302. };

  303. &mipi_dphy_rx0 {
  304.         status = "okay";
  305. };

  306. &isp0_mmu {
  307.         status = "okay";
  308. };

  309. &rkisp1_1 {
  310.         status = "okay";
  311. };

  312. &mipi_dphy_tx1rx1 {
  313.         status = "okay";
  314. };

  315. &isp1_mmu {
  316.         status = "okay";
  317. };


  318. &pinctrl {
  319.         pinctrl-names = "default";
  320.         pinctrl-0 = <&host_hub_vcc>;

  321.         npu_pwr_en {
  322.                 // control VCC5V0_HOST3
  323.                 npu5801_pwr_en: npu5801-pwr-en {
  324.                         rockchip,pins =
  325.                                 <0 2 RK_FUNC_GPIO &pcfg_pull_up>;
  326.                 };
  327.         };

  328.         host-hub-vcc {
  329.                 host_hub_vcc: host-hub-vcc {
  330.                         rockchip,pins =
  331.                                 <2 4 RK_FUNC_GPIO &pcfg_output_high>,
  332.                                 <4 29 RK_FUNC_GPIO &pcfg_output_high>;
  333.                 };
  334.         };

  335.         pcie {
  336.                 pcie_3g_drv: pcie-3g-drv {
  337.                         rockchip,pins =
  338.                                 <2 6 RK_FUNC_GPIO &pcfg_pull_up>;
  339.                 };
  340.         };

  341.         vcc_sd {
  342.                 vcc_sd_h: vcc-sd-h {
  343.                         rockchip,pins =
  344.                                 <1 22 RK_FUNC_GPIO &pcfg_pull_up>;
  345.                 };
  346.         };

  347.         fan-ctl {
  348.                 fan_drv: fan-drv {
  349.                         rockchip,pins = <3 10 RK_FUNC_GPIO &pcfg_pull_none>;
  350.                 };
  351.         };
  352. };
复制代码




auoscrenn.png (133.38 KB, 下载次数: 107)

auoscrenn.png

lvds.png (201.06 KB, 下载次数: 121)

lvds.png

IMG_9815.JPG (1.38 MB, 下载次数: 119)

IMG_9815.JPG

TC358764_5_774_5XBG_DSI-LVDS_Tv11p_nm.zip

272.01 KB, 下载次数: 1, 下载积分: 灯泡 -1 , 经验 -1

TC358764_5_774_5XBG_DSI-LVDS_Tv11p_nm.xls

日志.zip

21.83 KB, 下载次数: 1, 下载积分: 灯泡 -1 , 经验 -1

回复

使用道具 举报

108

积分

0

威望

0

贡献

技术小白

积分
108
发表于 2022-9-21 08:50:17        只看该作者  沙发

能给具体看下哪个参数不对吗?图片红框里的参数应该怎么填?

无标题.jpg (239.39 KB, 下载次数: 112)

无标题.jpg
回复

使用道具 举报

759

积分

0

威望

0

贡献

技术大神

Rank: 3Rank: 3

积分
759
发表于 2022-9-21 18:01:52        只看该作者  板凳
hactive 和vactive的参数交换一下试试
回复

使用道具 举报

108

积分

0

威望

0

贡献

技术小白

积分
108
发表于 2022-9-22 11:15:23        只看该作者  地板
luwy 发表于 2022-9-21 18:01
hactive 和vactive的参数交换一下试试

交换一下 屏不亮了
回复

使用道具 举报

108

积分

0

威望

0

贡献

技术小白

积分
108
发表于 2022-9-22 11:32:29        只看该作者  5#

加好友了{:4_189:}
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表