From f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2 Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Wed, 31 Jan 2024 01:04:47 +0000 Subject: [PATCH] add driver 5G --- kernel/arch/arm/boot/dts/meson8m2-mxiii-plus.dts | 27 ++++++++++++++++++--------- 1 files changed, 18 insertions(+), 9 deletions(-) diff --git a/kernel/arch/arm/boot/dts/meson8m2-mxiii-plus.dts b/kernel/arch/arm/boot/dts/meson8m2-mxiii-plus.dts index 6ac02be..8f4eb1e 100644 --- a/kernel/arch/arm/boot/dts/meson8m2-mxiii-plus.dts +++ b/kernel/arch/arm/boot/dts/meson8m2-mxiii-plus.dts @@ -28,6 +28,7 @@ }; memory { + device_type = "memory"; reg = <0x40000000 0x80000000>; }; @@ -42,6 +43,11 @@ linux,code = <KEY_FN>; press-threshold-microvolt = <10000>; }; + }; + + iio-hwmon { + compatible = "iio-hwmon"; + io-channels = <&saradc 8>; }; vcc_3v3: regulator-vcc3v3 { @@ -63,13 +69,7 @@ pinctrl-names = "default"; phy-handle = <ð_phy0>; - phy-mode = "rgmii"; - - amlogic,tx-delay-ns = <4>; - - snps,reset-gpio = <&gpio GPIOH_4 0>; - snps,reset-delays-us = <0 10000 1000000>; - snps,reset-active-low; + phy-mode = "rgmii-id"; mdio { compatible = "snps,dwmac-mdio"; @@ -79,6 +79,10 @@ eth_phy0: ethernet-phy@0 { /* Realtek RTL8211F (0x001cc916) */ reg = <0>; + + reset-assert-us = <10000>; + reset-deassert-us = <80000>; + reset-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_LOW>; }; }; }; @@ -108,8 +112,9 @@ regulator-always-on; }; - DCDC2 { - regulator-name = "VDDAO"; + vddee: DCDC2 { + /* the output is also used as VDDAO */ + regulator-name = "VDD_EE"; regulator-min-microvolt = <950000>; regulator-max-microvolt = <1150000>; regulator-boot-on; @@ -183,6 +188,10 @@ }; }; +&mali { + mali-supply = <&vddee>; +}; + &saradc { status = "okay"; vref-supply = <&vddio_ao1v8>; -- Gitblit v1.6.2