treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / riscv / boot / dts / sifive / hifive-unleashed-a00.dts
blob609198cb1163756e9c00d6c8f70e8a8b2440c7a0
1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
2 /* Copyright (c) 2018-2019 SiFive, Inc */
4 #include "fu540-c000.dtsi"
6 /* Clock frequency (in Hz) of the PCB crystal for rtcclk */
7 #define RTCCLK_FREQ             1000000
9 / {
10         #address-cells = <2>;
11         #size-cells = <2>;
12         model = "SiFive HiFive Unleashed A00";
13         compatible = "sifive,hifive-unleashed-a00", "sifive,fu540-c000";
15         chosen {
16                 stdout-path = "serial0";
17         };
19         cpus {
20                 timebase-frequency = <RTCCLK_FREQ>;
21         };
23         memory@80000000 {
24                 device_type = "memory";
25                 reg = <0x0 0x80000000 0x2 0x00000000>;
26         };
28         soc {
29         };
31         hfclk: hfclk {
32                 #clock-cells = <0>;
33                 compatible = "fixed-clock";
34                 clock-frequency = <33333333>;
35                 clock-output-names = "hfclk";
36         };
38         rtcclk: rtcclk {
39                 #clock-cells = <0>;
40                 compatible = "fixed-clock";
41                 clock-frequency = <RTCCLK_FREQ>;
42                 clock-output-names = "rtcclk";
43         };
46 &uart0 {
47         status = "okay";
50 &uart1 {
51         status = "okay";
54 &i2c0 {
55         status = "okay";
58 &qspi0 {
59         status = "okay";
60         flash@0 {
61                 compatible = "issi,is25wp256", "jedec,spi-nor";
62                 reg = <0>;
63                 spi-max-frequency = <50000000>;
64                 m25p,fast-read;
65                 spi-tx-bus-width = <4>;
66                 spi-rx-bus-width = <4>;
67         };
70 &qspi2 {
71         status = "okay";
72         mmc@0 {
73                 compatible = "mmc-spi-slot";
74                 reg = <0>;
75                 spi-max-frequency = <20000000>;
76                 voltage-ranges = <3300 3300>;
77                 disable-wp;
78         };
81 &eth0 {
82         status = "okay";
83         phy-mode = "gmii";
84         phy-handle = <&phy0>;
85         phy0: ethernet-phy@0 {
86                 reg = <0>;
87         };
90 &pwm0 {
91         status = "okay";
94 &pwm1 {
95         status = "okay";
98 &gpio {
99         status = "okay";