blob: 45fada34d2f8485d3c047d2e6c4d295c1cfdb30e [file] [log] [blame]
Yanhong Wang5efc9342023-03-29 11:42:23 +08001// SPDX-License-Identifier: GPL-2.0 OR MIT
2/*
Yanhong Wang438ab1e2023-06-15 17:36:45 +08003 * Copyright (C) 2023 StarFive Technology Co., Ltd.
Yanhong Wang5efc9342023-03-29 11:42:23 +08004 */
5
6#include "binman.dtsi"
7#include "jh7110-u-boot.dtsi"
8/ {
Hal Feng7cbf1a42024-12-08 17:19:32 +08009 aliases {
10 spi0 = &qspi;
11 };
12
Yanhong Wang5efc9342023-03-29 11:42:23 +080013 chosen {
14 bootph-pre-ram;
15 };
16
17 firmware {
18 spi0 = &qspi;
19 bootph-pre-ram;
20 };
21
22 config {
23 bootph-pre-ram;
24 u-boot,spl-payload-offset = <0x100000>;
25 };
26
27 memory@40000000 {
28 bootph-pre-ram;
29 };
30};
31
32&uart0 {
33 bootph-pre-ram;
Hal Feng7cbf1a42024-12-08 17:19:32 +080034 reg-offset = <0>;
35 current-speed = <115200>;
36 clock-frequency = <24000000>;
Yanhong Wang5efc9342023-03-29 11:42:23 +080037};
38
39&mmc0 {
40 bootph-pre-ram;
41};
42
43&mmc1 {
44 bootph-pre-ram;
45};
46
47&qspi {
48 bootph-pre-ram;
49
Hal Feng7cbf1a42024-12-08 17:19:32 +080050 flash@0 {
Yanhong Wang5efc9342023-03-29 11:42:23 +080051 bootph-pre-ram;
Hal Feng7cbf1a42024-12-08 17:19:32 +080052 cdns,read-delay = <2>;
53 spi-max-frequency = <100000000>;
Yanhong Wang5efc9342023-03-29 11:42:23 +080054 };
55};
56
Hal Feng7cbf1a42024-12-08 17:19:32 +080057&syscrg {
58 assigned-clocks = <&syscrg JH7110_SYSCLK_CPU_ROOT>,
59 <&syscrg JH7110_SYSCLK_BUS_ROOT>,
60 <&syscrg JH7110_SYSCLK_PERH_ROOT>,
61 <&syscrg JH7110_SYSCLK_QSPI_REF>;
62 assigned-clock-parents = <&pllclk JH7110_PLLCLK_PLL0_OUT>,
63 <&pllclk JH7110_PLLCLK_PLL2_OUT>,
64 <&pllclk JH7110_PLLCLK_PLL2_OUT>,
65 <&syscrg JH7110_SYSCLK_QSPI_REF_SRC>;
66 assigned-clock-rates = <0>, <0>, <0>, <0>;
67};
68
Yanhong Wang5efc9342023-03-29 11:42:23 +080069&sysgpio {
70 bootph-pre-ram;
71};
72
73&mmc0_pins {
74 bootph-pre-ram;
Hal Feng7cbf1a42024-12-08 17:19:32 +080075 rst-pins {
Yanhong Wang5efc9342023-03-29 11:42:23 +080076 bootph-pre-ram;
77 };
78};
79
80&mmc1_pins {
81 bootph-pre-ram;
Hal Feng7cbf1a42024-12-08 17:19:32 +080082 clk-pins {
Yanhong Wang5efc9342023-03-29 11:42:23 +080083 bootph-pre-ram;
84 };
85
Hal Feng7cbf1a42024-12-08 17:19:32 +080086 mmc-pins {
Yanhong Wang5efc9342023-03-29 11:42:23 +080087 bootph-pre-ram;
88 };
89};
90
Yanhong Wangd4269422023-06-15 17:36:49 +080091&i2c5_pins {
92 bootph-pre-ram;
93 i2c-pins {
94 bootph-pre-ram;
95 };
96};
97
98&i2c5 {
99 bootph-pre-ram;
100 eeprom@50 {
101 bootph-pre-ram;
Hal Feng7cbf1a42024-12-08 17:19:32 +0800102 compatible = "atmel,24c04";
103 reg = <0x50>;
104 pagesize = <16>;
Yanhong Wangd4269422023-06-15 17:36:49 +0800105 };
106};
107
Yanhong Wang438ab1e2023-06-15 17:36:45 +0800108&binman {
109 itb {
110 fit {
111 images {
112 fdt-1 {
113 description = "NAME";
114 load = <0x40400000>;
115 compression = "none";
116
117 uboot_fdt_blob: blob-ext {
118 filename = "u-boot.dtb";
119 };
120 };
121 };
122
123 configurations {
124 conf-1 {
125 fdt = "fdt-1";
126 };
127 };
128 };
129 };
Heinrich Schuchardtb112ed52023-09-17 13:47:31 +0200130
131 spl-img {
132 filename = "spl/u-boot-spl.bin.normal.out";
133
134 mkimage {
135 args = "-T sfspl";
136
137 u-boot-spl {
138 };
Leon M. Busch-Georgeaff571a2024-03-04 21:51:47 +0100139 };
Heinrich Schuchardtb112ed52023-09-17 13:47:31 +0200140 };
141};