/freebsd/sys/contrib/device-tree/src/riscv/sifive/ |
H A D | fu540-c000.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 2 /* Copyright (c) 2018-2019 SiFive, Inc */ 4 /dts-v1/; 6 #include <dt-bindings/clock/sifive-fu540-prci.h> 9 #address-cell [all...] |
H A D | hifive-unleashed-a00.dts | 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> 14 compatible = "sifive,hifive-unleashed-a00", "sifive,fu540-c000", 15 "sifive,fu540"; 18 stdout-path = "serial0"; 22 timebase-frequency = <RTCCLK_FREQ>; [all …]
|
H A D | fu740-c000.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 4 /dts-v1/; 6 #include <dt-bindings/clock/sifive-fu740-prci.h> 9 #address-cells = <2>; 10 #size-cells = <2>; 11 compatible = "sifive,fu740-c00 [all...] |
/freebsd/sys/contrib/device-tree/Bindings/dma/ |
H A D | sifive,fu540-c000-pdma.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/dma/sifive,fu540-c000-pdm [all...] |
/freebsd/sys/contrib/device-tree/Bindings/pwm/ |
H A D | pwm-sifive.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 --- 5 $id: http://devicetree.org/schemas/pwm/pwm-sifive.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Paul Walmsley <paul.walmsley@sifive.com> 19 numbers can be found here - 21 https://github.com/sifive/sifive-blocks/tree/master/src/main/scala/devices/pwm 24 - $ref: pwm.yaml# 29 - enum: 30 - sifive,fu540-c000-pwm [all …]
|
H A D | pwm-sifive.txt | 10 https://github.com/sifive/sifive-blocks/tree/master/src/main/scala/devices/pwm 13 - compatible: Should be "sifive,<chip>-pwm" and "sifive,pwm<version>". 14 Supported compatible strings are: "sifive,fu540-c000-pwm" for the SiFive 15 PWM v0 as integrated onto the SiFive FU540 chip, and "sifive,pwm0" for the 17 Please refer to sifive-blocks-ip-versioning.txt for details. 18 - reg: physical base address and length of the controller's registers 19 - clocks: Should contain a clock identifier for the PWM's parent clock. 20 - #pwm-cells: Should be 3. See pwm.yaml in this directory 22 - interrupts: one interrupt per PWM channel 27 compatible = "sifive,fu540-c000-pwm", "sifive,pwm0"; [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/riscv/ |
H A D | sifive-l2-cache.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 4 --- 5 $id: http://devicetree.org/schemas/riscv/sifive-l2-cache.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Sagar Kadam <sagar.kadam@sifive.com> 12 - Paul Walmsley <paul.walmsley@sifive.com> 17 acts as directory-based coherency manager. 25 - sifive,fu540-c000-ccache 26 - sifive,fu740-c000-ccache 29 - compatible [all …]
|
H A D | sifive,ccache0.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Paul Walmsley <paul.walmsley@sifive.com> 16 acts as directory-based coherency manager. 24 - sifive,ccache0 25 - sifive,fu540-c000-ccache 26 - sifive,fu740-c000-ccache 29 - compatible 34 - items: [all …]
|
H A D | sifive.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR MIT) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: SiFive SoC-based boards 10 - Paul Walmsley <paul.walmsley@sifive.com> 11 - Palmer Dabbelt <palmer@sifive.com> 14 SiFive SoC-based boards 21 - items: 22 - enum: 23 - sifive,hifive-unleashed-a00 [all …]
|
H A D | sifive-l2-cache.txt | 2 -------------------------- 5 acts as directory-based coherency manager. 9 -------------------- 10 - compatible: Should be "sifive,fu540-c000-ccache" and "cache" 12 - cache-block-size: Specifies the block size in bytes of the cache. 15 - cache-level: Should be set to 2 for a level 2 cache 17 - cache-sets: Specifies the number of associativity sets of the cache. 20 - cache-size: Specifies the size in bytes of the cache. Should be 2097152 22 - cache-unified: Specifies the cache is a unified cache 24 - interrupts: Must contain 3 entries (DirError, DataError and DataFail signals) [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/cache/ |
H A D | sifive,ccache0.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Pau [all...] |
/freebsd/sys/contrib/device-tree/Bindings/gpio/ |
H A D | sifive,gpio.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Paul Walmsley <paul.walmsley@sifive.com> 15 - enum: 16 - sifive,fu540-c000-gpio 17 - sifive,fu740-c000-gpio 18 - canaan,k210-gpiohs 19 - const: sifive,gpio0 30 interrupt-controller: true [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/spi/ |
H A D | spi-sifive.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/spi/spi-sifive.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Pragnesh Patel <pragnesh.patel@sifive.com> 11 - Paul Walmsley <paul.walmsley@sifive.com> 12 - Palmer Dabbelt <palmer@sifive.com> 15 - $ref: spi-controller.yaml# 20 - enum: 21 - sifive,fu540-c000-spi [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/clock/sifive/ |
H A D | fu540-prci.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 --- 5 $id: http://devicetree.org/schemas/clock/sifive/fu540-prci.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: SiFive FU540 Power Reset Clock Interrupt Controller (PRCI) 11 - Paul Walmsley <paul.walmsley@sifive.com> 14 On the FU540 family of SoCs, most system-wide clock and reset integration 17 macros defined in include/dt-bindings/clock/sifive-fu540-prci.h. 26 const: sifive,fu540-c000-prci 33 - description: high frequency clock. [all …]
|
H A D | fu540-prci.txt | 1 SiFive FU540 PRCI bindings 3 On the FU540 family of SoCs, most system-wide clock and reset integration 7 - compatible: Should be "sifive,<chip>-prci". Only one value is 8 supported: "sifive,fu540-c000-prci" 9 - reg: Should describe the PRCI's register target physical address region 10 - clocks: Should point to the hfclk device tree node and the rtcclk 11 device tree node. The RTC clock here is not a time-of-day clock, 12 but is instead a high-stability clock source for system timers 14 - #clock-cells: Should be <1> 17 macros defined in include/dt-bindings/clock/sifive-fu540-prci.h. [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/serial/ |
H A D | sifive-serial.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/serial/sifive-serial.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Pragnesh Patel <pragnesh.patel@sifive.com> 11 - Paul Walmsley <paul.walmsley@sifive.com> 12 - Palmer Dabbelt <palmer@sifive.com> 15 - $ref: serial.yaml# 20 - enum: 21 - sifive,fu540-c000-uart [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/net/ |
H A D | macb.txt | 4 - compatible: Should be "cdns,[<chip>-]{macb|gem}" 5 Use "cdns,at91rm9200-emac" Atmel at91rm9200 SoC. 6 Use "cdns,at91sam9260-macb" for Atmel at91sam9 SoCs. 7 Use "cdns,sam9x60-macb" for Microchip sam9x60 SoC. 8 Use "cdns,np4-macb" for NP4 SoC devices. 9 Use "cdns,at32ap7000-macb" for other 10/100 usage or use the generic form: "cdns,macb". 10 Use "atmel,sama5d2-gem" for the GEM IP (10/100) available on Atmel sama5d2 SoCs. 11 Use "atmel,sama5d29-gem" for GEM XL IP (10/100) available on Atmel sama5d29 SoCs. 12 Use "atmel,sama5d3-macb" for the 10/100Mbit IP available on Atmel sama5d3 SoCs. 13 Use "atmel,sama5d3-gem" for the Gigabit IP available on Atmel sama5d3 SoCs. [all …]
|
H A D | cdns,macb.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Nicolas Ferre <nicolas.ferre@microchip.com> 11 - Claudiu Beznea <claudiu.beznea@microchip.com> 16 - items: 17 - enum: 18 - cdns,at91rm9200-emac # Atmel at91rm9200 SoC 19 - const: cdns,emac # Generic 21 - items: [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/timer/ |
H A D | sifive,clint.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Palmer Dabbelt <palmer@dabbelt.com> 11 - Anup Patel <anup.patel@wdc.com> 14 SiFive (and other RISC-V) SOCs include an implementation of the SiFive 15 Core Local Interruptor (CLINT) for M-mode timer and M-mode inter-processor 16 interrupts. It directly connects to the timer and inter-processor interrupt 17 lines of various HARTs (or CPUs) so RISC-V per-HART (or per-CPU) local 19 The clock frequency of CLINT is specified via "timebase-frequency" DT [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/i2c/ |
H A D | i2c-ocores.txt | 1 Device tree configuration for i2c-ocores 4 - compatible : "opencores,i2c-ocores" 6 "sifive,fu540-c000-i2c", "sifive,i2c0" 8 FU540-C000 SoC. 9 "sifive,fu740-c000-i2c", "sifive,i2c0" 11 FU740-C000 SoC. 12 Please refer to sifive-blocks-ip-versioning.txt for 14 - reg : bus address start and address range size of device 15 - clocks : handle to the controller clock; see the note below. 16 Mutually exclusive with opencores,ip-clock-frequency [all …]
|
H A D | opencores,i2c-ocores.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/i2c/opencores,i2c-ocores.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Peter Korsgaard <peter@korsgaard.com> 11 - Andrew Lunn <andrew@lunn.ch> 14 - $ref: /schemas/i2c/i2c-controller.yaml# 19 - items: 20 - enum: 21 - sifive,fu740-c000-i2c # Opencore based IP block FU740-C000 SoC [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/sifive/ |
H A D | sifive-blocks-ip-versioning.txt | 1 DT compatible string versioning for SiFive open-source IP blocks 4 strings for open-source SiFive IP blocks. HDL for these IP blocks 7 https://github.com/sifive/sifive-blocks 9 IP block-specific DT compatible strings are contained within the HDL, 10 in the form "sifive,<ip-block-name><integer version number>". 14 https://github.com/sifive/sifive-blocks/blob/v1.0/src/main/scala/devices/uart/UART.scala#L43 17 auto-discovery, the maintainers of these IP blocks intend to increment 25 upstream sifive-blocks commits. It is expected that most drivers will 26 match on these IP block-specific compatible strings. 29 continue to specify an SoC-specific compatible string value, such as [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/interrupt-controller/ |
H A D | sifive,plic-1.0.0.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 4 --- 5 $id: http://devicetree.org/schemas/interrupt-controller/sifive,plic-1.0.0.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: SiFive Platform-Level Interrupt Controller (PLIC) 11 SiFive SoCs and other RISC-V SoCs include an implementation of the 12 Platform-Level Interrupt Controller (PLIC) high-level specification in 13 the RISC-V Privileged Architecture specification. The PLIC connects all 18 in an 4 core system with 2-way SMT, you have 8 harts and probably at least two 21 Each interrupt can be enabled on per-context basis. Any context can claim [all …]
|
/freebsd/sys/riscv/sifive/ |
H A D | sifive_prci.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 85 #define PRCI_LOCK(sc) mtx_lock(&(sc)->mtx) 86 #define PRCI_UNLOCK(sc) mtx_unlock(&(sc)->mtx) 87 #define PRCI_ASSERT_LOCKED(sc) mtx_assert(&(sc)->mtx, MA_OWNED); 88 #define PRCI_ASSERT_UNLOCKED(sc) mtx_assert(&(sc)->mtx, MA_NOTOWNED); 97 /* Called devicesresetreg on the FU540 */ 101 bus_space_read_4((_sc)->bst, (_sc)->bsh, (_reg)) 103 bus_space_write_4((_sc)->bst, (_sc)->bsh, (_reg), (_val)) 164 /* FU540 clock numbers */ [all …]
|
/freebsd/sys/contrib/device-tree/src/riscv/microchip/ |
H A D | microchip-mpfs.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 2 /* Copyright (c) 2020-2021 Microchip Technology Inc */ 4 /dts-v1/; 5 #include "dt-bindings/clock/microchip,mpfs-clock.h" 6 #include "microchip-mpfs-fabric.dtsi" 9 #address-cells = <2>; 10 #size-cells = <2>; 15 #address-cells = <1>; 16 #size-cells = <0>; 21 i-cache-block-size = <64>; [all …]
|