The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/device-tree/src/riscv/sifive/hifive-unleashed-a00.dts

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
    2 /* Copyright (c) 2018-2019 SiFive, Inc */
    3 
    4 #include "fu540-c000.dtsi"
    5 #include <dt-bindings/gpio/gpio.h>
    6 
    7 /* Clock frequency (in Hz) of the PCB crystal for rtcclk */
    8 #define RTCCLK_FREQ             1000000
    9 
   10 / {
   11         model = "SiFive HiFive Unleashed A00";
   12         compatible = "sifive,hifive-unleashed-a00", "sifive,fu540-c000",
   13                      "sifive,fu540";
   14 
   15         chosen {
   16                 stdout-path = "serial0";
   17         };
   18 
   19         cpus {
   20                 timebase-frequency = <RTCCLK_FREQ>;
   21         };
   22 
   23         memory@80000000 {
   24                 device_type = "memory";
   25                 reg = <0x0 0x80000000 0x2 0x00000000>;
   26         };
   27 
   28         hfclk: hfclk {
   29                 #clock-cells = <0>;
   30                 compatible = "fixed-clock";
   31                 clock-frequency = <33333333>;
   32                 clock-output-names = "hfclk";
   33         };
   34 
   35         rtcclk: rtcclk {
   36                 #clock-cells = <0>;
   37                 compatible = "fixed-clock";
   38                 clock-frequency = <RTCCLK_FREQ>;
   39                 clock-output-names = "rtcclk";
   40         };
   41         gpio-restart {
   42                 compatible = "gpio-restart";
   43                 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
   44         };
   45 };
   46 
   47 &uart0 {
   48         status = "okay";
   49 };
   50 
   51 &uart1 {
   52         status = "okay";
   53 };
   54 
   55 &i2c0 {
   56         status = "okay";
   57 };
   58 
   59 &qspi0 {
   60         status = "okay";
   61         flash@0 {
   62                 compatible = "jedec,spi-nor";
   63                 reg = <0>;
   64                 spi-max-frequency = <50000000>;
   65                 m25p,fast-read;
   66                 spi-tx-bus-width = <4>;
   67                 spi-rx-bus-width = <4>;
   68         };
   69 };
   70 
   71 &qspi2 {
   72         status = "okay";
   73         mmc@0 {
   74                 compatible = "mmc-spi-slot";
   75                 reg = <0>;
   76                 spi-max-frequency = <20000000>;
   77                 voltage-ranges = <3300 3300>;
   78                 disable-wp;
   79                 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
   80         };
   81 };
   82 
   83 &eth0 {
   84         status = "okay";
   85         phy-mode = "gmii";
   86         phy-handle = <&phy0>;
   87         phy0: ethernet-phy@0 {
   88                 compatible = "ethernet-phy-id0007.0771";
   89                 reg = <0>;
   90         };
   91 };
   92 
   93 &pwm0 {
   94         status = "okay";
   95 };
   96 
   97 &pwm1 {
   98         status = "okay";
   99 };
  100 
  101 &gpio {
  102         status = "okay";
  103 };

Cache object: bfa506e2cdaabd65b3ab3441c0e9d28e


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.