130 lines
2.6 KiB
Diff
130 lines
2.6 KiB
Diff
|
From 3ed73136eac3b951ed760b03efa8f541e3d01dd5 Mon Sep 17 00:00:00 2001
|
||
|
From: Ondrej Jirman <megous@megous.com>
|
||
|
Date: Thu, 16 Sep 2021 20:08:48 +0200
|
||
|
Subject: [PATCH 106/478] arm64: dts: rk3566-quartz64-a: Allow to configure
|
||
|
various optional board feautres
|
||
|
|
||
|
Signed-off-by: Ondrej Jirman <megous@megous.com>
|
||
|
---
|
||
|
.../boot/dts/rockchip/rk3566-quartz64-a.dts | 19 +++++++++++++++++--
|
||
|
1 file changed, 17 insertions(+), 2 deletions(-)
|
||
|
|
||
|
diff --git a/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts b/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts
|
||
|
index ab77eb4e415e..cd17d5d77fa3 100644
|
||
|
--- a/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts
|
||
|
+++ b/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts
|
||
|
@@ -5,6 +5,9 @@
|
||
|
#include <dt-bindings/gpio/gpio.h>
|
||
|
#include <dt-bindings/pinctrl/rockchip.h>
|
||
|
#include "rk3566.dtsi"
|
||
|
+#define USE_SATA
|
||
|
+//#define USE_WIFI
|
||
|
+//#define USE_EMMC
|
||
|
|
||
|
/ {
|
||
|
model = "Pine64 RK3566 Quartz64-A Board";
|
||
|
@@ -93,6 +96,7 @@ simple-audio-card,codec {
|
||
|
};
|
||
|
};
|
||
|
|
||
|
+#ifdef USE_WIFI
|
||
|
sdio_pwrseq: sdio-pwrseq {
|
||
|
status = "okay";
|
||
|
compatible = "mmc-pwrseq-simple";
|
||
|
@@ -104,6 +108,7 @@ sdio_pwrseq: sdio-pwrseq {
|
||
|
post-power-on-delay-ms = <100>;
|
||
|
power-off-delay-us = <5000000>;
|
||
|
};
|
||
|
+#endif
|
||
|
|
||
|
vcc12v_dcin: vcc12v_dcin {
|
||
|
compatible = "regulator-fixed";
|
||
|
@@ -605,16 +610,19 @@ &pmu_io_domains {
|
||
|
vccio7-supply = <&vcc_3v3>;
|
||
|
};
|
||
|
|
||
|
+#ifdef USE_SATA
|
||
|
/* sata1 is muxed with the usb3 port */
|
||
|
&sata1 {
|
||
|
status = "okay";
|
||
|
};
|
||
|
+#endif
|
||
|
|
||
|
/* sata2 is muxed with the pcie2 slot*/
|
||
|
&sata2 {
|
||
|
status = "disabled";
|
||
|
};
|
||
|
|
||
|
+#ifdef USE_EMMC
|
||
|
&sdhci {
|
||
|
bus-width = <8>;
|
||
|
mmc-hs200-1_8v;
|
||
|
@@ -623,6 +631,7 @@ &sdhci {
|
||
|
vqmmc-supply = <&vcc_1v8>;
|
||
|
status = "okay";
|
||
|
};
|
||
|
+#endif
|
||
|
|
||
|
&sdmmc0 {
|
||
|
bus-width = <4>;
|
||
|
@@ -641,6 +650,7 @@ &spdif {
|
||
|
status = "okay";
|
||
|
};
|
||
|
|
||
|
+#ifdef USE_WIFI
|
||
|
&sdmmc1 {
|
||
|
bus-width = <4>;
|
||
|
cap-sd-highspeed;
|
||
|
@@ -656,6 +666,7 @@ &sdmmc1 {
|
||
|
vqmmc-supply = <&vcc_1v8>;
|
||
|
status = "okay";
|
||
|
};
|
||
|
+#endif
|
||
|
|
||
|
&sfc {
|
||
|
#address-cells = <1>;
|
||
|
@@ -685,6 +696,7 @@ &uart0 {
|
||
|
status = "okay";
|
||
|
};
|
||
|
|
||
|
+#ifdef USE_WIFI
|
||
|
&uart1 {
|
||
|
pinctrl-names = "default";
|
||
|
pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn>;
|
||
|
@@ -704,6 +716,7 @@ bluetooth {
|
||
|
vddio-supply = <&vcca1v8_pmu>;
|
||
|
};
|
||
|
};
|
||
|
+#endif
|
||
|
|
||
|
&uart2 {
|
||
|
status = "okay";
|
||
|
@@ -737,6 +750,7 @@ &usb2phy1 {
|
||
|
status = "okay";
|
||
|
};
|
||
|
|
||
|
+#ifndef USE_SATA
|
||
|
&usbdrd_dwc3 {
|
||
|
status = "okay";
|
||
|
};
|
||
|
@@ -747,13 +761,14 @@ &usbdrd30 {
|
||
|
|
||
|
/* usb3 controller is muxed with sata1 */
|
||
|
&usbhost_dwc3 {
|
||
|
- status = "disabled";
|
||
|
+ status = "okay";
|
||
|
};
|
||
|
|
||
|
/* usb3 controller is muxed with sata1 */
|
||
|
&usbhost30 {
|
||
|
- status = "disabled";
|
||
|
+ status = "okay";
|
||
|
};
|
||
|
+#endif
|
||
|
|
||
|
&usb_host0_ehci {
|
||
|
status = "okay";
|
||
|
--
|
||
|
2.35.3
|
||
|
|