Firefly开源社区

打印 上一主题 下一主题

[技术讨论] core-rk3399-jd4核心板配置eDP后,系统启动过程中崩溃,请问应该如何正确配置eDP屏?

108

积分

0

威望

0

贡献

技术小白

积分
108

core-rk3399-jd4核心板配置eDP后,系统启动过程中崩溃,请问应该如何正确配置eDP屏?

发表于 2022-8-16 17:03:27      浏览:2858 | 回复:7        打印      只看该作者   [复制链接] 楼主
  • 固件类型: 自行编译的固件
  • SDK包名称: rk3399_linux_release_v2.5.1_20210301_firefly_split
  • SDK更新到哪个COMMIT: 0000-00-00 00:00:00
  • SDK修改内容: rk3399-firefly-aiojd4.dtsi
  • Log日志: edp崩溃日志.txt
问题描述及复现步骤:
使用的core-rk3399-jd4核心板 + AIO载板,因为要使用eDP显示屏,修改了rk3399-firefly-aiojd4.dtsi。
但是修改后,系统在启动过程中会崩溃,请问应该如何排查????
使用硬件如图所示
rk3399-firefly-aiojd4.dtsi文件内容如下:
  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.         test-power {
  7.                 status = "okay";
  8.         };

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

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

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

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

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

  50. };

  51. &gmac {
  52.         tx_delay = <0x2F>;
  53.         rx_delay = <0x1E>;
  54. };


  55. &vcc_sd_h {
  56.         rockchip,pins = <1 22 RK_FUNC_GPIO &pcfg_pull_up>;
  57. };

  58. &vcc_sd {
  59.         gpio = <&gpio1 22 GPIO_ACTIVE_HIGH>;
  60. };

  61. &hdmi_dp_sound {
  62.         status = "okay";
  63. };

  64. &i2c2 {
  65.         status = "disabled";
  66.         i2c-scl-rising-time-ns = <300>;
  67.         i2c-scl-falling-time-ns = <15>;

  68.         sensor@4c {
  69.                 status = "disabled";
  70.                 compatible = "gs_mc3230";
  71.                 reg = <0x4c>;
  72.                 type = <SENSOR_TYPE_ACCEL>;
  73.                 irq_enable = <0>;
  74.                 poll_delay_ms = <30>;
  75.                 layout = <1>;
  76.         };
  77. };

  78. &rt5640 {
  79.     hp-det-adc-value = <900>;
  80.     aux-det-adc-value = <900>;
  81.     hp-con-gpio = <&gpio3 16 GPIO_ACTIVE_HIGH>;
  82.     io-channels = <&saradc 3>,<&saradc 2>;
  83.     io-channel-names = "hp-det","aux-det";
  84. };

  85. &rt5640_hpcon{
  86.     rockchip,pins = <3 16 RK_FUNC_GPIO &pcfg_pull_none>;
  87. };

  88. &vcca1v8_codec {
  89.         regulator-min-microvolt = <900000>;
  90.         regulator-max-microvolt = <900000>;
  91. };

  92. &spi1 {
  93.         dev-port = <0>;
  94.         status = "okay";
  95. };

  96. &spi_wk2xxx {
  97.     status = "okay";
  98.         reset-gpio = <&gpio1 2 GPIO_ACTIVE_HIGH>;
  99.         irq-gpio = <&gpio2 8 IRQ_TYPE_EDGE_FALLING>;
  100.         cs-gpio = <&gpio1 10 GPIO_ACTIVE_HIGH>;
  101. };

  102. // &spi2 {
  103. //     status = "okay";
  104. //     max-freq = <48000000>;
  105. //     spidev@00 {
  106. //         compatible = "linux,spidev";
  107. //         reg = <0x00>;
  108. //         spi-max-frequency = <48000000>;
  109. //                 status = "okay";
  110. //     };
  111. // };

  112. &vcc3v3_3g {
  113.         gpio = <&gpio2 28 GPIO_ACTIVE_HIGH>;
  114. };

  115. &vcc3v3_pcie {
  116.         /delete-property/ gpio;
  117. };

  118. &pcie0 {
  119.         ep-gpios = <&gpio4 30 GPIO_ACTIVE_HIGH>;
  120. };

  121. &uart4 {
  122.     status = "disabled";
  123. };

  124. &dp_in_vopb {
  125.         status = "disabled";
  126. };

  127. &hdmi_in_vopl {
  128.         status = "disabled";
  129. };

  130. &wdt {
  131.         status = "okay";//2022.7.25
  132. };

  133. &io_domains {
  134.         bt656-supply = <&vcc_3v0>;
  135. };

  136. &vcc2v8_dvp {
  137.         regulator-min-microvolt = <1800000>;
  138.         regulator-max-microvolt = <1800000>;
  139. };

  140. &vcca1v8_codec {
  141.         regulator-min-microvolt = <900000>;
  142.         regulator-max-microvolt = <900000>;
  143. };

  144. &fusb0 {
  145.     status = "disabled";
  146. };

  147. &cdn_dp {
  148.     status = "disabled";
  149. };

  150. &tcphy0 {
  151.     /delete-property/ extcon;
  152.     status = "okay";
  153. };

  154. &u2phy0 {
  155.     status = "okay";
  156.     /delete-property/ extcon;

  157.     u2phy0_otg: otg-port {
  158.         rockchip,vbus-always-on;
  159.         vbus-5v-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
  160.         status = "okay";
  161.     };
  162. };

  163. &usbdrd3_0 {
  164.     status = "okay";
  165.     /delete-property/ extcon;
  166. };

  167. &usbdrd_dwc3_0 {
  168.     dr_mode = "host";
  169. };

  170. &route_hdmi {
  171.         status = "okay";
  172.         // status = "disabled";
  173. };

  174. // 20220802 edp



  175. &hdmi_in_vopb {
  176.         status = "disabled";
  177. };



  178. &hdmi {
  179.         // status = "okay";
  180.         status = "disabled";
  181. };

  182. &edp_in_vopb {
  183.         status = "okay";
  184. };

  185. &edp_in_vopl {
  186.         status = "disabled";
  187. };

  188. &route_edp {
  189.         status = "okay";
  190.         connect = <&edp_in_vopb>;
  191. };

  192. &backlight {
  193.         status = "okay";
  194. };

  195. &edp_panel {
  196.         status = "okay";
  197.         compatible = "simple-panel";//20220812
  198.         backlight = <&backlight>;//20220812

  199.         // power-supply = <&vcc_lcd>;
  200.         enable-gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;

  201.         // enable-delay-ms = <120>;
  202.         // prepare-delay-ms = <120>;
  203.         // disable-delay-ms = <120>;
  204.         // unprepare-delay-ms = <120>;

  205.         display-timings {
  206.                 native-mode = <&timing0>;
  207.                 timing0: timing0 {
  208.                         clock-frequency = <157080000>;
  209.                         hactive = <1920>;
  210.                         vactive = <1200>;
  211.                         hfront-porch = <120>;
  212.                         hsync-len = <0>;
  213.                         hback-porch = <120>;
  214.                         vfront-porch = <4>;
  215.                         vsync-len = <4>;
  216.                         vback-porch = <4>;
  217.                         hsync-active = <0>;
  218.                         vsync-active = <0>;
  219.                         de-active = <0>;
  220.                         pixelclk-active = <0>;
  221.                 };
  222.         };

  223. };

  224. &edp {
  225.         status = "okay";
  226. };

  227. // &uart0 {
  228. //         status = "disabled";
  229. // };
  230. // 20220802 edp

  231. &rk808 {
  232.      /delete-property/ pmic,stby-gpio;
  233.      /delete-property/ pmic,hold-gpio;
  234. };

  235. &vcc_mipi {
  236.         status = "okay";
  237. };

  238. &dvdd_1v2 {
  239.         status = "okay";
  240. };

  241. &ov13850 {
  242.         pwdn-gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
  243.         status = "okay";
  244. };

  245. &ov13850_1 {
  246.         pwdn-gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>;
  247.         status = "okay";
  248. };

  249. &rkisp1_0 {
  250.         status = "okay";
  251. };

  252. &mipi_dphy_rx0 {
  253.         status = "okay";
  254. };

  255. &isp0_mmu {
  256.         status = "okay";
  257. };

  258. &rkisp1_1 {
  259.         status = "okay";
  260. };

  261. &mipi_dphy_tx1rx1 {
  262.         status = "okay";
  263. };

  264. &isp1_mmu {
  265.         status = "okay";
  266. };


  267. &pinctrl {
  268.         pinctrl-names = "default";
  269.         pinctrl-0 = <&host_hub_vcc>;

  270.         npu_pwr_en {
  271.                 // control VCC5V0_HOST3
  272.                 npu5801_pwr_en: npu5801-pwr-en {
  273.                         rockchip,pins =
  274.                                 <0 2 RK_FUNC_GPIO &pcfg_pull_up>;
  275.                 };
  276.         };

  277.         host-hub-vcc {
  278.                 host_hub_vcc: host-hub-vcc {
  279.                         rockchip,pins =
  280.                                 <2 4 RK_FUNC_GPIO &pcfg_output_high>,
  281.                                 <4 29 RK_FUNC_GPIO &pcfg_output_high>;
  282.                 };
  283.         };

  284.         pcie {
  285.                 pcie_3g_drv: pcie-3g-drv {
  286.                         rockchip,pins =
  287.                                 <2 6 RK_FUNC_GPIO &pcfg_pull_up>;
  288.                 };
  289.         };

  290.         vcc_sd {
  291.                 vcc_sd_h: vcc-sd-h {
  292.                         rockchip,pins =
  293.                                 <1 22 RK_FUNC_GPIO &pcfg_pull_up>;
  294.                 };
  295.         };

  296.         fan-ctl {
  297.                 fan_drv: fan-drv {
  298.                         rockchip,pins = <3 10 RK_FUNC_GPIO &pcfg_pull_none>;
  299.                 };
  300.         };
  301. };
