From df40d592de614f798d855a9431e69f23440502b4 Mon Sep 17 00:00:00 2001 From: Ryan Murray Date: Tue, 3 Nov 2026 02:11:53 +1100 Subject: [PATCH] arm64: dts: apple: t604x-j614-j616: Enable the SD reader on both The J616s carries the same GL9755 SD reader on the second port of pcie0 as the J614s. Its firmware describes the same supply, the SMC's gP19 output, active high, through the same port control. Until now only the J614s described the reader, so on the J616s the port stayed disabled, the reader never powered up and the root port was empty. Move the J614s description into the shared J614s/J616s include. The J614s DTB is unchanged (identical dtc output). The J616s gains the SD port, its DART, the wider bus range and both CLKREQ pin groups on the controller. Assisted-by: LLM Signed-off-by: Ryan Murray --- arch/arm64/boot/dts/apple/t6040-j614s.dts | 29 ------------------- .../arm64/boot/dts/apple/t604x-j614-j616.dtsi | 27 +++++++++++++---- 2 files changed, 22 insertions(+), 34 deletions(-) diff --git a/arch/arm64/boot/dts/apple/t6040-j614s.dts b/arch/arm64/boot/dts/apple/t6040-j614s.dts index 9ef0cf1194eec..8667e9cb40283 100644 --- a/arch/arm64/boot/dts/apple/t6040-j614s.dts +++ b/arch/arm64/boot/dts/apple/t6040-j614s.dts @@ -88,32 +88,3 @@ &mesa { firmware-name = "apple/mesacal-j614s.bin", "apple/msrk-j614s.bin"; }; - -/* - * The GL9755 SD reader. Its supply is the SMC's gP19 output, which the - * J614s firmware describes as active high. Both CLKREQ pins go on the - * controller so that the Wi-Fi and SD ports do not claim the same pins. - */ -&apcie1_dart { - status = "okay"; -}; - -&pcie0 { - bus-range = <0 2>; - pinctrl-0 = <&wifi_clkreq_pins &sd_clkreq_pins>; -}; - -&port01 { - /delete-property/ pinctrl-0; - /delete-property/ pinctrl-names; - bus-range = <2 2>; - pwren-gpios = <&smc_gpio 0x19 GPIO_ACTIVE_HIGH>; - status = "okay"; - - mmc@0,0 { - compatible = "pci17a0,9755"; - reg = <0x20000 0 0 0 0>; - cd-inverted; - wp-inverted; - }; -}; diff --git a/arch/arm64/boot/dts/apple/t604x-j614-j616.dtsi b/arch/arm64/boot/dts/apple/t604x-j614-j616.dtsi index b116e17d8ce17..a603c88e3d9ad 100644 --- a/arch/arm64/boot/dts/apple/t604x-j614-j616.dtsi +++ b/arch/arm64/boot/dts/apple/t604x-j614-j616.dtsi @@ -4768,18 +4768,29 @@ }; }; +/* + * The GL9755 SD reader. Its supply is the SMC's gP19 output, which the + * J614s and J616s firmware both describe as active high. Both CLKREQ pins + * go on the controller so that the Wi-Fi and SD ports do not claim the + * same pins. + */ +&apcie1_dart { + status = "okay"; +}; + &pcie0 { interrupts = , ; - /* Widen bus-range only with the SD power/port ownership handoff. */ + bus-range = <0 2>; + pinctrl-0 = <&wifi_clkreq_pins &sd_clkreq_pins>; iommu-map = <0x100 &pcie_dart 1 2>, <0x200 &apcie1_dart 1 1>; port01: pci@1,0 { device_type = "pci"; reg = <0x800 0 0 0 0>; reset-gpios = <&pinctrl 5 GPIO_ACTIVE_LOW>; - pinctrl-names = "default"; - pinctrl-0 = <&sd_clkreq_pins>; + bus-range = <2 2>; + pwren-gpios = <&smc_gpio 0x19 GPIO_ACTIVE_HIGH>; #address-cells = <3>; #size-cells = <2>; ranges; @@ -4790,8 +4801,14 @@ <0 0 0 2 &port01 0 0 0 1>, <0 0 0 3 &port01 0 0 0 2>, <0 0 0 4 &port01 0 0 0 3>; - /* The SD power switch needs an SMC service binding. */ - status = "disabled"; + status = "okay"; + + mmc@0,0 { + compatible = "pci17a0,9755"; + reg = <0x20000 0 0 0 0>; + cd-inverted; + wp-inverted; + }; }; };