Skip to contentSkip to conversation

Quartz64-A fixes and enablement from 5.17-rc1

PATCH Superseded Peter Geis 3 participants 10 messages Jan 27, 2022

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Peter Geis

author
#0 lore raw

cover Quartz64-A fixes and enablement from 5.17-rc1

Good Evening,

This is the first of several patch series for further expanding Quartz64-A support.

This series has the following patches:
Fix the ddr regulator voltage.
Add pmu_io_domains to permit sdio and high speed emmc support. Add sdmmc1 node for wifi support.

Please review and apply.

Very Respectfully,
Peter Geis

Peter Geis (3):
arm64: dts: rockchip: fix Quartz64-A ddr regulator voltage
arm64: dts: rockchip: add Quartz64-A pmu_io_domains
arm64: dts: rockchip: add Quartz64-A sdmmc1 node

 .../boot/dts/rockchip/rk3566-quartz64-a.dts   | 60 ++++++++++++++++++-
 1 file changed, 58 insertions(+), 2 deletions(-)
Signature · 1 line
2.25.1
author
#1 lore raw

PATCH 1/3 arm64: dts: rockchip: fix Quartz64-A ddr regulator voltage

The Quartz64 Model A uses a voltage divider to ensure ddr voltage is within specification from the default regulator configuration. Adjusting this voltage is detrimental, and currently causes the ddr voltage to be about 0.8v.

Remove the min and max voltage setpoints for the ddr regulator.

