Yanhong Wang | 5efc934 | 2023-03-29 11:42:23 +0800 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 OR MIT |
| 2 | /* |
Yanhong Wang | 438ab1e | 2023-06-15 17:36:45 +0800 | [diff] [blame] | 3 | * Copyright (C) 2023 StarFive Technology Co., Ltd. |
Yanhong Wang | 5efc934 | 2023-03-29 11:42:23 +0800 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #include "binman.dtsi" |
| 7 | #include "jh7110-u-boot.dtsi" |
| 8 | / { |
Hal Feng | 7cbf1a4 | 2024-12-08 17:19:32 +0800 | [diff] [blame] | 9 | aliases { |
| 10 | spi0 = &qspi; |
| 11 | }; |
| 12 | |
Yanhong Wang | 5efc934 | 2023-03-29 11:42:23 +0800 | [diff] [blame] | 13 | 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 Feng | 7cbf1a4 | 2024-12-08 17:19:32 +0800 | [diff] [blame] | 34 | reg-offset = <0>; |
| 35 | current-speed = <115200>; |
| 36 | clock-frequency = <24000000>; |
Yanhong Wang | 5efc934 | 2023-03-29 11:42:23 +0800 | [diff] [blame] | 37 | }; |
| 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 Feng | 7cbf1a4 | 2024-12-08 17:19:32 +0800 | [diff] [blame] | 50 | flash@0 { |
Yanhong Wang | 5efc934 | 2023-03-29 11:42:23 +0800 | [diff] [blame] | 51 | bootph-pre-ram; |
Hal Feng | 7cbf1a4 | 2024-12-08 17:19:32 +0800 | [diff] [blame] | 52 | cdns,read-delay = <2>; |
| 53 | spi-max-frequency = <100000000>; |
Yanhong Wang | 5efc934 | 2023-03-29 11:42:23 +0800 | [diff] [blame] | 54 | }; |
| 55 | }; |
| 56 | |
Hal Feng | 7cbf1a4 | 2024-12-08 17:19:32 +0800 | [diff] [blame] | 57 | &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 Wang | 5efc934 | 2023-03-29 11:42:23 +0800 | [diff] [blame] | 69 | &sysgpio { |
| 70 | bootph-pre-ram; |
| 71 | }; |
| 72 | |
| 73 | &mmc0_pins { |
| 74 | bootph-pre-ram; |
Hal Feng | 7cbf1a4 | 2024-12-08 17:19:32 +0800 | [diff] [blame] | 75 | rst-pins { |
Yanhong Wang | 5efc934 | 2023-03-29 11:42:23 +0800 | [diff] [blame] | 76 | bootph-pre-ram; |
| 77 | }; |
| 78 | }; |
| 79 | |
| 80 | &mmc1_pins { |
| 81 | bootph-pre-ram; |
Hal Feng | 7cbf1a4 | 2024-12-08 17:19:32 +0800 | [diff] [blame] | 82 | clk-pins { |
Yanhong Wang | 5efc934 | 2023-03-29 11:42:23 +0800 | [diff] [blame] | 83 | bootph-pre-ram; |
| 84 | }; |
| 85 | |
Hal Feng | 7cbf1a4 | 2024-12-08 17:19:32 +0800 | [diff] [blame] | 86 | mmc-pins { |
Yanhong Wang | 5efc934 | 2023-03-29 11:42:23 +0800 | [diff] [blame] | 87 | bootph-pre-ram; |
| 88 | }; |
| 89 | }; |
| 90 | |
Yanhong Wang | d426942 | 2023-06-15 17:36:49 +0800 | [diff] [blame] | 91 | &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 Feng | 7cbf1a4 | 2024-12-08 17:19:32 +0800 | [diff] [blame] | 102 | compatible = "atmel,24c04"; |
| 103 | reg = <0x50>; |
| 104 | pagesize = <16>; |
Yanhong Wang | d426942 | 2023-06-15 17:36:49 +0800 | [diff] [blame] | 105 | }; |
| 106 | }; |
| 107 | |
Yanhong Wang | 438ab1e | 2023-06-15 17:36:45 +0800 | [diff] [blame] | 108 | &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 Schuchardt | b112ed5 | 2023-09-17 13:47:31 +0200 | [diff] [blame] | 130 | |
| 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-George | aff571a | 2024-03-04 21:51:47 +0100 | [diff] [blame] | 139 | }; |
Heinrich Schuchardt | b112ed5 | 2023-09-17 13:47:31 +0200 | [diff] [blame] | 140 | }; |
| 141 | }; |