From d855d83c88b59fe9c5386de60b8e4473186a41e3 Mon Sep 17 00:00:00 2001 From: Patrick Yavitz Date: Mon, 2 Feb 2026 12:40:27 -0500 Subject: [PATCH] KickPI K2b: Fixup linux DTS Signed-off-by: Patrick Yavitz --- .../sunxi-6.12/dt/sun50i-h618-kickpi-k2b.dts | 24 ++++++++++++++----- .../dt_64/sun50i-h618-kickpi-k2b.dts | 24 ++++++++++++++----- 2 files changed, 36 insertions(+), 12 deletions(-) diff --git a/patch/kernel/archive/sunxi-6.12/dt/sun50i-h618-kickpi-k2b.dts b/patch/kernel/archive/sunxi-6.12/dt/sun50i-h618-kickpi-k2b.dts index 3dc98ab945..0189af3844 100644 --- a/patch/kernel/archive/sunxi-6.12/dt/sun50i-h618-kickpi-k2b.dts +++ b/patch/kernel/archive/sunxi-6.12/dt/sun50i-h618-kickpi-k2b.dts @@ -1,6 +1,6 @@ // SPDX-License-Identifier: (GPL-2.0+ OR MIT) /* - * Copyright (C) 2025 Patrick Yavitz + * Copyright (C) 2026 Patrick Yavitz */ /dts-v1/; @@ -129,8 +129,9 @@ pinctrl-names = "default"; phy-mode = "rgmii"; phy-handle = <&ext_rgmii_phy>; + phy-supply = <®_dldo1>; allwinner,tx-delay-ps = <700>; - allwinner,rx-delay-ps = <1700>; + allwinner,rx-delay-ps = <2000>; }; &ehci0 { @@ -195,9 +196,9 @@ }; &mdio0 { - ext_rgmii_phy: ethernet-phy@1 { - compatible = "ethernet-phy-id001c.c916"; - reg = <1>; + ext_rgmii_phy: ethernet-phy@0 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <0x0>; reset-assert-us = <20000>; reset-deassert-us = <100000>; reset-gpios = <&pio 8 6 GPIO_ACTIVE_LOW>; /* PI6 */ @@ -322,6 +323,8 @@ regulator-always-on; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; + regulator-step-delay-us = <25>; + regulator-final-delay-us = <50>; regulator-name = "vcc-1v8-pll"; }; @@ -329,6 +332,8 @@ regulator-always-on; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; + regulator-step-delay-us = <25>; + regulator-final-delay-us = <50>; regulator-name = "vcc-3v3-io"; }; @@ -336,6 +341,8 @@ regulator-always-on; regulator-min-microvolt = <810000>; regulator-max-microvolt = <990000>; + regulator-step-delay-us = <25>; + regulator-final-delay-us = <50>; regulator-name = "vdd-gpu-sys"; }; @@ -343,13 +350,18 @@ regulator-always-on; regulator-min-microvolt = <810000>; regulator-max-microvolt = <1100000>; + regulator-step-delay-us = <25>; + regulator-final-delay-us = <50>; + regulator-ramp-delay = <200>; /* FIXME */ regulator-name = "vdd-cpu"; }; reg_dcdc3: dcdc3 { regulator-always-on; - regulator-min-microvolt = <1100000>; + regulator-min-microvolt = <1500000>; regulator-max-microvolt = <1500000>; + regulator-step-delay-us = <25>; + regulator-final-delay-us = <50>; regulator-name = "vdd-dram"; }; }; diff --git a/patch/kernel/archive/sunxi-6.18/dt_64/sun50i-h618-kickpi-k2b.dts b/patch/kernel/archive/sunxi-6.18/dt_64/sun50i-h618-kickpi-k2b.dts index 3dc98ab945..0189af3844 100644 --- a/patch/kernel/archive/sunxi-6.18/dt_64/sun50i-h618-kickpi-k2b.dts +++ b/patch/kernel/archive/sunxi-6.18/dt_64/sun50i-h618-kickpi-k2b.dts @@ -1,6 +1,6 @@ // SPDX-License-Identifier: (GPL-2.0+ OR MIT) /* - * Copyright (C) 2025 Patrick Yavitz + * Copyright (C) 2026 Patrick Yavitz */ /dts-v1/; @@ -129,8 +129,9 @@ pinctrl-names = "default"; phy-mode = "rgmii"; phy-handle = <&ext_rgmii_phy>; + phy-supply = <®_dldo1>; allwinner,tx-delay-ps = <700>; - allwinner,rx-delay-ps = <1700>; + allwinner,rx-delay-ps = <2000>; }; &ehci0 { @@ -195,9 +196,9 @@ }; &mdio0 { - ext_rgmii_phy: ethernet-phy@1 { - compatible = "ethernet-phy-id001c.c916"; - reg = <1>; + ext_rgmii_phy: ethernet-phy@0 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <0x0>; reset-assert-us = <20000>; reset-deassert-us = <100000>; reset-gpios = <&pio 8 6 GPIO_ACTIVE_LOW>; /* PI6 */ @@ -322,6 +323,8 @@ regulator-always-on; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; + regulator-step-delay-us = <25>; + regulator-final-delay-us = <50>; regulator-name = "vcc-1v8-pll"; }; @@ -329,6 +332,8 @@ regulator-always-on; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; + regulator-step-delay-us = <25>; + regulator-final-delay-us = <50>; regulator-name = "vcc-3v3-io"; }; @@ -336,6 +341,8 @@ regulator-always-on; regulator-min-microvolt = <810000>; regulator-max-microvolt = <990000>; + regulator-step-delay-us = <25>; + regulator-final-delay-us = <50>; regulator-name = "vdd-gpu-sys"; }; @@ -343,13 +350,18 @@ regulator-always-on; regulator-min-microvolt = <810000>; regulator-max-microvolt = <1100000>; + regulator-step-delay-us = <25>; + regulator-final-delay-us = <50>; + regulator-ramp-delay = <200>; /* FIXME */ regulator-name = "vdd-cpu"; }; reg_dcdc3: dcdc3 { regulator-always-on; - regulator-min-microvolt = <1100000>; + regulator-min-microvolt = <1500000>; regulator-max-microvolt = <1500000>; + regulator-step-delay-us = <25>; + regulator-final-delay-us = <50>; regulator-name = "vdd-dram"; }; };