Fixes b33a22a1e7c4 ("arm64: dts: rockchip: add basic dts for Pine64

Quartz64-A")

---
 arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts | 2 --
 1 file changed, 2 deletions(-)
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +0 -2
index 166399b7f13f..d9eb92d59099 100644
@@ -285,8 +285,6 @@ regulator-state-mem {
 			vcc_ddr: DCDC_REG3 {
 				regulator-always-on;
 				regulator-boot-on;
-				regulator-min-microvolt = <1100000>;
-				regulator-max-microvolt = <1100000>;
 				regulator-initial-mode = <0x2>;
 				regulator-name = "vcc_ddr";
 				regulator-state-mem {
Signature · 1 line
2.25.1
author
#2 lore raw

PATCH 2/3 arm64: dts: rockchip: add Quartz64-A pmu_io_domains

In reply to Peter Geis

Several io power domains on the Quartz64-A operate at 1.8v. Add the pmu_io_domains definition to enable support for this. This permits the enablement of the following features:
sdio - wifi support
sdhci - mmc-hs200-1_8v

---
 arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts | 13 +++++++++++++
 1 file changed, 13 insertions(+)
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +13 -0
index d9eb92d59099..33c2c18caaa9 100644
@@ -482,6 +482,19 @@ vcc_sd_h: vcc-sd-h {
 	};
 };
 
+&pmu_io_domains {
+	pmuio1-supply = <&vcc3v3_pmu>;
+	pmuio2-supply = <&vcc3v3_pmu>;
+	vccio1-supply = <&vccio_acodec>;
+	vccio2-supply = <&vcc_1v8>;
+	vccio3-supply = <&vccio_sd>;
+	vccio4-supply = <&vcc_1v8>;
+	vccio5-supply = <&vcc_3v3>;
+	vccio6-supply = <&vcc1v8_dvp>;
+	vccio7-supply = <&vcc_3v3>;
+	status = "okay";
+};
+
 &sdhci {
 	bus-width = <8>;
 	mmc-hs200-1_8v;
Signature · 1 line
2.25.1
#3 lore raw

Re: [PATCH 2/3] arm64: dts: rockchip: add Quartz64-A pmu_io_domains

Hi Peter,

Quoted 16 lines · Peter Geis

Several io power domains on the Quartz64-A operate at 1.8v. Add the pmu_io_domains definition to enable support for this. This permits the enablement of the following features:
sdio - wifi support
sdhci - mmc-hs200-1_8v

---
 arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts | 13 +++++++++++++
 1 file changed, 13 insertions(+)
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +0 -0
index d9eb92d59099..33c2c18caaa9 100644

arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts vcc_sd_h: vcc-sd-h { · line 484

Quoted 3 lines
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +0 -0
@@ -482,6 +482,19 @@ vcc_sd_h: vcc-sd-h {
 	};
 };
 

https://files.pine64.org/doc/quartz64/Quartz64_model-A_schematic_v2.0_20210427.pdf

Could you check with the IO Power Domain Map?

arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts vcc_sd_h: vcc-sd-h { · line 486

Quoted 2 lines
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +2 -0
+&pmu_io_domains {
+	pmuio1-supply = <&vcc3v3_pmu>;

VCC3V3_PMU

arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts vcc_sd_h: vcc-sd-h { · line 487

Quoted 1 line
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +1 -0
+	pmuio2-supply = <&vcc3v3_pmu>;

VCC3V3_PMU

arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts vcc_sd_h: vcc-sd-h { · line 488

Quoted 1 line
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +1 -0
+	vccio1-supply = <&vccio_acodec>;

VCCIO_ACODEC

arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts vcc_sd_h: vcc-sd-h { · line 489

Quoted 1 line
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +1 -0
+	vccio2-supply = <&vcc_1v8>;

VCC_1V8

arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts vcc_sd_h: vcc-sd-h { · line 490

Quoted 1 line
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +1 -0
+	vccio3-supply = <&vccio_sd>;

VCCIO_SD

arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts vcc_sd_h: vcc-sd-h { · line 491

Quoted 1 line
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +1 -0
+	vccio4-supply = <&vcc_1v8>;

==> VCC1V8_PMU

arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts vcc_sd_h: vcc-sd-h { · line 492

Quoted 1 line
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +1 -0
+	vccio5-supply = <&vcc_3v3>;

==> VCC_1V8

arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts vcc_sd_h: vcc-sd-h { · line 493

Quoted 1 line
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +1 -0
+	vccio6-supply = <&vcc1v8_dvp>;

VCC1V8_DVP

arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts vcc_sd_h: vcc-sd-h { · line 494

Quoted 1 line
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +1 -0
+	vccio7-supply = <&vcc_3v3>;

VCC_3V3

Quoted 6 lines
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +3 -0
+	status = "okay";
+};
+
 &sdhci {
 	bus-width = <8>;
 	mmc-hs200-1_8v;
author
#4 lore raw

Re: [PATCH 2/3] arm64: dts: rockchip: add Quartz64-A pmu_io_domains

Quoted 2 lines · Johan Jonker

Hi Peter,

Good Morning,

The Rockchip schematics IO Power Domain Map is rarely *if ever* 100% accurate, you need to check the actual schematic for ground truth.

Quoted 36 lines · Peter Geis
Quoted 16 lines

Several io power domains on the Quartz64-A operate at 1.8v. Add the pmu_io_domains definition to enable support for this. This permits the enablement of the following features:
sdio - wifi support
sdhci - mmc-hs200-1_8v

---
 arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts | 13 +++++++++++++
 1 file changed, 13 insertions(+)
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +0 -0
index d9eb92d59099..33c2c18caaa9 100644

arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts vcc_sd_h: vcc-sd-h { · line 484

Quoted 3 lines
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +0 -0
@@ -482,6 +482,19 @@ vcc_sd_h: vcc-sd-h {
      };
 };
 

https://files.pine64.org/doc/quartz64/Quartz64_model-A_schematic_v2.0_20210427.pdf

Could you check with the IO Power Domain Map?

arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts vcc_sd_h: vcc-sd-h { · line 486

Quoted 2 lines
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +2 -0
+&pmu_io_domains {
+     pmuio1-supply = <&vcc3v3_pmu>;

VCC3V3_PMU

arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts vcc_sd_h: vcc-sd-h { · line 487

Quoted 1 line
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +1 -0
+     pmuio2-supply = <&vcc3v3_pmu>;

VCC3V3_PMU

arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts vcc_sd_h: vcc-sd-h { · line 488

Quoted 1 line
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +1 -0
+     vccio1-supply = <&vccio_acodec>;

VCCIO_ACODEC

Quoted 8 lines

arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts vcc_sd_h: vcc-sd-h { · line 489

Quoted 1 line
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +1 -0
+     vccio2-supply = <&vcc_1v8>;

VCC_1V8

arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts vcc_sd_h: vcc-sd-h { · line 490

Quoted 1 line
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +1 -0
+     vccio3-supply = <&vccio_sd>;

VCCIO_SD

arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts vcc_sd_h: vcc-sd-h { · line 491

Quoted 1 line
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +1 -0
+     vccio4-supply = <&vcc_1v8>;

==> VCC1V8_PMU

Page 16 of the schematic, VCCIO4 is tied to VCC_1V8 via R1519

Quoted 3 lines

arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts vcc_sd_h: vcc-sd-h { · line 492

Quoted 2 lines
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +1 -0
+     vccio5-supply = <&vcc_3v3>;

==> VCC_1V8

Page 20 of the schematic, VCCIO5 is tied to VCC_3V3 via R1800

Quoted 5 lines

arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts vcc_sd_h: vcc-sd-h { · line 493

Quoted 2 lines
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +1 -0
+     vccio6-supply = <&vcc1v8_dvp>;

VCC1V8_DVP

arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts vcc_sd_h: vcc-sd-h { · line 494

Quoted 1 line
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +1 -0
+     vccio7-supply = <&vcc_3v3>;
Quoted 8 lines

VCC_3V3

arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts vcc_sd_h: vcc-sd-h { · line 500

Quoted 6 lines
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +3 -0
+     status = "okay";
+};
+
 &sdhci {
      bus-width = <8>;
      mmc-hs200-1_8v;

Thanks for double checking,
Peter

author
#5 lore raw

PATCH 3/3 arm64: dts: rockchip: add Quartz64-A sdmmc1 node

In reply to Peter Geis

The sdmmc1 node on Quartz64-A supports the optional wifi module from Pine64.
Add the sdmmc1 node and requisite sdio_pwrseq to enable wifi support on the Quartz64-A.

---
 .../boot/dts/rockchip/rk3566-quartz64-a.dts   | 45 +++++++++++++++++++
 1 file changed, 45 insertions(+)
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +45 -0
index 33c2c18caaa9..1d73ac6557c5 100644
@@ -91,6 +91,18 @@ simple-audio-card,codec {
 		};
 	};
 
+	sdio_pwrseq: sdio-pwrseq {
+		status = "okay";
+		compatible = "mmc-pwrseq-simple";
+		clocks = <&rk817 1>;
+		clock-names = "ext_clock";
+		pinctrl-names = "default";
+		pinctrl-0 = <&wifi_enable_h>;
+		reset-gpios = <&gpio2 RK_PC2 GPIO_ACTIVE_LOW>;
+		post-power-on-delay-ms = <100>;
+		power-off-delay-us = <5000000>;
+	};
+
 	vcc12v_dcin: vcc12v_dcin {
 		compatible = "regulator-fixed";
 		regulator-name = "vcc12v_dcin";
@@ -147,6 +159,17 @@ vcc_sys: vcc_sys {
 		regulator-max-microvolt = <4400000>;
 		vin-supply = <&vbus>;
 	};
+
+	/* sourced from vcc_sys, sdio module operates internally at 3.3v */
+	vcc_wl: vcc_wl {
+		compatible = "regulator-fixed";
+		regulator-name = "vcc_wl";
+		regulator-always-on;
+		regulator-boot-on;
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		vin-supply = <&vcc_sys>;
+	};
 };
 
 &cpu0 {
@@ -475,6 +498,12 @@ pmic_int_l: pmic-int-l {
 		};
 	};
 
+	sdio-pwrseq {
+		wifi_enable_h: wifi-enable-h {
+			rockchip,pins = <2 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
+		};
+	};
+
 	vcc_sd {
 		vcc_sd_h: vcc-sd-h {
 			rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
@@ -516,6 +545,22 @@ &sdmmc0 {
 	status = "okay";
 };
 
+&sdmmc1 {
+	bus-width = <4>;
+	cap-sd-highspeed;
+	cap-sdio-irq;
+	disable-wp;
+	keep-power-in-suspend;
+	mmc-pwrseq = <&sdio_pwrseq>;
+	non-removable;
+	pinctrl-names = "default";
+	pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>;
+	sd-uhs-sdr104;
+	vmmc-supply = <&vcc_wl>;
+	vqmmc-supply = <&vcc_1v8>;
+	status = "okay";
+};
+
 &spdif {
 	status = "okay";
 };
Signature · 1 line
2.25.1
#6 lore raw

Re: [PATCH 3/3] arm64: dts: rockchip: add Quartz64-A sdmmc1 node

Quoted 15 lines · Peter Geis

The sdmmc1 node on Quartz64-A supports the optional wifi module from Pine64.
Add the sdmmc1 node and requisite sdio_pwrseq to enable wifi support on the Quartz64-A.

---
 .../boot/dts/rockchip/rk3566-quartz64-a.dts   | 45 +++++++++++++++++++
 1 file changed, 45 insertions(+)
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +0 -0
index 33c2c18caaa9..1d73ac6557c5 100644

arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts simple-audio-card,codec { · line 96

Quoted 6 lines
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +2 -0
@@ -91,6 +91,18 @@ simple-audio-card,codec {
 		};
 	};
 
+	sdio_pwrseq: sdio-pwrseq {
 
+		status = "okay";

When a node is not previously disabled, then there's no need for "okay".

Quoted 45 lines
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +10 -0
+		compatible = "mmc-pwrseq-simple";
+		clocks = <&rk817 1>;
+		clock-names = "ext_clock";
+		pinctrl-names = "default";
+		pinctrl-0 = <&wifi_enable_h>;
+		reset-gpios = <&gpio2 RK_PC2 GPIO_ACTIVE_LOW>;
+		post-power-on-delay-ms = <100>;
+		power-off-delay-us = <5000000>;
+	};
+
 	vcc12v_dcin: vcc12v_dcin {
 		compatible = "regulator-fixed";
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +17 -0
 		regulator-name = "vcc12v_dcin";
@@ -147,6 +159,17 @@ vcc_sys: vcc_sys {
 		regulator-max-microvolt = <4400000>;
 		vin-supply = <&vbus>;
 	};
+
+	/* sourced from vcc_sys, sdio module operates internally at 3.3v */
+	vcc_wl: vcc_wl {
+		compatible = "regulator-fixed";
+		regulator-name = "vcc_wl";
+		regulator-always-on;
+		regulator-boot-on;
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		vin-supply = <&vcc_sys>;
+	};
 };
 
 &cpu0 {
@@ -475,6 +498,12 @@ pmic_int_l: pmic-int-l {
 		};
 	};
 
+	sdio-pwrseq {
+		wifi_enable_h: wifi-enable-h {
+			rockchip,pins = <2 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
+		};
+	};
+
 	vcc_sd {
 		vcc_sd_h: vcc-sd-h {
 			rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;

arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts &sdmmc0 { · line 553

Quoted 9 lines
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +5 -0
@@ -516,6 +545,22 @@ &sdmmc0 {
 	status = "okay";
 };
 
+&sdmmc1 {
+	bus-width = <4>;
+	cap-sd-highspeed;
+	cap-sdio-irq;
 
+	disable-wp;

From mmc-controller.yaml:

disable-wp:
$ref: /schemas/types.yaml#/definitions/flag
description:
When set, no physical write-protect line is present. This property should only be specified when the controller has a dedicated write-protect detection logic. If a GPIO is always used for the write-protect detection logic, it is sufficient to not specify the wp-gpios property in the absence of a write-protect line. Not used in combination with eMMC or SDIO.

Quoted 14 lines
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +11 -0
+	keep-power-in-suspend;
+	mmc-pwrseq = <&sdio_pwrseq>;
+	non-removable;
+	pinctrl-names = "default";
+	pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>;
+	sd-uhs-sdr104;
+	vmmc-supply = <&vcc_wl>;
+	vqmmc-supply = <&vcc_1v8>;
+	status = "okay";
+};
+
 &spdif {
 	status = "okay";

};

author
#7 lore raw

Re: [PATCH 3/3] arm64: dts: rockchip: add Quartz64-A sdmmc1 node

Quoted 22 lines · Johan Jonker
Quoted 18 lines · Peter Geis

The sdmmc1 node on Quartz64-A supports the optional wifi module from Pine64.
Add the sdmmc1 node and requisite sdio_pwrseq to enable wifi support on the Quartz64-A.

---
 .../boot/dts/rockchip/rk3566-quartz64-a.dts   | 45 +++++++++++++++++++
 1 file changed, 45 insertions(+)
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +0 -0
index 33c2c18caaa9..1d73ac6557c5 100644
@@ -91,6 +91,18 @@ simple-audio-card,codec {
              };
      };
 
Quoted 5 lines

arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts simple-audio-card,codec { · line 95

Quoted 3 lines
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +2 -0
+     sdio_pwrseq: sdio-pwrseq {
 
+             status = "okay";

When a node is not previously disabled, then there's no need for "okay".

Thanks, this is here in case an end user wants to easily hack the board to use this for other purposes.

Quoted 58 lines
Quoted 46 lines
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +10 -0
+             compatible = "mmc-pwrseq-simple";
+             clocks = <&rk817 1>;
+             clock-names = "ext_clock";
+             pinctrl-names = "default";
+             pinctrl-0 = <&wifi_enable_h>;
+             reset-gpios = <&gpio2 RK_PC2 GPIO_ACTIVE_LOW>;
+             post-power-on-delay-ms = <100>;
+             power-off-delay-us = <5000000>;
+     };
+
      vcc12v_dcin: vcc12v_dcin {
              compatible = "regulator-fixed";
              regulator-name = "vcc12v_dcin";
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +17 -0
@@ -147,6 +159,17 @@ vcc_sys: vcc_sys {
              regulator-max-microvolt = <4400000>;
              vin-supply = <&vbus>;
      };
+
+     /* sourced from vcc_sys, sdio module operates internally at 3.3v */
+     vcc_wl: vcc_wl {
+             compatible = "regulator-fixed";
+             regulator-name = "vcc_wl";
+             regulator-always-on;
+             regulator-boot-on;
+             regulator-min-microvolt = <3300000>;
+             regulator-max-microvolt = <3300000>;
+             vin-supply = <&vcc_sys>;
+     };
 };
 
 &cpu0 {
@@ -475,6 +498,12 @@ pmic_int_l: pmic-int-l {
              };
      };
 
+     sdio-pwrseq {
+             wifi_enable_h: wifi-enable-h {
+                     rockchip,pins = <2 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
+             };
+     };
+
      vcc_sd {
              vcc_sd_h: vcc-sd-h {
                      rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;

arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts &sdmmc0 { · line 553

Quoted 9 lines
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +5 -0
@@ -516,6 +545,22 @@ &sdmmc0 {
      status = "okay";
 };
 
+&sdmmc1 {
+     bus-width = <4>;
+     cap-sd-highspeed;
+     cap-sdio-irq;
 
+     disable-wp;

From mmc-controller.yaml:

Quoted 9 lines

disable-wp:
$ref: /schemas/types.yaml#/definitions/flag
description:
When set, no physical write-protect line is present. This property should only be specified when the controller has a dedicated write-protect detection logic. If a GPIO is always used for the write-protect detection logic, it is sufficient to not specify the wp-gpios property in the absence of a write-protect line. Not used in combination with eMMC or SDIO.

Appreciate it, I will drop this.

Quoted 15 lines
Quoted 15 lines
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +11 -0
+     keep-power-in-suspend;
+     mmc-pwrseq = <&sdio_pwrseq>;
+     non-removable;
+     pinctrl-names = "default";
+     pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>;
+     sd-uhs-sdr104;
+     vmmc-supply = <&vcc_wl>;
+     vqmmc-supply = <&vcc_1v8>;
+     status = "okay";
+};
+
 &spdif {
      status = "okay";

};

maintainer
#8 lore raw

Re: [PATCH 3/3] arm64: dts: rockchip: add Quartz64-A sdmmc1 node

Am Donnerstag, 27. Januar 2022, 10:55:13 CET schrieb Peter Geis:

Quoted 23 lines · Johan Jonker
Quoted 22 lines · Peter Geis
Quoted 18 lines

The sdmmc1 node on Quartz64-A supports the optional wifi module from Pine64.
Add the sdmmc1 node and requisite sdio_pwrseq to enable wifi support on the Quartz64-A.

---
 .../boot/dts/rockchip/rk3566-quartz64-a.dts   | 45 +++++++++++++++++++
 1 file changed, 45 insertions(+)
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +0 -0
index 33c2c18caaa9..1d73ac6557c5 100644
@@ -91,6 +91,18 @@ simple-audio-card,codec {
              };
      };
 
Quoted 8 lines
Quoted 5 lines

arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts simple-audio-card,codec { · line 95

Quoted 3 lines
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +2 -0
+     sdio_pwrseq: sdio-pwrseq {
 
+             status = "okay";

When a node is not previously disabled, then there's no need for "okay".

Thanks, this is here in case an end user wants to easily hack the board to use this for other purposes.

but please drop it here as well.

A user "hacking" a devicetree should be able to also just _add_ a status "disabled" :-) .

author
#9 lore raw

Re: [PATCH 3/3] arm64: dts: rockchip: add Quartz64-A sdmmc1 node

Quoted 31 lines · Heiko Stübner

Am Donnerstag, 27. Januar 2022, 10:55:13 CET schrieb Peter Geis:

Quoted 29 lines · Johan Jonker
Quoted 27 lines · Peter Geis
Quoted 15 lines

The sdmmc1 node on Quartz64-A supports the optional wifi module from Pine64.
Add the sdmmc1 node and requisite sdio_pwrseq to enable wifi support on the Quartz64-A.

---
 .../boot/dts/rockchip/rk3566-quartz64-a.dts   | 45 +++++++++++++++++++
 1 file changed, 45 insertions(+)
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +0 -0
index 33c2c18caaa9..1d73ac6557c5 100644

arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts simple-audio-card,codec { · line 96

Quoted 6 lines
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +2 -0
@@ -91,6 +91,18 @@ simple-audio-card,codec {
              };
      };
 
+     sdio_pwrseq: sdio-pwrseq {
 
+             status = "okay";

When a node is not previously disabled, then there's no need for "okay".

Quoted 7 lines
Quoted 2 lines

Thanks, this is here in case an end user wants to easily hack the board to use this for other purposes.

but please drop it here as well.

A user "hacking" a devicetree should be able to also just _add_ a status "disabled" :-) .

Understood, will do.
Thanks!

Quoted 2 lines