dts: fix SD card read issue for g12a board [2/3]
authorSandy Luo <sandy.luo@amlogic.com>
Wed, 28 Nov 2018 07:16:57 +0000 (15:16 +0800)
committerLuan Yuan <luan.yuan@amlogic.com>
Thu, 29 Nov 2018 06:36:24 +0000 (14:36 +0800)
PD#SWPL-2588

Problem:
g12a u220/u221 boad cann't read SD card

Solution:
auto detect revA and revB chip

Verify:
test pass on u220/u221 board

Change-Id: Ia153bb3f966fe2a58d5f3ed1bf1d3f610d00ff5a
Signed-off-by: Sandy Luo <sandy.luo@amlogic.com>
arch/arm/boot/dts/amlogic/g12a_s905d2_skt.dts
arch/arm/boot/dts/amlogic/g12a_s905d2_skt_buildroot.dts
arch/arm/boot/dts/amlogic/g12a_s905y2_u220.dts
arch/arm/boot/dts/amlogic/g12a_s905y2_u221.dts
arch/arm64/boot/dts/amlogic/g12a_s905d2_skt.dts
arch/arm64/boot/dts/amlogic/g12a_s905d2_skt_buildroot.dts
arch/arm64/boot/dts/amlogic/g12a_s905y2_u220.dts
arch/arm64/boot/dts/amlogic/g12a_s905y2_u221.dts

