From 3cfb3952dd0082e800ae6607c4f79d5587a8b486 Mon Sep 17 00:00:00 2001 From: aiamadeus <42570690+aiamadeus@users.noreply.github.com> Date: Sun, 16 Mar 2025 23:20:02 +0800 Subject: [PATCH] rockchip: add support for h29k hw v1.3 --- .../boot/dts/rockchip/rk3528-opc-h29k.dts | 42 +++++++++++++------ 1 file changed, 29 insertions(+), 13 deletions(-) diff --git a/target/linux/rockchip/files/arch/arm64/boot/dts/rockchip/rk3528-opc-h29k.dts b/target/linux/rockchip/files/arch/arm64/boot/dts/rockchip/rk3528-opc-h29k.dts index 839f68c42..a164f460b 100644 --- a/target/linux/rockchip/files/arch/arm64/boot/dts/rockchip/rk3528-opc-h29k.dts +++ b/target/linux/rockchip/files/arch/arm64/boot/dts/rockchip/rk3528-opc-h29k.dts @@ -101,11 +101,13 @@ vcc_3v3_lcd: vcc-3v3-lcd { compatible = "regulator-fixed"; - gpio = <&gpio0 RK_PA0 GPIO_ACTIVE_LOW>; - regulator-name = "vcc3v3_lcd"; + enable-active-high; + gpio = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>; + regulator-name = "vcc_3v3_lcd"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; - vin-supply = <&vcc_3v3>; + regulator-always-on; + vin-supply = <&vcc5v0_sys>; }; vcc3v3_sd: vcc3v3-sd { @@ -144,8 +146,8 @@ regulator-name = "vcc_ddr"; regulator-always-on; regulator-boot-on; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <1200000>; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1100000>; vin-supply = <&vcc5v0_sys>; }; @@ -162,25 +164,25 @@ vdd_arm: vdd-arm { compatible = "pwm-regulator"; pwms = <&pwm1 0 5000 1>; + pwm-supply = <&vcc5v0_sys>; regulator-name = "vdd_arm"; regulator-min-microvolt = <746000>; regulator-max-microvolt = <1201000>; regulator-always-on; regulator-boot-on; regulator-settling-time-up-us = <250>; - pwm-supply = <&vcc5v0_sys>; }; vdd_logic: vdd-logic { compatible = "pwm-regulator"; pwms = <&pwm2 0 5000 1>; + pwm-supply = <&vcc5v0_sys>; regulator-name = "vdd_logic"; regulator-min-microvolt = <705000>; regulator-max-microvolt = <1006000>; regulator-always-on; regulator-boot-on; regulator-settling-time-up-us = <250>; - pwm-supply = <&vcc5v0_sys>; }; }; @@ -226,6 +228,10 @@ status = "okay"; }; +&i2c1 { + status = "okay"; +}; + &mdio1 { rgmii_phy: phy@1 { compatible = "ethernet-phy-ieee802.3-c22"; @@ -262,7 +268,7 @@ }; lcd_rs_pin: lcd-rs-pin { - rockchip,pins = <1 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>; + rockchip,pins = <1 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up>; }; }; @@ -285,6 +291,12 @@ status = "okay"; }; +&pwm5 { + pinctrl-0 = <&pwm5m1_pins>; + pinctrl-names = "default"; + status = "okay"; +}; + &rng { status = "okay"; }; @@ -309,9 +321,6 @@ pinctrl-names = "default"; pinctrl-0 = <&sdmmc_bus4 &sdmmc_clk &sdmmc_cmd &sdmmc_det>; rockchip,default-sample-phase = <90>; - sd-uhs-sdr12; - sd-uhs-sdr25; - sd-uhs-sdr50; sd-uhs-sdr104; vmmc-supply = <&vcc3v3_sd>; vqmmc-supply = <&vccio_sd>; @@ -333,7 +342,7 @@ sd-uhs-sdr104; status = "okay"; - sdio_wifi@1 { + wifi@1 { reg = <1>; interrupt-parent = <&gpio1>; interrupts = ; @@ -355,6 +364,7 @@ pinctrl-names = "default"; pinctrl-0 = <&lcd_rs_pin>; dc-gpios = <&gpio1 RK_PB4 GPIO_ACTIVE_HIGH>; + led-gpios = <&gpio0 RK_PA1 GPIO_ACTIVE_HIGH>; spi-max-frequency = <15000000>; power-supply = <&vcc_3v3_lcd>; }; @@ -370,9 +380,15 @@ status = "okay"; }; +&uart1 { + pinctrl-names = "default"; + pinctrl-0 = <&uart1m0_xfer>; + status = "okay"; +}; + &uart2 { pinctrl-names = "default"; - pinctrl-0 = <&uart2m1_xfer &uart2m1_ctsn>; + pinctrl-0 = <&uart2m1_ctsn &uart2m1_xfer>; status = "okay"; };