Skip to content
Snippets Groups Projects
Commit b6641748 authored by BRONES Romain's avatar BRONES Romain
Browse files

feat: Use overlay for the device-tree

* This allow adding the i2c to MMC
parent 1638c145
No related branches found
No related tags found
No related merge requests found
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI_append = " \
file://pl-conf.dtsi \
file://pl-over.dtsi \
"
# We need what's in pl-conf.
# We are not using DTBO for now (cannot build)
do_configure_append() {
echo '/include/ "pl-conf.dtsi"' >> ${DT_FILES_PATH}/system-top.dts
# Add the overlay source to DTS sources
cp ${WORKDIR}/pl-over.dtsi ${DT_FILES_PATH}/
}
do_install_append() {
# Install the resulting dtbo
mkdir -p ${D}/opt/fofb/map
install -Dm 0664 ${B}/pl-over.dtbo ${D}/opt/fofb/map/device-tree-overlay.dtbo
}
FILES_${PN} += "/opt/fofb/map/device-tree-overlay.dtbo"
/ {
amba_pl: amba_pl@0 {
#address-cells = <2>;
#size-cells = <2>;
compatible = "simple-bus";
ranges ;
ddr_ddr4_0: ddr4@540000000 {
compatible = "xlnx,ddr4-2.2", "generic-uio";
reg = <0x00000005 0x40000000 0x0 0x40000000>;
interrupt-parent = <&gic>;
interrupts = <0 89 1>;
linux,uio-name = "ddrpl";
};
ins_bsp_fmc2zup_system_p_m_axi_bsp: ins_bsp_fmc2zup_system_p_m_axi_bsp@a0000000 {
reg = <0x0 0xa0000000 0x0 0x200000>;
};
ins_bsp_fmc2zup_system_p_m_axi_app: ins_bsp_fmc2zup_system_p_m_axi_app@a0800000 {
reg = <0x0 0xa0800000 0x0 0x800000>;
compatible = "generic-uio";
linux,uio-name = "axiapp";
};
};
debug_bridge_0@0xA0820000 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "xlnx,xvc";
reg = < 0xA0820000 0x20 >;
};
pl_int@1 {
compatible = "generic-uio";
interrupt-names = "pl2ps_irq";
interrupt-parent = <&gic>;
interrupts = <0 90 1>;
};
};
/dts-v1/;
/plugin/;
/ {
fragment@0 {
target = <&amba>;
overlay0:__overlay__ {
#address-cells = <2>;
#size-cells = <2>;
ddr_ddr4_0: ddr4@540000000 {
compatible = "xlnx,ddr4-2.2", "generic-uio";
reg = <0x00000005 0x40000000 0x0 0x40000000>;
interrupt-parent = <&gic>;
interrupts = <0 89 1>;
linux,uio-name = "ddrpl";
};
ins_bsp_fmc2zup_system_p_m_axi_bsp: ins_bsp_fmc2zup_system_p_m_axi_bsp@a0000000 {
reg = <0x0 0xa0000000 0x0 0x200000>;
};
ins_bsp_fmc2zup_system_p_m_axi_app: ins_bsp_fmc2zup_system_p_m_axi_app@a0800000 {
reg = <0x0 0xa0800000 0x0 0x800000>;
compatible = "generic-uio";
linux,uio-name = "axiapp";
};
iic_mmc: i2c@a0100000 {
#address-cells = <1>;
#size-cells = <0>;
clock-names = "s_axi_aclk";
clocks = <&zynqmp_clk 72>;
compatible = "xlnx,axi-iic-2.0", "xlnx,xps-iic-2.00.a";
interrupt-names = "iic2intc_irpt";
interrupt-parent = <&gic>;
interrupts = <0 104 4>;
reg = <0x0 0xa0100000 0x0 0x1000>;
mmcmailbox@2a {
compatible = "desy,mmcmailbox";
reg = <0x2a>;
};
};
};
};
fragment@1 {
target-path = "/";
overlay1: __overlay__ {
pl_int@1 {
compatible = "generic-uio";
interrupt-names = "pl2ps_irq";
interrupt-parent = <&gic>;
interrupts = <0 90 1>;
};
};
};
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment