mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-11 09:23:06 +00:00
This introduces LiteX I2S driver supporting the following features: - 8,16,24,32 bit sample width, - mono/stereo sound, - different sample frequencies - big/little-endian data format, - concatenated channels mode (for selected sample widths only), - slave/master mode operation. Signed-off-by: Pawel Sagan <psagan@internships.antmicro.com> Signed-off-by: Mateusz Holenko <mholenko@antmicro.com>
75 lines
827 B
Plaintext
75 lines
827 B
Plaintext
/*
|
|
* Copyright (c) 2018 - 2019 Antmicro <www.antmicro.com>
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/dts-v1/;
|
|
|
|
#include <riscv32-litex-vexriscv.dtsi>
|
|
|
|
/ {
|
|
model = "LiteX VexRiscV";
|
|
compatible = "litex,vexriscv";
|
|
chosen {
|
|
zephyr,console = &uart0;
|
|
zephyr,shell-uart = &uart0;
|
|
zephyr,sram = &ram0;
|
|
};
|
|
|
|
ram0: memory@40000000 {
|
|
device_type = "memory";
|
|
reg = <0x40000000 0x10000000>;
|
|
};
|
|
};
|
|
|
|
&uart0 {
|
|
status = "okay";
|
|
current-speed = <115200>;
|
|
};
|
|
|
|
&timer0 {
|
|
status = "okay";
|
|
};
|
|
|
|
ð0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&dna0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&spi0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&prbs0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&i2c0 {
|
|
status = "okay";
|
|
label = "I2C_0";
|
|
};
|
|
|
|
&pwm0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&gpio_out {
|
|
status = "okay";
|
|
};
|
|
|
|
&gpio_in {
|
|
status = "okay";
|
|
};
|
|
|
|
&i2s_rx {
|
|
status = "okay";
|
|
};
|
|
|
|
&i2s_tx {
|
|
status = "okay";
|
|
};
|