1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
2 /* Copyright (c) 2018-2019 SiFive, Inc */
4 #include "fu540-c000.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/leds/common.h>
7 #include <dt-bindings/pwm/pwm.h>
9 /* Clock frequency (in Hz) of the PCB crystal for rtcclk */
10 #define RTCCLK_FREQ 1000000
13 model = "SiFive HiFive Unleashed A00";
14 compatible = "sifive,hifive-unleashed-a00", "sifive,fu540-c000",
18 stdout-path = "serial0";
22 timebase-frequency = <RTCCLK_FREQ>;
26 device_type = "memory";
27 reg = <0x0 0x80000000 0x2 0x00000000>;
32 compatible = "fixed-clock";
33 clock-frequency = <33333333>;
34 clock-output-names = "hfclk";
39 compatible = "fixed-clock";
40 clock-frequency = <RTCCLK_FREQ>;
41 clock-output-names = "rtcclk";
44 compatible = "gpio-restart";
45 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
49 compatible = "pwm-leds";
52 pwms = <&pwm0 0 7812500 PWM_POLARITY_INVERTED>;
54 color = <LED_COLOR_ID_GREEN>;
55 max-brightness = <255>;
60 pwms = <&pwm0 1 7812500 PWM_POLARITY_INVERTED>;
62 color = <LED_COLOR_ID_GREEN>;
63 max-brightness = <255>;
68 pwms = <&pwm0 2 7812500 PWM_POLARITY_INVERTED>;
70 color = <LED_COLOR_ID_GREEN>;
71 max-brightness = <255>;
76 pwms = <&pwm0 3 7812500 PWM_POLARITY_INVERTED>;
78 color = <LED_COLOR_ID_GREEN>;
79 max-brightness = <255>;
100 compatible = "jedec,spi-nor";
102 spi-max-frequency = <50000000>;
104 spi-tx-bus-width = <4>;
105 spi-rx-bus-width = <4>;
112 compatible = "mmc-spi-slot";
114 spi-max-frequency = <20000000>;
115 voltage-ranges = <3300 3300>;
117 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
124 phy-handle = <&phy0>;
125 phy0: ethernet-phy@0 {
126 compatible = "ethernet-phy-id0007.0771";