Firefly开源社区

求助 RK3288 Linux 编译dts 想让LVDS工作, 但是启动失败

74

积分

0

威望

0

贡献

技术小白

积分
74
发表于 2018-7-13 00:51:36     
你好!

我编译的dts 附件中想让LVDS工作, 但是RK3288不能正常启动,请问是什么原因造成的?

U-Boot 2014.10-RK3288-10 (Nov 20 2017 - 17:19:35)

CPU: rk3288
cpu version = 0
CPU's clock information:
    arm pll = 600000000HZ
    periph pll = 297000000HZ
    ddr pll = 200000000HZ
    codec pll = 384000000HZ
Board:  Rockchip platform Board
DRAM:  Found dram banks: 1
Adding bank:0000000000000000(0000000080000000)
128 MiB
GIC CPU mask = 0x00000001
SdmmcInit = 0 400
SdmmcInit = 2 0
storage init OK!
Using default environment

GetParam
Load FDT from boot image.
power key: bank-0 pin-5
pmic:act8846
can't find dts node for pwm1
DCDC vdd_logic has been used, pwm regulator not init it.
Can't find dts node for fuel guage cw201x
SecureBootEn = 0, SecureBootLock = 0

#Boot ver: 2017-11-20#2.30
empty serial no.
checkKey
vbus = 1
no fuel gauge found
no fuel gauge found
read logo on state from dts [0]
no fuel gauge found
Hit any key to stop autoboot:  0
boot or recovery image sha mismatch!
Unable to boot:boot
try to start recovery
'recovery' does not seem to be a partition nor an address
Unable to boot:recovery
try to start backup
ERROR: [rk_load_image_from_storage]: bootrk: bad boot or kernel image
Unable to boot:backup
try to start rockusb

