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 2c543cc..cf18657 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 ab3eee1..b4bf910 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 3516040..7d49c50 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 152ef0a..2639a0f 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 e9ad788..0218522 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 3580cd0..b72135b 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 46846c8..e0e4e1a 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 2da364b..ce21610 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";
 };