复制代码






微信图片_20220816170027.jpg (691.82 KB, 下载次数: 111)

微信图片_20220816170027.jpg

edp崩溃日志.txt

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

回复

使用道具 举报

759

积分

0

威望

0

贡献

技术大神

Rank: 3Rank: 3

积分
759
发表于 2022-8-16 17:25:32        只看该作者  沙发
panel dts配置有问题,SDK中应该有edp相关dts配置,可以参考配置
回复

使用道具 举报

108

积分

0

威望

0

贡献

技术小白

积分
108
发表于 2022-8-16 17:57:12        只看该作者  板凳
luwy 发表于 2022-8-16 17:25
panel dts配置有问题,SDK中应该有edp相关dts配置,可以参考配置

谢谢回复。确实是panel的问题,panel部分注释掉,系统就可以正常启动。
但是参照SDK中的rk3399-firefly-edp.dts修改,还有同样的问题。
rk3399-firefly-edp.dts是这样的
  1. /*
  2. * Copyright (c) 2016 Fuzhou Rockchip Electronics Co., Ltd
  3. *
  4. * This file is dual-licensed: you can use it either under the terms
  5. * of the GPL or the X11 license, at your option. Note that this dual
  6. * licensing only applies to this file, and not this project as a
  7. * whole.
  8. *
  9. *  a) This file is free software; you can redistribute it and/or
  10. *     modify it under the terms of the GNU General Public License as
  11. *     published by the Free Software Foundation; either version 2 of the
  12. *     License, or (at your option) any later version.
  13. *
  14. *     This file is distributed in the hope that it will be useful,
  15. *     but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  17. *     GNU General Public License for more details.
  18. *
  19. * Or, alternatively,
  20. *
  21. *  b) Permission is hereby granted, free of charge, to any person
  22. *     obtaining a copy of this software and associated documentation
  23. *     files (the "Software"), to deal in the Software without
  24. *     restriction, including without limitation the rights to use,
  25. *     copy, modify, merge, publish, distribute, sublicense, and/or
  26. *     sell copies of the Software, and to permit persons to whom the
  27. *     Software is furnished to do so, subject to the following
  28. *     conditions:
  29. *
  30. *     The above copyright notice and this permission notice shall be
  31. *     included in all copies or substantial portions of the Software.
  32. *
  33. *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  34. *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  35. *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  36. *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  37. *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  38. *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  39. *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  40. *     OTHER DEALINGS IN THE SOFTWARE.
  41. */

  42. /dts-v1/;

  43. #include "rk3399-firefly-port.dtsi"

  44. / {
  45.         model = "Firefly-RK3399 Board EDP LP079QX1 (Linux Opensource)";
  46.         compatible = "rockchip,rk3399-firefly", "rockchip,rk3399";

  47.         test-power {
  48.                 status = "okay";
  49.         };

  50.         vcc_lcd: vcc-lcd {
  51.                 compatible = "regulator-fixed";
  52.                 enable-active-high;
  53.                 gpio = <&gpio1 1 GPIO_ACTIVE_HIGH>;
  54.                 regulator-always-on;
  55.                 regulator-boot-on;
  56.                 regulator-name = "vcc_lcd";
  57.                 regulator-min-microvolt = <3300000>;
  58.                 regulator-max-microvolt = <3300000>;
  59.                 startup-delay-us = <20000>;
  60.                 vin-supply = <&vcc_3v0>;
  61.         };
  62. };

  63. &backlight {
  64.     status = "okay";
  65. };

  66. &edp_panel {
  67.         compatible = "sharp,lcd-f402", "panel-simple";
  68.         backlight = <&backlight>;
  69.         power-supply = <&vcc_lcd>;
  70.         reset-gpios = <&gpio4 29 GPIO_ACTIVE_LOW>;
  71.         status = "okay";
  72. };

  73. &edp {
  74.         status = "okay";
  75. };

  76. &route_edp {
  77.         status = "okay";
  78.         logo,mode = "center";
  79. };

  80. &edp_in_vopl {
  81.         status = "disabled";
  82. };

  83. &hdmi_dp_sound {
  84.         status = "okay";
  85. };

  86. &i2c4 {
  87.         status = "okay";

  88.         gsl3680: gsl3680@41 {
  89.                 compatible = "gslX680";
  90.                 reg = <0x41>;
  91.                 screen_max_x = <1536>;
  92.                 screen_max_y = <2048>;
  93.                 touch-gpio = <&gpio1 20 IRQ_TYPE_LEVEL_LOW>;
  94.                 reset-gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
  95.         };

  96.         mpu6050: mpu@68 {
  97.                 compatible = "invensense,mpu6050";
  98.                 reg = <0x68>;
  99.                 irq-gpio = <&gpio1 4 IRQ_TYPE_LEVEL_LOW>;
  100.                 mpu-debug = <1>;
  101.                 mpu-int_config = <0x10>;
  102.                 mpu-level_shifter = <0>;
  103.                 mpu-orientation = <0 1 0 1 0 0 0 0 1>;
  104.                 orientation-x= <1>;
  105.                 orientation-y= <1>;
  106.                 orientation-z= <1>;
  107.         };
  108. };

  109. &uart4 {
  110.         status = "okay";
  111. };

  112. &dp_in_vopb {
  113.         status = "disabled";
  114. };

  115. &hdmi_in_vopb {
  116.         status = "disabled";
  117. };

  118. &wdt {
  119.         status = "disabled";
  120. };
