rockchip64-edge: nanopi-r76s: Improve DTS organization (#8699)

Add section comments and reorganize nodes for better readability.

Signed-off-by: SuperKali <hello@superkali.me>
This commit is contained in:
SuperKali
2025-10-01 07:28:32 +02:00
committed by GitHub
parent 31168a8041
commit 3033165f06

View File

@@ -18,15 +18,18 @@
model = "FriendlyELEC NanoPi R76S";
compatible = "friendlyelec,nanopi-r76s", "rockchip,rk3576";
/* Network Aliases */
aliases {
ethernet0 = &r8125_b;
ethernet1 = &r8125_a;
};
/* Boot Configuration */
chosen {
stdout-path = "serial0:1500000n8";
};
/* HDMI Connector */
hdmi-con {
compatible = "hdmi-connector";
type = "a";
@@ -38,6 +41,7 @@
};
};
/* LED Configuration */
leds: leds {
compatible = "gpio-leds";
@@ -55,6 +59,7 @@
gpios = <&gpio2 RK_PB0 GPIO_ACTIVE_HIGH>;
pinctrl-0 = <&lan_led_pin>;
};
wan_led: led-2 {
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_STATUS;
@@ -63,6 +68,7 @@
};
};
/* SDIO for WIFI CARD */
sdio_pwrseq: sdio-pwrseq {
compatible = "mmc-pwrseq-simple";
pinctrl-names = "default";
@@ -72,6 +78,7 @@
reset-gpios = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>;
};
/* Power Input */
vcc_5v0_dcin: regulator-vcc-5v0-dcin {
compatible = "regulator-fixed";
regulator-name = "vcc_5v0_dcin";
@@ -81,56 +88,7 @@
regulator-max-microvolt = <5000000>;
};
vcc_1v1_nldo_s3: regulator-vcc-1v1-nldo-s3 {
compatible = "regulator-fixed";
regulator-name = "vcc_1v1_nldo_s3";
regulator-boot-on;
regulator-always-on;
regulator-min-microvolt = <1100000>;
regulator-max-microvolt = <1100000>;
vin-supply = <&vcc_5v0_sys>;
};
vcc_2v0_pldo_s3: regulator-vcc-2v0-pldo-s3 {
compatible = "regulator-fixed";
regulator-name = "vcc_2v0_pldo_s3";
regulator-boot-on;
regulator-always-on;
regulator-min-microvolt = <2000000>;
regulator-max-microvolt = <2000000>;
vin-supply = <&vcc_5v0_sys>;
};
vcc_3v3_pcie20: vcc3v3-pcie20 {
compatible = "regulator-fixed";
regulator-name = "vcc_3v3_pcie20";
regulator-always-on;
regulator-boot-on;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
vin-supply = <&vcc_3v3_s3>;
};
vcc_3v3_rtc_s5: regulator-vcc-3v3-rtc-s5 {
compatible = "regulator-fixed";
regulator-name = "vcc_3v3_rtc_s5";
regulator-boot-on;
regulator-always-on;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
vin-supply = <&vcc_5v0_sys>;
};
vcc_3v3_s0: regulator-vcc-3v3-s0 {
compatible = "regulator-fixed";
regulator-name = "vcc_3v3_s0";
regulator-boot-on;
regulator-always-on;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
vin-supply = <&vcc_3v3_s3>;
};
/* Main System Power */
vcc_5v0_sys: regulator-vcc-5v0-sys {
compatible = "regulator-fixed";
regulator-name = "vcc_5v0_sys";
@@ -141,7 +99,62 @@
vin-supply = <&vcc_5v0_dcin>;
};
vbus5v0_typec: vbus5v0-typec {
/* PMIC Input Rails */
vcc_1v1_nldo_s3: regulator-vcc-1v1-nldo-s3 {
compatible = "regulator-fixed";
regulator-name = "vcc_1v1_nldo_s3";
regulator-always-on;
regulator-boot-on;
regulator-min-microvolt = <1100000>;
regulator-max-microvolt = <1100000>;
vin-supply = <&vcc_5v0_sys>;
};
vcc_2v0_pldo_s3: regulator-vcc-2v0-pldo-s3 {
compatible = "regulator-fixed";
regulator-name = "vcc_2v0_pldo_s3";
regulator-always-on;
regulator-boot-on;
regulator-min-microvolt = <2000000>;
regulator-max-microvolt = <2000000>;
vin-supply = <&vcc_5v0_sys>;
};
/* General Purpose 3.3V Rails */
vcc_3v3_s0: regulator-vcc-3v3-s0 {
compatible = "regulator-fixed";
regulator-name = "vcc_3v3_s0";
regulator-always-on;
regulator-boot-on;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
vin-supply = <&vcc_3v3_s3>;
};
/* RTC Backup Power */
vcc_3v3_rtc_s5: regulator-vcc-3v3-rtc-s5 {
compatible = "regulator-fixed";
regulator-name = "vcc_3v3_rtc_s5";
regulator-always-on;
regulator-boot-on;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
vin-supply = <&vcc_5v0_sys>;
};
/* PCIe Power */
vcc_3v3_pcie20: regulator-vcc-3v3-pcie20 {
compatible = "regulator-fixed";
regulator-name = "vcc_3v3_pcie20";
regulator-always-on;
regulator-boot-on;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
vin-supply = <&vcc_3v3_s3>;
};
/* USB Type-C Power */
vbus5v0_typec: regulator-vbus5v0-typec {
compatible = "regulator-fixed";
regulator-name = "vbus5v0_typec";
regulator-min-microvolt = <5000000>;
@@ -152,9 +165,9 @@
pinctrl-names = "default";
pinctrl-0 = <&usb_otg0_pwren>;
};
};
/* Combo PHY Configuration */
&combphy0_ps {
status = "okay";
};
@@ -163,6 +176,7 @@
status = "okay";
};
/* CPU Nodes */
&cpu_b0 {
cpu-supply = <&vdd_cpu_big_s0>;
};
@@ -195,6 +209,7 @@
cpu-supply = <&vdd_cpu_lit_s0>;
};
/* GPU Node */
&gpu {
mali-supply = <&vdd_gpu_s0>;
status = "okay";
@@ -219,6 +234,7 @@
"", "", "", "";
};
/* HDMI Nodes */
&hdmi {
status = "okay";
};
@@ -243,6 +259,7 @@
status = "okay";
};
/* I2C Nodes */
&i2c1 {
status = "okay";
@@ -633,7 +650,7 @@
pinctrl-0 = <&i2c8m2_xfer>;
};
/* PCIE Nodes */
&pcie0 {
status = "okay";
pinctrl-0 = <&pcie0_reset_gpio>;
@@ -671,7 +688,7 @@
};
};
/* PINs Configuration */
&pinctrl {
hym8563 {
@@ -727,10 +744,12 @@
};
};
/* Audio Interface Configuration */
&sai6 {
status = "okay";
};
/* SD/MMC Configuration */
&sdio {
max-frequency = <200000000>;
bus-width = <4>;
@@ -750,7 +769,6 @@
status = "okay";
};
&sdhci {
bus-width = <8>;
full-pwr-cycle-in-suspend;
@@ -778,6 +796,7 @@
status = "okay";
};
/* UART Configuration */
&uart5 {
pinctrl-names = "default";
pinctrl-0 = <&uart5m0_xfer &uart5m0_ctsn &uart5m0_rtsn>;
@@ -795,6 +814,7 @@
status = "okay";
};
/* USB Configuration */
&usb_drd0_dwc3 {
dr_mode = "otg";
extcon = <&u2phy0>;
@@ -814,6 +834,7 @@
phy-supply = <&vbus5v0_typec>;
};
/* Video Output Configuration */
&vop {
status = "okay";
};