Include FDTs for both ROCK 5B and 5B+ in the FIT and add board selection code to load the 5B+ FDT when the DRAM type is LPDDR5 and ADC channel 5 value is close to 4095. U-Boot 2025.07 (Jul 14 2025 - 21:28:20 +0000) Model: Radxa ROCK 5B+ SoC: RK3588 DRAM: 8 GiB Features tested on a ROCK 5B+ v1.2: - SD-card boot - eMMC boot - SPI flash boot - PCIe/NVMe - Ethernet - USB/TCPM Signed-off-by: Jonas Karlman <jonas@kwiboo.se> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
83 lines
1.2 KiB
Plaintext
83 lines
1.2 KiB
Plaintext
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
/*
|
|
* Copyright (c) 2023 Collabora Ltd.
|
|
*/
|
|
|
|
#include <dt-bindings/usb/pd.h>
|
|
#include "rk3588-u-boot.dtsi"
|
|
|
|
/ {
|
|
leds {
|
|
led_rgb_b {
|
|
default-state = "on";
|
|
};
|
|
};
|
|
};
|
|
|
|
&fspim2_pins {
|
|
bootph-pre-ram;
|
|
bootph-some-ram;
|
|
};
|
|
|
|
&i2c4 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&i2c4m1_xfer>;
|
|
status = "okay";
|
|
|
|
usbc0: usb-typec@22 {
|
|
compatible = "fcs,fusb302";
|
|
reg = <0x22>;
|
|
interrupt-parent = <&gpio3>;
|
|
interrupts = <RK_PB4 IRQ_TYPE_LEVEL_LOW>;
|
|
pinctrl-names = "default";
|
|
status = "okay";
|
|
|
|
usb_con: connector {
|
|
compatible = "usb-c-connector";
|
|
label = "USB-C";
|
|
data-role = "dual";
|
|
power-role = "sink";
|
|
try-power-role = "sink";
|
|
op-sink-microwatt = <1000000>;
|
|
sink-pdos =
|
|
<PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>,
|
|
<PDO_VAR(5000, 20000, 5000)>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&saradc {
|
|
bootph-pre-ram;
|
|
vdd-microvolts = <1800000>;
|
|
};
|
|
|
|
&sdhci {
|
|
cap-mmc-highspeed;
|
|
mmc-hs200-1_8v;
|
|
};
|
|
|
|
&sfc {
|
|
flash@0 {
|
|
bootph-pre-ram;
|
|
bootph-some-ram;
|
|
};
|
|
};
|
|
|
|
&u2phy0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&u2phy0_otg {
|
|
status = "okay";
|
|
};
|
|
|
|
&usbdp_phy0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&usb_host0_xhci {
|
|
dr_mode = "peripheral";
|
|
maximum-speed = "high-speed";
|
|
status = "okay";
|
|
};
|