Enable USB and SD for Deepcomputing FML13V05 board
Subsystems (3)
cover Enable USB and SD for Deepcomputing FML13V05 board
This series updates Deepcomputing FML13V05 Device Tree: Add P1 PMIC regulator tree, add USB controller and USB phy, Enable SD card.
This series is based on next-20260918.
Sandie Cao (3):
riscv: dts: spacemit: k3-deepcomputing-fml13v05: add P1 PMIC regulator
tree
riscv: dts: spacemit: k3-deepcomputing-fml13v05: add USB controller
and USB phy support
riscv: dts: spacemit: k3-deepcomputing-fml13v05: Enable SD card
support
.../spacemit/k3-deepcomputing-fml13v05.dts | 218 ++++++++++++++++++ arch/riscv/boot/dts/spacemit/k3.dtsi | 66 ++++++ 2 files changed, 284 insertions(+)
base-commit: 3f2425f5b5bbbdd991ca9cdfd5502e68d8895998
Signature · 1 line
2.43.0
PATCH 1/3 riscv: dts: spacemit: k3-deepcomputing-fml13v05: add P1 PMIC regulator tree
Add the P1 PMIC's regulator topology tree for DeepComputing FML13V05 board
--- .../spacemit/k3-deepcomputing-fml13v05.dts | 155 ++++++++++++++++++ 1 file changed, 155 insertions(+)
arch/riscv/boot/dts/spacemit/k3-deepcomputing-fml13v05.dts +155 -0
@@ -22,6 +22,161 @@ memory@100000000 { device_type = "memory"; reg = <0x1 0x00000000 0x4 0x00000000>; }; + + reg_aux_vcc3v3: regulator-aux-vcc3v3 { + compatible = "regulator-fixed"; + regulator-name = "AUX_VCC3V3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + reg_aux_vcc5v: regulator-aux-vcc5v { + compatible = "regulator-fixed"; + regulator-name = "AUX_VCC5V"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + }; +}; + +&i2c8 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c8_cfg>; + status = "okay"; + + p1@41 { + compatible = "spacemit,p1"; + reg = <0x41>; + interrupts = <64 IRQ_TYPE_LEVEL_HIGH>; + vin1-supply = <®_aux_vcc5v>; + vin2-supply = <®_aux_vcc5v>; + vin3-supply = <®_aux_vcc5v>; + vin4-supply = <®_aux_vcc5v>; + vin5-supply = <®_aux_vcc5v>; + vin6-supply = <®_aux_vcc5v>; + aldoin-supply = <®_aux_vcc5v>; + dldoin1-supply = <&buck4>; + dldoin2-supply = <&buck4>; + + regulators { + buck1: buck1 { + regulator-min-microvolt = <1050000>; + regulator-max-microvolt = <1050000>; + regulator-ramp-delay = <5000>; + regulator-always-on; + }; + + buck2: buck2 { + regulator-min-microvolt = <1050000>; + regulator-max-microvolt = <1050000>; + regulator-ramp-delay = <5000>; + regulator-always-on; + }; + + buck3: buck3 { + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <800000>; + regulator-ramp-delay = <5000>; + regulator-always-on; + }; + + buck4: buck4 { + regulator-min-microvolt = <2100000>; + regulator-max-microvolt = <2100000>; + regulator-ramp-delay = <5000>; + regulator-always-on; + }; + + buck5: buck5 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-ramp-delay = <5000>; + regulator-always-on; + }; + + buck6: buck6 { + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <500000>; + regulator-ramp-delay = <5000>; + regulator-always-on; + }; + + aldo1: aldo1 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + regulator-boot-on; + }; + + aldo2: aldo2 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + regulator-boot-on; + }; + + aldo3: aldo3 { + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <3400000>; + }; + + aldo4: aldo4 { + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + regulator-boot-on; + }; + + dldo1: dldo1 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-always-on; + regulator-boot-on; + }; + + dldo2: dldo2 { + regulator-min-microvolt = <900000>; + regulator-max-microvolt = <900000>; + regulator-always-on; + regulator-boot-on; + }; + + dldo3: dldo3 { + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <800000>; + regulator-always-on; + regulator-boot-on; + }; + + dldo4: dldo4 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + }; + + dldo5: dldo5 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + regulator-boot-on; + }; + + dldo6: dldo6 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + regulator-boot-on; + }; + + dldo7: dldo7 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + regulator-boot-on; + }; + }; + }; }; &uart0 {
Signature · 1 line
2.43.0
PATCH 2/3 riscv: dts: spacemit: k3-deepcomputing-fml13v05: add USB controller and USB phy support
In reply to Sandie CaoAdd USB device node (b, c, d) to DeepComputing FML13V05 board. USB A works on otg mode, it isn't configured currently.
- 4 USB-C Ports
- Port 1: PD 3.0 (65W Max), USB 3.2 Gen 1
- Port 2: PD 3.0 (65W Max), USB 3.2 Gen 1, DP 1.4 (4K@60Hz)
- Port 3 & 4: USB 3.2 Gen 1
--- .../spacemit/k3-deepcomputing-fml13v05.dts | 44 +++++++++++++ arch/riscv/boot/dts/spacemit/k3.dtsi | 66 +++++++++++++++++++ 2 files changed, 110 insertions(+)
arch/riscv/boot/dts/spacemit/k3-deepcomputing-fml13v05.dts +44 -0
@@ -179,8 +179,52 @@ dldo7: dldo7 { }; }; +&combophy { + spacemit,apmu = <&syscon_apmu 0x17>; + status = "okay"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_0_cfg>; status = "okay"; }; + +&usb2_host { + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + hub@1 { + compatible = "usb5e3,608"; + reg = <1>; + }; +}; + +&usb2_phy { + status = "okay"; +}; + +&usb3b_u2phy { + status = "okay"; +}; + +&usb3b { + status = "okay"; +}; + +&usb3c_u2phy { + status = "okay"; +}; + +&usb3c { + status = "okay"; +}; + +&usb3d_u2phy { + status = "okay"; +}; + +&usb3d { + status = "okay"; +};
arch/riscv/boot/dts/spacemit/k3.dtsi +66 -0
72 lines not on this page · raw message
Signature · 1 line
2.43.0
[email protected]
AI reviewRe: [PATCH 2/3] riscv: dts: spacemit: k3-deepcomputing-fml13v05: add USB controller and USB phy support
Thank you for your contribution! Sashiko AI review found 4 potential issue(s) to consider: - [High] dt: incorrect clock assignment for USB3 port B and C companion PHYs - [High] dt: incorrect…
Thank you for your contribution! Sashiko AI review found 4 potential issue(s) to consider:
- [High] dt: incorrect clock assignment for USB3 port B and C companion PHYs
- [High] dt: incorrect hardware interrupt number assigned to usb3b controller
- [Low] dt: missing Type-C and PD bindings for claimed port features
- [Low] dt: space indentation used instead of tabs for usb3c node
--
commit 01e320732a69960438751a5d51ee72cfcf2179bc
Author: Sandie Cao <[email protected]>
riscv: dts: spacemit: k3-deepcomputing-fml13v05: add USB controller and USB phy support
This commit adds USB device nodes to the DeepComputing FML13V05 board, configuring four USB-C ports with various features like PD 3.0 and DP 1.4.
Quoted 4 lines
arch/riscv/boot/dts/spacemit/k3-deepcomputing-fml13v05.dts +0
-0
[ ... ]
arch/riscv/boot/dts/spacemit/k3-deepcomputing-fml13v05.dts
Quoted 3 lines
+&usb3b {
arch/riscv/boot/dts/spacemit/k3-deepcomputing-fml13v05.dts +2
-0+ status = "okay"; +};
[Severity: Low]
Are the 'usb-c-connector' nodes and OF graph linkages missing here? The commit message claims Power Delivery and DisplayPort Alt-Mode capabilities, but without these bindings, any kernel-managed role switching, PD negotiation, or DisplayPort muxing might not function when a Type-C device is connected.
[ ... ]
Quoted 4 lines
arch/riscv/boot/dts/spacemit/k3.dtsi +0
-0
[ ... ]
arch/riscv/boot/dts/spacemit/k3.dtsi soc: soc { · line 447
Quoted 4 lines
arch/riscv/boot/dts/spacemit/k3.dtsi +4
-0+ usb3b: usb@81400000 { + compatible = "spacemit,k3-dwc3"; + reg = <0x0 0x81400000 0x0 0x10000>; + interrupts = <125 IRQ_TYPE_LEVEL_HIGH>;
^^^
[Severity: High]
Is this the correct hardware interrupt number for usb3b? Since the adjacent controllers usb3c and usb3d use 148 and 149, 125 appears to be a copy-paste error (perhaps it should be 147?). Using the wrong interrupt vector could prevent the kernel from processing USB events on Port B, causing it to fail on boot.
Quoted 2 lines
arch/riscv/boot/dts/spacemit/k3.dtsi +2
-0+ interrupt-parent = <&saplic>; + clocks = <&syscon_apmu CLK_APMU_USB3_PORTB_BUS>;
[ ... ]
arch/riscv/boot/dts/spacemit/k3.dtsi soc: soc { · line 472
Quoted 4 lines
arch/riscv/boot/dts/spacemit/k3.dtsi +4
-0+ usb3b_u2phy: phy@81500000 { + compatible = "spacemit,k3-usb2-phy"; + reg = <0x0 0x81500000 0x0 0x200>; + clocks = <&syscon_apmu CLK_APMU_USB2_BUS>;
^^^^^^^^^^^^^^^^^
[Severity: High]
Should this use the port-specific clock (CLK_APMU_USB3_PORTB_BUS) instead of the shared USB2 bus clock? If the independent USB2 host controller is disabled or runtime gated, the USB3 ports could lose their companion PHY clocks, leading to initialization failures or USB disconnects during power management.
arch/riscv/boot/dts/spacemit/k3.dtsi soc: soc { · line 477
Quoted 5 lines
arch/riscv/boot/dts/spacemit/k3.dtsi +5
-0+ #phy-cells = <0>; + status = "disabled"; + }; + + usb3c: usb@81700000 {
^^^^^^^^^^^^^^^
[Severity: Low]
Does this node use space indentation? It looks like 15 spaces were used instead of tabs.
Quoted 2 lines
arch/riscv/boot/dts/spacemit/k3.dtsi +2
-0+ compatible = "spacemit,k3-dwc3"; + reg = <0x0 0x81700000 0x0 0x10000>;
[ ... ]
arch/riscv/boot/dts/spacemit/k3.dtsi soc: soc { · line 505
Quoted 4 lines
arch/riscv/boot/dts/spacemit/k3.dtsi +4
-0+ usb3c_u2phy: phy@81800000 { + compatible = "spacemit,k3-usb2-phy"; + reg = <0x0 0x81800000 0x0 0x200>; + clocks = <&syscon_apmu CLK_APMU_USB2_BUS>;
^^^^^^^^^^^^^^^^^
[Severity: High]
Should this also use its port-specific clock (CLK_APMU_USB3_PORTC_BUS) instead of the shared USB2 bus clock? Similar to usb3b_u2phy above, relying on the standalone USB2 bus clock could cause power management issues for this PHY.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
Troy Mitchell
reviewerRe: [PATCH 2/3] riscv: dts: spacemit: k3-deepcomputing-fml13v05: add USB controller and USB phy support
In reply to Sandie CaoQuoted 9 lines · Sandie Cao
arch/riscv/boot/dts/spacemit/k3.dtsi +5
-0@@ -441,6 +441,72 @@ soc: soc { + usb3b_u2phy: phy@81500000 { + compatible = "spacemit,k3-usb2-phy"; + reg = <0x0 0x81500000 0x0 0x200>; + clocks = <&syscon_apmu CLK_APMU_USB2_BUS>; + #phy-cells = <0>;
arch/riscv/boot/dts/spacemit/k3.dtsi soc: soc { · line 508
Quoted 10 lines
arch/riscv/boot/dts/spacemit/k3.dtsi +9
-0+ status = "disabled"; + }; + usb3c_u2phy: phy@81800000 { + compatible = "spacemit,k3-usb2-phy"; + reg = <0x0 0x81800000 0x0 0x200>; + clocks = <&syscon_apmu CLK_APMU_USB2_BUS>; + #phy-cells = <0>; + status = "disabled"; + };
Should these use CLK_APMU_USB3_PORTB_BUS and CLK_APMU_USB3_PORTC_BUS, respectively?
Signature · 1 line
Troy Mitchell
Re: [PATCH 2/3] riscv: dts: spacemit: k3-deepcomputing-fml13v05: add USB controller and USB phy support
Hi, Troy:
Quoted 16 lines
From: "Troy Mitchell"<[email protected]> Date: Wed, Sep 23, 2026, 10:18
Quoted 13 lines · Sandie Cao
arch/riscv/boot/dts/spacemit/k3.dtsi +8
-0@@ -441,6 +441,72 @@ soc: soc { + usb3b_u2phy: phy@81500000 { + compatible = "spacemit,k3-usb2-phy"; + reg = <0x0 0x81500000 0x0 0x200>; + clocks = <&syscon_apmu CLK_APMU_USB2_BUS>; + #phy-cells = <0>; + status = "disabled"; + }; + usb3c_u2phy: phy@81800000 {
Quoted 8 lines
Quoted 6 lines
+ compatible = "spacemit,k3-usb2-phy";
+ reg = <0x00x818000000x00x200>;
+ clocks = <&syscon_apmuCLK_APMU_USB2_BUS>;
+ #phy-cells = <0>;
+ status = "disabled";
+ };Should these use
CLK_APMU_USB3_PORTB_BUSandCLK_APMU_USB3_PORTC_BUS, respectively?
Here is clock for usb2phy. CLK_APMU_USB3_PORTB_BUS is clock for USB3 PORTB. CLK_APMU_USB3_PORTC_BUS is clock for USB3 PORTC.
Please note: usb3d_u2phy also use CLK_APMU_USB2_BUS.
usb3d_u2phy: phy@81b00000 {
compatible = "spacemit,k3-usb2-phy"; reg = <0x0 0x81b00000 0x0 0x200>; clocks = <&syscon_apmu CLK_APMU_USB2_BUS>; #phy-cells = <0>;
status = "disabled";
};
Best regards
Sandie
Quoted 4 lines
--
Troy Mitchell
Troy Mitchell
reviewerRe: [PATCH 2/3] riscv: dts: spacemit: k3-deepcomputing-fml13v05: add USB controller and USB phy support
Quoted 1 line · Sandie Cao
Please note:
usb3d_u2phyalso useCLK_APMU_USB2_BUS.
Could you share which tree and commit this snippet comes from? I checked k3.dtsi at the base-commit listed in your cover letter, 3f2425f5b5bbbdd991ca9cdfd5502e68d8895998 [1], and usb3d_u2phy has:
clocks = <&syscon_apmu CLK_APMU_USB3_PORTD_BUS>;
Are we looking at different versions?
Signature · 1 line
Troy Mitchell
Re: [PATCH 2/3] riscv: dts: spacemit: k3-deepcomputing-fml13v05: add USB controller and USB phy support
Hi, Troy:
Quoted 4 lines
From: "Troy Mitchell"<[email protected]> Date: Wed, Sep 23, 2026, 14:36
Quoted 1 line · Sandie Cao
Please note:
usb3d_u2phyalso useCLK_APMU_USB2_BUS.
Quoted 8 lines
Could you share which tree and commit this snippet comes from? I checkedk3.dtsiat the base-commit listed in your cover letter,3f2425f5b5bbbdd991ca9cdfd5502e68d8895998[1], andusb3d_u2phyhas:
clocks = <&syscon_apmuCLK_APMU_USB3_PORTD_BUS>;
Are we looking at different versions?
I'm sorry, I check the wrong version of v7.2. I will correct it in next patch.
Best regards
Sandie
Quoted 6 lines
--
Troy Mitchell
Re: [PATCH 2/3] riscv: dts: spacemit: k3-deepcomputing-fml13v05: add USB controller and USB phy support
In reply to Sandie CaoQuoted 11 lines · Sandie Cao
Add USB device node (b, c, d) to DeepComputing FML13V05 board. USB A works on otg mode, it isn't configured currently.
- 4 USB-C Ports
- Port 1: PD 3.0 (65W Max), USB 3.2 Gen 1
- Port 2: PD 3.0 (65W Max), USB 3.2 Gen 1, DP 1.4 (4K@60Hz)
- Port 3 & 4: USB 3.2 Gen 1Signed-off-by Sandie Cao <[email protected]>--- .../spacemit/k3-deepcomputing-fml13v05.dts | 44 +++++++++++++ arch/riscv/boot/dts/spacemit/k3.dtsi | 66 +++++++++++++++++++
I think the SoC and board-level changes should be split into separate patches.
Quoted 1 line
2 files changed, 110 insertions(+)
Best regards,
Yao Zi
PATCH 3/3 riscv: dts: spacemit: k3-deepcomputing-fml13v05: Enable SD card support
In reply to Sandie CaoAdd the device tree node SDHCI-0 controller for Micro SD card slot.
--- .../spacemit/k3-deepcomputing-fml13v05.dts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)
arch/riscv/boot/dts/spacemit/k3-deepcomputing-fml13v05.dts +19 -0
@@ -2,6 +2,7 @@ /* * Copyright (C) 2026 DeepComputing (HK) Limited */ +#include <dt-bindings/gpio/gpio.h> #include "k3.dtsi" #include "k3-pinctrl.dtsi"
@@ -184,6 +185,24 @@ &combophy { status = "okay"; }; +&sdhci0 { + pinctrl-names = "default","uhs"; + pinctrl-0 = <&mmc1_cfg>; + pinctrl-1 = <&mmc1_uhs_cfg>; + bus-width = <4>; + cd-gpios = <&gpio K3_GPIO(88) GPIO_ACTIVE_LOW>; + no-mmc; + no-sdio; + disable-wp; + cap-sd-highspeed; + vmmc-supply = <&aldo4>; + vqmmc-supply = <&aldo1>; + sd-uhs-sdr25; + sd-uhs-sdr50; + sd-uhs-sdr104; + status = "okay"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_0_cfg>;
Signature · 1 line
2.43.0
Troy Mitchell
reviewerRe: [PATCH 3/3] riscv: dts: spacemit: k3-deepcomputing-fml13v05: Enable SD card support
arch/riscv/boot/dts/spacemit/k3-deepcomputing-fml13v05.dts &combophy { · line 193
Quoted 8 lines · Sandie Cao
arch/riscv/boot/dts/spacemit/k3-deepcomputing-fml13v05.dts +6
-0@@ -184,6 +185,24 @@ &combophy { +&sdhci0 { + pinctrl-names = "default","uhs"; + pinctrl-0 = <&mmc1_cfg>; + pinctrl-1 = <&mmc1_uhs_cfg>; + bus-width = <4>; + cd-gpios = <&gpio K3_GPIO(88) GPIO_ACTIVE_LOW>;
Does GPIO88 have an external pull-up? The SDK DTS [1] also includes mmc1_cd_cfg in both pinctrl states, with a pull-up and 3.3 V configuration. Neither mmc1_cfg nor mmc1_uhs_cfg covers this pin. Is that configuration unnecessary on this board?
arch/riscv/boot/dts/spacemit/k3-deepcomputing-fml13v05.dts &combophy { · line 199
Quoted 6 lines
arch/riscv/boot/dts/spacemit/k3-deepcomputing-fml13v05.dts +6
-0+ no-mmc; + no-sdio; + disable-wp; + cap-sd-highspeed; + vmmc-supply = <&aldo4>; + vqmmc-supply = <&aldo1>;
Could you confirm which rail supplies the card's VDD? The SDK DTS [1] uses p3v3 for vmmc rather than aldo4. Does that RPMI regulator map to ALDO4, or is the card powered by a different rail?
Signature · 1 line
Troy Mitchell
Re: [PATCH 3/3] riscv: dts: spacemit: k3-deepcomputing-fml13v05: Enable SD card support
Hi, Troy:
Quoted 17 lines
From: "Troy Mitchell"<[email protected]> Date: Wed, Sep 23, 2026, 10:23
arch/riscv/boot/dts/spacemit/k3-deepcomputing-fml13v05.dts &combophy { · line 193
Quoted 8 lines · Sandie Cao
arch/riscv/boot/dts/spacemit/k3-deepcomputing-fml13v05.dts +6
-0@@ -184,6 +185,24 @@ &combophy { +&sdhci0 { + pinctrl-names = "default","uhs"; + pinctrl-0 = <&mmc1_cfg>; + pinctrl-1 = <&mmc1_uhs_cfg>; + bus-width = <4>; + cd-gpios = <&gpio K3_GPIO(88) GPIO_ACTIVE_LOW>;
Does GPIO88 have an external pull-up? The SDK DTS [1] also includesmmc1_cd_cfgin both pinctrl states, with a pull-up and 3.3 V configuration. Neithermmc1_cfgnormmc1_uhs_cfgcovers this pin. Is that configuration unnecessary on this board?
FML13V05 SD card slot is inside the board, it doesn't need cd-gpio, FML13V05 Keeps GPIO88 to low, Then SD card is always on for SD Card driver.
We check the vmmc-supply is p3v3. We have the same SDK DTS config with k3_com260[1] , so, this patch follows the SD card patch of k3_com260 dts[2].
If this is not correct, we will change it.
https://lore.kernel.org/all/[email protected]/ [2]
Best regards
Sandie
Quoted 16 lines
Quoted 6 lines
+ no-mmc;
+ no-sdio;
+ disable-wp;
+ cap-sd-highspeed;
+ vmmc-supply = <&aldo4>;
+ vqmmc-supply = <&aldo1>;
Could you confirm which rail supplies the card's VDD? The SDK DTS [1] uses p3v3 for vmmc rather than aldo4. Does that RPMI regulator map to ALDO4, or is the card powered by a different rail?
--
Troy Mitchell
Troy Mitchell
reviewerRe: [PATCH 3/3] riscv: dts: spacemit: k3-deepcomputing-fml13v05: Enable SD card support
Quoted 3 lines · Sandie Cao
FML13V05 SD card slot is inside the board, it doesn't need cd-gpio, FML13V05 Keeps GPIO88 to low, Then SD card is always on for SD Card driver.
An internal slot does not necessarily mean the card is non-removable. I don't think its location alone justifies keeping card detect asserted:
GPIO88 would report a card present even when the slot is empty.
Quoted 5 lines
We check the vmmc-supply is p3v3. We have the same SDK DTS config with k3_com260[1] , so, this patch follows the SD card patch of
k3_com260dts[2].If this is not correct, we will change it.
Could you confirm from the schematics that the SD power wiring matches CoM260 and that the card's VDD is actually connected to ALDO4? If so, this supply reference is fine. The same SDK configuration alone does not establish the wiring.
If the card instead uses a fixed, always-on supply with no software power control, vmmc-supply is optional for the MMC core; it should not point to an unrelated ALDO4 rail.
Signature · 1 line
Troy Mitchell
Re: [PATCH 3/3] riscv: dts: spacemit: k3-deepcomputing-fml13v05: Enable SD card support
Hi, Troy:
Quoted 10 lines
From: "Troy Mitchell"<[email protected]> Date: Wed, Sep 23, 2026, 15:02
Quoted 3 lines · Sandie Cao
FML13V05 SD card slot is inside the board, it doesn't need cd-gpio, FML13V05 Keeps GPIO88 to low, Then SD card is always on for SD Card driver.
An internal slot does not necessarily mean the card is non-removable. I don't think its location alone justifies keeping card detect asserted:
GPIO88 would report a card present even when the slot is empty.
Yes. The FML13V05 hardware is designed for this. We can't change it.
Quoted 6 lines
Quoted 5 lines
We check the vmmc-supply is p3v3. We have the same SDK DTS config with k3_com260[1] , so, this patch follows the SD card patch of
k3_com260dts[2].If this is not correct, we will change it.
Quoted 9 lines
Could you confirm from the schematics that the SD power wiring matches CoM260 and that the card's VDD is actually connected to ALDO4? If so, this supply reference is fine. The same SDK configuration alone does not establish the wiring.
If the card instead uses a fixed, always-on supply with no software power control, vmmc-supply is optional for the MMC core; it should not point to an unrelated ALDO4 rail.
We check the schematics both of COM260 and FML13V05, both use p3v3 (a fixed, always-on supply with no software power control), not ALDO4. ALD04 is only for USB. We will correct it in next patch.
Best regards
Sandie
Quoted 4 lines
--
Troy Mitchell
Troy Mitchell
reviewerRe: [PATCH 3/3] riscv: dts: spacemit: k3-deepcomputing-fml13v05: Enable SD card support
Quoted 8 lines · Sandie Cao
Hi, Troy:
Quoted 6 lines
From: "Troy Mitchell"<[email protected]> Date: Wed, Sep 23, 2026, 15:02
Quoted 3 lines · Sandie Cao
FML13V05 SD card slot is inside the board, it doesn't need cd-gpio, FML13V05 Keeps GPIO88 to low, Then SD card is always on for SD Card driver.
Quoted 6 lines
Quoted 4 lines
An internal slot does not necessarily mean the card is non-removable. I don't think its location alone justifies keeping card detect asserted:
GPIO88 would report a card present even when the slot is empty.Yes. The FML13V05 hardware is designed for this. We can't change it.
I may not have been clear: an internal card slot does not necessarily mean the card is non-removable. If GPIO88 is connected to the card-detect switch, it still needs a pull-up. Is GPIO88 tied low on the board, or does it reflect the state of that switch?
Quoted 17 lines
Quoted 7 lines
Quoted 5 lines
We check the vmmc-supply is p3v3. We have the same SDK DTS config with k3_com260[1] , so, this patch follows the SD card patch of
k3_com260dts[2].If this is not correct, we will change it.
Quoted 9 lines
Could you confirm from the schematics that the SD power wiring matches CoM260 and that the card's VDD is actually connected to ALDO4? If so, this supply reference is fine. The same SDK configuration alone does not establish the wiring.
If the card instead uses a fixed, always-on supply with no software power control, vmmc-supply is optional for the MMC core; it should not point to an unrelated ALDO4 rail.
Quoted 2 lines
We check the schematics both of COM260 and FML13V05, both use p3v3 (a fixed, always-on supply with no software power control), not ALDO4. ALD04 is only for USB. We will correct it in next patch.
I'll send a separate patch to fix the CoM260 vmmc-supply reference. You can focus on FML13V05 in this series.
Quoted 8 lines
Best regards
SandieQuoted 4 lines
--
Troy Mitchell
Signature · 1 line
Troy Mitchell
Re: [PATCH 3/3] riscv: dts: spacemit: k3-deepcomputing-fml13v05: Enable SD card support
Hi, Troy:
Quoted 16 lines
From: "Troy Mitchell"<[email protected]> Date: Wed, Sep 23, 2026, 17:14
Quoted 13 lines · Sandie Cao
Hi, Troy:
Quoted 10 lines
From: "Troy Mitchell"<[email protected]> Date: Wed, Sep 23, 2026, 15:02
Quoted 3 lines · Sandie Cao
FML13V05 SD card slot is inside the board, it doesn't need cd-gpio, FML13V05 Keeps GPIO88 to low, Then SD card is always on for SD Card driver.
An internal slot does not necessarily mean the card is non-removable. I don't think its location alone justifies keeping card detect asserted:
GPIO88 would report a card present even when the slot is empty.
Quoted 6 lines
Quoted 1 line
Yes. The FML13V05 hardware is designed for this. We can't change it.
I may not have been clear: an internal card slot does not necessarily mean the card is non-removable. If GPIO88 is connected to the card-detect switch, it still needs a pull-up. Is GPIO88 tied low on the board, or does it reflect the state of that switch?
The FML13V05 SD card slot doesn't have cd-gpio. But the K3 SD card driver need it, so the GPIO88 is tied low on board.
Quoted 18 lines
Quoted 17 lines
Quoted 16 lines
Quoted 5 lines
We check the vmmc-supply is p3v3. We have the same SDK DTS config with k3_com260[1] , so, this patch follows the SD card patch of
k3_com260dts[2].If this is not correct, we will change it.
Could you confirm from the schematics that the SD power wiring matches CoM260 and that the card's VDD is actually connected to ALDO4? If so, this supply reference is fine. The same SDK configuration alone does not establish the wiring.
If the card instead uses a fixed, always-on supply with no software power control, vmmc-supply is optional for the MMC core; it should not point to an unrelated ALDO4 rail.
Quoted 4 lines
Quoted 2 lines
We check the schematics both of COM260 and FML13V05, both use p3v3 (a fixed, always-on supply with no software power control), not ALDO4. ALD04 is only for USB. We will correct it in next patch.
I'll send a separate patch to fix the CoM260 vmmc-supply reference. You can focus on FML13V05 in this series.
Got it. Thanks
Best regards
Sandie
Troy Mitchell
reviewerRe: [PATCH 3/3] riscv: dts: spacemit: k3-deepcomputing-fml13v05: Enable SD card support
Quoted 18 lines · Sandie Cao
Hi, Troy:
Quoted 16 lines
From: "Troy Mitchell"<[email protected]> Date: Wed, Sep 23, 2026, 17:14
Quoted 13 lines · Sandie Cao
Hi, Troy:
Quoted 10 lines
From: "Troy Mitchell"<[email protected]> Date: Wed, Sep 23, 2026, 15:02
Quoted 3 lines · Sandie Cao
FML13V05 SD card slot is inside the board, it doesn't need cd-gpio, FML13V05 Keeps GPIO88 to low, Then SD card is always on for SD Card driver.
An internal slot does not necessarily mean the card is non-removable. I don't think its location alone justifies keeping card detect asserted:
GPIO88 would report a card present even when the slot is empty.
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
Yes. The FML13V05 hardware is designed for this. We can't change it.
I may not have been clear: an internal card slot does not necessarily mean the card is non-removable. If GPIO88 is connected to the card-detect switch, it still needs a pull-up. Is GPIO88 tied low on the board, or does it reflect the state of that switch?The FML13V05 SD card slot doesn't have cd-gpio. But the K3 SD card driver need it, so the GPIO88 is tied low on board.
Sounds like you should use non-removable or broken-cd instead of cd-gpios.
Note: Please limit line lengths to 80–100 characters.
Signature · 1 line
Troy Mitchell