X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=arch%2Farm%2Fboot%2Fdts%2Frk3128-box.dts;h=bcc676e9a6e809f852344c934e8c581a8003b6a1;hb=6a83e7f14032eced131bdee261c8adafeb252fa8;hp=b19a86535a593f6728346aa2e9487fe9b963bf1b;hpb=28ffed9f6a3930bd03dfac19e4756b5b0c7906b4;p=firefly-linux-kernel-4.4.55.git diff --git a/arch/arm/boot/dts/rk3128-box.dts b/arch/arm/boot/dts/rk3128-box.dts index b19a86535a59..bcc676e9a6e8 100755 --- a/arch/arm/boot/dts/rk3128-box.dts +++ b/arch/arm/boot/dts/rk3128-box.dts @@ -1,14 +1,29 @@ +/dts-v1/; + +#include "rk3128.dtsi" #include "rk312x-sdk.dtsi" #include "lcd-box.dtsi" +#include / { compatible = "rockchip,rk3128"; + gpio_poweroff { + compatible = "gpio-poweroff"; + gpios = <&gpio1 GPIO_A2 GPIO_ACTIVE_LOW>; + }; wireless-wlan { compatible = "wlan-platdata"; + /* wifi_chip_type - wifi chip define + * bcmwifi ==> like ap6xxx, rk90, ...x; + * rtkwifi ==> like rtl8188xx, rtl8723xx, ...; + * esp8089 ==> esp8089; + * other ==> for other wifi; + */ wifi_chip_type = "esp8089"; sdio_vref = <0>; //1800mv or 3300mv + //keep_wifi_power_on; //power_ctrl_by_pmu; //power_pmu_regulator = "act_ldo3"; //power_pmu_enable_level = <1>; //1->HIGH, 0->LOW @@ -42,6 +57,27 @@ status = "okay"; }; + + rockchip-spdif-card { + compatible = "rockchip-spdif-card"; + dais { + dai0 { + audio-codec = <&codec_hdmi_spdif>; + audio-controller = <&spdif>; + }; + }; + }; + power-led { + compatible = "gpio-leds"; + power { + gpios = <&gpio0 GPIO_B0 GPIO_ACTIVE_LOW>; + default-state = "on"; + }; + work { + gpios = <&gpio0 GPIO_D2 GPIO_ACTIVE_HIGH>; + default-state = "on"; + }; + }; usb_control { compatible = "rockchip,rk3126-usb-control"; host_drv_gpio = <&gpio3 GPIO_C4 GPIO_ACTIVE_LOW>; @@ -50,79 +86,137 @@ rockchip,remote_wakeup; rockchip,usb_irq_wakeup; }; + usb0: usb@10180000 { + /*0 - Normal, 1 - Force Host, 2 - Force Device*/ +// rockchip,usb-mode = <1>; + }; + + rockchip_suspend: rockchip_suspend { + rockchip,ctrbits = < + (0 + |RKPM_CTR_PWR_DMNS + |RKPM_CTR_GTCLKS + |RKPM_CTR_PLLS + //|RKPM_CTR_ARMOFF_LPMD + |RKPM_CTR_DDR + |RKPM_CTR_IDLESRAM_MD + |RKPM_CTR_DDR + //|RKPM_CTR_BUS_IDLE + //|RKPM_CTR_VOLTS + //|RKPM_CTR_VOL_PWM1 + //|RKPM_CTR_VOL_PWM2 + ) + >; + rockchip,pmic-suspend_gpios = < + 0 + >; + }; }; -&clk_core_dvfs_table { - operating-points = < - /* KHz uV */ - /*408000 1250000 - 600000 1250000 - 696000 1250000 - */ - 816000 1250000 - 1008000 1250000 - >; - status="okay"; -}; - -&clk_gpu_dvfs_table { - operating-points = < - /* KHz uV */ - 200000 1250000 - 300000 1250000 - >; - status="okay"; -}; - -&clk_ddr_dvfs_table { - operating-points = < - /* KHz uV */ - 200000 950000 - 300000 950000 - 400000 1000000 - 533000 1050000 - >; - - freq-table = < - /*status freq(KHz)*/ - SYS_STATUS_NORMAL 533000 - SYS_STATUS_SUSPEND 200000 - /* - SYS_STATUS_VIDEO_1080P 240000 - SYS_STATUS_VIDEO_4K 400000 - SYS_STATUS_PERFORMANCE 528000 - SYS_STATUS_DUALVIEW 400000 - SYS_STATUS_BOOST 324000 - SYS_STATUS_ISP 533000 - */ - >; - auto-freq-table = < - 240000 - 324000 - 396000 - 528000 - >; - auto-freq=<0>; - status="okay"; -}; - -&pwm_regulator1 { - status = "okay"; -}; + &clk_core_dvfs_table { + operating-points = < + /* KHz uV */ + /*408000 1250000 + 600000 1250000 + 696000 1250000 + */ + 816000 1100000 + 1008000 1200000 + 1200000 1325000 + >; + + virt-temp-limit-1-cpu-busy = < + /* target-temp limit-freq */ + 75 1008000 + 85 1200000 + 95 1200000 + 100 1200000 + >; + virt-temp-limit-2-cpu-busy = < + /* target-temp limit-freq */ + 75 912000 + 85 1008000 + 95 1104000 + 100 1200000 + >; + virt-temp-limit-3-cpu-busy = < + /* target-temp limit-freq */ + 75 816000 + 85 912000 + 95 100800 + 100 110400 + >; + virt-temp-limit-4-cpu-busy = < + /* target-temp limit-freq */ + 75 696000 + 85 816000 + 95 912000 + 100 100800 + >; + temp-limit-enable = <1>; + target-temp = <85>; + status="okay"; + }; -&pwm_regulator2 { - status = "okay"; -}; + &clk_gpu_dvfs_table { + operating-points = < + /* KHz uV */ + 200000 950000 + 300000 975000 + 400000 1075000 + >; + status="okay"; + }; -&pwm1 { - status = "okay"; -}; + &clk_ddr_dvfs_table { + operating-points = < + /* KHz uV */ + 200000 950000 + 300000 950000 + 400000 1000000 + 533000 1200000 + >; + + freq-table = < + /*status freq(KHz)*/ + SYS_STATUS_NORMAL 533000 + SYS_STATUS_SUSPEND 200000 + /* + SYS_STATUS_VIDEO_1080P 240000 + SYS_STATUS_VIDEO_4K 400000 + SYS_STATUS_PERFORMANCE 528000 + SYS_STATUS_DUALVIEW 400000 + SYS_STATUS_BOOST 324000 + SYS_STATUS_ISP 533000 + */ + >; + auto-freq-table = < + 240000 + 324000 + 396000 + 528000 + >; + auto-freq=<0>; + status="okay"; + }; -&uart1{ - status = "okay"; - dma-names = "!tx", "!rx"; - pinctrl-0 = <&uart1_xfer &uart1_cts>; + &pwm_regulator1 { + status = "okay"; + }; + + &pwm_regulator2 { + status = "okay"; + }; + + &pwm1 { + status = "okay"; + }; + + &uart1{ + status = "okay"; + dma-names = "!tx", "!rx"; + pinctrl-0 = <&uart1_xfer &uart1_cts>; }; &pwm2 { @@ -139,11 +233,13 @@ &fb { rockchip,disp-mode = ; + rockchip,disp-policy = ; + rockchip,uboot-logo-on = <1>; }; &lcdc { status = "okay"; - rockchip,fb-win-map = ; + rockchip,fb-win-map = ; }; &hdmi { @@ -152,17 +248,52 @@ &tve { status = "okay"; + test_mode = <0>; }; &i2c2 { status = "disabled"; }; +&spi0 { + status = "disabled"; + max-freq = <48000000>; + /* + spi_test@00 { + compatible = "rockchip,spi_test_bus0_cs0"; + reg = <0>; + spi-max-frequency = <24000000>; + //spi-cpha; + //spi-cpol; + poll_mode = <0>; + type = <0>; + enable_dma = <0>; + + }; + + spi_test@01 { + compatible = "rockchip,spi_test_bus0_cs1"; + reg = <1>; + spi-max-frequency = <24000000>; + spi-cpha; + spi-cpol; + poll_mode = <0>; + type = <0>; + enable_dma = <0>; + }; + */ +}; + +&gmac_clkin { + clock-frequency = <125000000>; +}; + &gmac { //pmu_regulator = "act_ldo5"; //pmu_enable_level = <1>; //1->HIGH, 0->LOW //power-gpio = <&gpio0 GPIO_A6 GPIO_ACTIVE_HIGH>; reset-gpio = <&gpio2 GPIO_D0 GPIO_ACTIVE_LOW>; + phyirq-gpio = <&gpio0 GPIO_D1 GPIO_ACTIVE_LOW>; phy-mode = "rgmii"; clock_in_out = "input"; tx_delay = <0x30>; @@ -173,7 +304,7 @@ spk_ctl_io = <&gpio1 GPIO_A3 GPIO_ACTIVE_HIGH>; spk-mute-delay = <200>; hp-mute-delay = <100>; - rk312x_for_mid = <1>; + rk312x_for_mid = <0>; is_rk3128 = <0>; spk_volume = <25>; hp_volume = <25>; @@ -187,3 +318,102 @@ status = "disabled"; }; }; + +&sdmmc { + status = "okay"; + cd-gpios = <&gpio1 GPIO_C1 GPIO_ACTIVE_HIGH>;/*CD GPIO*/ +}; + +&remotectl { + handle_cpu_id = <1>; + ir_key1{ + rockchip,usercode = <0x4040>; + rockchip,key_table = + <0xf2 KEY_REPLY>, + <0xba KEY_BACK>, + <0xf4 KEY_UP>, + <0xf1 KEY_DOWN>, + <0xef KEY_LEFT>, + <0xee KEY_RIGHT>, + <0xbd KEY_HOME>, + <0xea KEY_VOLUMEUP>, + <0xe3 KEY_VOLUMEDOWN>, + <0xe2 KEY_SEARCH>, + <0xb2 KEY_POWER>, + <0xbc KEY_MUTE>, + <0xec KEY_MENU>, + <0xbf 0x190>, + <0xe0 0x191>, + <0xe1 0x192>, + <0xe9 183>, + <0xe6 248>, + <0xe8 185>, + <0xe7 186>, + <0xf0 388>, + <0xbe 0x175>; + }; + ir_key2{ + rockchip,usercode = <0xff00>; + rockchip,key_table = + <0xf9 KEY_HOME>, + <0xbf KEY_BACK>, + <0xfb KEY_MENU>, + <0xaa KEY_REPLY>, + <0xb9 KEY_UP>, + <0xe9 KEY_DOWN>, + <0xb8 KEY_LEFT>, + <0xea KEY_RIGHT>, + <0xeb KEY_VOLUMEDOWN>, + <0xef KEY_VOLUMEUP>, + <0xf7 KEY_MUTE>, + <0xe7 KEY_POWER>, + <0xfc KEY_POWER>, + <0xa9 KEY_VOLUMEDOWN>, + <0xa8 KEY_VOLUMEDOWN>, + <0xe0 KEY_VOLUMEDOWN>, + <0xa5 KEY_VOLUMEDOWN>, + <0xab 183>, + <0xb7 388>, + <0xf8 184>, + <0xaf 185>, + <0xed KEY_VOLUMEDOWN>, + <0xee 186>, + <0xb3 KEY_VOLUMEDOWN>, + <0xf1 KEY_VOLUMEDOWN>, + <0xf2 KEY_VOLUMEDOWN>, + <0xf3 KEY_SEARCH>, + <0xb4 KEY_VOLUMEDOWN>, + <0xbe KEY_SEARCH>; + }; + ir_key3{ + rockchip,usercode = <0x1dcc>; + rockchip,key_table = + <0xee KEY_REPLY>, + <0xf0 KEY_BACK>, + <0xf8 KEY_UP>, + <0xbb KEY_DOWN>, + <0xef KEY_LEFT>, + <0xed KEY_RIGHT>, + <0xfc KEY_HOME>, + <0xf1 KEY_VOLUMEUP>, + <0xfd KEY_VOLUMEDOWN>, + <0xb7 KEY_SEARCH>, + <0xff KEY_POWER>, + <0xf3 KEY_MUTE>, + <0xbf KEY_MENU>, + <0xf9 0x191>, + <0xf5 0x192>, + <0xb3 388>, + <0xbe KEY_1>, + <0xba KEY_2>, + <0xb2 KEY_3>, + <0xbd KEY_4>, + <0xf9 KEY_5>, + <0xb1 KEY_6>, + <0xfc KEY_7>, + <0xf8 KEY_8>, + <0xb0 KEY_9>, + <0xb6 KEY_0>, + <0xb5 KEY_BACKSPACE>; + }; +};