arm64: dts: rockchip: add rk3399 box 0505 board support
[firefly-linux-kernel-4.4.55.git] / arch / arm64 / boot / dts / rockchip / rk3366-tb.dts
index f5cd5f7c81cf5a209b45ecb7a0ea2d2e6acc8a73..3544b15db73f8931c642b247cf589d094085d32d 100644 (file)
@@ -49,7 +49,7 @@
        compatible = "rockchip,tb", "rockchip,rk3366";
 
        chosen {
-               bootargs = "console=uart,mmio32,0xff690000 clk_ignore_unused";
+               bootargs = "console=uart,mmio32,0xff690000";
        };
 
        ion {
                };
        };
 
+       ramoops_mem: ramoops_mem {
+               reg = <0x0 0x100000 0x0 0x100000>;
+               reg-names = "ramoops_mem";
+       };
+
+       ramoops {
+               compatible = "ramoops";
+               record-size = <0x0 0x10000>;
+               console-size = <0x0 0x80000>;
+               ftrace-size = <0x0 0x10000>;
+               pmsg-size = <0x0 0x50000>;
+               memory-region = <&ramoops_mem>;
+       };
+
        backlight: backlight {
                compatible = "pwm-backlight";
                pwms = <&pwm0 0 25000 PWM_POLARITY_INVERTED>;
                WIFI,host_wake_irq = <&gpio3 20 GPIO_ACTIVE_HIGH>; /* GPIO3_c4 */
                status = "okay";
        };
+
+       wireless-bluetooth {
+               compatible = "bluetooth-platdata";
+               //wifi-bt-power-toggle;
+               uart_rts_gpios = <&gpio3 11 GPIO_ACTIVE_LOW>; /* GPIO3_b3 */
+               pinctrl-names = "default","rts_gpio";
+               pinctrl-0 = <&uart0_rts>;
+               pinctrl-1 = <&uart0_rts_gpio>;
+               //BT,power_gpio  = <&gpio3 19 GPIO_ACTIVE_HIGH>; /* GPIO3_c3 */
+               BT,reset_gpio    = <&gpio3 19 GPIO_ACTIVE_HIGH>; /* GPIO3_c3 */
+               BT,wake_gpio     = <&gpio3 18 GPIO_ACTIVE_HIGH>; /* GPIO3_c2 */
+               BT,wake_host_irq = <&gpio3 21 GPIO_ACTIVE_HIGH>; /* GPIO3_c5 */
+               status = "okay";
+       };
+};
+
+&tsadc {
+       status = "okay";
+};
+
+&nandc0 {
+       status = "okay"; /* enable both for emmc and nand */
 };
 
 &emmc {
        status = "okay";
 };
 
+&uart0 {
+       status = "okay";
+       pinctrl-0 = <&uart0_xfer &uart0_cts>;
+};
+
 &saradc {
        status = "okay";
 };
 
 &i2c0 {
        status = "okay";
+       i2c-scl-rising-time-ns = <250>;
+       i2c-scl-falling-time-ns = <20>;
 
        syr827: syr827@40 {
                regulator-name = "vdd_arm";
                regulator-always-on;
                regulator-boot-on;
                regulator-initial-state = <3>;
+               regulator-ramp-delay = <2000>;
                regulator-state-mem {
-                       regulator-on-in-suspend;
+                       regulator-off-in-suspend;
                        regulator-suspend-microvolt = <900000>;
                };
        };
 
 &i2c1 {
        status = "okay";
+       i2c-scl-rising-time-ns = <460>;
+       i2c-scl-falling-time-ns = <15>;
 
        rt5640: rt5640@1c {
                #sound-dai-cells = <0>;
        status = "okay";
 };
 
+&rga {
+       status = "okay";
+};
+
 &uart2 {
        status = "okay";
 };
        status = "okay";
 };
 
+&hdmi {
+       status = "okay";
+       rockchip,hdmi_video_source = <DISPLAY_SOURCE_LCDC1>;
+       rockchip,phy_table =
+               <148500000 0 0 17 18 18 18>,
+               <297000000 1 1 17 14 14 14>,
+               <594000000 1 1 16 5 5 5>;
+};
+
 &vop_lite {
        status = "okay";
        rockchip,prop = <EXTEND>;
        status = "okay";
 };
 
+&iep_mmu {
+       status = "okay";
+};
+
+&vpu_mmu {
+       status = "okay";
+};
+
+&vdec_mmu {
+       status = "okay";
+};
+
+&iep {
+       status = "okay";
+};
+
+&vpu {
+       status = "okay";
+};
+
+&rkvdec {
+       status = "okay";
+};
+
 &vop_big {
        status = "okay";
        rockchip,prop = <PRMRY>;
 };
 
 &pinctrl {
-        pmic {
-                pmic_int_l: pmic-int-l {
-                        rockchip,pins = <0 2 RK_FUNC_GPIO &pcfg_pull_up>;
-                };
-        };
+       pmic {
+               pmic_int_l: pmic-int-l {
+                       rockchip,pins = <0 2 RK_FUNC_GPIO &pcfg_pull_up>;
+               };
+       };
 
        sdio-pwrseq {
                wifi_enable_h: wifienable-h {
                        rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>;
                };
        };
+
+       wireless-bluetooth {
+               uart0_rts_gpio: uart0-rts-gpios {
+                       rockchip,pins = <3 11 RK_FUNC_GPIO &pcfg_pull_none>;
+               };
+       };
 };
 
 &gmac {
        assigned-clock-parents = <&ext_gmac>;
        pinctrl-names = "default";
        pinctrl-0 = <&rgmii_pins>;
-       tx_delay = <0x30>;
-       rx_delay = <0x10>;
+       tx_delay = <0x25>;
+       rx_delay = <0x1d>;
        status = "okay";
 };
 
+&u2phy {
+       vbus_host-gpio = <&gpio0 16 GPIO_ACTIVE_HIGH>;
+};
+
 &dwc_control_usb {
-       host_drv_gpio = <&gpio0 16 GPIO_ACTIVE_LOW>; /* GPIO_C0 = 16 */
        otg_drv_gpio = <&gpio0 10 GPIO_ACTIVE_LOW>; /* GPIO_B2 = 10 */
 
        rockchip,remote_wakeup;
        rockchip,usb_irq_wakeup;
 };
 
-&usb_host0_echi {
+&usb_host0_ehci {
+       assigned-clocks = <&cru SCLK_USBPHY480M>;
+       assigned-clock-parents = <&u2phy>;
        status = "okay";
 };
 
        status = "okay";
 };
 
+&scr {
+       status = "disabled";
+};
+
 &cpu0 {
        cpu-supply = <&syr827>;
-};
\ No newline at end of file
+};
+
+&gpu {
+       mali-supply = <&vdd_logic>;
+       status = "okay";
+};