#include "rk312x-sdk.dtsi"
#include "lcd-box.dtsi"
+#include <dt-bindings/input/input.h>
/ {
compatible = "rockchip,rk3128";
wireless-wlan {
compatible = "wlan-platdata";
- wifi_chip_type = "";
+ wifi_chip_type = "esp8089";
sdio_vref = <0>; //1800mv or 3300mv
//power_ctrl_by_pmu;
//WIFI,reset_gpio = <&gpio0 GPIO_A2 GPIO_ACTIVE_LOW>;
status = "okay";
- };
+ };
- wireless-bluetooth {
- compatible = "bluetooth-platdata";
+ wireless-bluetooth {
+ compatible = "bluetooth-platdata";
- //wifi-bt-power-toggle;
+ //wifi-bt-power-toggle;
- uart_rts_gpios = <&gpio0 GPIO_C2 GPIO_ACTIVE_LOW>;
- pinctrl-names = "default","rts_gpio";
- pinctrl-0 = <&uart0_rts>;
- pinctrl-1 = <&uart0_rts_gpio>;
+ uart_rts_gpios = <&gpio1 GPIO_B3 GPIO_ACTIVE_LOW>;
+ pinctrl-names = "default","rts_gpio";
+ pinctrl-0 = <&uart1_rts>;
+ pinctrl-1 = <&uart1_rts_gpio>;
- //BT,power_gpio = <&gpio4 GPIO_D3 GPIO_ACTIVE_HIGH>;
- BT,reset_gpio = <&gpio3 GPIO_C5 GPIO_ACTIVE_HIGH>;
- BT,wake_gpio = <&gpio1 GPIO_B4 GPIO_ACTIVE_HIGH>;
- BT,wake_host_irq = <&gpio0 GPIO_A2 GPIO_ACTIVE_LOW>;
+ //BT,power_gpio = <&gpio4 GPIO_D3 GPIO_ACTIVE_HIGH>;
+ BT,reset_gpio = <&gpio3 GPIO_C5 GPIO_ACTIVE_HIGH>;
+ BT,wake_gpio = <&gpio1 GPIO_B4 GPIO_ACTIVE_HIGH>;
+ BT,wake_host_irq = <&gpio0 GPIO_C6 GPIO_ACTIVE_LOW>;
- status = "disabled";
+ status = "okay";
};
+
+ rockchip-spdif-card {
+ compatible = "rockchip-spdif-card";
+ dais {
+ dai0 {
+ audio-codec = <&codec_hdmi_spdif>;
+ i2s-controller = <&spdif>;
+ };
+ };
+ };
+
usb_control {
compatible = "rockchip,rk3126-usb-control";
host_drv_gpio = <&gpio3 GPIO_C4 GPIO_ACTIVE_LOW>;
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,ctrbits = <
+ (0
+ |RKPM_CTR_PWR_DMNS
+ |RKPM_CTR_GTCLKS
+ |RKPM_CTR_PLLS
+ |RKPM_CTR_IDLESRAM_MD
+ |RKPM_CTR_DDR
+ |RKPM_CTR_VOLTS
+ |RKPM_CTR_VOL_PWM1
+ |RKPM_CTR_VOL_PWM2
+ )
+ >;
+ };
};
-&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 400000
- 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="disable";
-};
-
-&pwm_regulator1 {
- status = "okay";
-};
+ &clk_core_dvfs_table {
+ operating-points = <
+ /* KHz uV */
+ /*408000 1250000
+ 600000 1250000
+ 696000 1250000
+ */
+ 816000 1100000
+ 1008000 1200000
+ 1200000 1325000
+ >;
-&pwm_regulator2 {
- status = "okay";
-};
+ 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";
+ };
-&pwm1 {
- status = "okay";
+ &clk_gpu_dvfs_table {
+ operating-points = <
+ /* KHz uV */
+ 200000 950000
+ 300000 975000
+ 400000 1075000
+ >;
+ 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";
+ };
+
+ &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 {
status = "okay";
};
+&disp_timings {
+ native-mode = <&timing1>;
+};
+
&rk_screen {
display-timings = <&disp_timings>;
};
+&fb {
+ rockchip,disp-mode = <NO_DUAL>;
+ rockchip,uboot-logo-on = <0>;
+};
+
&lcdc {
status = "okay";
+ rockchip,fb-win-map = <FB0_WIN0_FB1_WIN1_FB2_WIN2>;
+};
+
+&hdmi {
+ status = "okay";
+};
+
+&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>;
+ phy-mode = "rgmii";
+ clock_in_out = "input";
+ tx_delay = <0x30>;
+ rx_delay = <0x10>;
+};
+
+&codec {
+ spk_ctl_io = <&gpio1 GPIO_A3 GPIO_ACTIVE_HIGH>;
+ spk-mute-delay = <200>;
+ hp-mute-delay = <100>;
+ rk312x_for_mid = <0>;
+ is_rk3128 = <0>;
+ spk_volume = <25>;
+ hp_volume = <25>;
+ capture_volume = <26>;
+ gpio_debug = <1>;
+ codec_hp_det = <0>;
+};
+
+&dwc_control_usb {
+ usb_uart {
+ status = "disabled";
+ };
+};
+
+&sdmmc {
+ status = "disabled";
+ cd-gpios = <&gpio1 GPIO_C1 GPIO_ACTIVE_HIGH>;/*CD GPIO*/
+};
+
+&remotectl {
+ handle_cpu_id = <1>;
+ ir_key1{
+ compatible = "rockchip,ir_key";
+ 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{
+ compatible = "rockchip,ir_key";
+ 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{
+ compatible = "rockchip,ir_key";
+ 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>;
+ };*/
+};
\ No newline at end of file