zephyr/dts/nios2/nios2f.dtsi
Timo Teräs 6fd168e9a1 driver: uart: ns16550: convert to DT_INST_*
Change to code to use the automatically generated DT_INST_*
defines and remove the now unneeded configs and fixups.

Signed-off-by: Timo Teräs <timo.teras@iki.fi>
2020-03-14 02:22:05 +02:00

56 lines
902 B
Plaintext

/* SPDX-License-Identifier: Apache-2.0 */
#include "skeleton.dtsi"
#include <dt-bindings/i2c/i2c.h>
/ {
cpus {
#address-cells = <1>;
#size-cells = <0>;
cpu@0 {
device_type = "cpu";
compatible = "altera,nios2f";
reg = <0>;
};
};
flash0: flash@0 {
compatible = "soc-nv-flash";
reg = <0x00 0xb8000>;
};
sram0: memory@400000 {
compatible = "mmio-sram";
reg = <0x400000 0x20000>;
};
soc {
#address-cells = <1>;
#size-cells = <1>;
compatible = "simple-bus";
ranges;
uart0: uart@f0008000 {
compatible = "ns16550";
reg = <0xf0008000 0x400>;
clock-frequency = <50000000>;
/* interrupts = <1 0>; */
label = "UART_0";
status = "disabled";
};
i2c0: i2c@100200 {
compatible = "nios2,i2c";
clock-frequency = <I2C_BITRATE_ULTRA>;
#address-cells = <1>;
#size-cells = <0>;
reg = <0x100200 0x400>;
label = "I2C_0";
};
};
};