riscv: starfive: sdio: modify and add sd card config
authorWilliam Qiu <william.qiu@starfivetech.com>
Fri, 6 Jan 2023 04:26:45 +0000 (12:26 +0800)
committermason.huo <mason.huo@starfivetech.com>
Fri, 6 Jan 2023 06:22:44 +0000 (14:22 +0800)
modify and add sd card config, sush as 'max-frequency'
'pinctrl-names'.

Signed-off-by: William Qiu <william.qiu@starfivetech.com>
arch/riscv/boot/dts/starfive/jh7110-evb-can-pdm-pwmdac.dts
arch/riscv/boot/dts/starfive/jh7110-evb-dvp-rgb2hdmi.dts
arch/riscv/boot/dts/starfive/jh7110-evb-i2s-ac108.dts
arch/riscv/boot/dts/starfive/jh7110-evb-pcie-i2s-sd.dts
arch/riscv/boot/dts/starfive/jh7110-evb-spi-uart2.dts
arch/riscv/boot/dts/starfive/jh7110-evb-uart1-rgb2hdmi.dts
arch/riscv/boot/dts/starfive/jh7110-evb-uart4-emmc-spdif.dts
arch/riscv/boot/dts/starfive/jh7110-evb-uart5-pwm-i2c-tdm.dts

index 2c543cc6b41d3d3fdd903c684c592af92a79b460..cf1865775ad247677848e0460ef0442b7768472e 100644 (file)
 
 /* default sd card */
 &sdio0 {
-       clock-frequency = <102400000>;
-       max-frequency = <200000000>;
+       max-frequency = <100000000>;
        card-detect-delay = <300>;
        bus-width = <4>;
        broken-cd;
        cap-sd-highspeed;
        post-power-on-delay-ms = <200>;
-       pinctrl-names = "default";
-       pinctrl-0 = <&sdcard0_pins>;
        status = "okay";
 };
 
index ab3eee14dc0a2c1151c3f5a578e4550c5eac2360..b4bf91049b21a23a08948b78559a90dab13cfb51 100644 (file)
        compatible = "starfive,jh7110-evb", "starfive,jh7110";
 };
 
+/* default sd card */
+&sdio0 {
+       max-frequency = <100000000>;
+       card-detect-delay = <300>;
+       bus-width = <4>;
+       broken-cd;
+       cap-sd-highspeed;
+       post-power-on-delay-ms = <200>;
+       status = "okay";
+};
+
 &vin_sysctl {
        pinctrl-names = "default";
        pinctrl-0 = <&dvp_pins>;
index 35160400da24fa692c956065dfcf039c9bdd9f6e..7d49c501d53cf27b7650cf4d0c3d003128a4634d 100644 (file)
        compatible = "starfive,jh7110-evb", "starfive,jh7110";
 };
 
+/* default sd card */
+&sdio0 {
+       max-frequency = <100000000>;
+       card-detect-delay = <300>;
+       bus-width = <4>;
+       broken-cd;
+       cap-sd-highspeed;
+       post-power-on-delay-ms = <200>;
+       status = "okay";
+};
 
 &i2c0 {
        status = "okay";
index 152ef0a1a3dfc1566bdc20d1a79524ff34e583ef..2639a0fd6fd6201784fb2926e43c9608a7248584 100644 (file)
 
 /* default sd card */
 &sdio0 {
-       clock-frequency = <102400000>;
-       max-frequency = <200000000>;
+       max-frequency = <100000000>;
        card-detect-delay = <300>;
        bus-width = <4>;
        broken-cd;
        cap-sd-highspeed;
        post-power-on-delay-ms = <200>;
-       pinctrl-names = "default";
-       pinctrl-0 = <&sdcard0_pins>;
        status = "okay";
 };
 
index e9ad788d2d7f167bc15f4a3c7e665e442af6f7a1..02185222f9887f0e8034fef06bc993a4aac32d9a 100644 (file)
@@ -21,8 +21,6 @@
        broken-cd;
        cap-sd-highspeed;
        post-power-on-delay-ms = <200>;
-       pinctrl-names = "default";
-       pinctrl-0 = <&sdcard0_pins>;
        status = "okay";
 };
 
index 3580cd0b26d34f31c9cfe8d960c01f30ae31b8fa..b72135b6b4fea04d1bcff6593e203ca5e152a252 100644 (file)
 
 /* default sd card */
 &sdio0 {
-       clock-frequency = <102400000>;
-       max-frequency = <200000000>;
+       max-frequency = <100000000>;
        card-detect-delay = <300>;
        bus-width = <4>;
        broken-cd;
        cap-sd-highspeed;
        post-power-on-delay-ms = <200>;
-       pinctrl-names = "default";
-       pinctrl-0 = <&sdcard0_pins>;
        status = "okay";
 };
 
index 46846c8c1e1f5179139c01cbb4882ad4061d9d80..e0e4e1addd42cf31f51cb4654e82f9db091e0d96 100755 (executable)
        non-removable;
        cap-mmc-hw-reset;
        post-power-on-delay-ms = <200>;
-       pinctrl-names = "default";
-       pinctrl-0 = <&mmc0_pins>;
        status = "okay";
 };
 
 &sdio1 {
-       clock-frequency = <102400000>;
        max-frequency = <100000000>;
        card-detect-delay = <300>;
        bus-width = <8>;
@@ -50,8 +47,6 @@
        non-removable;
        cap-mmc-highspeed;
        post-power-on-delay-ms = <200>;
-       pinctrl-names = "default";
-       pinctrl-0 = <&emmc1_pins>;
        status = "okay";
 };
 
index 2da364b0bf7245bfbb73a893c9e09f9ef4ca09b1..ce2161038c5538d55d94012ad30ecd1cacaf22d0 100644 (file)
 
 /* default sd card */
 &sdio0 {
-       clock-frequency = <102400000>;
-       max-frequency = <200000000>;
+       max-frequency = <100000000>;
        card-detect-delay = <300>;
        bus-width = <4>;
        broken-cd;
        cap-sd-highspeed;
        post-power-on-delay-ms = <200>;
-       pinctrl-names = "default";
-       pinctrl-0 = <&sdcard0_pins>;
        status = "okay";
 };