sun60iw2: fix BPI-M8 PMU setup and enable U-Boot HDMI

This commit is contained in:
Qubot 2026-06-03 00:23:22 +08:00
parent aaa9a89641
commit 5740b6639c
2 changed files with 35 additions and 8 deletions

View File

@ -21,8 +21,10 @@
aliases {
mmc0 = &card0_boot_para;
mmc2 = &card2_boot_para;
pmu0 = &pmu0;
sunxi-mmc0 = &card0_boot_para;
sunxi-mmc2 = &card2_boot_para;
twi6 = &twi6;
};
leds {
@ -209,7 +211,22 @@
};
twi6: s_twi@0x07083000 {
pmu0: pmu@34 {
clock-frequency = <200000>;
pinctrl-0 = <&s_twi0_pins_a>;
pinctrl-1 = <&s_twi0_pins_b>;
twi-supply = <&reg_aldo3>;
status = "okay";
pmu0: pmu@36 {
compatible = "x-powers,axp8191";
reg = <0x36>;
status = "okay";
regulators@0 {
reg_aldo3: aldo3 {
regulator-name = "axp8191-aldo3";
};
};
};
};
lvds0_pins_a: lvds0@0 {
@ -862,9 +879,10 @@
logo,uboot = "bootlogo.bmp";
};
disp1_hdmi0: disp1_hdmi0 {
enable = <0>;
status = "disabled";
enable = <1>;
status = "okay";
endpoints = <&disp1_out_tcon3 &tcon3_out_hdmi0>;
force-output;
logo,uboot = "bootlogo.bmp";
};
};
@ -966,7 +984,7 @@
clocks = <&clk_dpss_top1>;
clock-names = "clk_bus_dpss_top";
status = "disabled";
status = "okay";
};
lcd0: tcon0@5501000 {
@ -1257,7 +1275,7 @@
clock-names = "rst_bus_tcon";
top = <&vo1>;
status = "disabled";
status = "okay";
ports {
#address-cells = <1>;
#size-cells = <0>;
@ -1373,7 +1391,16 @@
assigned-clock-rates = <0>, <0>;
/*power-domains = <&pd1 A523_PCK_VO0>;*/
status = "disabled";
uhdmi_fast_output = <0>;
uhdmi_resistor_select = <1>;
force-output = <0>;
force-output-timing = "440000-3440-3450-4500-4800-1440-1455-1464-1494";
snps_phy = <
25000 185625 0x0007 0x8160 0x8188
185625 185625 0x0007 0x8160 0x8198
185625 340000 0x0004 0x8040 0x8E85
340000 600000 0x0000 0x80c0 0x82F6>;
status = "okay";
ports {
#address-cells = <1>;
#size-cells = <0>;

View File

@ -43,13 +43,11 @@ CONFIG_AW_GPIO_V3=y
CONFIG_SYS_I2C_SUNXI=y
CONFIG_SYS_SUNXI_R_I2C0_SLAVE=0x34
CONFIG_AXP8191_SUNXI_I2C_SLAVE=0x36
CONFIG_AXP515_SUNXI_I2C_SLAVE=0x34
CONFIG_MMC=y
CONFIG_UFS=y
CONFIG_SUNXI_POWER=y
CONFIG_SUNXI_PMU=y
CONFIG_SUNXI_BMU=y
CONFIG_AXP515_POWER=y
CONFIG_AXP8191_POWER=y
CONFIG_SUNXI_UBOOT_POWER_OFF=y
CONFIG_USB=y
@ -80,5 +78,7 @@ CONFIG_SUNXI_BOOT_PARAM=y
CONFIG_SUNXI_TURNNING_DRAM=y
CONFIG_HUSH_PARSER=y
# CONFIG_SUNXI_UPDATE_GPT is not set
# CONFIG_ENV_IS_IN_SUNXI_FLASH is not set
CONFIG_ENV_IS_NOWHERE=y
CONFIG_USE_DEFAULT_ENV_FILE=y
CONFIG_DEFAULT_ENV_FILE="board/sunxi/bananapi_m8.env"