瑞芯微Rockchip开发者社区
直播中

孙成红

8年用户 1451经验值
私信 关注
[问答]

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

问题描述及复现步骤:

使用的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>;

            };

    };

};

回帖(2)

张亮

2022-8-18 16:30:37
panel dts配置有问题,SDK中应该有edp相关dts配置,可以参考配置
举报

孙成红

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

/dts-v1/;

#include "rk3399-firefly-port.dtsi"

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

        test-power {
                status = "okay";
        };

        vcc_lcd: vcc-lcd {
                compatible = "regulator-fixed";
                enable-active-high;
                gpio = <&gpio1 1 GPIO_ACTIVE_HIGH>;
                regulator-always-on;
                regulator-boot-on;
                regulator-name = "vcc_lcd";
                regulator-min-microvolt = <3300000>;
                regulator-max-microvolt = <3300000>;
                startup-delay-us = <20000>;
                vin-supply = <&vcc_3v0>;
        };
};

&backlight {
    status = "okay";
};

&edp_panel {
        compatible = "sharp,lcd-f402", "panel-simple";
        backlight = <&backlight>;
        power-supply = <&vcc_lcd>;
        reset-gpios = <&gpio4 29 GPIO_ACTIVE_LOW>;
        status = "okay";
};

&edp {
        status = "okay";
};

&route_edp {
        status = "okay";
        logo,mode = "center";
};

&edp_in_vopl {
        status = "disabled";
};

&hdmi_dp_sound {
        status = "okay";
};

&i2c4 {
        status = "okay";

        gsl3680: gsl3680@41 {
                compatible = "gslX680";
                reg = <0x41>;
                screen_max_x = <1536>;
                screen_max_y = <2048>;
                touch-gpio = <&gpio1 20 IRQ_TYPE_LEVEL_LOW>;
                reset-gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
        };

        mpu6050: mpu@68 {
                compatible = "invensense,mpu6050";
                reg = <0x68>;
                irq-gpio = <&gpio1 4 IRQ_TYPE_LEVEL_LOW>;
                mpu-debug = <1>;
                mpu-int_config = <0x10>;
                mpu-level_shifter = <0>;
                mpu-orientation = <0 1 0 1 0 0 0 0 1>;
                orientation-x= <1>;
                orientation-y= <1>;
                orientation-z= <1>;
        };
};

&uart4 {
        status = "okay";
};

&dp_in_vopb {
        status = "disabled";
};

&hdmi_in_vopb {
        status = "disabled";
};

&wdt {
        status = "disabled";
};
举报

更多回帖

发帖
×
20
完善资料,
赚取积分