下面是dts 文件:   firefly-rk3288-linux
  1. /dts-v1/;

  2. #include "rk3288.dtsi"
  3. // #include "lcd-box.dtsi"  // default

  4. #include "lvds-lcd-box.dtsi"  // Custom LVDS



  5. #include <dt-bindings/input/input.h>

  6. / {
  7.         fiq-debugger {
  8.                 status = "disabled";
  9.         };

  10.         hsic-usb-hub{
  11.                 compatible = "hub_reset";
  12.                 reset,pin =<&gpio7 GPIO_A6 GPIO_ACTIVE_HIGH>;        // hub reset pin
  13.                 status = "disabled";
  14.         };
  15.     wireless-wlan {
  16.         compatible = "wlan-platdata";

  17.         /* wifi_chip_type - wifi chip define
  18.         * bcmwifi ==> like ap6xxx, rk90x;
  19.         * rtkwifi ==> like rtl8188xx, rtl8723xx,rtl8812auv;
  20.         * esp8089 ==> esp8089;
  21.         * other   ==> for other wifi;
  22.         */
  23.         wifi_chip_type = "bcmwifi";
  24.         sdio_vref = <1800>; //1800mv or 3300mv

  25.         //keep_wifi_power_on;
  26.         //power_ctrl_by_pmu;
  27.         power_pmu_regulator = "act_ldo3";
  28.         power_pmu_enable_level = <1>; //1->HIGH, 0->LOW

  29.         //vref_ctrl_enable;
  30.         //vref_ctrl_gpio = <&gpio0 GPIO_A2 GPIO_ACTIVE_HIGH>;
  31.         vref_pmu_regulator = "act_ldo3";
  32.         vref_pmu_enable_level = <1>; //1->HIGH, 0->LOW

  33.         WIFI,poweren_gpio = <&gpio4 GPIO_D4 GPIO_ACTIVE_HIGH>;
  34.         WIFI,host_wake_irq = <&gpio4 GPIO_D6 GPIO_ACTIVE_HIGH>;
  35.         //WIFI,reset_gpio = <&gpio0 GPIO_A2 GPIO_ACTIVE_LOW>;

  36.         status = "okay";
  37.     };

  38.     wireless-bluetooth {
  39.         compatible = "bluetooth-platdata";

  40.         //wifi-bt-power-toggle;

  41.         uart_rts_gpios = <&gpio4 GPIO_C3 GPIO_ACTIVE_LOW>;
  42.         pinctrl-names = "default","rts_gpio";
  43.         pinctrl-0 = <&uart0_rts>;
  44.         pinctrl-1 = <&uart0_rts_gpio>;

  45.         BT,power_gpio = <&gpio4 GPIO_D3 GPIO_ACTIVE_HIGH>;
  46.         BT,reset_gpio = <&gpio4 GPIO_D5 GPIO_ACTIVE_HIGH>;
  47.         BT,wake_gpio = <&gpio4 GPIO_D2 GPIO_ACTIVE_HIGH>;
  48.         BT,wake_host_irq = <&gpio4 GPIO_D7 GPIO_ACTIVE_LOW>;

  49.         status = "okay";
  50.     };

  51.         pwm_regulator {
  52.                 compatible = "rockchip_pwm_regulator";
  53.                 pwms = <&pwm1 0 2000>;
  54.                 rockchip,pwm_id= <1>;
  55.                 rockchip,pwm_voltage_map= <925000 950000 975000 1000000 1025000 1050000 1075000 1100000 1125000 1150000 1175000 1200000 1225000 1250000 1275000 1300000 1325000 1350000 1375000 1400000>;
  56.                 rockchip,pwm_voltage= <1100000>;
  57.                 rockchip,pwm_min_voltage= <925000>;
  58.                 rockchip,pwm_max_voltage= <1400000>;
  59.                 rockchip,pwm_suspend_voltage= <950000>;
  60.                 rockchip,pwm_coefficient= <475>;
  61.                 regulators {
  62.                         #address-cells = <1>;
  63.                         #size-cells = <0>;
  64.                         pwm_reg0: regulator@0 {
  65.                                 regulator-compatible = "pwm_dcdc1";
  66.                                 regulator-name= "vdd_logic";
  67.                                 regulator-min-microvolt = <925000>;
  68.                                 regulator-max-microvolt = <1400000>;
  69.                                 regulator-always-on;
  70.                                 regulator-boot-on;
  71.                         };
  72.                 };
  73.         };

  74.         codec_hdmi_i2s: codec-hdmi-i2s {
  75.                 compatible = "hdmi-i2s";
  76.         };

  77.         codec_hdmi_spdif: codec-hdmi-spdif {
  78.                 compatible = "hdmi-spdif";
  79.         };

  80.         rockchip-hdmi-i2s {
  81.                 status = "disabled";
  82.                 compatible = "rockchip-hdmi-i2s";
  83.                 dais {
  84.                         dai0 {
  85.                                 audio-codec = <&codec_hdmi_i2s>;
  86.                                 audio-controller = <&i2s>;
  87.                                 format = "i2s";
  88.                                 //continuous-clock;
  89.                                 //bitclock-inversion;
  90.                                 //frame-inversion;
  91.                                 //bitclock-master;
  92.                                 //frame-master;
  93.                         };
  94.                 };
  95.         };

  96.         rockchip-spdif-card {
  97.                 compatible = "rockchip-spdif-card";
  98.                 dais {
  99.                         dai0 {
  100.                                 audio-codec = <&codec_hdmi_spdif>;
  101.                                 audio-controller = <&spdif>;
  102.                         };
  103.                 };
  104.         };


  105.         rockchip-rk1000 {
  106.                 compatible = "rockchip-rk1000";
  107.                 dais {
  108.                         dai0 {
  109.                                 audio-codec = <&rk1000_codec>;
  110.                                 audio-controller = <&i2s>;
  111.                                 format = "i2s";
  112.                         };
  113.                 };
  114.         };


  115.         rockchip-es8323 {
  116.                 compatible = "rockchip-es8323";
  117.                 dais {
  118.                         dai0 {
  119.                                 audio-codec = <&es8323>;
  120.                                 audio-controller = <&i2s>;
  121.                                 format = "i2s";
  122.                                 //continuous-clock;
  123.                                 //bitclock-inversion;
  124.                                 //frame-inversion;
  125.                                 //bitclock-master;
  126.                                 //frame-master;
  127.                         };
  128.                 };
  129.         };
  130.         rkxx-remotectl{
  131.                 compatible = "rockchip,remotectl";
  132.                 module-gpios = <&gpio7 GPIO_A0 GPIO_ACTIVE_LOW>;
  133.         led-power = <&gpio8 GPIO_A1 GPIO_ACTIVE_LOW>;
  134.                 status = "disabled";
  135.         };
  136.        
  137.         firefly-led{
  138.                 compatible = "firefly,led";
  139.                 led-work = <&gpio8 GPIO_A2 GPIO_ACTIVE_LOW>;
  140.                 led-power = <&gpio8 GPIO_A1 GPIO_ACTIVE_LOW>;
  141.                 status = "okay";
  142.         };
  143.         leds {
  144.        compatible = "gpio-leds";
  145.        power {
  146.            label = "firefly:blue:power";
  147.            linux,default-trigger = "ir-power-click";
  148.            default-state = "on";
  149.            gpios = <&gpio8 GPIO_A1 GPIO_ACTIVE_LOW>;
  150.        };  
  151.         user {
  152.            label = "firefly:yellow:user";
  153.            linux,default-trigger = "ir-user-click";
  154.            default-state = "off";
  155.            gpios = <&gpio8 GPIO_A2 GPIO_ACTIVE_LOW>;
  156.        };  
  157.    };
  158.         atx8_unsetup{
  159.                 compatible = "firefly,noatx8";
  160.                 atx8-rst = <&gpio7 GPIO_C5 GPIO_ACTIVE_HIGH>;
  161.                 status = "okay";
  162.         };
  163.         usb_control {
  164.                 compatible = "rockchip,rk3288-usb-control";

  165.                 host_drv_gpio = <&gpio0 GPIO_B6 GPIO_ACTIVE_LOW>;
  166.                 otg_drv_gpio = <&gpio0 GPIO_B4 GPIO_ACTIVE_LOW>;

  167.                 rockchip,remote_wakeup;
  168.                 rockchip,usb_irq_wakeup;
  169.         };
  170. };

  171. &gmac {
  172. //        pmu_regulator = "act_ldo5";
  173. //        pmu_enable_level = <1>; //1->HIGH, 0->LOW
  174. //        power-gpio = <&gpio0 GPIO_A6 GPIO_ACTIVE_HIGH>;
  175.         reset-gpio = <&gpio4 GPIO_B0 GPIO_ACTIVE_LOW>;
  176.         phy-mode = "rgmii";
  177.         clock_in_out = "input";
  178.         tx_delay = <0x30>;
  179.         rx_delay = <0x20>;
  180. };

  181. &uart_dbg {
  182.          status = "okay";
  183. };

  184. &pinctrl {
  185.         //used for init some gpio
  186.        
  187.         init-gpios = <&gpio8 GPIO_A0 GPIO_ACTIVE_HIGH
  188. //                &gpio7 GPIO_B1 GPIO_ACTIVE_HIGH               
  189.                 &gpio4 GPIO_B0 GPIO_ACTIVE_HIGH>;
  190.         gpio0_gpio {
  191.                         gpio0_c2: gpio0-c2 {
  192.                                 rockchip,pins = <GPIO0_C2>;
  193.                                 rockchip,pull = <VALUE_PULL_DOWN>;
  194.                         };

  195.                         //to add
  196.                 };
  197.                
  198.         gpio7_gpio {
  199.                         gpio7_b7: gpio7-b7 {
  200.                                 rockchip,pins = <GPIO7_B7>;
  201.                                 rockchip,pull = <VALUE_PULL_UP>;
  202.                         };

  203.                         //to add
  204.                 };
  205.         //could add other pinctrl definition such as gpio

  206.         // gmac drive strength
  207.         gpio4_gmac {
  208.                 mac_clk: mac-clk {
  209.                         rockchip,drive = <VALUE_DRV_12MA>;
  210.                 };

  211.                 mac_txpins: mac-txpins {
  212.                         rockchip,drive = <VALUE_DRV_12MA>;
  213.                 };

  214.                 mac_rxpins: mac-rxpins {
  215.                         rockchip,drive = <VALUE_DRV_12MA>;
  216.                 };

  217.                 mac_crs: mac-crs {
  218.                         rockchip,drive = <VALUE_DRV_12MA>;
  219.                 };

  220.                 mac_mdpins: mac-mdpins {
  221.                         rockchip,drive = <VALUE_DRV_12MA>;
  222.                 };
  223.         };
  224. };
  225. &nandc0 {
  226.         status = "okay"; // used nand set "okay" ,used emmc set "disabled"
  227. };
  228. &nandc1 {
  229.         status = "disabled"; // used nand set "okay" ,used emmc set "disabled"
  230. };   

  231. &nandc0reg {
  232.         status = "disabled"; // used nand set "okay" ,used emmc set "disabled"
  233. };
  234. &emmc {
  235.         clock-frequency = <100000000>;
  236.         clock-freq-min-max = <400000 100000000>;

  237.         supports-highspeed;
  238.         supports-emmc;
  239.         bootpart-no-access;

  240.         //supports-tSD;//only tsd-sdcard mode
  241.         supports-DDR_MODE;
  242.         caps2-mmc-hs200;

  243.         ignore-pm-notify;
  244.                 keep-power-in-suspend;
  245.                 //poll-hw-reset
  246.                 status = "okay";
  247. };
  248.    
  249. &sdmmc {
  250.                 clock-frequency = <50000000>;
  251.                 lock-freq-min-max = <400000 50000000>;
  252.                 supports-highspeed;
  253.                 supports-sd;
  254.                 broken-cd;
  255.                 card-detect-delay = <200>;

  256.                 ignore-pm-notify;
  257.                 keep-power-in-suspend;
  258.        
  259.                 vmmc-supply = <&ldo1_reg>;
  260.                 status = "okay";
  261. };
  262.                
  263. &sdio {
  264.                 clock-frequency = <50000000>;
  265.                 clock-freq-min-max = <200000 50000000>;
  266.                 supports-highspeed;
  267.                 supports-sdio;
  268.                 ignore-pm-notify;
  269.                 keep-power-in-suspend;
  270.                 //cap-sdio-irq;
  271.                 status = "okay";
  272. };

  273. &spi0 {
  274.         status = "okay";
  275.         max-freq = <48000000>;       
  276.     spidev@00 {
  277.         compatible = "linux,spidev";
  278.         reg = <0x00>;
  279.         spi-max-frequency = <48000000>;
  280.     };
  281.         /*
  282.         spi_test@00 {
  283.                      compatible = "rockchip,spi_test_bus0_cs0";
  284.                 reg = <0>;
  285.                 spi-max-frequency = <24000000>;
  286.                 //spi-cpha;
  287.                 //spi-cpol;
  288.                 poll_mode = <0>;
  289.                 type = <0>;
  290.                 enable_dma = <0>;

  291.         };

  292.         spi_test@01 {
  293.                 compatible = "rockchip,spi_test_bus0_cs1";
  294.                 reg = <1>;
  295.                 spi-max-frequency = <24000000>;
  296.                 spi-cpha;
  297.                 spi-cpol;
  298.                 poll_mode = <0>;
  299.                 type = <0>;
  300.                 enable_dma = <0>;                
  301.         };
  302.         */
  303. };

  304. &spi1 {
  305.         status = "disabled";
  306.         max-freq = <48000000>;
  307.         /*
  308.         spi_test@10 {
  309.                 compatible = "rockchip,spi_test_bus1_cs0";
  310.                 reg = <0>;
  311.                 spi-max-frequency = <24000000>;
  312.                 //spi-cpha;
  313.                 //spi-cpol;
  314.                 poll_mode = <0>;
  315.                 type = <0>;
  316.                 enable_dma = <0>;
  317.         };

  318.         */
  319.         //dtv: connect to dtv demodulator for control signal
  320.         tstv-ctrl@00 {
  321.                 compatible = "rockchip,dtv_spi_ctrl";
  322.                 gpio-powerup = <&gpio0 GPIO_D7 GPIO_ACTIVE_HIGH>;
  323.                 gpio-powerdown = <&gpio2 GPIO_B6 GPIO_ACTIVE_HIGH>;
  324.                 gpio-reset = <&gpio2 GPIO_B7 GPIO_ACTIVE_HIGH>;
  325.                 gpio-nreset = <&gpio2 GPIO_B4 GPIO_ACTIVE_HIGH>;
  326.                 spi-max-frequency = <12000000>;
  327.                 reg = <0>;
  328.                 poll_mode = <0>;
  329.                 type = <0>;
  330.                 enable_dma = <0>;
  331.         };

  332. };

  333. &spi2 {
  334.         status = "disabled";
  335.         max-freq = <48000000>;
  336.         /*
  337.         spi_test@20 {
  338.                 compatible = "rockchip,spi_test_bus2_cs0";
  339.                 reg = <0>;
  340.                 spi-max-frequency = <24000000>;
  341.                 //spi-cpha;
  342.                 //spi-cpol;
  343.                 poll_mode = <0>;
  344.                 type = <0>;
  345.                 enable_dma = <0>;
  346.         };

  347.         spi_test@21 {
  348.                 compatible = "rockchip,spi_test_bus2_cs1";
  349.                 reg = <1>;
  350.                 spi-max-frequency = <24000000>;
  351.                 //spi-cpha;
  352.                 //spi-cpol;
  353.                 poll_mode = <0>;
  354.                 type = <0>;
  355.                 enable_dma = <0>;
  356.         };
  357.         */
  358. };



  359. &uart_bt {
  360.         status = "okay";
  361.         dma-names = "!tx", "!rx";
  362.         pinctrl-0 = <&uart0_xfer &uart0_cts>;
  363. };

  364. &uart_dbg {
  365.         status = "okay";
  366. };

  367. &uart_bb {
  368.     status = "okay";
  369. };

  370. &uart_gps {
  371.     status = "okay";
  372. };

  373. &i2c0 {
  374.         status = "okay";
  375.         rk808: rk808@1b {
  376.                 reg = <0x1b>;
  377.                 status = "okay";
  378.         };
  379.                 syr827: syr827@40 {
  380.                 compatible = "silergy,syr82x";
  381.           reg = <0x40>;
  382.                 status = "okay";
  383.                 regulators {
  384.                         #address-cells = <1>;
  385.                         #size-cells = <0>;       
  386.                         syr827_dc1: regulator@0 {
  387.                         reg = <0>;
  388.                         regulator-compatible = "syr82x_dcdc1";
  389.                         regulator-name = "vdd_arm";
  390.                         regulator-min-microvolt = <712500>;
  391.                         regulator-max-microvolt = <1500000>;
  392.                         regulator-always-on;
  393.                         regulator-boot-on;
  394.                         regulator-initial-mode = <0x2>;
  395.                         regulator-initial-state = <3>;
  396.                         regulator-state-mem {
  397.                                 regulator-state-mode = <0x2>;
  398.                                 regulator-state-enabled;
  399.                                 regulator-state-uv = <900000>;
  400.                         };
  401.                 };
  402.            };
  403.         };
  404.         syr828: syr828@41 {
  405.                 compatible = "silergy,syr82x";
  406.                 reg = <0x41>;
  407.                 status = "okay";
  408.                 regulators {
  409.                         #address-cells = <1>;
  410.                         #size-cells = <0>;       
  411.                         syr828_dc1: regulator@0 {
  412.                         reg = <0>;
  413.                         regulator-compatible = "syr82x_dcdc1";
  414.                         regulator-name = "vdd_gpu";
  415.                         regulator-min-microvolt = <712500>;
  416.                         regulator-max-microvolt = <1500000>;
  417.                         regulator-always-on;
  418.                   regulator-boot-on;
  419.                         regulator-initial-mode = <0x2>;
  420.                         regulator-initial-state = <3>;
  421.                         regulator-state-mem {
  422.                                 regulator-state-mode = <0x2>;
  423.                                 regulator-state-disabled;
  424.                                 regulator-state-uv = <900000>;
  425.                         };       
  426.                 };
  427.            };
  428.         };
  429.         act8846: act8846@5a {
  430.                 reg = <0x5a>;
  431.                 status = "okay";
  432.         };
  433.        
  434.         rtc@51 {
  435.                 compatible = "rtc,hym8563";
  436.                 reg = <0x51>;
  437.                 irq_gpio = <&gpio7 GPIO_A4 IRQ_TYPE_EDGE_FALLING>;
  438.         };
  439. };

  440. &i2c1 {
  441.         status = "okay";
  442.         rtc@51 {
  443.                 compatible = "nxp,pcf8563";
  444.                 reg = <0x51>;
  445.         };
  446.         synaptics_ts@20 {
  447.                 status = "disabled";
  448.                 compatible = "synaptics,synaptics_dsx";
  449.                 reg = <0x20>;
  450.                 touch-gpio = <&gpio8 GPIO_A7 IRQ_TYPE_EDGE_FALLING>;
  451.                 reset-gpio = <&gpio5 GPIO_B1 GPIO_ACTIVE_LOW>;
  452.                 //power-gpio = <&gpio0 GPIO_C5 GPIO_ACTIVE_LOW>;
  453.                 max-x = <1080>;
  454.                 max-y = <1920>;
  455.                 flip-x = <0>;
  456.                 flip-y = <0>;
  457.         };
  458.              mt@40 {
  459.                 status = "disabled";
  460.                        compatible = "firefly,gsl3680";
  461.                       reg = <0x40>;
  462.                        touch-gpio = <&gpio5 GPIO_B0 IRQ_TYPE_EDGE_RISING>;
  463.                        reset-gpio = <&gpio7 GPIO_B1 GPIO_ACTIVE_LOW>;
  464.                        max-y = <2048>;
  465.                        max-x = <1536>;
  466.                 flip-x = <1>;
  467.                 flip-y = <1>;
  468.                 swap-xy = <0>;
  469.         };

  470.         ts@41 {
  471.                 status = "disabled";
  472.                 compatible = "firefly,gsl3680";
  473.                       reg = <0x41>;
  474.                  touch-gpio = <&gpio8 GPIO_A7 IRQ_TYPE_EDGE_RISING>;
  475.                  //reset-gpio = <&gpio8 GPIO_A6 GPIO_ACTIVE_LOW>;
  476.                  max-x = <1280>;
  477.                  max-y = <800>;
  478.                 flip-x = <0>;
  479.                 flip-y = <0>;
  480.                 swap-xy = <1>;
  481.             };
  482.         mpu6050:mpu@68{
  483.             status = "disabled";
  484.             compatible = "mpu6050";
  485.             reg = <0x68>;
  486.             mpu-int_config = <0x10>;
  487.             mpu-level_shifter = <0>;
  488.             mpu-orientation = <0 1 0 1 0 0 0 0 1>;
  489.             orientation-x= <1>;
  490.             orientation-y= <1>;
  491.             orientation-z= <1>;
  492.             irq-gpio = <&gpio5 GPIO_B4 IRQ_TYPE_LEVEL_LOW>;
  493.             mpu-debug = <0>;
  494.         };


  495. };

  496. &i2c2 {
  497.         status = "okay";
  498.         es8323: es8323@10 {
  499.             compatible = "es8323";
  500.                 reg = <0x10>;
  501.                 spk-con-gpio = <&gpio0 GPIO_B2 GPIO_ACTIVE_HIGH>;
  502.                 hp-det-gpio = <&gpio7 GPIO_B7 GPIO_ACTIVE_HIGH>;
  503.                 hp-mic-only = <1>;
  504.                 clocks = <&clk_i2s>, <&clk_i2s_out>;
  505.                 clock-names = "i2s_clk","i2s_mclk";
  506.                 pinctrl-names = "default";
  507.                 pinctrl-0 = <&i2s_mclk>;
  508.         };
  509. };

  510. &i2c3 {
  511.         status = "okay";
  512. };

  513. &i2c4 {
  514.         status = "okay";
  515.         rk1000_control@40 {
  516.                 compatible = "rockchip,rk1000_control";
  517.                 reg = <0x40>;
  518.                 gpio-reset = <&gpio7 GPIO_C5 GPIO_ACTIVE_LOW>;
  519.                 clocks = <&clk_i2s>, <&clk_i2s_out>;
  520.                 clock-names = "i2s_clk","i2s_mclk";
  521.                 //pinctrl-names = "default";
  522.                 //pinctrl-0 = <&i2s_mclk>;
  523.         };
  524.         rk1000_tve@42 {
  525.                 compatible = "rockchip,rk1000_tve";
  526.                 reg = <0x42>;
  527. //                gpio-switch = <&gpio3 GPIO_D4 GPIO_ACTIVE_LOW>;
  528.                 rockchip,source = <0>; //0: LCDC0; 1: LCDC1
  529.                 rockchip,prop = <PRMRY>;//<EXTEND>
  530.         };
  531.         rk1000_codec: rk1000_codec@60 {
  532.                 compatible = "rockchip,rk1000_codec";
  533.                 reg = <0x60>;
  534.                 spk_ctl_io = <&gpio7 GPIO_A5 GPIO_ACTIVE_LOW>;
  535.                 boot_depop = <1>;
  536.                 pa_enable_time = <5000>;
  537.         };
  538.         vga_ddc@50 {
  539.                 compatible = "firefly,vga_ddc";
  540.                 reg = <0x50>;
  541.                 gpio-pwn = <&gpio0 GPIO_C1 GPIO_ACTIVE_HIGH>;
  542.                 rockchip,source = <0>; //0: LCDC0; 1: LCDC1
  543.                 rockchip,prop = <PRMRY>;//<EXTEND>
  544.                 status = "okay";
  545.         };
  546. };

  547. &i2c5 {
  548.         status = "disabled";
  549. };

  550. /*$_rbox_$_modify_$_begin_huangzhibao for rk1000*/
  551. //&i2s{
  552. //    pinctrl-names = "default", "sleep";
  553. //                pinctrl-0 = <&i2s_sclk &i2s_lrckrx &i2s_lrcktx &i2s_sdi &i2s_sdo0 &i2s_sdo1 &i2s_sdo2 &i2s_sdo3>;
  554. //                pinctrl-1 = <&i2s_gpio>;
  555. //};
  556. /*$_rbox_$_modify_$_end*/

  557. &fb {
  558.         rockchip,disp-mode = <DUAL>;
  559.         rockchip,uboot-logo-on = <0>;
  560.         rockchip,disp-policy = <DISPLAY_POLICY_BOX_TEMP>;
  561. };

  562. // kou default
  563. //&disp_timings {
  564. //        native-mode = <&timing1>;
  565. //};


  566. // kou custom
  567. &disp_timings {
  568.         native-mode = <&timing0>;
  569. };


  570. &rk_screen {
  571.          display-timings = <&disp_timings>;
  572. };

  573. /*lcdc0 as PRMRY(HDMI),lcdc1 as EXTEND(RK1000)*/
  574. &lcdc0 {
  575.         status = "okay";
  576.         rockchip,iommu-enabled = <1>;
  577.         rockchip,prop = <PRMRY>;
  578. };

  579. &lcdc1 {
  580.         status = "okay";
  581.         rockchip,iommu-enabled = <1>;
  582.         rockchip,prop = <EXTEND>;
  583. };

  584. &hdmi {
  585.         status = "okay";
  586.         rockchips,hdmi_audio_source = <0>;
  587.         hdmi_cec = <0>;
  588. };

  589. &adc {
  590.         status = "okay";

  591.         key {
  592.                 compatible = "rockchip,key";
  593.                
  594.                 io-channels = <&adc 1>;
  595.                 /*
  596.                 vol-up-key {
  597.                         linux,code = <115>;
  598.                         label = "volume up";
  599.                         rockchip,adc_value = <1>;
  600.                 };

  601.                 vol-down-key {
  602.                         linux,code = <114>;
  603.                         label = "volume down";
  604.                         rockchip,adc_value = <170>;
  605.                 };
  606.                 */
  607.                 power-key {
  608.                         gpios = <&gpio0 GPIO_A5 GPIO_ACTIVE_LOW>;
  609.                         linux,code = <116>;
  610.                         label = "power";
  611.                         gpio-key,wakeup;
  612.                 };
  613.                 recovery-key {
  614.                         linux,code = <113>;
  615.                         label = "recovery";
  616.                         rockchip,adc_value = <4>;
  617.                 };
  618.                 /*
  619.                 menu-key {
  620.                         linux,code = <59>;
  621.                         label = "menu";
  622.                         rockchip,adc_value = <355>;
  623.                 };

  624.                 home-key {
  625.                         linux,code = <102>;
  626.                         label = "home";
  627.                         rockchip,adc_value = <746>;
  628.                 };

  629.                 back-key {
  630.                         linux,code = <158>;
  631.                         label = "back";
  632.                         rockchip,adc_value = <560>;
  633.                 };

  634.                 camera-key {
  635.                         linux,code = <212>;
  636.                         label = "camera";
  637.                         rockchip,adc_value = <450>;
  638.                 };*/
  639.         };
  640. };

  641. /*&pwm0 {
  642.         interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
  643.         status = "okay";
  644. };
  645. */

  646. &pwm1 {
  647.         status = "disabled";
  648. };


  649. &clk_core_dvfs_table {
  650.         support-pvtm = <0>;
  651.         pvtm-operating-points = <
  652.                 /* KHz    uV         pvtm margin*/
  653.                 126000 900000        25000
  654.                 216000 900000        25000
  655.                 312000 900000        25000
  656.                 408000 900000        25000
  657.                 600000 950000        50000
  658.                 696000 950000        25000
  659.                 816000 1000000        25000
  660.                 1008000 1050000        25000
  661.                 1200000 1100000        25000
  662.                 1416000 1200000        25000
  663.                 1512000 1300000        25000
  664.                 1608000 1350000        25000
  665.                 1704000 1350000        25000
  666.                 1800000 1350000        25000
  667.                 >;
  668.         status="okay";
  669. };

  670. &clk_gpu_dvfs_table {
  671.         operating-points = <
  672.                 /* KHz    uV */
  673. //                100000 900000
  674.                 200000 900000
  675.                 300000 950000
  676.                 420000 1100000
  677.                 500000 1150000
  678.         //        600000 1250000
  679.                 >;
  680.         status="okay";
  681. };

  682. &clk_ddr_dvfs_table {
  683.         operating-points = <
  684.                 /* KHz    uV */
  685.                 200000 1075000
  686.                 300000 1075000               
  687.                 456000 1125000
  688.                 533000 1150000
  689.                 >;

  690.         freq-table = <
  691.                 /*status                freq(KHz)*/
  692.                 SYS_STATUS_NORMAL        456000
  693.                 SYS_STATUS_SUSPEND        200000
  694.                 //SYS_STATUS_VIDEO_1080P  240000
  695.                 SYS_STATUS_VIDEO_4K     456000
  696.                 SYS_STATUS_PERFORMANCE  533000
  697.                 //SYS_STATUS_BOOST        324000
  698.                 //SYS_STATUS_ISP                400000
  699.                 >;
  700.         auto-freq-table = <
  701.                 240000
  702.                 324000
  703.                 456000
  704.                 528000
  705.                 >;
  706.         auto-freq=<0>;
  707.         status="okay";
  708. };
  709. /include/ "act8846.dtsi"
  710. &act8846 {
  711.         gpios =<&gpio7 GPIO_B6 GPIO_ACTIVE_LOW>,<&gpio0 GPIO_A1 GPIO_ACTIVE_HIGH>;
  712.         cpu_det_gpio =<&gpio7 GPIO_B2 GPIO_ACTIVE_LOW>;
  713.         usb_hub_reset_gpio =<&gpio8 GPIO_A3 GPIO_ACTIVE_LOW>;
  714.         act8846,system-power-controller;

  715.         regulators {
  716.                
  717.                 dcdc1_reg: regulator@0{
  718.                         regulator-name= "act_dcdc1";
  719.                         regulator-min-microvolt = <1200000>;
  720.                         regulator-max-microvolt = <1200000>;
  721.                         regulator-always-on;
  722.                         regulator-boot-on;
  723.                 };

  724.                 dcdc2_reg: regulator@1 {
  725.                         regulator-name= "vccio";
  726.                         regulator-min-microvolt = <3300000>;
  727.                         regulator-max-microvolt = <3300000>;
  728.                         regulator-initial-state = <3>;
  729.                         regulator-state-mem {
  730.                                 regulator-state-enabled;
  731.                                 regulator-state-uv = <3300000>;
  732.                         };               
  733.                 };

  734.                 dcdc3_reg: regulator@2 {
  735.                         regulator-name= "vdd_logic";
  736.                         regulator-min-microvolt = <700000>;
  737.                         regulator-max-microvolt = <1500000>;
  738.                         regulator-initial-state = <3>;
  739.                         regulator-state-mem {
  740.                                 regulator-state-enabled;
  741.                                 regulator-state-uv = <1200000>;
  742.                         };               
  743.                
  744.                 };

  745.                 dcdc4_reg: regulator@3 {
  746.                         regulator-name= "act_dcdc4";
  747.                         regulator-min-microvolt = <2000000>;
  748.                         regulator-max-microvolt = <2000000>;
  749.                                 regulator-initial-state = <3>;
  750.                         regulator-state-mem {
  751.                                 regulator-state-enabled;
  752.                                 regulator-state-uv = <2000000>;
  753.                         };
  754.                 };

  755.                 ldo1_reg: regulator@4 {
  756.                         regulator-name= "vccio_sd";
  757.                         regulator-min-microvolt = <1800000>;
  758.                         regulator-max-microvolt = <3300000>;
  759.                        
  760.                 };

  761.                 ldo2_reg: regulator@5 {
  762.                         regulator-name= "act_ldo2";
  763.                         regulator-min-microvolt = <1050000>;
  764.                         regulator-max-microvolt = <1050000>;
  765.                
  766.                 };

  767.                 ldo3_reg: regulator@6 {
  768.                         regulator-name= "act_ldo3";
  769.                         regulator-min-microvolt = <2800000>;
  770.                         regulator-max-microvolt = <2800000>;
  771.                        
  772.                 };

  773.                 ldo4_reg:regulator@7 {
  774.                         regulator-name= "act_ldo4";
  775.                         regulator-min-microvolt = <3300000>;
  776.                         regulator-max-microvolt = <3300000>;
  777.                
  778.                 };

  779.                 ldo5_reg: regulator@8 {
  780.                         regulator-name= "act_ldo5";
  781.                         regulator-min-microvolt = <3300000>;
  782.                         regulator-max-microvolt = <3300000>;
  783.                
  784.                 };

  785.                 ldo6_reg: regulator@9 {
  786.                         regulator-name= "act_ldo6";
  787.                         regulator-min-microvolt = <1100000>;
  788.                         regulator-max-microvolt = <1100000>;
  789.                         regulator-initial-state = <3>;
  790.                         regulator-state-mem {
  791.                                 regulator-state-enabled;
  792.                         };
  793.                        
  794.                 };

  795.                 ldo7_reg: regulator@10 {
  796.                         regulator-name= "vcc_18";
  797.                         regulator-min-microvolt = <1800000>;
  798.                         regulator-max-microvolt = <1800000>;
  799.                         regulator-initial-state = <3>;
  800.                         regulator-state-mem {
  801.                                 regulator-state-enabled;
  802.                         };
  803.                
  804.                 };

  805.                 ldo8_reg: regulator@11 {
  806.                         regulator-name= "act_ldo8";
  807.                         regulator-min-microvolt = <1850000>;
  808.                         regulator-max-microvolt = <1850000>;
  809.                
  810.                 };
  811.         };
  812. };

  813. /include/ "rk808.dtsi"
  814. &rk808 {
  815.         gpios =<&gpio0 GPIO_A4 GPIO_ACTIVE_HIGH>,<&gpio0 GPIO_B3 GPIO_ACTIVE_LOW>;
  816.         rk808,system-power-controller;

  817.         regulators {
  818.                
  819.                 rk808_dcdc1_reg: regulator@0{
  820.                         regulator-name= "vdd_arm";
  821.                         regulator-always-on;
  822.                         regulator-boot-on;
  823.                 };

  824.                 rk808_dcdc2_reg: regulator@1 {
  825.                         regulator-name= "vdd_gpu";
  826.                         regulator-always-on;
  827.                         regulator-boot-on;
  828.                 };

  829.                 rk808_dcdc3_reg: regulator@2 {
  830.                         regulator-name= "rk_dcdc3";
  831.                         regulator-min-microvolt = <1200000>;
  832.                         regulator-max-microvolt = <1200000>;
  833.                         regulator-always-on;
  834.                         regulator-boot-on;
  835.                 };

  836.                 rk808_dcdc4_reg: regulator@3 {
  837.                         regulator-name= "vccio";
  838.                         regulator-min-microvolt = <1800000>;
  839.                         regulator-max-microvolt = <3300000>;
  840.                         regulator-always-on;
  841.                         regulator-boot-on;
  842.                 };

  843.     /* NO USED, 3.3V*/
  844.                 rk808_ldo1_reg: regulator@4 {
  845.                         regulator-name= "rk_ldo1";
  846.                         regulator-min-microvolt = <3300000>;
  847.                         regulator-max-microvolt = <3300000>;
  848.                         regulator-always-on;
  849.                         regulator-boot-on;
  850.                 };

  851.     /* BOX:RK1000s, 3.3V  */
  852.                 rk808_ldo2_reg: regulator@5 {
  853.                         regulator-name= "rk_ldo2";
  854.                         regulator-min-microvolt = <3300000>;
  855.                         regulator-max-microvolt = <3300000>;
  856.                         regulator-always-on;
  857.                         regulator-boot-on;
  858.                 };

  859.     /* RK3288 PLL,USB PHY, 1.0V */
  860.                 rk808_ldo3_reg: regulator@6 {
  861.                         regulator-name= "rk_ldo3";
  862.                         regulator-min-microvolt = <1000000>;
  863.                         regulator-max-microvolt = <1000000>;
  864.                         regulator-always-on;
  865.                         regulator-boot-on;
  866.                 };

  867.     /* BOX:RK1000S CORE, 1.8V  */
  868.                 rk808_ldo4_reg:regulator@7 {
  869.                         regulator-name= "rk_ldo4";
  870.                         regulator-min-microvolt = <1800000>;
  871.                         regulator-max-microvolt = <1800000>;
  872.                         regulator-always-on;
  873.                         regulator-boot-on;
  874.                 };
  875.    
  876.     /* SDMMC IO, 3.3V*/
  877.                 rk808_ldo5_reg: regulator@8 {
  878.                         regulator-name= "rk_ldo5";
  879.                         regulator-min-microvolt = <3300000>;
  880.                         regulator-max-microvolt = <3300000>;
  881.                         regulator-always-on;
  882.                         regulator-boot-on;
  883.                 };
  884.    
  885.     /* CAMERA, 1.8V  box modify*/
  886.                 rk808_ldo6_reg: regulator@9 {
  887.                         regulator-name= "rk_ldo6";
  888.                         regulator-min-microvolt = <1800000>;
  889.                         regulator-max-microvolt = <1800000>;
  890.                         regulator-always-on;
  891.                         regulator-boot-on;
  892.                 };

  893.     /* RK3288 USB PHY, SAR-ADC, WIFI IO, 1.8V */
  894.                 rk808_ldo7_reg: regulator@10 {
  895.                         regulator-name= "rk_ldo7";
  896.                         regulator-min-microvolt = <1800000>;
  897.                         regulator-max-microvolt = <1800000>;
  898.                         regulator-always-on;
  899.                         regulator-boot-on;
  900.                 };

  901.     /* DTV, 3.3V  box modify*/
  902.                 rk808_ldo8_reg: regulator@11 {
  903.                         regulator-name= "rk_ldo8";
  904.                         regulator-min-microvolt = <3300000>;
  905.                         regulator-max-microvolt = <3300000>;
  906.                         regulator-always-on;
  907.                         regulator-boot-on;
  908.                 };

  909.                 rk808_ldo9_reg: regulator@12 {
  910.                         regulator-name= "rk_ldo9";
  911.                         regulator-always-on;
  912.                         regulator-boot-on;
  913.                 };

  914.                 rk808_ldo10_reg: regulator@13 {
  915.                         regulator-name= "rk_ldo10";
  916.                         regulator-always-on;
  917.                         regulator-boot-on;
  918.                 };
  919.         };
  920. };

  921. &vpu {
  922.         iommu_enabled = <1>;
  923. };

  924. &lcdc_vdd_domain {
  925.         regulator-name = "vcc30_lcd";
  926.         };
  927. &dpio_vdd_domain{
  928.         regulator-name = "vcc18_cif";       
  929.         };
  930. &flash0_vdd_domain{
  931.         regulator-name = "vcc_flash";       
  932.         };
  933. &flash1_vdd_domain{
  934.         regulator-name = "vcc_flash";                       
  935.         };
  936. &apio3_vdd_domain{
  937.         regulator-name = "vccio_wl";               
  938.         };
  939. &apio5_vdd_domain{
  940.         regulator-name = "vccio";               
  941.         };
  942. &apio4_vdd_domain{
  943.         regulator-name = "vccio";               
  944.         };
  945. &apio1_vdd_domain{
  946.         regulator-name = "vccio";                       
  947.         };
  948. &apio2_vdd_domain{
  949.         regulator-name = "vccio";               
  950.         };
  951. &sdmmc0_vdd_domain{
  952.         regulator-name = "vcc_sd";                       
  953.         };
  954. /*
  955. &remotectl {
  956.         handle_cpu_id = <1>;
  957.         status = "okay";
  958.         ir_key1{
  959.                 rockchip,usercode = <0xff00>;
  960.                 rockchip,key_table =
  961.                         <0xeb   KEY_POWER>,
  962.                         <0xec   KEY_MENU>,
  963.                         <0xfe   KEY_BACK>,
  964.                         <0xb7   KEY_HOME>,
  965.                         <0xa3   250>,
  966.                         <0xf4   KEY_VOLUMEUP>,
  967.                         <0xa7   KEY_VOLUMEDOWN>,
  968.                         <0xf8   KEY_REPLY>,
  969.                         <0xfc   KEY_UP>,
  970.                         <0xfd   KEY_DOWN>,
  971.                         <0xf1   KEY_LEFT>,
  972.                         <0xe5   KEY_RIGHT>;
  973.         };
  974. };
  975. */
  976. /*
  977. * Due to not have the software of PWM for remotectrl.
  978. * We can _*HACK*_ do that as the following.
  979. */
  980. &pwm0 {
  981.         compatible = "rockchip,remotectl-pwm";
  982.         remote_pwm_id = <0>;
  983.         handle_cpu_id = <1>;
  984.         status = "okay";

  985.         ir_key1{
  986.                 rockchip,usercode = <0xff00>;
  987.                 rockchip,key_table =
  988.                         <0xeb   KEY_POWER>,
  989.                         <0xec   KEY_MENU>,
  990.                         <0xfe   KEY_BACK>,
  991.                         <0xb7   KEY_HOME>,
  992.                         <0xa3   250>,
  993.                         <0xf4   KEY_VOLUMEUP>,
  994.                         <0xa7   KEY_VOLUMEDOWN>,
  995.                         <0xf8   KEY_REPLY>,
  996.                         <0xfc   KEY_UP>,
  997.                         <0xfd   KEY_DOWN>,
  998.                         <0xf1   KEY_LEFT>,
  999.                         <0xe5   KEY_RIGHT>;
  1000.         };
  1001. };
  1002.        
