armsom-sige5: let uboot use its own dtb for pd negotiation

This commit is contained in:
Jianfeng Liu
2025-09-07 13:53:58 +08:00
committed by Igor
parent b405bc8415
commit 8a4c1190c5
2 changed files with 48 additions and 3 deletions

View File

@@ -83,7 +83,7 @@ CONFIG_SPL_OF_CONTROL=y
CONFIG_SPL_DTB_MINIMUM=y CONFIG_SPL_DTB_MINIMUM=y
CONFIG_OF_LIVE=y CONFIG_OF_LIVE=y
CONFIG_OF_SPL_REMOVE_PROPS="clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents" CONFIG_OF_SPL_REMOVE_PROPS="clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
CONFIG_OF_U_BOOT_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents" CONFIG_OF_U_BOOT_REMOVE_PROPS="clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
# CONFIG_NET_TFTP_VARS is not set # CONFIG_NET_TFTP_VARS is not set
CONFIG_REGMAP=y CONFIG_REGMAP=y
CONFIG_SPL_REGMAP=y CONFIG_SPL_REGMAP=y
@@ -217,8 +217,6 @@ CONFIG_AVB_LIBAVB_AB=y
CONFIG_AVB_LIBAVB_ATX=y CONFIG_AVB_LIBAVB_ATX=y
CONFIG_AVB_LIBAVB_USER=y CONFIG_AVB_LIBAVB_USER=y
CONFIG_RK_AVB_LIBAVB_USER=y CONFIG_RK_AVB_LIBAVB_USER=y
CONFIG_ROCKCHIP_EARLY_DISTRO_DTB=y
CONFIG_ROCKCHIP_EARLY_DISTRO_DTB_PATH="/boot/dtb/rockchip/rk3576-armsom-sige5.dtb"
CONFIG_CMD_CHARGE_DISPLAY=y CONFIG_CMD_CHARGE_DISPLAY=y
CONFIG_CMD_PMIC=y CONFIG_CMD_PMIC=y
CONFIG_CMD_REGULATOR=y CONFIG_CMD_REGULATOR=y

View File

@@ -7,8 +7,55 @@
#include "rk3576.dtsi" #include "rk3576.dtsi"
#include "rk3576-u-boot.dtsi" #include "rk3576-u-boot.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/usb/pd.h>
/ { / {
model = "ArmSoM Sige5"; model = "ArmSoM Sige5";
compatible = "armsom,sige5", "rockchip,rk3576"; compatible = "armsom,sige5", "rockchip,rk3576";
}; };
&i2c0 {
u-boot,dm-pre-reloc;
status = "okay";
pinctrl-0 = <&i2c0m1_xfer>;
usbc1: fusb302@22 {
u-boot,dm-pre-reloc;
compatible = "fcs,fusb302";
reg = <0x22>;
interrupt-parent = <&gpio0>;
interrupts = <RK_PC3 IRQ_TYPE_LEVEL_LOW>;
int-n-gpios = <&gpio0 RK_PC3 GPIO_ACTIVE_LOW>;
pinctrl-names = "default";
pinctrl-0 = <&usbc1_int>;
status = "okay";
usb_con1: connector {
u-boot,dm-pre-reloc;
compatible = "usb-c-connector";
label = "USB-C";
data-role = "dual";
power-role = "sink";
op-sink-microwatt = <1000000>;
sink-pdos =
<PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)
PDO_VAR(5000, 12000, 5000)>;
};
};
};
&i2c0m1_xfer {
u-boot,dm-pre-reloc;
};
&pcfg_pull_none_smt {
u-boot,dm-pre-reloc;
};
&pinctrl {
u-boot,dm-pre-reloc;
usb {
usbc1_int: usbc1-int {
u-boot,dm-pre-reloc;
rockchip,pins = <0 RK_PC3 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
};