index 398dccf..0a8dec0 100644 (file)
        bt-dev{
                compatible = "amlogic, bt-dev";
                dev_name = "bt-dev";
-               status = "okay";
+               status = "disable";
                gpio_reset = <&gpio       GPIOX_17       GPIO_ACTIVE_HIGH>;
                gpio_hostwake = <&gpio       GPIOX_19       GPIO_ACTIVE_HIGH>;
        };
        wifi{
                compatible = "amlogic, aml_wifi";
                dev_name = "aml_wifi";
-               status = "okay";
+               status = "disable";
                interrupt_pin = <&gpio       GPIOX_7       GPIO_ACTIVE_HIGH>;
                irq_trigger_type = "GPIO_IRQ_LOW";
                power_on_pin = <&gpio       GPIOX_6       GPIO_ACTIVE_HIGH>;
                };
                opp05 {
                        opp-hz = /bits/ 64 <1200000000>;
-                       opp-microvolt = <731000>;
+                       opp-microvolt = <761000>;
                };
                opp06 {
                        opp-hz = /bits/ 64 <1398000000>;
-                       opp-microvolt = <761000>;
+                       opp-microvolt = <791000>;
                };
                opp07 {
                        opp-hz = /bits/ 64 <1512000000>;
-                       opp-microvolt = <791000>;
+                       opp-microvolt = <831000>;
                };
                opp08 {
                        opp-hz = /bits/ 64 <1608000000>;
-                       opp-microvolt = <831000>;
+                       opp-microvolt = <871000>;
                };
                opp09 {
                        opp-hz = /bits/ 64 <1704000000>;
-                       opp-microvolt = <861000>;
+                       opp-microvolt = <921000>;
                };
                opp10 {
                        opp-hz = /bits/ 64 <1800000000>;
index 5565a1c..1e4897a 100644 (file)
        bt-dev{
                compatible = "amlogic, bt-dev";
                dev_name = "bt-dev";
-               status = "okay";
+               status = "disable";
                gpio_reset = <&gpio       GPIOX_17       GPIO_ACTIVE_HIGH>;
                gpio_hostwake = <&gpio       GPIOX_19       GPIO_ACTIVE_HIGH>;
        };
        wifi{
                compatible = "amlogic, aml_wifi";
                dev_name = "aml_wifi";
-               status = "okay";
+               status = "disable";
                interrupt_pin = <&gpio       GPIOX_7       GPIO_ACTIVE_HIGH>;
                irq_trigger_type = "GPIO_IRQ_LOW";
                power_on_pin = <&gpio       GPIOX_6       GPIO_ACTIVE_HIGH>;
                };
                opp05 {
                        opp-hz = /bits/ 64 <1200000000>;
-                       opp-microvolt = <731000>;
+                       opp-microvolt = <761000>;
                };
                opp06 {
                        opp-hz = /bits/ 64 <1398000000>;
-                       opp-microvolt = <761000>;
+                       opp-microvolt = <791000>;
                };
                opp07 {
                        opp-hz = /bits/ 64 <1512000000>;
-                       opp-microvolt = <791000>;
+                       opp-microvolt = <831000>;
                };
                opp08 {
                        opp-hz = /bits/ 64 <1608000000>;
-                       opp-microvolt = <831000>;
+                       opp-microvolt = <871000>;
                };
                opp09 {
                        opp-hz = /bits/ 64 <1704000000>;
-                       opp-microvolt = <861000>;
+                       opp-microvolt = <921000>;
                };
                opp10 {
                        opp-hz = /bits/ 64 <1800000000>;
index f5e1c72..0322b9c 100644 (file)
        bt-dev{
                compatible = "amlogic, bt-dev";
                dev_name = "bt-dev";
-               status = "okay";
+               status = "disable";
                gpio_reset = <&gpio       GPIOX_17       GPIO_ACTIVE_HIGH>;
                gpio_hostwake = <&gpio       GPIOX_19       GPIO_ACTIVE_HIGH>;
        };
        wifi{
                compatible = "amlogic, aml_wifi";
                dev_name = "aml_wifi";
-               status = "okay";
+               status = "disable";
                interrupt_pin = <&gpio       GPIOX_7       GPIO_ACTIVE_HIGH>;
                irq_trigger_type = "GPIO_IRQ_LOW";
                power_on_pin = <&gpio       GPIOX_6       GPIO_ACTIVE_HIGH>;
 };
 
 &sd_emmc_a {
-       status = "okay";
+       status = "disabled";
        sdio {
                caps = "MMC_CAP_4_BIT_DATA",
                         "MMC_CAP_MMC_HIGHSPEED",
index 66b64d6..9317cf0 100644 (file)
                };
                opp05 {
                        opp-hz = /bits/ 64 <1200000000>;
-                       opp-microvolt = <731000>;
+                       opp-microvolt = <761000>;
                };
                opp06 {
                        opp-hz = /bits/ 64 <1398000000>;
-                       opp-microvolt = <761000>;
+                       opp-microvolt = <791000>;
                };
                opp07 {
                        opp-hz = /bits/ 64 <1512000000>;
-                       opp-microvolt = <791000>;
+                       opp-microvolt = <831000>;
                };
                opp08 {
                        opp-hz = /bits/ 64 <1608000000>;
-                       opp-microvolt = <831000>;
+                       opp-microvolt = <871000>;
                };
                opp09 {
                        opp-hz = /bits/ 64 <1704000000>;
-                       opp-microvolt = <861000>;
+                       opp-microvolt = <921000>;
                };
                opp10 {
                        opp-hz = /bits/ 64 <1800000000>;
index ccf02f0..e3e4c2f 100644 (file)
        bt-dev{
                compatible = "amlogic, bt-dev";
                dev_name = "bt-dev";
-               status = "okay";
+               status = "disable";
                gpio_reset = <&gpio       GPIOX_17       GPIO_ACTIVE_HIGH>;
                gpio_hostwake = <&gpio       GPIOX_19       GPIO_ACTIVE_HIGH>;
        };
        wifi{
                compatible = "amlogic, aml_wifi";
                dev_name = "aml_wifi";
-               status = "okay";
+               status = "disable";
                interrupt_pin = <&gpio       GPIOX_7       GPIO_ACTIVE_HIGH>;
                irq_trigger_type = "GPIO_IRQ_LOW";
                power_on_pin = <&gpio       GPIOX_6       GPIO_ACTIVE_HIGH>;
                };
                opp05 {
                        opp-hz = /bits/ 64 <1200000000>;
-                       opp-microvolt = <731000>;
+                       opp-microvolt = <761000>;
                };
                opp06 {
                        opp-hz = /bits/ 64 <1398000000>;
-                       opp-microvolt = <761000>;
+                       opp-microvolt = <791000>;
                };
                opp07 {
                        opp-hz = /bits/ 64 <1512000000>;
-                       opp-microvolt = <791000>;
+                       opp-microvolt = <831000>;
                };
                opp08 {
                        opp-hz = /bits/ 64 <1608000000>;
-                       opp-microvolt = <831000>;
+                       opp-microvolt = <871000>;
                };
                opp09 {
                        opp-hz = /bits/ 64 <1704000000>;
-                       opp-microvolt = <861000>;
+                       opp-microvolt = <921000>;
                };
                opp10 {
                        opp-hz = /bits/ 64 <1800000000>;
index dd942ba..acb0a41 100644 (file)
        bt-dev{
                compatible = "amlogic, bt-dev";
                dev_name = "bt-dev";
-               status = "okay";
+               status = "disable";
                gpio_reset = <&gpio       GPIOX_17       GPIO_ACTIVE_HIGH>;
                gpio_hostwake = <&gpio       GPIOX_19       GPIO_ACTIVE_HIGH>;
        };
        wifi{
                compatible = "amlogic, aml_wifi";
                dev_name = "aml_wifi";
-               status = "okay";
+               status = "disable";
                interrupt_pin = <&gpio       GPIOX_7       GPIO_ACTIVE_HIGH>;
                irq_trigger_type = "GPIO_IRQ_LOW";
                power_on_pin = <&gpio       GPIOX_6       GPIO_ACTIVE_HIGH>;
                };
                opp05 {
                        opp-hz = /bits/ 64 <1200000000>;
-                       opp-microvolt = <731000>;
+                       opp-microvolt = <761000>;
                };
                opp06 {
                        opp-hz = /bits/ 64 <1398000000>;
-                       opp-microvolt = <761000>;
+                       opp-microvolt = <791000>;
                };
                opp07 {
                        opp-hz = /bits/ 64 <1512000000>;
-                       opp-microvolt = <791000>;
+                       opp-microvolt = <831000>;
                };
                opp08 {
                        opp-hz = /bits/ 64 <1608000000>;
-                       opp-microvolt = <831000>;
+                       opp-microvolt = <871000>;
                };
                opp09 {
                        opp-hz = /bits/ 64 <1704000000>;
-                       opp-microvolt = <861000>;
+                       opp-microvolt = <921000>;
                };
                opp10 {
                        opp-hz = /bits/ 64 <1800000000>;
index b3037bd..13f8bc2 100644 (file)
        bt-dev{
                compatible = "amlogic, bt-dev";
                dev_name = "bt-dev";
-               status = "okay";
+               status = "disable";
                gpio_reset = <&gpio       GPIOX_17       GPIO_ACTIVE_HIGH>;
                gpio_hostwake = <&gpio       GPIOX_19       GPIO_ACTIVE_HIGH>;
        };
        wifi{
                compatible = "amlogic, aml_wifi";
                dev_name = "aml_wifi";
-               status = "okay";
+               status = "disable";
                interrupt_pin = <&gpio       GPIOX_7       GPIO_ACTIVE_HIGH>;
                irq_trigger_type = "GPIO_IRQ_LOW";
                power_on_pin = <&gpio       GPIOX_6       GPIO_ACTIVE_HIGH>;
 };
 
 &sd_emmc_a {
-       status = "okay";
+       status = "disabled";
        sdio {
                caps = "MMC_CAP_4_BIT_DATA",
                         "MMC_CAP_MMC_HIGHSPEED",
index a4fbc61..270c6b9 100644 (file)
                };
                opp05 {
                        opp-hz = /bits/ 64 <1200000000>;
-                       opp-microvolt = <731000>;
+                       opp-microvolt = <761000>;
                };
                opp06 {
                        opp-hz = /bits/ 64 <1398000000>;
-                       opp-microvolt = <761000>;
+                       opp-microvolt = <791000>;
                };
                opp07 {
                        opp-hz = /bits/ 64 <1512000000>;
-                       opp-microvolt = <791000>;
+                       opp-microvolt = <831000>;
                };
                opp08 {
                        opp-hz = /bits/ 64 <1608000000>;
-                       opp-microvolt = <831000>;
+                       opp-microvolt = <871000>;
                };
                opp09 {
                        opp-hz = /bits/ 64 <1704000000>;
-                       opp-microvolt = <861000>;
+                       opp-microvolt = <921000>;
                };
                opp10 {
                        opp-hz = /bits/ 64 <1800000000>;