复制代码
回复

使用道具 举报

759

积分

0

威望

0

贡献

技术大神

Rank: 3Rank: 3

积分
759
发表于 2022-8-17 10:17:59        只看该作者  地板
  1. / {
  2.         ...
  3.         edp_panel: edp-panel {
  4.                 compatible = "simple-panel";
  5.                 status = "okay";
  6.                 bus-format = <MEDIA_BUS_FMT_RGB666_1X18>;

  7.                 backlight = <&backlight>;
  8.         display-timings {
  9.                 native-mode = <&timing0>;

  10.                 timing0: timing0 {
  11.                         clock-frequency = <140000000>;
  12.                         hactive = <1920>;
  13.                         vactive = <1080>;
  14.                         hfront-porch = <40>;
  15.                         hsync-len = <40>;
  16.                         hback-porch = <80>;
  17.                         vfront-porch = <16>;
  18.                         vsync-len = <8>;
  19.                         vback-porch = <16>;
  20.                         hsync-active = <0>;
  21.                         vsync-active = <0>;
  22.                         de-active = <0>;
  23.                         pixelclk-active = <0>;
  24.                 };
  25.         };

  26.                 ports {
  27.                         panel_in_edp: endpoint {
  28.                                 remote-endpoint = <&edp_out_panel>;
  29.                         };
  30.                 };

  31.                 power_ctr: power_ctr {
  32.                         rockchip,debug = <0>;
  33.                         lcd_en: lcd-en {
  34.                                         gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
  35.                                         pinctrl-names = "default";
  36.                                         pinctrl-0 = <&lcd_panel_enable>;
  37.                                         rockchip,delay = <20>;
  38.                         };
  39.                         lcd_rst: lcd-rst {
  40.                                         gpios = <&gpio4 29 GPIO_ACTIVE_HIGH>;
  41.                                         pinctrl-names = "default";
  42.                                         pinctrl-0 = <&lcd_panel_reset>;
  43.                                         rockchip,delay = <20>;
  44.                         };
  45.                 };
  46.         };

  47.         backlight: backlight {
  48.                 status = "okay";
  49.                 compatible = "pwm-backlight";
  50.                 pwms = <&pwm0 0 500000 0>;
  51.                 brightness-levels = <
  52.                           0   1   2   3   4   5   6   7
  53.                           8   9  10  11  12  13  14  15
  54.                          16  17  18  19  20  21  22  23
  55.                          24  25  26  27  28  29  30  31
  56.                          32  33  34  35  36  37  38  39
  57.                          40  41  42  43  44  45  46  47
  58.                          48  49  50  51  52  53  54  55
  59.                          56  57  58  59  60  61  62  63
  60.                          64  65  66  67  68  69  70  71
  61.                          72  73  74  75  76  77  78  79
  62.                          80  81  82  83  84  85  86  87
  63.                          88  89  90  91  92  93  94  95
  64.                          96  97  98  99 100 101 102 103
  65.                         104 105 106 107 108 109 110 111
  66.                         112 113 114 115 116 117 118 119
  67.                         120 121 122 123 124 125 126 127
  68.                         128 129 130 131 132 133 134 135
  69.                         136 137 138 139 140 141 142 143
  70.                         144 145 146 147 148 149 150 151
  71.                         152 153 154 155 156 157 158 159
  72.                         160 161 162 163 164 165 166 167
  73.                         168 169 170 171 172 173 174 175
  74.                         176 177 178 179 180 181 182 183
  75.                         184 185 186 187 188 189 190 191
  76.                         192 193 194 195 196 197 198 199
  77.                         200 201 202 203 204 205 206 207
  78.                         208 209 210 211 212 213 214 215
  79.                         216 217 218 219 220 221 222 223
  80.                         224 225 226 227 228 229 230 231
  81.                         232 233 234 235 236 237 238 239
  82.                         240 241 242 243 244 245 246 247
  83.                         248 249 250 251 252 253 254 255>;
  84.                 default-brightness-level = <200>;
  85.         };
  86. };

  87. &edp {
  88.         status = "okay";
  89.         force-hpd;

  90.         ports {
  91.                 edp_out: port@1 {
  92.                         reg = <1>;
  93.                         #address-cells = <1>;
  94.                         #size-cells = <0>;

  95.                         edp_out_panel: endpoint@0 {
  96.                                 reg = <0>;
  97.                                 remote-endpoint = <&panel_in_edp>;
  98.                         };
  99.                 };
  100.         };
  101. };
