~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/scripts/dtc/include-prefixes/riscv/sifive/hifive-unleashed-a00.dts

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

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

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php