Loading...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 | // SPDX-License-Identifier: (GPL-2.0 OR MIT) /* Copyright (c) 2018-2019 SiFive, Inc */ #include "fu540-c000.dtsi" #include <dt-bindings/gpio/gpio.h> #include <dt-bindings/leds/common.h> #include <dt-bindings/pwm/pwm.h> /* Clock frequency (in Hz) of the PCB crystal for rtcclk */ #define RTCCLK_FREQ 1000000 / { #address-cells = <2>; #size-cells = <2>; model = "SiFive HiFive Unleashed A00"; compatible = "sifive,hifive-unleashed-a00", "sifive,fu540-c000"; chosen { stdout-path = "serial0"; }; cpus { timebase-frequency = <RTCCLK_FREQ>; }; memory@80000000 { device_type = "memory"; reg = <0x0 0x80000000 0x2 0x00000000>; }; soc { }; hfclk: hfclk { #clock-cells = <0>; compatible = "fixed-clock"; clock-frequency = <33333333>; clock-output-names = "hfclk"; }; rtcclk: rtcclk { #clock-cells = <0>; compatible = "fixed-clock"; clock-frequency = <RTCCLK_FREQ>; clock-output-names = "rtcclk"; }; gpio-restart { compatible = "gpio-restart"; gpios = <&gpio 10 GPIO_ACTIVE_LOW>; }; led-controller { compatible = "pwm-leds"; led-d1 { pwms = <&pwm0 0 7812500 PWM_POLARITY_INVERTED>; active-low; color = <LED_COLOR_ID_GREEN>; max-brightness = <255>; label = "d1"; }; led-d2 { pwms = <&pwm0 1 7812500 PWM_POLARITY_INVERTED>; active-low; color = <LED_COLOR_ID_GREEN>; max-brightness = <255>; label = "d2"; }; led-d3 { pwms = <&pwm0 2 7812500 PWM_POLARITY_INVERTED>; active-low; color = <LED_COLOR_ID_GREEN>; max-brightness = <255>; label = "d3"; }; led-d4 { pwms = <&pwm0 3 7812500 PWM_POLARITY_INVERTED>; active-low; color = <LED_COLOR_ID_GREEN>; max-brightness = <255>; label = "d4"; }; }; }; &uart0 { status = "okay"; }; &uart1 { status = "okay"; }; &i2c0 { status = "okay"; }; &qspi0 { status = "okay"; flash@0 { compatible = "issi,is25wp256", "jedec,spi-nor"; reg = <0>; spi-max-frequency = <50000000>; m25p,fast-read; spi-tx-bus-width = <4>; spi-rx-bus-width = <4>; }; }; &qspi2 { status = "okay"; mmc@0 { compatible = "mmc-spi-slot"; reg = <0>; spi-max-frequency = <20000000>; voltage-ranges = <3300 3300>; disable-wp; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; }; ð0 { status = "okay"; phy-mode = "gmii"; phy-handle = <&phy0>; phy0: ethernet-phy@0 { compatible = "ethernet-phy-id0007.0771"; reg = <0>; }; }; &pwm0 { status = "okay"; }; &pwm1 { status = "okay"; }; &gpio { status = "okay"; }; |