复制代码


panel 的dts配置参考这份改
回复

使用道具 举报

108

积分

0

威望

0

贡献

技术小白

积分
108
发表于 2022-8-17 18:13:09        只看该作者  5#
luwy 发表于 2022-8-17 10:17
panel 的dts配置参考这份改

参照你的代码,系统可以启动了,屏的背光也亮了,但是显示黑屏,示波器上EDP_TX0N没有信号,我在查查文档。
请问下在我这个板子的原理图上,lcd-en是对应LCD_EN吧,lcd-rst是对应那个引脚? 看原理图是不是eDP用不上lcd-rst。

1.png (59.58 KB, 下载次数: 117)

1.png
回复

使用道具 举报

759

积分

0

威望

0

贡献

技术大神

Rank: 3Rank: 3

积分
759
发表于 2022-8-18 10:32:01        只看该作者  6#
dts只是参考,实际还是按照原理图来,如果原理图没有就不用配置;可以检查一下vcc供电是否都正常
回复

使用道具 举报

108

积分

0

威望

0

贡献

技术小白

积分
108
发表于 2022-8-29 16:44:15        只看该作者  7#
luwy 发表于 2022-8-18 10:32
dts只是参考,实际还是按照原理图来,如果原理图没有就不用配置;可以检查一下vcc供电是否都正常

