Skip to content

Commit ffc8c8c

Browse files
committed
sunxi: mellowflyc5: configure card detect GPIO for mmc0 in U-Boot
Replace 'broken-cd;' with 'cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;' in the U-Boot device tree patch for the Mellow Fly-C5. We verified on physical hardware that the PF6 pin is wired to the card detect switch, operating as active-low (logical high when empty, logical low when a card is inserted). Signed-off-by: Alastair D'Silva <alastair@d-silva.org> Assisted-by: Antigravity <antigravity@google.com>
1 parent 55479e1 commit ffc8c8c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

patch/u-boot/v2026.07-sunxi64/board_mellowflyc5/001-mellowflyc5-dts-and-defconfig.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ index 00000000000..d31248603d3
155155
+
156156
+&mmc0 {
157157
+ vmmc-supply = <&reg_dldo1>;
158-
+ broken-cd;
158+
+ cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
159159
+ status = "okay";
160160
+};
161161
+

0 commit comments

Comments
 (0)