};
};
- wireless-wlan {
- compatible = "wlan-platdata";
+ wireless-wlan {
+ compatible = "wlan-platdata";
- wifi_chip_type = "";
- sdio_vref = <1800>; //1800mv or 3300mv
+ wifi_chip_type = "esp8089";
+ sdio_vref = <0>; //1800mv or 3300mv
- //power_ctrl_by_pmu;
- //power_pmu_regulator = "act_ldo3";
- //power_pmu_enable_level = <1>; //1->HIGH, 0->LOW
+ //power_ctrl_by_pmu;
+ //power_pmu_regulator = "act_ldo3";
+ //power_pmu_enable_level = <1>; //1->HIGH, 0->LOW
- //vref_ctrl_enable;
- //vref_ctrl_gpio = <&gpio0 GPIO_A2 GPIO_ACTIVE_HIGH>;
- //vref_pmu_regulator = "act_ldo3";
- //vref_pmu_enable_level = <1>; //1->HIGH, 0->LOW
+ //vref_ctrl_enable;
+ //vref_ctrl_gpio = <&gpio0 GPIO_A2 GPIO_ACTIVE_HIGH>;
+ //vref_pmu_regulator = "act_ldo3";
+ //vref_pmu_enable_level = <1>; //1->HIGH, 0->LOW
- //WIFI,poweren_gpio = <&gpio4 GPIO_D4 GPIO_ACTIVE_HIGH>;
- //WIFI,host_wake_irq = <&gpio4 GPIO_D6 GPIO_ACTIVE_HIGH>;
- //WIFI,reset_gpio = <&gpio0 GPIO_A2 GPIO_ACTIVE_LOW>;
+ WIFI,poweren_gpio = <&gpio2 GPIO_D6 GPIO_ACTIVE_HIGH>;
+ WIFI,host_wake_irq = <&gpio2 GPIO_C4 GPIO_ACTIVE_HIGH>;
+ //WIFI,reset_gpio = <&gpio0 GPIO_A2 GPIO_ACTIVE_LOW>;
- status = "okay";
+ status = "okay";
};
wireless-bluetooth {
//wifi-bt-power-toggle;
- //uart_rts_gpios = <&gpio4 GPIO_C3 GPIO_ACTIVE_LOW>;
- //pinctrl-names = "default","rts_gpio";
- //pinctrl-0 = <&uart0_rts>;
- //pinctrl-1 = <&uart0_rts_gpio>;
+ uart_rts_gpios = <&gpio0 GPIO_C2 GPIO_ACTIVE_LOW>;
+ pinctrl-names = "default","rts_gpio";
+ pinctrl-0 = <&uart0_rts>;
+ pinctrl-1 = <&uart0_rts_gpio>;
//BT,power_gpio = <&gpio4 GPIO_D3 GPIO_ACTIVE_HIGH>;
- //BT,reset_gpio = <&gpio4 GPIO_D5 GPIO_ACTIVE_HIGH>;
- //BT,wake_gpio = <&gpio4 GPIO_D2 GPIO_ACTIVE_HIGH>;
- //BT,wake_host_irq = <&gpio4 GPIO_D7 GPIO_ACTIVE_LOW>;
+ BT,reset_gpio = <&gpio2 GPIO_D5 GPIO_ACTIVE_HIGH>;
+ BT,wake_gpio = <&gpio2 GPIO_C5 GPIO_ACTIVE_HIGH>;
+ BT,wake_host_irq = <&gpio0 GPIO_A0 GPIO_ACTIVE_LOW>;
status = "okay";
-
};
+
usb_control {
compatible = "rockchip,rk3036-usb-control";
host_drv_gpio = <&gpio2 GPIO_C7 GPIO_ACTIVE_LOW>;
rockchip,remote_wakeup;
rockchip,usb_irq_wakeup;
};
+
+ key {
+ compatible = "rockchip,key";
+ };
+
+ codec_hdmi_i2s: codec-hdmi-i2s {
+ compatible = "hdmi-i2s";
+ };
+
+ rockchip-hdmi-i2s {
+ compatible = "rockchip-hdmi-i2s";
+ dais {
+ dai0 {
+ audio-codec = <&codec_hdmi_i2s>;
+ i2s-controller = <&i2s>;
+ format = "i2s";
+ //continuous-clock;
+ //bitclock-inversion;
+ //frame-inversion;
+ //bitclock-master;
+ //frame-master;
+ };
+ };
+ };
+
+ codec_hdmi_spdif: codec-hdmi-spdif {
+ compatible = "hdmi-spdif";
+ };
+
+ rockchip-hdmi-spdif {
+ compatible = "rockchip-hdmi-spdif";
+ dais {
+ dai0 {
+ audio-codec = <&codec_hdmi_spdif>;
+ i2s-controller = <&spdif>;
+ };
+ };
+ };
+
+ rockchip-audio {
+ compatible = "rk3036-audio";
+ dais {
+ dai0 {
+ audio-codec = <&codec>;
+ i2s-controller = <&i2s>;
+ format = "i2s";
+ //continuous-clock;
+ //bitclock-inversion;
+ //frame-inversion;
+ //bitclock-master;
+ //frame-master;
+ };
+ };
+ };
+};
+
+&uart0{
+ status = "okay";
+ dma-names = "!tx", "!rx";
+ pinctrl-0 = <&uart0_xfer &uart0_cts>;
};
&nandc {
+ status = "okay"; // used nand set "okay" ,used emmc set "disabled"
+};
+
+&nandc0reg {
status = "disabled"; // used nand set "disabled" ,used emmc set "okay"
-};
+};
&emmc {
- clock-frequency = <100000000>;
- clock-freq-min-max = <400000 100000000>;
+ clock-frequency = <37500000>;
+ clock-freq-min-max = <400000 37500000>;
supports-highspeed;
supports-emmc;
bootpart-no-access;
- //supports-DDR_MODE; //you should set the two value in your project. only close in RK3288-SDK board.
- //caps2-mmc-hs200;
+ supports-DDR_MODE;
ignore-pm-notify;
keep-power-in-suspend;
-
- //poll-hw-reset
+
+ //poll-hw-reset
status = "disabled";
};
-
+
&sdmmc {
- clock-frequency = <50000000>;
- clock-freq-min-max = <400000 50000000>;
+ clock-frequency = <37500000>;
+ clock-freq-min-max = <400000 37500000>;
supports-highspeed;
supports-sd;
broken-cd;
ignore-pm-notify;
keep-power-in-suspend;
-
+
//vmmc-supply = <&rk808_ldo5_reg>;
status = "disabled";
};
-
+
&sdio {
- clock-frequency = <50000000>;
- clock-freq-min-max = <200000 50000000>;
+ clock-frequency = <37500000>;
+ clock-freq-min-max = <200000 37500000>;
supports-highspeed;
supports-sdio;
ignore-pm-notify;
keep-power-in-suspend;
- //cap-sdio-irq;
- status = "disabled";
+ cap-sdio-irq;
+ status = "okay";
};
-&uart0 {
- status = "okay";
- dma-names = "!tx", "!rx";
- //pinctrl-0 = <&uart0_xfer &uart0_cts>;
-};
&i2c1 {
status = "okay";
&tve {
status = "okay";
};
+
+&hdmi {
+ status = "okay";
+ //rockchips,hdmi_audio_source = <0>;
+};
+
+&vmac {
+// pmu_regulator = "act_ldo5";
+// pmu_enable_level = <1>; //1->HIGH, 0->LOW
+// power-gpio = <&gpio0 GPIO_A6 GPIO_ACTIVE_HIGH>;
+ reset-gpio = <&gpio2 GPIO_C6 GPIO_ACTIVE_LOW>;
+};