复制代码


下面是dtsi 文件:   lvds-lcd-box.dtsi
  1. /*
  2. * RockChip. LCD_BOX
  3. *
  4. */

  5. / {
  6.                  disp_power_ctr: power_ctr {
  7.                      /*                        rockchip,debug = <0>;
  8.                         lcd_en:lcd_en {
  9.                                 rockchip,power_type = <GPIO>;
  10.                                 gpios = <&gpio0 GPIO_B0 GPIO_ACTIVE_HIGH>;
  11.                                 rockchip,delay = <10>;
  12.                         };

  13.                         bl_en:bl_en {
  14.                                 rockchip,power_type = <GPIO>;
  15.                                 gpios = <&gpio0 GPIO_A2 GPIO_ACTIVE_HIGH>;
  16.                                 rockchip,delay = <10>;
  17.                         };

  18.                         bl_ctr:bl_ctr {
  19.                                 rockchip,power_type = <GPIO>;
  20.                                 gpios = <&gpio3 GPIO_D6 GPIO_ACTIVE_HIGH>;
  21.                                 rockchip,delay = <10>;
  22.                         };

  23.                         lcd_rst:lcd_rst {
  24.                                 rockchip,power_type = <REGULATOR>;
  25.                                 rockchip,delay = <5>;
  26.                         };*/

  27.                 };

  28.                 disp_timings: display-timings {
  29.                         native-mode = <&timing0>;
  30.                        
  31.                              timing0: timing0 {
  32.                                 screen-type = <SCREEN_LVDS>; // kou
  33.                                 lvds-format = <LVDS_6BIT>;
  34.                                 out-face    = <OUT_P666>;
  35.                                 color-mode = <COLOR_RGB>;
  36.                                 clock-frequency = <75440000>;
  37.                                 hactive = <1366>;
  38.                                 vactive = <768>;
  39.                                 hback-porch = <80>;
  40.                                 hfront-porch = <80>;
  41.                                 vback-porch = <19>;
  42.                                 vfront-porch = <19>;
  43.                                 hsync-len = <44>;
  44.                                 vsync-len = <8>;
  45.                                 hsync-active = <0>;
  46.                                 vsync-active = <0>;
  47.                                 de-active = <0>;
  48.                                 pixelclk-active = <1>;
  49.                                 swap-rb = <0>;
  50.                                 swap-rg = <0>;
  51.                                 swap-gb = <0>;
  52.                              };
  53.                      
  54.                };
  55. };
复制代码

回复

使用道具 举报

102

积分

0

威望

0

贡献

技术小白

积分
102
发表于 2018-7-13 08:26:37     
你的kernel都还走到,你尝试重新下载一下uboot固件或者下载整个android镜像,最后再替换resource.img
回复

使用道具 举报

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

本版积分规则

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