这些小活动你都参加了吗?快来围观一下吧!>>
电子产品世界 » 论坛首页 » 嵌入式开发 » 国产MCU » RK3399配置eDP后系统启动过程中崩溃请问应该如何排查

共3条 1/1 1 跳转至

RK3399配置eDP后系统启动过程中崩溃请问应该如何排查

工程师
2024-04-17 19:15:28     打赏

问题描述及复现步骤:

使用的core-rk3399-jd4核心板 + AIO载板,因为要使用eDP显示屏,修改了rk3399-firefly-aiojd4.dtsi。

但是修改后,系统在启动过程中会崩溃,请问应该如何排查????

使用硬件如图所示

rk3399-firefly-aiojd4.dtsi文件内容如下:

/dts-v1/;
#include "rk3399-firefly-port.dtsi"
#include <dt-bindings/sensor-dev.h>
#include <dt-bindings/display/media-bus-format.h>
/ {
test-power {
            status = "okay";
    };
    rt5640-sound {
            simple-audio-card,cpu {
                    sound-dai = <&i2s1>;
            };
            simple-audio-card,codec {
                    sound-dai = <&rt5640>;
            };
    };
    adc-keys {
            compatible = "adc-keys";
            io-channels = <&saradc 1>;
            io-channel-names = "buttons";
            poll-interval = <300>;
            keyup-threshold-microvolt = <1800000>;
            esc-key {
                    linux,code = <KEY_ESC>;
                    label = "esc";
                    press-threshold-microvolt = <0>;
            };
    };
    fan_ctl: fan-ctl-regulator {
            compatible = "regulator-fixed";
            enable-active-high;
            regulator-always-on;
            regulator-boot-on;
            gpio = <&gpio3 10 GPIO_ACTIVE_HIGH>;
            pinctrl-names = "default";
            regulator-name = "fan_ctl";
            pinctrl-0 = <&fan_drv>;
    };
    NPU5801_PWR_EN: HUB20-PWR-EN {
            compatible = "regulator-fixed";
            enable-active-high;
            regulator-always-on;
            regulator-boot-on;
            gpio = <&gpio0 2 GPIO_ACTIVE_HIGH>;
            pinctrl-names = "default";
            pinctrl-0 = <&npu5801_pwr_en>;
            regulator-name = "vcc5v0_5801_en";
            status = "okay";
    };
};
&gmac {
tx_delay = <0x2F>;
    rx_delay = <0x1E>;
};
&vcc_sd_h {
rockchip,pins = <1 22 RK_FUNC_GPIO &pcfg_pull_up>;
};
&vcc_sd {
gpio = <&gpio1 22 GPIO_ACTIVE_HIGH>;
};
&hdmi_dp_sound {
status = "okay";
};
&i2c2 {
status = "disabled";
    i2c-scl-rising-time-ns = <300>;
    i2c-scl-falling-time-ns = <15>;
    sensor@4c {
            status = "disabled";
            compatible = "gs_mc3230";
            reg = <0x4c>;
            type = <SENSOR_TYPE_ACCEL>;
            irq_enable = <0>;
            poll_delay_ms = <30>;
            layout = <1>;
    };
};
&rt5640 {
hp-det-adc-value = <900>;
aux-det-adc-value = <900>;
hp-con-gpio = <&gpio3 16 GPIO_ACTIVE_HIGH>;
io-channels = <&saradc 3>,<&saradc 2>;
io-channel-names = "hp-det","aux-det";
};
&rt5640_hpcon{
rockchip,pins = <3 16 RK_FUNC_GPIO &pcfg_pull_none>;
};
&vcca1v8_codec {
regulator-min-microvolt = <900000>;
    regulator-max-microvolt = <900000>;
};
&spi1 {
dev-port = <0>;
    status = "okay";
};
&spi_wk2xxx {
status = "okay";
    reset-gpio = <&gpio1 2 GPIO_ACTIVE_HIGH>;
    irq-gpio = <&gpio2 8 IRQ_TYPE_EDGE_FALLING>;
    cs-gpio = <&gpio1 10 GPIO_ACTIVE_HIGH>;
};
// &spi2 {
// status = "okay";
// max-freq = <48000000>;
// spidev@00 {
// compatible = "linux,spidev";
// reg = <0x00>;
// spi-max-frequency = <48000000>;
// status = "okay";
// };
// };
&vcc3v3_3g {
gpio = <&gpio2 28 GPIO_ACTIVE_HIGH>;
};
&vcc3v3_pcie {
/delete-property/ gpio;
};
&pcie0 {
ep-gpios = <&gpio4 30 GPIO_ACTIVE_HIGH>;
};
&uart4 {
status = "disabled";
};
&dp_in_vopb {
status = "disabled";
};
&hdmi_in_vopl {
status = "disabled";
};
&wdt {
status = "okay";//2022.7.25
};
&io_domains {
bt656-supply = <&vcc_3v0>;
};
&vcc2v8_dvp {
regulator-min-microvolt = <1800000>;
    regulator-max-microvolt = <1800000>;
};
&vcca1v8_codec {
regulator-min-microvolt = <900000>;
    regulator-max-microvolt = <900000>;
};
&fusb0 {
status = "disabled";
};
&cdn_dp {
status = "disabled";
};
&tcphy0 {
/delete-property/ extcon;
status = "okay";
};
&u2phy0 {
status = "okay";
/delete-property/ extcon;
u2phy0_otg: otg-port {
    rockchip,vbus-always-on;
    vbus-5v-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
    status = "okay";
};
};
&usbdrd3_0 {
status = "okay";
/delete-property/ extcon;
};
&usbdrd_dwc3_0 {
dr_mode = "host";
};
&route_hdmi {
status = "okay";
    // status = "disabled";
};
// 20220802 edp
&hdmi_in_vopb {
status = "disabled";
};
&hdmi {
// status = "okay";
    status = "disabled";
};
&edp_in_vopb {
status = "okay";
};
&edp_in_vopl {
status = "disabled";
};
&route_edp {
status = "okay";
    connect = <&edp_in_vopb>;
};
&backlight {
status = "okay";
};
&edp_panel {
status = "okay";
    compatible = "simple-panel";//20220812
    backlight = <&backlight>;//20220812
    // power-supply = <&vcc_lcd>;
    enable-gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
    // enable-delay-ms = <120>;
    // prepare-delay-ms = <120>;
    // disable-delay-ms = <120>;
    // unprepare-delay-ms = <120>;
    display-timings {
            native-mode = <&timing0>;
            timing0: timing0 {
                    clock-frequency = <157080000>;
                    hactive = <1920>;
                    vactive = <1200>;
                    hfront-porch = <120>;
                    hsync-len = <0>;
                    hback-porch = <120>;
                    vfront-porch = <4>;
                    vsync-len = <4>;
                    vback-porch = <4>;
                    hsync-active = <0>;
                    vsync-active = <0>;
                    de-active = <0>;
                    pixelclk-active = <0>;
            };
    };
};
&edp {
status = "okay";
};
// &uart0 {
// status = "disabled";
// };
// 20220802 edp
&rk808 {
/delete-property/ pmic,stby-gpio;
 /delete-property/ pmic,hold-gpio;
};
&vcc_mipi {
status = "okay";
};
&dvdd_1v2 {
status = "okay";
};
&ov13850 {
pwdn-gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
    status = "okay";
};
&ov13850_1 {
pwdn-gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>;
    status = "okay";
};
&rkisp1_0 {
status = "okay";
};
&mipi_dphy_rx0 {
status = "okay";
};
&isp0_mmu {
status = "okay";
};
&rkisp1_1 {
status = "okay";
};
&mipi_dphy_tx1rx1 {
status = "okay";
};
&isp1_mmu {
status = "okay";
};
&pinctrl {
pinctrl-names = "default";
    pinctrl-0 = <&host_hub_vcc>;
    npu_pwr_en {
            // control VCC5V0_HOST3
            npu5801_pwr_en: npu5801-pwr-en {
                    rockchip,pins =
                            <0 2 RK_FUNC_GPIO &pcfg_pull_up>;
            };
    };
    host-hub-vcc {
            host_hub_vcc: host-hub-vcc {
                    rockchip,pins =
                            <2 4 RK_FUNC_GPIO &pcfg_output_high>,
                            <4 29 RK_FUNC_GPIO &pcfg_output_high>;
            };
    };
    pcie {
            pcie_3g_drv: pcie-3g-drv {
                    rockchip,pins =
                            <2 6 RK_FUNC_GPIO &pcfg_pull_up>;
            };
    };
    vcc_sd {
            vcc_sd_h: vcc-sd-h {
                    rockchip,pins =
                            <1 22 RK_FUNC_GPIO &pcfg_pull_up>;
            };
    };
    fan-ctl {
            fan_drv: fan-drv {
                    rockchip,pins = <3 10 RK_FUNC_GPIO &pcfg_pull_none>;
            };
    };
};





关键词: RK3399     ADC    

助工
2024-04-17 19:16:19     打赏
2楼

panel dts配置有问题,SDK中应该有edp相关dts配置,可以参考配置


专家
2024-04-17 22:19:13     打赏
3楼

感谢分享


共3条 1/1 1 跳转至

回复

匿名不能发帖!请先 [ 登陆 注册 ]