Enable OF_UPSTREAM to use upstream DT and add starfive/ prefix to
the DEFAULT_DEVICE_TREE. Rename jh7110-starfive-visionfive-2-u-boot.dtsi
to jh7110-starfive-visionfive-2-v1.3b-u-boot.dtsi and set the v1.3b
device tree as the default device tree.
Drop redundant DT files from arch/riscv/dts/ and redundant clock and
reset definitions from include/dt-bindings/.
Since the old clock definitions is a little different from those in
upstream Linux, update the clock definitions in clock drivers
accordingly.
Tested-by: Anand Moon <linux.amoon@gmail.com>
Tested-by: E Shattow <lucent@gmail.com>
Acked-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
(cherry picked from commit 84d3911a01)
118 lines
1.3 KiB
Plaintext
118 lines
1.3 KiB
Plaintext
// SPDX-License-Identifier: GPL-2.0 OR MIT
|
|
/*
|
|
* Copyright (C) 2023 StarFive Technology Co., Ltd.
|
|
*/
|
|
|
|
#include "binman.dtsi"
|
|
#include "jh7110-u-boot.dtsi"
|
|
/ {
|
|
chosen {
|
|
bootph-pre-ram;
|
|
};
|
|
|
|
firmware {
|
|
spi0 = &qspi;
|
|
bootph-pre-ram;
|
|
};
|
|
|
|
config {
|
|
bootph-pre-ram;
|
|
u-boot,spl-payload-offset = <0x100000>;
|
|
};
|
|
|
|
memory@40000000 {
|
|
bootph-pre-ram;
|
|
};
|
|
};
|
|
|
|
&uart0 {
|
|
bootph-pre-ram;
|
|
};
|
|
|
|
&mmc0 {
|
|
bootph-pre-ram;
|
|
};
|
|
|
|
&mmc1 {
|
|
bootph-pre-ram;
|
|
};
|
|
|
|
&qspi {
|
|
bootph-pre-ram;
|
|
|
|
nor-flash@0 {
|
|
bootph-pre-ram;
|
|
};
|
|
};
|
|
|
|
&sysgpio {
|
|
bootph-pre-ram;
|
|
};
|
|
|
|
&mmc0_pins {
|
|
bootph-pre-ram;
|
|
mmc0-pins-rest {
|
|
bootph-pre-ram;
|
|
};
|
|
};
|
|
|
|
&mmc1_pins {
|
|
bootph-pre-ram;
|
|
mmc1-pins0 {
|
|
bootph-pre-ram;
|
|
};
|
|
|
|
mmc1-pins1 {
|
|
bootph-pre-ram;
|
|
};
|
|
};
|
|
|
|
&i2c5_pins {
|
|
bootph-pre-ram;
|
|
i2c-pins {
|
|
bootph-pre-ram;
|
|
};
|
|
};
|
|
|
|
&i2c5 {
|
|
bootph-pre-ram;
|
|
eeprom@50 {
|
|
bootph-pre-ram;
|
|
};
|
|
};
|
|
|
|
&binman {
|
|
itb {
|
|
fit {
|
|
images {
|
|
fdt-1 {
|
|
description = "NAME";
|
|
load = <0x40400000>;
|
|
compression = "none";
|
|
|
|
uboot_fdt_blob: blob-ext {
|
|
filename = "u-boot.dtb";
|
|
};
|
|
};
|
|
};
|
|
|
|
configurations {
|
|
conf-1 {
|
|
fdt = "fdt-1";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
spl-img {
|
|
filename = "spl/u-boot-spl.bin.normal.out";
|
|
|
|
mkimage {
|
|
args = "-T sfspl";
|
|
|
|
u-boot-spl {
|
|
};
|
|
};
|
|
};
|
|
};
|