屏点亮了,感谢帮助
回复

使用道具 举报

108

积分

0

威望

0

贡献

技术小白

积分
108
发表于 2022-8-30 14:57:39        只看该作者  8#
abcxyztt 发表于 2022-8-30 13:52
修改了什么点亮的?
  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-t Board (Linux Opensource)";
  7.         compatible = "rockchip,rk3399-firefly", "rockchip,rk3399";

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

  11.         // vcc_lcd: vcc-lcd {
  12.         //         compatible = "regulator-fixed";
  13.         //         enable-active-high;
  14.         //         gpio = <&gpio1 4 GPIO_ACTIVE_HIGH>;
  15.         //         regulator-always-on;
  16.         //         regulator-boot-on;
  17.         //         regulator-name = "vcc_lcd";
  18.         //         regulator-min-microvolt = <3300000>;
  19.         //         regulator-max-microvolt = <3300000>;
  20.         //         startup-delay-us = <20000>;
  21.         //         vin-supply = <&vcc_3v0>;
  22.         // };

  23.         rt5640-sound {
  24.                 simple-audio-card,cpu {
  25.                         sound-dai = <&i2s1>;
  26.                 };
  27.                 simple-audio-card,codec {
  28.                         sound-dai = <&rt5640>;
  29.                 };
  30.         };

  31.         adc-keys {
  32.                 compatible = "adc-keys";
  33.                 io-channels = <&saradc 1>;
  34.                 io-channel-names = "buttons";
  35.                 poll-interval = <300>;
  36.                 keyup-threshold-microvolt = <1800000>;

  37.                 esc-key {
  38.                         linux,code = <KEY_ESC>;
  39.                         label = "esc";
  40.                         press-threshold-microvolt = <0>;
  41.                 };
  42.         };

  43.         fan_ctl: fan-ctl-regulator {
  44.                 compatible = "regulator-fixed";
  45.                 enable-active-high;
  46.                 regulator-always-on;
  47.                 regulator-boot-on;
  48.                 gpio = <&gpio3 10 GPIO_ACTIVE_HIGH>;
  49.                 pinctrl-names = "default";
  50.                 regulator-name = "fan_ctl";
  51.                 pinctrl-0 = <&fan_drv>;
  52.         };

  53.         NPU5801_PWR_EN: HUB20-PWR-EN {
  54.                 compatible = "regulator-fixed";
  55.                 enable-active-high;
  56.                 regulator-always-on;
  57.                 regulator-boot-on;
  58.                 gpio = <&gpio0 2 GPIO_ACTIVE_HIGH>;
  59.                 pinctrl-names = "default";
  60.                 pinctrl-0 = <&npu5801_pwr_en>;
  61.                 regulator-name = "vcc5v0_5801_en";
  62.                 status = "okay";
  63.         };

  64. };

  65. &usbdrd_dwc3_0 {
  66.     dr_mode = "host";
  67. };


  68. &gmac {
  69.         tx_delay = <0x2F>;
  70.         rx_delay = <0x1E>;
  71. };


  72. &vcc_sd_h {
  73.         rockchip,pins = <1 22 RK_FUNC_GPIO &pcfg_pull_up>;
  74. };

  75. &vcc_sd {
  76.         gpio = <&gpio1 22 GPIO_ACTIVE_HIGH>;
  77. };

  78. &hdmi_dp_sound {
  79.         status = "okay";
  80. };

  81. &i2c2 {
  82.         status = "disabled";
  83.         i2c-scl-rising-time-ns = <300>;
  84.         i2c-scl-falling-time-ns = <15>;

  85.         sensor@4c {
  86.                 status = "disabled";
  87.                 compatible = "gs_mc3230";
  88.                 reg = <0x4c>;
  89.                 type = <SENSOR_TYPE_ACCEL>;
  90.                 irq_enable = <0>;
  91.                 poll_delay_ms = <30>;
  92.                 layout = <1>;
  93.         };
  94. };

  95. &rt5640 {
  96.     hp-det-adc-value = <900>;
  97.     aux-det-adc-value = <900>;
  98.     hp-con-gpio = <&gpio3 16 GPIO_ACTIVE_HIGH>;
  99.     io-channels = <&saradc 3>,<&saradc 2>;
  100.     io-channel-names = "hp-det","aux-det";
  101. };

  102. &rt5640_hpcon{
  103.     rockchip,pins = <3 16 RK_FUNC_GPIO &pcfg_pull_none>;
  104. };

  105. &vcca1v8_codec {
  106.         regulator-min-microvolt = <900000>;
  107.         regulator-max-microvolt = <900000>;
  108. };

  109. &spi1 {
  110.         dev-port = <0>;
  111.         status = "okay";
  112. };

  113. &spi_wk2xxx {
  114.     status = "okay";
  115.         reset-gpio = <&gpio1 2 GPIO_ACTIVE_HIGH>;
  116.         irq-gpio = <&gpio2 8 IRQ_TYPE_EDGE_FALLING>;
  117.         cs-gpio = <&gpio1 10 GPIO_ACTIVE_HIGH>;
  118. };

  119. // &spi2 {
  120. //     status = "okay";
  121. //     max-freq = <48000000>;
  122. //     spidev@00 {
  123. //         compatible = "linux,spidev";
  124. //         reg = <0x00>;
  125. //         spi-max-frequency = <48000000>;
  126. //                 status = "okay";
  127. //     };
  128. // };

  129. &vcc3v3_3g {
  130.         gpio = <&gpio2 28 GPIO_ACTIVE_HIGH>;
  131. };

  132. &vcc3v3_pcie {
  133.         /delete-property/ gpio;
  134. };

  135. &pcie0 {
  136.         ep-gpios = <&gpio4 30 GPIO_ACTIVE_HIGH>;
  137. };

  138. &uart4 {
  139.     status = "disabled";
  140. };

  141. &dp_in_vopb {
  142.         status = "disabled";
  143. };

  144. &hdmi_in_vopl {
  145.         status = "disabled";
  146. };

  147. &wdt {
  148.         status = "disabled";//2022.7.25
  149. };

  150. &io_domains {
  151.         bt656-supply = <&vcc_3v0>;
  152. };

  153. &vcc2v8_dvp {
  154.         regulator-min-microvolt = <1800000>;
  155.         regulator-max-microvolt = <1800000>;
  156. };

  157. &vcca1v8_codec {
  158.         regulator-min-microvolt = <900000>;
  159.         regulator-max-microvolt = <900000>;
  160. };

  161. &fusb0 {
  162.     status = "disabled";
  163. };

  164. &cdn_dp {
  165.     status = "disabled";
  166. };

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

  171. &u2phy0 {
  172.     status = "okay";
  173.     /delete-property/ extcon;

  174.     u2phy0_otg: otg-port {
  175.         rockchip,vbus-always-on;
  176.         vbus-5v-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
  177.         status = "okay";
  178.     };
  179. };

  180. &usbdrd3_0 {
  181.     status = "okay";
  182.     /delete-property/ extcon;
  183. };

  184. &usbdrd_dwc3_0 {
  185.     dr_mode = "host";
  186. };

  187. &route_hdmi {
  188.         // status = "okay";
  189.         status = "disabled";
  190. };

  191. // 20220802 edp



  192. &hdmi_in_vopb {
  193.         status = "disabled";
  194. };



  195. &hdmi {
  196.         // status = "okay";
  197.         status = "disabled";
  198. };

  199. &backlight {
  200.         status = "okay";
  201.         pwms = <&pwm0 0 20000 0>;
  202. };

  203. &edp_in_vopl {
  204.         status = "disabled";
  205. };

  206. &edp_in_vopb {
  207.         status = "okay";
  208. };

  209. &route_edp {
  210.         status = "okay";
  211.         connect = <&vopb_out_edp>;
  212. };



  213. &edp_panel {
  214.         // compatible = "auo,b125han03","simple-panel";//20220830
  215.         compatible = "simple-panel";//20220812
  216.         //gpio1 4 LCD_EN; gpio4 29 LCD_RST; GPIO0_A1 LCD_BL_EN
  217.         enable-gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;//LCD_EN
  218.         reset-gpios = <&gpio4 29 GPIO_ACTIVE_LOW>;//LCD_RST

  219.         // power-supply = <&vcc_lcd>;
  220.         status = "okay";
  221.         bus-format = <MEDIA_BUS_FMT_RGB888_1X24>;//MEDIA_BUS_FMT_RGB888_2X12_BE MEDIA_BUS_FMT_RGB888_2X12_LE MEDIA_BUS_FMT_RGB888_1X24
  222.         backlight = <&backlight>;//20220812
  223.         disable-delay-ms = <120>;

  224.         display-timings {
  225.                 native-mode = <&timing0>;
  226.                 timing0: timing0 {
  227.                         clock-frequency = <157075200>;
  228.                         hactive = <1920>;
  229.                         vactive = <1200>;
  230.                         hfront-porch = <90>;
  231.                         hsync-len = <60>;
  232.                         hback-porch = <90>;
  233.                         vfront-porch = <4>;
  234.                         vsync-len = <4>;
  235.                         vback-porch = <4>;
  236.                         hsync-active = <0>;
  237.                         vsync-active = <0>;
  238.                         de-active = <0>;
  239.                         pixelclk-active = <0>;
  240.                 };
  241.         };

  242.         // power_ctr: power_ctr {
  243.         //         power_enable = <1>;
  244.         //         rockchip,debug = <0>;
  245.         //         lcd_en: lcd-en {
  246.         //                         gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
  247.         //                         pinctrl-names = "default";
  248.         //                         pinctrl-0 = <&lcd_panel_enable>;
  249.         //                         rockchip,delay = <20>;
  250.         //         };
  251.                 // lcd_pwr_en: lcd-pwr-en {
  252.                                 // gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
  253.         //                         pinctrl-names = "default";
  254.         //                         pinctrl-0 = <&lcd_panel_pwr_en>;
  255.         //                         rockchip,delay = <10>;
  256.                 // };
  257.     // };


  258.         // power_ctr: power_ctr {
  259.         //         rockchip,debug = <0>;
  260.         //         lcd_en: lcd-en {
  261.         //                 gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
  262.         //                 pinctrl-names = "default";
  263.         //                 pinctrl-0 = <&lcd_panel_enable>;
  264.         //                 rockchip,delay = <20>;
  265.         //         };
  266.         //         lcd_rst: lcd-rst {
  267.         //                 gpios = <&gpio4 29 GPIO_ACTIVE_HIGH>;
  268.         //                 pinctrl-names = "default";
  269.         //                 pinctrl-0 = <&lcd_panel_reset>;
  270.         //                 rockchip,delay = <20>;
  271.         //         };
  272.         //         lcd_pwr_en: lcd-pwr-en {
  273.         //                 gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
  274.         //                 pinctrl-names = "default";
  275.         //                 pinctrl-0 = <&lcd_panel_pwr_en>;
  276.         //                 rockchip,delay = <10>;
  277.         //         };
  278.         // };

  279. };

  280. &edp {
  281.         status = "okay";
  282.         hpd-gpios = <&gpio2 7 GPIO_ACTIVE_HIGH>;
  283.         // /delete-property/ force-hpd;
  284. };

  285. // &uart0 {
  286. //         status = "disabled";
  287. // };
  288. // 20220802 edp

  289. &rk808 {
  290.      /delete-property/ pmic,stby-gpio;
  291.      /delete-property/ pmic,hold-gpio;
  292. };

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

  296. &dvdd_1v2 {
  297.         status = "okay";
  298. };

  299. &ov13850 {
  300.         pwdn-gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
  301.         status = "okay";
  302. };

  303. // &ov13850_1 {
  304. //         pwdn-gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>;
  305. //         status = "okay";
  306. // };

  307. &rkisp1_0 {
  308.         status = "okay";
  309. };

  310. &mipi_dphy_rx0 {
  311.         status = "okay";
  312. };

  313. &isp0_mmu {
  314.         status = "okay";
  315. };

  316. &rkisp1_1 {
  317.         status = "okay";
  318. };

  319. &mipi_dphy_tx1rx1 {
  320.         status = "okay";
  321. };

  322. &isp1_mmu {
  323.         status = "okay";
  324. };


  325. &pinctrl {
  326.         pinctrl-names = "default";
  327.         pinctrl-0 = <&host_hub_vcc>;

  328.         npu_pwr_en {
  329.                 // control VCC5V0_HOST3
  330.                 npu5801_pwr_en: npu5801-pwr-en {
  331.                         rockchip,pins =
  332.                                 <0 2 RK_FUNC_GPIO &pcfg_pull_up>;
  333.                 };
  334.         };

  335.         host-hub-vcc {
  336.                 host_hub_vcc: host-hub-vcc {
  337.                         rockchip,pins =
  338.                                 <2 4 RK_FUNC_GPIO &pcfg_output_high>,
  339.                                 <4 29 RK_FUNC_GPIO &pcfg_output_high>;
  340.                 };
  341.         };

  342.         pcie {
  343.                 pcie_3g_drv: pcie-3g-drv {
  344.                         rockchip,pins =
  345.                                 <2 6 RK_FUNC_GPIO &pcfg_pull_up>;
  346.                 };
  347.         };

  348.         vcc_sd {
  349.                 vcc_sd_h: vcc-sd-h {
  350.                         rockchip,pins =
  351.                                 <1 22 RK_FUNC_GPIO &pcfg_pull_up>;
  352.                 };
  353.         };

  354.         fan-ctl {
  355.                 fan_drv: fan-drv {
  356.                         rockchip,pins = <3 10 RK_FUNC_GPIO &pcfg_pull_none>;
  357.                 };
  358.         };

  359.         // lcd-panel {
  360.         //         lcd_panel_enable: lcd-panel-enable {
  361.         //                 rockchip,pins = <1 4 RK_FUNC_GPIO &pcfg_pull_up>;
  362.         //         };
  363.     //     lcd_panel_pwr_en: lcd-panel-pwr-en {
  364.     //         rockchip,pins = <0 1 RK_FUNC_GPIO &pcfg_pull_up>;
  365.     //     };
  366.         // };
  367.         // lcd-panel {
  368.         //         lcd_panel_enable: lcd-panel-enable {
  369.         //                 rockchip,pins = <1 4 RK_FUNC_GPIO &pcfg_pull_up>;
  370.         //         };
  371.     //     lcd_panel_reset: lcd-panel-reset {
  372.     //         rockchip,pins = <4 29 RK_FUNC_GPIO &pcfg_pull_up>;
  373.     //     };
  374.         //         lcd_panel_pwr_en: lcd-panel-pwr-en {
  375.     //         rockchip,pins = <0 1 RK_FUNC_GPIO &pcfg_pull_up>;
  376.     //     };
  377.         // };
  378. };


复制代码
回复

使用道具 举报

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

本版积分规则

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