1// SPDX-License-Identifier: (GPL-2.0 OR MIT) 2/* Copyright (c) 2020 SiFive, Inc */ 3 4#include "fu740-c000.dtsi" 5#include <dt-bindings/gpio/gpio.h> 6#include <dt-bindings/interrupt-controller/irq.h> 7 8/* Clock frequency (in Hz) of the PCB crystal for rtcclk */ 9#define RTCCLK_FREQ 1000000 10 11/ { 12 model = "SiFive HiFive Unmatched A00"; 13 compatible = "sifive,hifive-unmatched-a00", "sifive,fu740-c000", 14 "sifive,fu740"; 15 16 chosen { 17 stdout-path = "serial0"; 18 }; 19 20 cpus { 21 timebase-frequency = <RTCCLK_FREQ>; 22 }; 23 24 memory@80000000 { 25 device_type = "memory"; 26 reg = <0x0 0x80000000 0x4 0x00000000>; 27 }; 28 29 hfclk: hfclk { 30 #clock-cells = <0>; 31 compatible = "fixed-clock"; 32 clock-frequency = <26000000>; 33 clock-output-names = "hfclk"; 34 }; 35 36 rtcclk: rtcclk { 37 #clock-cells = <0>; 38 compatible = "fixed-clock"; 39 clock-frequency = <RTCCLK_FREQ>; 40 clock-output-names = "rtcclk"; 41 }; 42}; 43 44&uart0 { 45 status = "okay"; 46}; 47 48&uart1 { 49 status = "okay"; 50}; 51 52&i2c0 { 53 status = "okay"; 54 55 temperature-sensor@4c { 56 compatible = "ti,tmp451"; 57 reg = <0x4c>; 58 interrupt-parent = <&gpio>; 59 interrupts = <6 IRQ_TYPE_LEVEL_LOW>; 60 }; 61 62 eeprom@54 { 63 compatible = "microchip,24c02", "atmel,24c02"; 64 reg = <0x54>; 65 vcc-supply = <&vdd_bpro>; 66 label = "board-id"; 67 pagesize = <16>; 68 read-only; 69 size = <256>; 70 }; 71 72 pmic@58 { 73 compatible = "dlg,da9063"; 74 reg = <0x58>; 75 interrupt-parent = <&gpio>; 76 interrupts = <1 IRQ_TYPE_LEVEL_LOW>; 77 interrupt-controller; 78 79 onkey { 80 compatible = "dlg,da9063-onkey"; 81 }; 82 83 rtc { 84 compatible = "dlg,da9063-rtc"; 85 }; 86 87 wdt { 88 compatible = "dlg,da9063-watchdog"; 89 }; 90 91 regulators { 92 vdd_bcore: bcores-merged { 93 regulator-min-microvolt = <1050000>; 94 regulator-max-microvolt = <1050000>; 95 regulator-min-microamp = <4800000>; 96 regulator-max-microamp = <4800000>; 97 regulator-always-on; 98 }; 99 100 vdd_bpro: bpro { 101 regulator-min-microvolt = <1800000>; 102 regulator-max-microvolt = <1800000>; 103 regulator-min-microamp = <2400000>; 104 regulator-max-microamp = <2400000>; 105 regulator-always-on; 106 }; 107 108 vdd_bperi: bperi { 109 regulator-min-microvolt = <1060000>; 110 regulator-max-microvolt = <1060000>; 111 regulator-min-microamp = <1500000>; 112 regulator-max-microamp = <1500000>; 113 regulator-always-on; 114 }; 115 116 vdd_bmem_bio: bmem-bio-merged { 117 regulator-min-microvolt = <1200000>; 118 regulator-max-microvolt = <1200000>; 119 regulator-min-microamp = <3000000>; 120 regulator-max-microamp = <3000000>; 121 regulator-always-on; 122 }; 123 124 vdd_ldo1: ldo1 { 125 regulator-min-microvolt = <1800000>; 126 regulator-max-microvolt = <1800000>; 127 regulator-always-on; 128 }; 129 130 vdd_ldo2: ldo2 { 131 regulator-min-microvolt = <1800000>; 132 regulator-max-microvolt = <1800000>; 133 regulator-always-on; 134 }; 135 136 vdd_ldo3: ldo3 { 137 regulator-min-microvolt = <3300000>; 138 regulator-max-microvolt = <3300000>; 139 regulator-always-on; 140 }; 141 142 vdd_ldo4: ldo4 { 143 regulator-min-microvolt = <2500000>; 144 regulator-max-microvolt = <2500000>; 145 regulator-always-on; 146 }; 147 148 vdd_ldo5: ldo5 { 149 regulator-min-microvolt = <3300000>; 150 regulator-max-microvolt = <3300000>; 151 regulator-always-on; 152 }; 153 154 vdd_ldo6: ldo6 { 155 regulator-min-microvolt = <1800000>; 156 regulator-max-microvolt = <1800000>; 157 regulator-always-on; 158 }; 159 160 vdd_ldo7: ldo7 { 161 regulator-min-microvolt = <3300000>; 162 regulator-max-microvolt = <3300000>; 163 regulator-always-on; 164 }; 165 166 vdd_ldo8: ldo8 { 167 regulator-min-microvolt = <3300000>; 168 regulator-max-microvolt = <3300000>; 169 regulator-always-on; 170 }; 171 172 vdd_ld09: ldo9 { 173 regulator-min-microvolt = <1050000>; 174 regulator-max-microvolt = <1050000>; 175 regulator-always-on; 176 }; 177 178 vdd_ldo10: ldo10 { 179 regulator-min-microvolt = <1000000>; 180 regulator-max-microvolt = <1000000>; 181 regulator-always-on; 182 }; 183 184 vdd_ldo11: ldo11 { 185 regulator-min-microvolt = <2500000>; 186 regulator-max-microvolt = <2500000>; 187 regulator-always-on; 188 }; 189 }; 190 }; 191}; 192 193&qspi0 { 194 status = "okay"; 195 flash@0 { 196 compatible = "jedec,spi-nor"; 197 reg = <0>; 198 spi-max-frequency = <50000000>; 199 m25p,fast-read; 200 spi-tx-bus-width = <4>; 201 spi-rx-bus-width = <4>; 202 }; 203}; 204 205&spi0 { 206 status = "okay"; 207 mmc@0 { 208 compatible = "mmc-spi-slot"; 209 reg = <0>; 210 spi-max-frequency = <20000000>; 211 voltage-ranges = <3300 3300>; 212 disable-wp; 213 gpios = <&gpio 15 GPIO_ACTIVE_LOW>; 214 }; 215}; 216 217ð0 { 218 status = "okay"; 219 phy-mode = "gmii"; 220 phy-handle = <&phy0>; 221 phy0: ethernet-phy@0 { 222 reg = <0>; 223 }; 224}; 225 226&pwm0 { 227 status = "okay"; 228}; 229 230&pwm1 { 231 status = "okay"; 232}; 233 234&gpio { 235 status = "okay"; 236 gpio-line-names = "J29.1", "PMICNTB", "PMICSHDN", "J8.1", "J8.3", 237 "PCIe_PWREN", "THERM", "UBRDG_RSTN", "PCIe_PERSTN", 238 "ULPI_RSTN", "J8.2", "UHUB_RSTN", "GEMGXL_RST", "J8.4", 239 "EN_VDD_SD", "SD_CD"; 240}; 241