123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- // SPDX-License-Identifier: (GPL-2.0 OR MIT)
- /* Copyright (c) 2021 StarFive Technology Co., Ltd. */
- #include "dubhe.dtsi"
- #include "binman.dtsi"
- #include "dubhe-fpga-u-boot.dtsi"
- / {
- model = "StarFive Dubhe FPGA";
- aliases {
- serial0 = &uart0;
- };
- chosen {
- bootargs = "console=ttySIF0,115200 earlycon=sbi root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait";
- };
- cpus {
- timebase-frequency = <25000000>;
- };
- memory@80000000 {
- device_type = "memory";
- reg = <0x0 0x80000000 0x2 0x0>;
- };
- soc {
- };
- };
- &spi0 {
- status = "okay";
- mmc@0 {
- compatible = "mmc-spi-slot";
- reg = <0>;
- spi-max-frequency = <20000000>;
- voltage-ranges = <3300 3300>;
- disable-wp;
- };
- };
- &qspi1 {
- status = "okay";
- flash@0 {
- compatible = "jedec,spi-nor";
- reg = <0>;
- spi-max-frequency = <20000000>;
- m25p,fast-read;
- spi-tx-bus-width = <1>;
- spi-rx-bus-width = <1>;
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
- partition@0 {
- reg = <0x000000 0x1000>;
- label = "boot copier";
- /*read-only;*/
- };
- partition@1000 {
- reg = <0x1000 0x1000>;
- label = "boot jump";
- /*read-only;*/
- };
- partition@2000 {
- reg = <0x2000 0x2000>;
- label = "DTB";
- };
- partition@4000 {
- reg = <0x4000 0x7ffc000>;
- label = "FW_payload (OpenSBI and Linux)";
- };
- };
- };
- };
- &uart0 {
- status = "okay";
- };
- &binman {
- kernel_fit {
- filename = "kernel.itb";
- fit {
- description = "FIT with Linux kernel image and FDT";
- #address-cells = <1>;
- images {
- kernel {
- description = "Linux kernel";
- type = "kernel";
- arch = "riscv";
- os = "linux";
- compression = "none";
- load = <0x80200000>;
- entry = <0x80200000>;
- kernel_blob: blob-ext {
- filename = "Image";
- };
- };
- fdt_kernel {
- description = "Linux kernel device tree binary";
- type = "flat_dt";
- arch = "riscv";
- compression = "none";
- load = <0x88000000>;
- fdt_kernel_blob: blob-ext {
- filename = "dubhe_fpga_linux.dtb";
- };
- };
- };
- configurations {
- default = "conf";
- conf {
- description = "Starfive Dubhe FPGA";
- kernel = "kernel";
- fdt = "fdt_kernel";
- };
- };
- };
- };
- QSPI_Image_binary {
- filename = "QSPI-Image.bin";
- pad-byte = <0xff>;
- bootcopier_blob: blob-ext@0 {
- filename = "dubhe_fpga_bootcode.bin";
- offset = <0x0>;
- };
- bootjump_blob: blob-ext@1 {
- filename = "dubhe_fpga_bootjump.bin";
- offset = <0x1000>;
- };
- u-boot-spl {
- offset = <0x2000>;
- };
- qspi_ubootproper_opensbi_blob: blob-ext@2 {
- filename = "u-boot.itb";
- offset = <0x22000>;
- };
- qspi_kernel_blob: blob-ext@3 {
- filename = "kernel.itb";
- offset = <0x400000>;
- };
- };
- };
|