[RFC PATCH 15/16] ARM: dts: rockchip: Add rk3588-u-boot.dtsi
Eugen Hristev
eugen.hristev at collabora.com
Fri Jan 27 14:33:22 CET 2023
Hello Jagan,
On 1/26/23 00:27, Jagan Teki wrote:
> Add u-boot,dm-spl and u-boot,dm-pre-reloc related properties
> for Rockchip RK3588 SoC.
It appears this file/commit does more than just adding u-boot,* properties
>
> Signed-off-by: Jagan Teki <jagan at edgeble.ai>
> ---
> arch/arm/dts/rk3588-u-boot.dtsi | 101 ++++++++++++++++++++++++++++++++
> 1 file changed, 101 insertions(+)
> create mode 100644 arch/arm/dts/rk3588-u-boot.dtsi
>
> diff --git a/arch/arm/dts/rk3588-u-boot.dtsi b/arch/arm/dts/rk3588-u-boot.dtsi
> new file mode 100644
> index 0000000000..b5cc4dcc60
> --- /dev/null
> +++ b/arch/arm/dts/rk3588-u-boot.dtsi
> @@ -0,0 +1,101 @@
> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
> +/*
> + * Copyright (c) 2022 Edgeble AI Technologies Pvt. Ltd.
> + */
> +
> +#include "rockchip-u-boot.dtsi"
> +#include <dt-bindings/gpio/gpio.h>
> +
> +/ {
> + dmc {
> + compatible = "rockchip,rk3588-dmc";
> + u-boot,dm-pre-reloc;
> + status = "okay";
> + };
> +
> + pmu1_grf: syscon at fd58a000 {
> + u-boot,dm-pre-reloc;
> + compatible = "rockchip,rk3588-pmu1-grf", "syscon";
> + reg = <0x0 0xfd58a000 0x0 0x2000>;
> + };
> +
> + sdmmc: mmc at fe2c0000 {
Just for my understanding, why are you adding here a new node sdmmc, and
have it disabled, while you have another node called 'sdhci' which you
enable further down in the file ?
What is the purpose of this sdmmc node? and defining it here.
Eugen
> + compatible = "rockchip,rk3588-dw-mshc", "rockchip,rk3288-dw-mshc";
> + reg = <0x0 0xfe2c0000 0x0 0x4000>;
> + interrupts = <GIC_SPI 203 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&cru SCLK_SDMMC_SAMPLE>, <&cru SCLK_SDMMC_DRV>,
> + <&scmi_clk SCMI_HCLK_SD>, <&scmi_clk SCMI_CCLK_SD>;
> + clock-names = "ciu", "biu", "ciu-drive", "ciu-sample";
> + fifo-depth = <0x100>;
> + max-frequency = <200000000>;
> + pinctrl-names = "default";
> + pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_det &sdmmc_bus4>;
> + status = "disabled";
> + };
> +};
> +
> +&gpio0 {
> + u-boot,dm-spl;
> + status = "okay";
> +};
> +
> +&gpio1 {
> + u-boot,dm-pre-reloc;
> + status = "okay";
> +};
> +
> +&gpio2 {
> + u-boot,dm-pre-reloc;
> + status = "okay";
> +};
> +
> +&gpio3 {
> + u-boot,dm-pre-reloc;
> + status = "okay";
> +};
> +
> +&gpio4 {
> + u-boot,dm-pre-reloc;
> + status = "okay";
> +};
> +
> +&scmi {
> + u-boot,dm-spl;
> +};
> +
> +&scmi_clk {
> + u-boot,dm-spl;
> +};
> +
> +&xin24m {
> + u-boot,dm-pre-reloc;
> + status = "okay";
> +};
> +
> +&cru {
> + u-boot,dm-spl;
> + status = "okay";
> +};
> +
> +&sys_grf {
> + u-boot,dm-spl;
> + status = "okay";
> +};
> +
> +&uart2 {
> + clock-frequency = <24000000>;
> + u-boot,dm-spl;
> + status = "okay";
> +};
> +
> +&sdhci {
> + bus-width = <8>;
> + u-boot,dm-spl;
> + mmc-hs200-1_8v;
> + non-removable;
> + status = "okay";
> +};
> +
> +&ioc {
> + u-boot,dm-spl;
> +};
More information about the U-Boot
mailing list