Hal Feng | baf555d | 2024-12-08 17:19:35 +0800 | [diff] [blame^] | 1 | // SPDX-License-Identifier: GPL-2.0 OR MIT |
| 2 | /* |
| 3 | * Copyright (C) 2023 StarFive Technology Co., Ltd. |
| 4 | */ |
| 5 | |
| 6 | #include "binman.dtsi" |
| 7 | #include "jh7110-u-boot.dtsi" |
| 8 | / { |
| 9 | aliases { |
| 10 | spi0 = &qspi; |
| 11 | }; |
| 12 | |
| 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; |
| 34 | reg-offset = <0>; |
| 35 | current-speed = <115200>; |
| 36 | clock-frequency = <24000000>; |
| 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 | |
| 50 | flash@0 { |
| 51 | bootph-pre-ram; |
| 52 | cdns,read-delay = <2>; |
| 53 | spi-max-frequency = <100000000>; |
| 54 | }; |
| 55 | }; |
| 56 | |
| 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 | |
| 69 | &sysgpio { |
| 70 | bootph-pre-ram; |
| 71 | }; |
| 72 | |
| 73 | &mmc0_pins { |
| 74 | bootph-pre-ram; |
| 75 | rst-pins { |
| 76 | bootph-pre-ram; |
| 77 | }; |
| 78 | }; |
| 79 | |
| 80 | &mmc1_pins { |
| 81 | bootph-pre-ram; |
| 82 | clk-pins { |
| 83 | bootph-pre-ram; |
| 84 | }; |
| 85 | |
| 86 | mmc-pins { |
| 87 | bootph-pre-ram; |
| 88 | }; |
| 89 | }; |
| 90 | |
| 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; |
| 102 | compatible = "atmel,24c04"; |
| 103 | reg = <0x50>; |
| 104 | pagesize = <16>; |
| 105 | }; |
| 106 | }; |
| 107 | |
| 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 | }; |
| 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 | }; |
| 139 | }; |
| 140 | }; |
| 141 | }; |