linux-ti-staging: Add new device tree target am572x-idk-pru-excl-uio.dtb
PATCH 1/1 linux-ti-staging: Add new device tree target am572x-idk-pru-excl-uio.dtb
This new device tree file is to support pruss with uio based drivers. Adds uio entries for pruss susbsystem.
--- .../linux/files/dra7xx/am572x-pru-uio.dtsi | 191 +++++++++++++++++++++ recipes-kernel/linux/linux-ti-staging_4.4.bb | 2 +- recipes-kernel/linux/ti-uio.inc | 12 ++ 3 files changed, 204 insertions(+), 1 deletion(-) create mode 100644 recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +191 -0
@@ -0,0 +1,191 @@ +/ { + ocp { + pruss2_eth { + status = "disabled"; + }; + uio_pruss1_mem: uio_pruss1_mem { + compatible = "ti,uio-module-drv"; + ti,hwmods = "pruss1"; + mem = <0x4b200000 0x2000>, + <0x4b202000 0x2000>, + <0x4b210000 0x8000>, + <0x4b220000 0x2000>, + <0x4b226000 0x2000>, + <0x4b22e000 0x31c>, + <0x4b232000 0x58>; + mem-names = "dram0", "dram1", "shrdram2", "intc", "cfg", + "iep", "mii_rt"; + status = "okay"; + }; + uio_pruss1_evt0: uio_pruss1_evt0 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 186 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt1: uio_pruss1_evt1 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 187 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt2: uio_pruss1_evt2 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt3: uio_pruss1_evt3 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt4: uio_pruss1_evt4 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt5: uio_pruss1_evt5 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 191 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt6: uio_pruss1_evt6 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt7: uio_pruss1_evt7 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 193 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + + uio_pruss1_0_mem: uio_pruss1_0_mem { + compatible = "ti,uio-module-drv"; + mem = <0x4b234000 0x3000>, + <0x4b222000 0x400>, + <0x4b222400 0x100>; + mem-names = "iram", "control", "debug"; + status = "okay"; + }; + + uio_pruss1_1_mem: uio_pruss1_1_mem { + compatible = "ti,uio-module-drv"; + mem = <0x4b238000 0x3000>, + <0x4b224000 0x400>, + <0x4b224400 0x100>; + mem-names = "iram", "control", "debug"; + status = "okay"; + }; + + uio_pruss1_mdio: uio_pruss1_mdio { + compatible = "ti,uio-module-drv"; + mem = <0x4b232400 0x90>; + status = "okay"; + }; + + uio_pruss2_mem: uio_pruss2_mem { + compatible = "ti,uio-module-drv"; + ti,hwmods = "pruss2"; + mem = <0x4b280000 0x2000>, + <0x4b282000 0x2000>, + <0x4b290000 0x8000>, + <0x4b2a0000 0x2000>, + <0x4b2a6000 0x2000>, + <0x4b2ae000 0x31c>, + <0x4b2b2000 0x58>; + mem-names = "dram0", "dram1", "shrdram2", "intc", "cfg", + "iep", "mii_rt"; + status = "okay"; + }; + uio_pruss2_evt0: uio_pruss2_evt0 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt1: uio_pruss2_evt1 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt2: uio_pruss2_evt2 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt3: uio_pruss2_evt3 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 199 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt4: uio_pruss2_evt4 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt5: uio_pruss2_evt5 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 201 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt6: uio_pruss2_evt6 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 202 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt7: uio_pruss2_evt7 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 203 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + + uio_pruss2_0_mem: uio_pruss2_0_mem { + compatible = "ti,uio-module-drv"; + mem = <0x4b2b4000 0x3000>, + <0x4b2a2000 0x400>, + <0x4b2a2400 0x100>; + mem-names = "iram", "control", "debug"; + status = "okay"; + }; + uio_pruss2_1_mem: uio_pruss2_1_mem { + compatible = "ti,uio-module-drv"; + mem = <0x4b2b8000 0x3000>, + <0x4b2a4000 0x400>, + <0x4b2a4400 0x100>; + mem-names = "iram", "control", "debug"; + status = "okay"; + }; + uio_pruss2_mdio: uio_pruss2_mdio { + compatible = "ti,uio-module-drv"; + mem = <0x4b2b2400 0x90>; + mem-names = "mdio"; + status = "okay"; + }; + }; +}; + +&pruss1 { + status = "disabled"; +}; + +&pru1_0 { + status = "disabled"; +}; + +&pru1_1 { + status = "disabled"; +}; + +&pruss2 { + status = "disabled"; +}; + +&pru2_0 { + status = "disabled"; +}; + +&pru2_1 { + status = "disabled"; +}; + +&pruss2_mdio { + status = "disabled"; +};
recipes-kernel/linux/linux-ti-staging_4.4.bb +1 -1
@@ -52,7 +52,7 @@ KERNEL_DEVICETREE_beaglebone = "am335x-bone.dtb am335x-boneblack.dtb am335x-bone KERNEL_DEVICETREE_omap5-evm = "omap5-uevm.dtb" KERNEL_DEVICETREE_dra7xx-evm = "dra7-evm.dtb dra7-evm-lcd-lg.dtb dra7-evm-lcd-osd.dtb dra72-evm.dtb dra72-evm-revc.dtb dra72-evm-lcd-lg.dtb dra72-evm-lcd-osd.dtb" KERNEL_DEVICETREE_dra7xx-hs-evm = "${KERNEL_DEVICETREE_dra7xx-evm}" -KERNEL_DEVICETREE_am57xx-evm = "am57xx-beagle-x15.dtb am57xx-beagle-x15-revb1.dtb am57xx-evm.dtb am57xx-evm-reva3.dtb am571x-idk.dtb am572x-idk.dtb am571x-idk-lcd-osd.dtb am572x-idk-lcd-osd.dtb" +KERNEL_DEVICETREE_am57xx-evm = "am57xx-beagle-x15.dtb am57xx-beagle-x15-revb1.dtb am57xx-evm.dtb am57xx-evm-reva3.dtb am571x-idk.dtb am572x-idk.dtb am571x-idk-lcd-osd.dtb am572x-idk-lcd-osd.dtb am572x-idk-pru-excl-uio.dtb" KERNEL_DEVICETREE_omap3 = "omap3-beagle.dtb omap3-beagle-xm.dtb omap3-beagle-xm-ab.dtb omap3-evm.dtb omap3-evm-37xx.dtb am3517-evm.dtb" KERNEL_DEVICETREE_am3517-evm = "am3517-evm.dtb" KERNEL_DEVICETREE_am37x-evm = "omap3-evm-37xx.dtb"
recipes-kernel/linux/ti-uio.inc +12 -0
@@ -2,6 +2,7 @@ SRC_URI_append_keystone = " file://keystone-uio.dtsi" SRC_URI_append_k2hk-evm = " file://k2hk-uio.dtsi" SRC_URI_append_k2l-evm = " file://k2l-uio.dtsi" SRC_URI_append_k2e-evm = " file://k2e-uio.dtsi" +SRC_URI_append_am57xx-evm = " file://am572x-pru-uio.dtsi" DTSI_LIST = "" DTSI_LIST_append_keystone = " keystone-uio.dtsi"
@@ -24,4 +25,15 @@ do_setup_uio() { fi } +do_setup_uio_append_am57xx-evm() { + dts="am572x-idk-pru-excl-uio.dts" + dtsi="am572x-pru-uio.dtsi" + cp ${S}/arch/arm/boot/dts/am572x-idk.dts ${S}/arch/arm/boot/dts/$dts + if [ "${ENABLE_TI_UIO_DEVICES}" == "1" ] + then + cp ${WORKDIR}/${dtsi} ${S}/arch/arm/boot/dts/ + echo "#include \"${dtsi}\"" >> ${S}/arch/arm/boot/dts/$dts + fi +} + do_patch[postfuncs] += "do_setup_uio"
Signature · 1 line
1.9.1
See below.
Quoted 213 lines · Sam Nelson
This new device tree file is to support pruss with uio based drivers. Adds uio entries for pruss susbsystem.
Signed-off-by Sam Nelson <[email protected]>--- .../linux/files/dra7xx/am572x-pru-uio.dtsi | 191 +++++++++++++++++++++ recipes-kernel/linux/linux-ti-staging_4.4.bb | 2 +- recipes-kernel/linux/ti-uio.inc | 12 ++ 3 files changed, 204 insertions(+), 1 deletion(-) create mode 100644 recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsirecipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +191
-0@@ -0,0 +1,191 @@ +/ { + ocp { + pruss2_eth { + status = "disabled"; + }; + uio_pruss1_mem: uio_pruss1_mem { + compatible = "ti,uio-module-drv"; + ti,hwmods = "pruss1"; + mem = <0x4b200000 0x2000>, + <0x4b202000 0x2000>, + <0x4b210000 0x8000>, + <0x4b220000 0x2000>, + <0x4b226000 0x2000>, + <0x4b22e000 0x31c>, + <0x4b232000 0x58>; + mem-names = "dram0", "dram1", "shrdram2", "intc", "cfg", + "iep", "mii_rt"; + status = "okay"; + }; + uio_pruss1_evt0: uio_pruss1_evt0 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 186 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt1: uio_pruss1_evt1 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 187 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt2: uio_pruss1_evt2 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt3: uio_pruss1_evt3 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt4: uio_pruss1_evt4 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt5: uio_pruss1_evt5 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 191 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt6: uio_pruss1_evt6 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt7: uio_pruss1_evt7 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 193 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + + uio_pruss1_0_mem: uio_pruss1_0_mem { + compatible = "ti,uio-module-drv"; + mem = <0x4b234000 0x3000>, + <0x4b222000 0x400>, + <0x4b222400 0x100>; + mem-names = "iram", "control", "debug"; + status = "okay"; + }; + + uio_pruss1_1_mem: uio_pruss1_1_mem { + compatible = "ti,uio-module-drv"; + mem = <0x4b238000 0x3000>, + <0x4b224000 0x400>, + <0x4b224400 0x100>; + mem-names = "iram", "control", "debug"; + status = "okay"; + }; + + uio_pruss1_mdio: uio_pruss1_mdio { + compatible = "ti,uio-module-drv"; + mem = <0x4b232400 0x90>; + status = "okay"; + }; + + uio_pruss2_mem: uio_pruss2_mem { + compatible = "ti,uio-module-drv"; + ti,hwmods = "pruss2"; + mem = <0x4b280000 0x2000>, + <0x4b282000 0x2000>, + <0x4b290000 0x8000>, + <0x4b2a0000 0x2000>, + <0x4b2a6000 0x2000>, + <0x4b2ae000 0x31c>, + <0x4b2b2000 0x58>; + mem-names = "dram0", "dram1", "shrdram2", "intc", "cfg", + "iep", "mii_rt"; + status = "okay"; + }; + uio_pruss2_evt0: uio_pruss2_evt0 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt1: uio_pruss2_evt1 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt2: uio_pruss2_evt2 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt3: uio_pruss2_evt3 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 199 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt4: uio_pruss2_evt4 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt5: uio_pruss2_evt5 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 201 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt6: uio_pruss2_evt6 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 202 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt7: uio_pruss2_evt7 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 203 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + + uio_pruss2_0_mem: uio_pruss2_0_mem { + compatible = "ti,uio-module-drv"; + mem = <0x4b2b4000 0x3000>, + <0x4b2a2000 0x400>, + <0x4b2a2400 0x100>; + mem-names = "iram", "control", "debug"; + status = "okay"; + }; + uio_pruss2_1_mem: uio_pruss2_1_mem { + compatible = "ti,uio-module-drv"; + mem = <0x4b2b8000 0x3000>, + <0x4b2a4000 0x400>, + <0x4b2a4400 0x100>; + mem-names = "iram", "control", "debug"; + status = "okay"; + }; + uio_pruss2_mdio: uio_pruss2_mdio { + compatible = "ti,uio-module-drv"; + mem = <0x4b2b2400 0x90>; + mem-names = "mdio"; + status = "okay"; + }; + }; +}; + +&pruss1 { + status = "disabled"; +}; + +&pru1_0 { + status = "disabled"; +}; + +&pru1_1 { + status = "disabled"; +}; + +&pruss2 { + status = "disabled"; +}; + +&pru2_0 { + status = "disabled"; +}; + +&pru2_1 { + status = "disabled"; +}; + +&pruss2_mdio { + status = "disabled"; +};recipes-kernel/linux/linux-ti-staging_4.4.bb +0
-0
recipes-kernel/linux/linux-ti-staging_4.4.bb KERNEL_DEVICETREE_beaglebone = "am335x-bone.dtb am335x-boneblack.dtb am335x-bone · line 55
Quoted 5 lines
recipes-kernel/linux/linux-ti-staging_4.4.bb +1
-1@@ -52,7 +52,7 @@ KERNEL_DEVICETREE_beaglebone = "am335x-bone.dtb am335x-boneblack.dtb am335x-bone KERNEL_DEVICETREE_omap5-evm = "omap5-uevm.dtb" KERNEL_DEVICETREE_dra7xx-evm = "dra7-evm.dtb dra7-evm-lcd-lg.dtb dra7-evm-lcd-osd.dtb dra72-evm.dtb dra72-evm-revc.dtb dra72-evm-lcd-lg.dtb dra72-evm-lcd-osd.dtb" KERNEL_DEVICETREE_dra7xx-hs-evm = "${KERNEL_DEVICETREE_dra7xx-evm}" -KERNEL_DEVICETREE_am57xx-evm = "am57xx-beagle-x15.dtb am57xx-beagle-x15-revb1.dtb am57xx-evm.dtb am57xx-evm-reva3.dtb am571x-idk.dtb am572x-idk.dtb am571x-idk-lcd-osd.dtb am572x-idk-lcd-osd.dtb" +KERNEL_DEVICETREE_am57xx-evm = "am57xx-beagle-x15.dtb am57xx-beagle-x15-revb1.dtb am57xx-evm.dtb am57xx-evm-reva3.dtb am571x-idk.dtb am572x-idk.dtb am571x-idk-lcd-osd.dtb am572x-idk-lcd-osd.dtb am572x-idk-pru-excl-uio.dtb"
NACK, you are adding it here unconditionally.
Quoted 39 lines
recipes-kernel/linux/linux-ti-staging_4.4.bb +0
-0KERNEL_DEVICETREE_omap3 = "omap3-beagle.dtb omap3-beagle-xm.dtb omap3-beagle-xm-ab.dtb omap3-evm.dtb omap3-evm-37xx.dtb am3517-evm.dtb" KERNEL_DEVICETREE_am3517-evm = "am3517-evm.dtb" KERNEL_DEVICETREE_am37x-evm = "omap3-evm-37xx.dtb"recipes-kernel/linux/ti-uio.inc +12
-0@@ -2,6 +2,7 @@ SRC_URI_append_keystone = " file://keystone-uio.dtsi" SRC_URI_append_k2hk-evm = " file://k2hk-uio.dtsi" SRC_URI_append_k2l-evm = " file://k2l-uio.dtsi" SRC_URI_append_k2e-evm = " file://k2e-uio.dtsi" +SRC_URI_append_am57xx-evm = " file://am572x-pru-uio.dtsi" DTSI_LIST = "" DTSI_LIST_append_keystone = " keystone-uio.dtsi"@@ -24,4 +25,15 @@ do_setup_uio() { fi } +do_setup_uio_append_am57xx-evm() { + dts="am572x-idk-pru-excl-uio.dts" + dtsi="am572x-pru-uio.dtsi" + cp ${S}/arch/arm/boot/dts/am572x-idk.dts ${S}/arch/arm/boot/dts/$dts + if [ "${ENABLE_TI_UIO_DEVICES}" == "1" ] + then + cp ${WORKDIR}/${dtsi} ${S}/arch/arm/boot/dts/ + echo "#include \"${dtsi}\"" >> ${S}/arch/arm/boot/dts/$dts + fi +} + do_patch[postfuncs] += "do_setup_uio"Signature · 7 lines
1.9.1 -- _______________________________________________ meta-ti mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-ti
Quoted 241 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Sunday, May 15, 2016 11:32 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH] linux-ti-staging: Add new device tree target am572x-idk-pru-excl-uio.dtbSee below.
Quoted 6 lines · Sam Nelson
This new device tree file is to support pruss with uio based drivers. Adds uio entries for pruss susbsystem.
Signed-off-by Sam Nelson <[email protected]>--- .../linux/files/dra7xx/am572x-pru-uio.dtsi | 191+++++++++++++++++++++
Quoted 18 lines
recipes-kernel/linux/linux-ti-staging_4.4.bb | 2 +- recipes-kernel/linux/ti-uio.inc | 12 ++ 3 files changed, 204 insertions(+), 1 deletion(-) create mode 100644
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsirecipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +6
-0@@ -0,0 +1,191 @@ +/ { + ocp { + pruss2_eth { + status = "disabled"; + }; + uio_pruss1_mem: uio_pruss1_mem {recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi line 16
Quoted 10 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +10
-0+ compatible = "ti,uio-module-drv"; + ti,hwmods = "pruss1"; + mem = <0x4b200000 0x2000>, + <0x4b202000 0x2000>, + <0x4b210000 0x8000>, + <0x4b220000 0x2000>, + <0x4b226000 0x2000>, + <0x4b22e000 0x31c>, + <0x4b232000 0x58>; + mem-names = "dram0", "dram1", "shrdram2", "intc","cfg",
Quoted 69 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +69
-0+ "iep", "mii_rt"; + status = "okay"; + }; + uio_pruss1_evt0: uio_pruss1_evt0 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 186 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt1: uio_pruss1_evt1 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 187 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt2: uio_pruss1_evt2 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt3: uio_pruss1_evt3 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt4: uio_pruss1_evt4 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt5: uio_pruss1_evt5 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 191 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt6: uio_pruss1_evt6 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt7: uio_pruss1_evt7 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 193 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + + uio_pruss1_0_mem: uio_pruss1_0_mem { + compatible = "ti,uio-module-drv"; + mem = <0x4b234000 0x3000>, + <0x4b222000 0x400>, + <0x4b222400 0x100>; + mem-names = "iram", "control", "debug"; + status = "okay"; + }; + + uio_pruss1_1_mem: uio_pruss1_1_mem { + compatible = "ti,uio-module-drv"; + mem = <0x4b238000 0x3000>, + <0x4b224000 0x400>, + <0x4b224400 0x100>; + mem-names = "iram", "control", "debug"; + status = "okay"; + }; + + uio_pruss1_mdio: uio_pruss1_mdio { + compatible = "ti,uio-module-drv"; + mem = <0x4b232400 0x90>; + status = "okay"; + }; + + uio_pruss2_mem: uio_pruss2_mem {recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi
Quoted 10 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +10
-0+ compatible = "ti,uio-module-drv"; + ti,hwmods = "pruss2"; + mem = <0x4b280000 0x2000>, + <0x4b282000 0x2000>, + <0x4b290000 0x8000>, + <0x4b2a0000 0x2000>, + <0x4b2a6000 0x2000>, + <0x4b2ae000 0x31c>, + <0x4b2b2000 0x58>; + mem-names = "dram0", "dram1", "shrdram2", "intc","cfg",
recipes-kernel/linux/linux-ti-staging_4.4.bb KERNEL_DEVICETREE_beaglebone = "am335x-
Quoted 102 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +96
-0+ "iep", "mii_rt"; + status = "okay"; + }; + uio_pruss2_evt0: uio_pruss2_evt0 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt1: uio_pruss2_evt1 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt2: uio_pruss2_evt2 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt3: uio_pruss2_evt3 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 199 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt4: uio_pruss2_evt4 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt5: uio_pruss2_evt5 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 201 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt6: uio_pruss2_evt6 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 202 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt7: uio_pruss2_evt7 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 203 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + + uio_pruss2_0_mem: uio_pruss2_0_mem { + compatible = "ti,uio-module-drv"; + mem = <0x4b2b4000 0x3000>, + <0x4b2a2000 0x400>, + <0x4b2a2400 0x100>; + mem-names = "iram", "control", "debug"; + status = "okay"; + }; + uio_pruss2_1_mem: uio_pruss2_1_mem { + compatible = "ti,uio-module-drv"; + mem = <0x4b2b8000 0x3000>, + <0x4b2a4000 0x400>, + <0x4b2a4400 0x100>; + mem-names = "iram", "control", "debug"; + status = "okay"; + }; + uio_pruss2_mdio: uio_pruss2_mdio { + compatible = "ti,uio-module-drv"; + mem = <0x4b2b2400 0x90>; + mem-names = "mdio"; + status = "okay"; + }; + }; +}; + +&pruss1 { + status = "disabled"; +}; + +&pru1_0 { + status = "disabled"; +}; + +&pru1_1 { + status = "disabled"; +}; + +&pruss2 { + status = "disabled"; +}; + +&pru2_0 { + status = "disabled"; +}; + +&pru2_1 { + status = "disabled"; +}; + +&pruss2_mdio { + status = "disabled"; +};recipes-kernel/linux/linux-ti-staging_4.4.bb +0
-0@@ -52,7 +52,7 @@ KERNEL_DEVICETREE_beaglebone = "am335x-bone.dtb
Quoted 1 line
am335x-boneblack.dtb am335x-bone KERNEL_DEVICETREE_omap5-evm =
"omap5-uevm.dtb"
Quoted 1 line
KERNEL_DEVICETREE_dra7xx-evm = "dra7-evm.dtb dra7-evm-lcd-lg.dtb
dra7-evm-lcd-osd.dtb dra72-evm.dtb dra72-evm-revc.dtb dra72-evm-lcd- lg.dtb dra72-evm-lcd-osd.dtb"
Quoted 1 line
KERNEL_DEVICETREE_dra7xx-hs-evm = "${KERNEL_DEVICETREE_dra7xx-
evm}"
Quoted 1 line
-KERNEL_DEVICETREE_am57xx-evm = "am57xx-beagle-x15.dtb am57xx-
Quoted 8 lines
beagle-x15-revb1.dtb am57xx-evm.dtb am57xx-evm-reva3.dtb am571x- idk.dtb am572x-idk.dtb am571x-idk-lcd-osd.dtb am572x-idk-lcd-osd.dtb"
Quoted 1 line
+KERNEL_DEVICETREE_am57xx-evm = "am57xx-beagle-x15.dtb am57xx-
beagle-x15-revb1.dtb am57xx-evm.dtb am57xx-evm-reva3.dtb am571x- idk.dtb am572x-idk.dtb am571x-idk-lcd-osd.dtb am572x-idk-lcd-osd.dtb am572x-idk-pru-excl-uio.dtb"
NACK, you are adding it here unconditionally.
Are you expecting this to be conditional to ENABLE_TI_UIO_DEVICES? Please clarify.
Quoted 43 lines
Quoted 3 lines
KERNEL_DEVICETREE_omap3= "omap3-beagle.dtb omap3-beagle-xm.dtbomap3-beagle-xm-ab.dtb omap3-evm.dtb omap3-evm-37xx.dtb am3517- evm.dtb"
Quoted 38 lines
KERNEL_DEVICETREE_am3517-evm = "am3517-evm.dtb" KERNEL_DEVICETREE_am37x-evm = "omap3-evm-37xx.dtb"
(quoted diff) +0
-0b/recipes-kernel/linux/ti-uio.inc index 776e4a4..4764d78 100644
recipes-kernel/linux/ti-uio.inc +12
-1@@ -2,6 +2,7 @@ SRC_URI_append_keystone = " file://keystone-uio.dtsi" SRC_URI_append_k2hk-evm = " file://k2hk-uio.dtsi" SRC_URI_append_k2l-evm = " file://k2l-uio.dtsi" SRC_URI_append_k2e-evm = " file://k2e-uio.dtsi" +SRC_URI_append_am57xx-evm = " file://am572x-pru-uio.dtsi" DTSI_LIST = "" DTSI_LIST_append_keystone = " keystone-uio.dtsi"@@ -24,4 +25,15 @@ do_setup_uio() { fi } +do_setup_uio_append_am57xx-evm() { + dts="am572x-idk-pru-excl-uio.dts" + dtsi="am572x-pru-uio.dtsi" + cp ${S}/arch/arm/boot/dts/am572x-idk.dts ${S}/arch/arm/boot/dts/$dts + if [ "${ENABLE_TI_UIO_DEVICES}" == "1" ] + then + cp ${WORKDIR}/${dtsi} ${S}/arch/arm/boot/dts/ + echo "#include \"${dtsi}\"" >> ${S}/arch/arm/boot/dts/$dts + fi +} + do_patch[postfuncs] += "do_setup_uio" --1.9.1
--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
Quoted 244 lines · Sam
Quoted 244 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Sunday, May 15, 2016 11:32 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH] linux-ti-staging: Add new device tree target am572x-idk-pru-excl-uio.dtbSee below.
Quoted 6 lines · Sam Nelson
This new device tree file is to support pruss with uio based drivers. Adds uio entries for pruss susbsystem.
Signed-off-by Sam Nelson <[email protected]>--- .../linux/files/dra7xx/am572x-pru-uio.dtsi | 191+++++++++++++++++++++
Quoted 18 lines
recipes-kernel/linux/linux-ti-staging_4.4.bb | 2 +- recipes-kernel/linux/ti-uio.inc | 12 ++ 3 files changed, 204 insertions(+), 1 deletion(-) create mode 100644
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsirecipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +6
-0@@ -0,0 +1,191 @@ +/ { + ocp { + pruss2_eth { + status = "disabled"; + }; + uio_pruss1_mem: uio_pruss1_mem {recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi line 16
Quoted 10 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +10
-0+ compatible = "ti,uio-module-drv"; + ti,hwmods = "pruss1"; + mem = <0x4b200000 0x2000>, + <0x4b202000 0x2000>, + <0x4b210000 0x8000>, + <0x4b220000 0x2000>, + <0x4b226000 0x2000>, + <0x4b22e000 0x31c>, + <0x4b232000 0x58>; + mem-names = "dram0", "dram1", "shrdram2", "intc","cfg",
Quoted 69 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +69
-0+ "iep", "mii_rt"; + status = "okay"; + }; + uio_pruss1_evt0: uio_pruss1_evt0 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 186 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt1: uio_pruss1_evt1 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 187 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt2: uio_pruss1_evt2 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt3: uio_pruss1_evt3 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt4: uio_pruss1_evt4 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt5: uio_pruss1_evt5 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 191 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt6: uio_pruss1_evt6 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt7: uio_pruss1_evt7 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 193 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + + uio_pruss1_0_mem: uio_pruss1_0_mem { + compatible = "ti,uio-module-drv"; + mem = <0x4b234000 0x3000>, + <0x4b222000 0x400>, + <0x4b222400 0x100>; + mem-names = "iram", "control", "debug"; + status = "okay"; + }; + + uio_pruss1_1_mem: uio_pruss1_1_mem { + compatible = "ti,uio-module-drv"; + mem = <0x4b238000 0x3000>, + <0x4b224000 0x400>, + <0x4b224400 0x100>; + mem-names = "iram", "control", "debug"; + status = "okay"; + }; + + uio_pruss1_mdio: uio_pruss1_mdio { + compatible = "ti,uio-module-drv"; + mem = <0x4b232400 0x90>; + status = "okay"; + }; + + uio_pruss2_mem: uio_pruss2_mem {recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi
Quoted 10 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +10
-0+ compatible = "ti,uio-module-drv"; + ti,hwmods = "pruss2"; + mem = <0x4b280000 0x2000>, + <0x4b282000 0x2000>, + <0x4b290000 0x8000>, + <0x4b2a0000 0x2000>, + <0x4b2a6000 0x2000>, + <0x4b2ae000 0x31c>, + <0x4b2b2000 0x58>; + mem-names = "dram0", "dram1", "shrdram2", "intc","cfg",
recipes-kernel/linux/linux-ti-staging_4.4.bb KERNEL_DEVICETREE_beaglebone = "am335x-
Quoted 102 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +96
-0+ "iep", "mii_rt"; + status = "okay"; + }; + uio_pruss2_evt0: uio_pruss2_evt0 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt1: uio_pruss2_evt1 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt2: uio_pruss2_evt2 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt3: uio_pruss2_evt3 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 199 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt4: uio_pruss2_evt4 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt5: uio_pruss2_evt5 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 201 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt6: uio_pruss2_evt6 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 202 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt7: uio_pruss2_evt7 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 203 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + + uio_pruss2_0_mem: uio_pruss2_0_mem { + compatible = "ti,uio-module-drv"; + mem = <0x4b2b4000 0x3000>, + <0x4b2a2000 0x400>, + <0x4b2a2400 0x100>; + mem-names = "iram", "control", "debug"; + status = "okay"; + }; + uio_pruss2_1_mem: uio_pruss2_1_mem { + compatible = "ti,uio-module-drv"; + mem = <0x4b2b8000 0x3000>, + <0x4b2a4000 0x400>, + <0x4b2a4400 0x100>; + mem-names = "iram", "control", "debug"; + status = "okay"; + }; + uio_pruss2_mdio: uio_pruss2_mdio { + compatible = "ti,uio-module-drv"; + mem = <0x4b2b2400 0x90>; + mem-names = "mdio"; + status = "okay"; + }; + }; +}; + +&pruss1 { + status = "disabled"; +}; + +&pru1_0 { + status = "disabled"; +}; + +&pru1_1 { + status = "disabled"; +}; + +&pruss2 { + status = "disabled"; +}; + +&pru2_0 { + status = "disabled"; +}; + +&pru2_1 { + status = "disabled"; +}; + +&pruss2_mdio { + status = "disabled"; +};recipes-kernel/linux/linux-ti-staging_4.4.bb +0
-0@@ -52,7 +52,7 @@ KERNEL_DEVICETREE_beaglebone = "am335x-bone.dtb
Quoted 1 line
am335x-boneblack.dtb am335x-bone KERNEL_DEVICETREE_omap5-evm =
"omap5-uevm.dtb"
Quoted 1 line
KERNEL_DEVICETREE_dra7xx-evm = "dra7-evm.dtb dra7-evm-lcd-lg.dtb
dra7-evm-lcd-osd.dtb dra72-evm.dtb dra72-evm-revc.dtb dra72-evm-lcd- lg.dtb dra72-evm-lcd-osd.dtb"
Quoted 1 line
KERNEL_DEVICETREE_dra7xx-hs-evm = "${KERNEL_DEVICETREE_dra7xx-
evm}"
Quoted 1 line
-KERNEL_DEVICETREE_am57xx-evm = "am57xx-beagle-x15.dtb am57xx-
beagle-x15-revb1.dtb am57xx-evm.dtb am57xx-evm-reva3.dtb am571x- idk.dtb am572x-idk.dtb am571x-idk-lcd-osd.dtb am572x-idk-lcd-osd.dtb"
Quoted 1 line
+KERNEL_DEVICETREE_am57xx-evm = "am57xx-beagle-x15.dtb am57xx-
Quoted 8 lines
Quoted 5 lines
beagle-x15-revb1.dtb am57xx-evm.dtb am57xx-evm-reva3.dtb am571x- idk.dtb am572x-idk.dtb am571x-idk-lcd-osd.dtb am572x-idk-lcd-osd.dtb am572x-idk-pru-excl-uio.dtb"
NACK, you are adding it here unconditionally.
Are you expecting this to be conditional to
ENABLE_TI_UIO_DEVICES? Please clarify.
The rest of your code is, isn't it?
Quoted 41 lines
Quoted 41 lines
Quoted 1 line
KERNEL_DEVICETREE_omap3= "omap3-beagle.dtb omap3-beagle-xm.dtbomap3-beagle-xm-ab.dtb omap3-evm.dtb omap3-evm-37xx.dtb am3517- evm.dtb"
Quoted 38 lines
KERNEL_DEVICETREE_am3517-evm = "am3517-evm.dtb" KERNEL_DEVICETREE_am37x-evm = "omap3-evm-37xx.dtb"
(quoted diff) +0
-0b/recipes-kernel/linux/ti-uio.inc index 776e4a4..4764d78 100644
recipes-kernel/linux/ti-uio.inc +12
-1@@ -2,6 +2,7 @@ SRC_URI_append_keystone = " file://keystone-uio.dtsi" SRC_URI_append_k2hk-evm = " file://k2hk-uio.dtsi" SRC_URI_append_k2l-evm = " file://k2l-uio.dtsi" SRC_URI_append_k2e-evm = " file://k2e-uio.dtsi" +SRC_URI_append_am57xx-evm = " file://am572x-pru-uio.dtsi" DTSI_LIST = "" DTSI_LIST_append_keystone = " keystone-uio.dtsi"@@ -24,4 +25,15 @@ do_setup_uio() { fi } +do_setup_uio_append_am57xx-evm() { + dts="am572x-idk-pru-excl-uio.dts" + dtsi="am572x-pru-uio.dtsi" + cp ${S}/arch/arm/boot/dts/am572x-idk.dts ${S}/arch/arm/boot/dts/$dts + if [ "${ENABLE_TI_UIO_DEVICES}" == "1" ] + then + cp ${WORKDIR}/${dtsi} ${S}/arch/arm/boot/dts/ + echo "#include \"${dtsi}\"" >> ${S}/arch/arm/boot/dts/$dts + fi +} + do_patch[postfuncs] += "do_setup_uio" --1.9.1
--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
Quoted 261 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Monday, May 16, 2016 12:05 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH] linux-ti-staging: Add new device tree target am572x-idk-pru-excl-uio.dtbQuoted 233 lines · Sam
Quoted 233 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Sunday, May 15, 2016 11:32 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH] linux-ti-staging: Add new device tree target am572x-idk-pru-excl-uio.dtbSee below.
Quoted 6 lines · Sam Nelson
This new device tree file is to support pruss with uio based drivers. Adds uio entries for pruss susbsystem.
Signed-off-by Sam Nelson <[email protected]>--- .../linux/files/dra7xx/am572x-pru-uio.dtsi | 191+++++++++++++++++++++
Quoted 18 lines
recipes-kernel/linux/linux-ti-staging_4.4.bb | 2 +- recipes-kernel/linux/ti-uio.inc | 12 ++ 3 files changed, 204 insertions(+), 1 deletion(-) create mode100644
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsirecipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +6
-0@@ -0,0 +1,191 @@ +/ { + ocp { + pruss2_eth { + status = "disabled"; + }; + uio_pruss1_mem: uio_pruss1_mem {recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi line 16
Quoted 10 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +10
-0+ compatible = "ti,uio-module-drv"; + ti,hwmods = "pruss1"; + mem = <0x4b200000 0x2000>, + <0x4b202000 0x2000>, + <0x4b210000 0x8000>, + <0x4b220000 0x2000>, + <0x4b226000 0x2000>, + <0x4b22e000 0x31c>, + <0x4b232000 0x58>; + mem-names = "dram0", "dram1", "shrdram2", "intc","cfg",
Quoted 69 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +69
-0+ "iep", "mii_rt"; + status = "okay"; + }; + uio_pruss1_evt0: uio_pruss1_evt0 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 186 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt1: uio_pruss1_evt1 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 187 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt2: uio_pruss1_evt2 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt3: uio_pruss1_evt3 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt4: uio_pruss1_evt4 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt5: uio_pruss1_evt5 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 191 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt6: uio_pruss1_evt6 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt7: uio_pruss1_evt7 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 193 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + + uio_pruss1_0_mem: uio_pruss1_0_mem { + compatible = "ti,uio-module-drv"; + mem = <0x4b234000 0x3000>, + <0x4b222000 0x400>, + <0x4b222400 0x100>; + mem-names = "iram", "control", "debug"; + status = "okay"; + }; + + uio_pruss1_1_mem: uio_pruss1_1_mem { + compatible = "ti,uio-module-drv"; + mem = <0x4b238000 0x3000>, + <0x4b224000 0x400>, + <0x4b224400 0x100>; + mem-names = "iram", "control", "debug"; + status = "okay"; + }; + + uio_pruss1_mdio: uio_pruss1_mdio { + compatible = "ti,uio-module-drv"; + mem = <0x4b232400 0x90>; + status = "okay"; + }; + + uio_pruss2_mem: uio_pruss2_mem {recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi
Quoted 10 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +10
-0+ compatible = "ti,uio-module-drv"; + ti,hwmods = "pruss2"; + mem = <0x4b280000 0x2000>, + <0x4b282000 0x2000>, + <0x4b290000 0x8000>, + <0x4b2a0000 0x2000>, + <0x4b2a6000 0x2000>, + <0x4b2ae000 0x31c>, + <0x4b2b2000 0x58>; + mem-names = "dram0", "dram1", "shrdram2", "intc","cfg",
recipes-kernel/linux/linux-ti-staging_4.4.bb KERNEL_DEVICETREE_beaglebone = "am335x-
Quoted 102 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +96
-0+ "iep", "mii_rt"; + status = "okay"; + }; + uio_pruss2_evt0: uio_pruss2_evt0 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt1: uio_pruss2_evt1 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt2: uio_pruss2_evt2 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt3: uio_pruss2_evt3 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 199 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt4: uio_pruss2_evt4 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt5: uio_pruss2_evt5 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 201 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt6: uio_pruss2_evt6 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 202 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt7: uio_pruss2_evt7 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 203 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + + uio_pruss2_0_mem: uio_pruss2_0_mem { + compatible = "ti,uio-module-drv"; + mem = <0x4b2b4000 0x3000>, + <0x4b2a2000 0x400>, + <0x4b2a2400 0x100>; + mem-names = "iram", "control", "debug"; + status = "okay"; + }; + uio_pruss2_1_mem: uio_pruss2_1_mem { + compatible = "ti,uio-module-drv"; + mem = <0x4b2b8000 0x3000>, + <0x4b2a4000 0x400>, + <0x4b2a4400 0x100>; + mem-names = "iram", "control", "debug"; + status = "okay"; + }; + uio_pruss2_mdio: uio_pruss2_mdio { + compatible = "ti,uio-module-drv"; + mem = <0x4b2b2400 0x90>; + mem-names = "mdio"; + status = "okay"; + }; + }; +}; + +&pruss1 { + status = "disabled"; +}; + +&pru1_0 { + status = "disabled"; +}; + +&pru1_1 { + status = "disabled"; +}; + +&pruss2 { + status = "disabled"; +}; + +&pru2_0 { + status = "disabled"; +}; + +&pru2_1 { + status = "disabled"; +}; + +&pruss2_mdio { + status = "disabled"; +};recipes-kernel/linux/linux-ti-staging_4.4.bb +0
-0@@ -52,7 +52,7 @@ KERNEL_DEVICETREE_beaglebone = "am335x-bone.dtb
Quoted 1 line
Quoted 1 line
Quoted 1 line
am335x-boneblack.dtb am335x-bone KERNEL_DEVICETREE_omap5-evm
=
Quoted 5 lines
Quoted 5 lines
"omap5-uevm.dtb"
Quoted 1 line
KERNEL_DEVICETREE_dra7xx-evm = "dra7-evm.dtb dra7-evm-lcd-lg.dtb
dra7-evm-lcd-osd.dtb dra72-evm.dtb dra72-evm-revc.dtb dra72-evm-lcd- lg.dtb dra72-evm-lcd-osd.dtb"
Quoted 1 line
KERNEL_DEVICETREE_dra7xx-hs-evm =
"${KERNEL_DEVICETREE_dra7xx-
Quoted 9 lines
Quoted 9 lines
evm}"
Quoted 1 line
-KERNEL_DEVICETREE_am57xx-evm = "am57xx-beagle-x15.dtb am57xx-
beagle-x15-revb1.dtb am57xx-evm.dtb am57xx-evm-reva3.dtb am571x- idk.dtb am572x-idk.dtb am571x-idk-lcd-osd.dtb am572x-idk-lcd-osd.dtb"
Quoted 1 line
+KERNEL_DEVICETREE_am57xx-evm = "am57xx-beagle-x15.dtb am57xx-
beagle-x15-revb1.dtb am57xx-evm.dtb am57xx-evm-reva3.dtb am571x- idk.dtb am572x-idk.dtb am571x-idk-lcd-osd.dtb am572x-idk-lcd-osd.dtb am572x-idk-pru-excl-uio.dtb"
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
NACK, you are adding it here unconditionally.
Are you expecting this to be conditional to
ENABLE_TI_UIO_DEVICES? Please clarify.The rest of your code is, isn't it?
Actually the dtb file is created, even if ENABLE_TI_UIO_DEVICES is not defined. Only the uio device tree entries are added based on this variable.
Quoted 45 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
KERNEL_DEVICETREE_omap3= "omap3-beagle.dtb omap3-beagle-xm.dtb
Quoted 9 lines
Quoted 9 lines
omap3-beagle-xm-ab.dtb omap3-evm.dtb omap3-evm-37xx.dtb am3517- evm.dtb"
recipes-kernel/linux/ti-uio.inc SRC_URI_append_keystone = " file://keystone-
Quoted 7 lines
KERNEL_DEVICETREE_am3517-evm = "am3517-evm.dtb" KERNEL_DEVICETREE_am37x-evm = "omap3-evm-37xx.dtb"
(quoted diff) +0
-0b/recipes-kernel/linux/ti-uio.inc index 776e4a4..4764d78 100644
recipes-kernel/linux/ti-uio.inc +0
-0@@ -2,6 +2,7 @@ SRC_URI_append_keystone = " file://keystone-
uio.dtsi"Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
recipes-kernel/linux/ti-uio.inc +1
-0SRC_URI_append_k2hk-evm = " file://k2hk-uio.dtsi" SRC_URI_append_k2l-evm = " file://k2l-uio.dtsi" SRC_URI_append_k2e-evm = " file://k2e-uio.dtsi" +SRC_URI_append_am57xx-evm = " file://am572x-pru-uio.dtsi" DTSI_LIST = "" DTSI_LIST_append_keystone = " keystone-uio.dtsi"@@ -24,4 +25,15 @@ do_setup_uio() { fi }Quoted 4 lines
Quoted 4 lines
recipes-kernel/linux/ti-uio.inc do_setup_uio() {
Quoted 4 lines
recipes-kernel/linux/ti-uio.inc +4
-0+do_setup_uio_append_am57xx-evm() { + dts="am572x-idk-pru-excl-uio.dts" + dtsi="am572x-pru-uio.dtsi" + cp ${S}/arch/arm/boot/dts/am572x-idk.dts${S}/arch/arm/boot/dts/$dts
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
recipes-kernel/linux/ti-uio.inc +7
-1+ if [ "${ENABLE_TI_UIO_DEVICES}" == "1" ] + then + cp ${WORKDIR}/${dtsi} ${S}/arch/arm/boot/dts/ + echo "#include \"${dtsi}\"" >> ${S}/arch/arm/boot/dts/$dts + fi +} + do_patch[postfuncs] += "do_setup_uio" --1.9.1
--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
Quoted 261 lines · Sam
Quoted 261 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Monday, May 16, 2016 12:05 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH] linux-ti-staging: Add new device tree target am572x-idk-pru-excl-uio.dtbQuoted 233 lines · Sam
Quoted 233 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Sunday, May 15, 2016 11:32 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH] linux-ti-staging: Add new device tree target am572x-idk-pru-excl-uio.dtbSee below.
Quoted 6 lines · Sam Nelson
This new device tree file is to support pruss with uio based drivers. Adds uio entries for pruss susbsystem.
Signed-off-by Sam Nelson <[email protected]>--- .../linux/files/dra7xx/am572x-pru-uio.dtsi | 191+++++++++++++++++++++
Quoted 18 lines
recipes-kernel/linux/linux-ti-staging_4.4.bb | 2 +- recipes-kernel/linux/ti-uio.inc | 12 ++ 3 files changed, 204 insertions(+), 1 deletion(-) create mode100644
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsirecipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +6
-0@@ -0,0 +1,191 @@ +/ { + ocp { + pruss2_eth { + status = "disabled"; + }; + uio_pruss1_mem: uio_pruss1_mem {recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi line 16
Quoted 10 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +10
-0+ compatible = "ti,uio-module-drv"; + ti,hwmods = "pruss1"; + mem = <0x4b200000 0x2000>, + <0x4b202000 0x2000>, + <0x4b210000 0x8000>, + <0x4b220000 0x2000>, + <0x4b226000 0x2000>, + <0x4b22e000 0x31c>, + <0x4b232000 0x58>; + mem-names = "dram0", "dram1", "shrdram2", "intc","cfg",
Quoted 69 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +69
-0+ "iep", "mii_rt"; + status = "okay"; + }; + uio_pruss1_evt0: uio_pruss1_evt0 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 186 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt1: uio_pruss1_evt1 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 187 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt2: uio_pruss1_evt2 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt3: uio_pruss1_evt3 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt4: uio_pruss1_evt4 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt5: uio_pruss1_evt5 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 191 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt6: uio_pruss1_evt6 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss1_evt7: uio_pruss1_evt7 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 193 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + + uio_pruss1_0_mem: uio_pruss1_0_mem { + compatible = "ti,uio-module-drv"; + mem = <0x4b234000 0x3000>, + <0x4b222000 0x400>, + <0x4b222400 0x100>; + mem-names = "iram", "control", "debug"; + status = "okay"; + }; + + uio_pruss1_1_mem: uio_pruss1_1_mem { + compatible = "ti,uio-module-drv"; + mem = <0x4b238000 0x3000>, + <0x4b224000 0x400>, + <0x4b224400 0x100>; + mem-names = "iram", "control", "debug"; + status = "okay"; + }; + + uio_pruss1_mdio: uio_pruss1_mdio { + compatible = "ti,uio-module-drv"; + mem = <0x4b232400 0x90>; + status = "okay"; + }; + + uio_pruss2_mem: uio_pruss2_mem {recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi
Quoted 10 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +10
-0+ compatible = "ti,uio-module-drv"; + ti,hwmods = "pruss2"; + mem = <0x4b280000 0x2000>, + <0x4b282000 0x2000>, + <0x4b290000 0x8000>, + <0x4b2a0000 0x2000>, + <0x4b2a6000 0x2000>, + <0x4b2ae000 0x31c>, + <0x4b2b2000 0x58>; + mem-names = "dram0", "dram1", "shrdram2", "intc","cfg",
recipes-kernel/linux/linux-ti-staging_4.4.bb KERNEL_DEVICETREE_beaglebone = "am335x-
Quoted 102 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +96
-0+ "iep", "mii_rt"; + status = "okay"; + }; + uio_pruss2_evt0: uio_pruss2_evt0 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt1: uio_pruss2_evt1 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt2: uio_pruss2_evt2 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt3: uio_pruss2_evt3 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 199 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt4: uio_pruss2_evt4 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt5: uio_pruss2_evt5 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 201 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt6: uio_pruss2_evt6 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 202 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + uio_pruss2_evt7: uio_pruss2_evt7 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 203 IRQ_TYPE_LEVEL_HIGH>; + status = "okay"; + }; + + uio_pruss2_0_mem: uio_pruss2_0_mem { + compatible = "ti,uio-module-drv"; + mem = <0x4b2b4000 0x3000>, + <0x4b2a2000 0x400>, + <0x4b2a2400 0x100>; + mem-names = "iram", "control", "debug"; + status = "okay"; + }; + uio_pruss2_1_mem: uio_pruss2_1_mem { + compatible = "ti,uio-module-drv"; + mem = <0x4b2b8000 0x3000>, + <0x4b2a4000 0x400>, + <0x4b2a4400 0x100>; + mem-names = "iram", "control", "debug"; + status = "okay"; + }; + uio_pruss2_mdio: uio_pruss2_mdio { + compatible = "ti,uio-module-drv"; + mem = <0x4b2b2400 0x90>; + mem-names = "mdio"; + status = "okay"; + }; + }; +}; + +&pruss1 { + status = "disabled"; +}; + +&pru1_0 { + status = "disabled"; +}; + +&pru1_1 { + status = "disabled"; +}; + +&pruss2 { + status = "disabled"; +}; + +&pru2_0 { + status = "disabled"; +}; + +&pru2_1 { + status = "disabled"; +}; + +&pruss2_mdio { + status = "disabled"; +};recipes-kernel/linux/linux-ti-staging_4.4.bb +0
-0@@ -52,7 +52,7 @@ KERNEL_DEVICETREE_beaglebone = "am335x-bone.dtb
Quoted 1 line
Quoted 1 line
Quoted 1 line
am335x-boneblack.dtb am335x-bone KERNEL_DEVICETREE_omap5-evm
=
Quoted 5 lines
Quoted 5 lines
"omap5-uevm.dtb"
Quoted 1 line
KERNEL_DEVICETREE_dra7xx-evm = "dra7-evm.dtb dra7-evm-lcd-lg.dtb
dra7-evm-lcd-osd.dtb dra72-evm.dtb dra72-evm-revc.dtb dra72-evm-lcd- lg.dtb dra72-evm-lcd-osd.dtb"
Quoted 1 line
KERNEL_DEVICETREE_dra7xx-hs-evm =
"${KERNEL_DEVICETREE_dra7xx-
Quoted 9 lines
Quoted 9 lines
evm}"
Quoted 1 line
-KERNEL_DEVICETREE_am57xx-evm = "am57xx-beagle-x15.dtb am57xx-
beagle-x15-revb1.dtb am57xx-evm.dtb am57xx-evm-reva3.dtb am571x- idk.dtb am572x-idk.dtb am571x-idk-lcd-osd.dtb am572x-idk-lcd-osd.dtb"
Quoted 1 line
+KERNEL_DEVICETREE_am57xx-evm = "am57xx-beagle-x15.dtb am57xx-
beagle-x15-revb1.dtb am57xx-evm.dtb am57xx-evm-reva3.dtb am571x- idk.dtb am572x-idk.dtb am571x-idk-lcd-osd.dtb am572x-idk-lcd-osd.dtb am572x-idk-pru-excl-uio.dtb"
Quoted 6 lines
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
NACK, you are adding it here unconditionally.
Are you expecting this to be conditional to
ENABLE_TI_UIO_DEVICES? Please clarify.The rest of your code is, isn't it?
That is what I meant - the rest of uio is conditional, so adding new DTB unconditionally is at least confusing... DTB should also be conditional.
Quoted 48 lines
Actually the dtb file is created, even if
ENABLE_TI_UIO_DEVICESis not defined. Only the uio device tree entries are added based on this variable.Quoted 45 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
KERNEL_DEVICETREE_omap3= "omap3-beagle.dtb omap3-beagle-xm.dtb
Quoted 9 lines
Quoted 9 lines
omap3-beagle-xm-ab.dtb omap3-evm.dtb omap3-evm-37xx.dtb am3517- evm.dtb"
recipes-kernel/linux/ti-uio.inc SRC_URI_append_keystone = " file://keystone-
Quoted 7 lines
KERNEL_DEVICETREE_am3517-evm = "am3517-evm.dtb" KERNEL_DEVICETREE_am37x-evm = "omap3-evm-37xx.dtb"
(quoted diff) +0
-0b/recipes-kernel/linux/ti-uio.inc index 776e4a4..4764d78 100644
recipes-kernel/linux/ti-uio.inc +0
-0@@ -2,6 +2,7 @@ SRC_URI_append_keystone = " file://keystone-
uio.dtsi"Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
recipes-kernel/linux/ti-uio.inc +1
-0SRC_URI_append_k2hk-evm = " file://k2hk-uio.dtsi" SRC_URI_append_k2l-evm = " file://k2l-uio.dtsi" SRC_URI_append_k2e-evm = " file://k2e-uio.dtsi" +SRC_URI_append_am57xx-evm = " file://am572x-pru-uio.dtsi" DTSI_LIST = "" DTSI_LIST_append_keystone = " keystone-uio.dtsi"@@ -24,4 +25,15 @@ do_setup_uio() { fi }Quoted 4 lines
Quoted 4 lines
recipes-kernel/linux/ti-uio.inc do_setup_uio() {
Quoted 4 lines
recipes-kernel/linux/ti-uio.inc +4
-0+do_setup_uio_append_am57xx-evm() { + dts="am572x-idk-pru-excl-uio.dts" + dtsi="am572x-pru-uio.dtsi" + cp ${S}/arch/arm/boot/dts/am572x-idk.dts${S}/arch/arm/boot/dts/$dts
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
recipes-kernel/linux/ti-uio.inc +7
-1+ if [ "${ENABLE_TI_UIO_DEVICES}" == "1" ] + then + cp ${WORKDIR}/${dtsi} ${S}/arch/arm/boot/dts/ + echo "#include \"${dtsi}\"" >> ${S}/arch/arm/boot/dts/$dts + fi +} + do_patch[postfuncs] += "do_setup_uio" --1.9.1
--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
Quoted 301 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Monday, May 16, 2016 3:22 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH] linux-ti-staging: Add new device tree target am572x-idk-pru-excl-uio.dtbQuoted 54 lines · Sam
Quoted 54 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Monday, May 16, 2016 12:05 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH] linux-ti-staging: Add new device tree target am572x-idk-pru-excl-uio.dtbQuoted 43 lines · Sam
Quoted 43 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Sunday, May 15, 2016 11:32 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH] linux-ti-staging: Add new device tree target am572x-idk-pru-excl-uio.dtbSee below.
Quoted 6 lines · Sam Nelson
This new device tree file is to support pruss with uio based drivers. Adds uio entries for pruss susbsystem.
Signed-off-by Sam Nelson <[email protected]>--- .../linux/files/dra7xx/am572x-pru-uio.dtsi | 191+++++++++++++++++++++
Quoted 22 lines
recipes-kernel/linux/linux-ti-staging_4.4.bb | 2 +- recipes-kernel/linux/ti-uio.inc | 12 ++ 3 files changed, 204 insertions(+), 1 deletion(-) createmode
100644recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsidiff --git
a/recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsib/recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsinew file mode 100644
index 0000000..001cbecrecipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +8
-0@@ -0,0 +1,191 @@ +/ { + ocp { + pruss2_eth { + status = "disabled"; + }; + uio_pruss1_mem: uio_pruss1_mem { + compatible = "ti,uio-module-drv"; + ti,hwmods = "pruss1";Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi
Quoted 8 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +8
-0+ mem = <0x4b200000 0x2000>, + <0x4b202000 0x2000>, + <0x4b210000 0x8000>, + <0x4b220000 0x2000>, + <0x4b226000 0x2000>, + <0x4b22e000 0x31c>, + <0x4b232000 0x58>; + mem-names = "dram0", "dram1", "shrdram2","intc",
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
"cfg",
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi
Quoted 6 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +6
-0+ "iep", "mii_rt"; + status = "okay"; + }; + uio_pruss1_evt0: uio_pruss1_evt0 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 186
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +5
-0+ status = "okay"; + }; + uio_pruss1_evt1: uio_pruss1_evt1 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 187
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +5
-0+ status = "okay"; + }; + uio_pruss1_evt2: uio_pruss1_evt2 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 188
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +5
-0+ status = "okay"; + }; + uio_pruss1_evt3: uio_pruss1_evt3 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 189
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +5
-0+ status = "okay"; + }; + uio_pruss1_evt4: uio_pruss1_evt4 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 190
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +5
-0+ status = "okay"; + }; + uio_pruss1_evt5: uio_pruss1_evt5 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 191
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +5
-0+ status = "okay"; + }; + uio_pruss1_evt6: uio_pruss1_evt6 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 192
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +5
-0+ status = "okay"; + }; + uio_pruss1_evt7: uio_pruss1_evt7 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 193
IRQ_TYPE_LEVEL_HIGH>;Quoted 30 lines
Quoted 30 lines
Quoted 30 lines
Quoted 30 lines
Quoted 30 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +30
-0+ status = "okay"; + }; + + uio_pruss1_0_mem: uio_pruss1_0_mem { + compatible = "ti,uio-module-drv"; + mem = <0x4b234000 0x3000>, + <0x4b222000 0x400>, + <0x4b222400 0x100>; + mem-names = "iram", "control", "debug"; + status = "okay"; + }; + + uio_pruss1_1_mem: uio_pruss1_1_mem { + compatible = "ti,uio-module-drv"; + mem = <0x4b238000 0x3000>, + <0x4b224000 0x400>, + <0x4b224400 0x100>; + mem-names = "iram", "control", "debug"; + status = "okay"; + }; + + uio_pruss1_mdio: uio_pruss1_mdio { + compatible = "ti,uio-module-drv"; + mem = <0x4b232400 0x90>; + status = "okay"; + }; + + uio_pruss2_mem: uio_pruss2_mem { + compatible = "ti,uio-module-drv"; + ti,hwmods = "pruss2";Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi
Quoted 8 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +8
-0+ mem = <0x4b280000 0x2000>, + <0x4b282000 0x2000>, + <0x4b290000 0x8000>, + <0x4b2a0000 0x2000>, + <0x4b2a6000 0x2000>, + <0x4b2ae000 0x31c>, + <0x4b2b2000 0x58>; + mem-names = "dram0", "dram1", "shrdram2","intc",
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
"cfg",
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi
Quoted 6 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +6
-0+ "iep", "mii_rt"; + status = "okay"; + }; + uio_pruss2_evt0: uio_pruss2_evt0 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 196
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +5
-0+ status = "okay"; + }; + uio_pruss2_evt1: uio_pruss2_evt1 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 197
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +5
-0+ status = "okay"; + }; + uio_pruss2_evt2: uio_pruss2_evt2 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 198
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +5
-0+ status = "okay"; + }; + uio_pruss2_evt3: uio_pruss2_evt3 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 199
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +5
-0+ status = "okay"; + }; + uio_pruss2_evt4: uio_pruss2_evt4 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 200
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +5
-0+ status = "okay"; + }; + uio_pruss2_evt5: uio_pruss2_evt5 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 201
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +5
-0+ status = "okay"; + }; + uio_pruss2_evt6: uio_pruss2_evt6 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 202
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +5
-0+ status = "okay"; + }; + uio_pruss2_evt7: uio_pruss2_evt7 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 203
IRQ_TYPE_LEVEL_HIGH>;Quoted 62 lines
Quoted 62 lines
Quoted 62 lines
Quoted 62 lines
recipes-kernel/linux/linux-ti-staging_4.4.bb KERNEL_DEVICETREE_beaglebone = "am335x-
Quoted 61 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +55
-0+ status = "okay"; + }; + + uio_pruss2_0_mem: uio_pruss2_0_mem { + compatible = "ti,uio-module-drv"; + mem = <0x4b2b4000 0x3000>, + <0x4b2a2000 0x400>, + <0x4b2a2400 0x100>; + mem-names = "iram", "control", "debug"; + status = "okay"; + }; + uio_pruss2_1_mem: uio_pruss2_1_mem { + compatible = "ti,uio-module-drv"; + mem = <0x4b2b8000 0x3000>, + <0x4b2a4000 0x400>, + <0x4b2a4400 0x100>; + mem-names = "iram", "control", "debug"; + status = "okay"; + }; + uio_pruss2_mdio: uio_pruss2_mdio { + compatible = "ti,uio-module-drv"; + mem = <0x4b2b2400 0x90>; + mem-names = "mdio"; + status = "okay"; + }; + }; +}; + +&pruss1 { + status = "disabled"; +}; + +&pru1_0 { + status = "disabled"; +}; + +&pru1_1 { + status = "disabled"; +}; + +&pruss2 { + status = "disabled"; +}; + +&pru2_0 { + status = "disabled"; +}; + +&pru2_1 { + status = "disabled"; +}; + +&pruss2_mdio { + status = "disabled"; +};recipes-kernel/linux/linux-ti-staging_4.4.bb +0
-0@@ -52,7 +52,7 @@ KERNEL_DEVICETREE_beaglebone = "am335x-bone.dtb
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
am335x-boneblack.dtb am335x-bone KERNEL_DEVICETREE_omap5-
evm
Quoted 10 lines
Quoted 10 lines
=
Quoted 6 lines
Quoted 6 lines
"omap5-uevm.dtb"
Quoted 2 lines
KERNEL_DEVICETREE_dra7xx-evm = "dra7-evm.dtb
dra7-evm-lcd-lg.dtbdra7-evm-lcd-osd.dtb dra72-evm.dtb dra72-evm-revc.dtb dra72-evm-lcd- lg.dtb dra72-evm-lcd-osd.dtb"
Quoted 1 line
KERNEL_DEVICETREE_dra7xx-hs-evm =
"${KERNEL_DEVICETREE_dra7xx-
Quoted 2 lines
Quoted 2 lines
evm}"
Quoted 1 line
-KERNEL_DEVICETREE_am57xx-evm = "am57xx-beagle-x15.dtb
am57xx-
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
beagle-x15-revb1.dtb am57xx-evm.dtb am57xx-evm-reva3.dtb
am571x-
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
idk.dtb am572x-idk.dtb am571x-idk-lcd-osd.dtb am572x-idk-lcd-
osd.dtb"
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
+KERNEL_DEVICETREE_am57xx-evm = "am57xx-beagle-x15.dtb
am57xx-
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
beagle-x15-revb1.dtb am57xx-evm.dtb am57xx-evm-reva3.dtb
am571x-
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
idk.dtb am572x-idk.dtb am571x-idk-lcd-osd.dtb am572x-idk-lcd-osd.dtb am572x-idk-pru-excl-uio.dtb"
NACK, you are adding it here unconditionally.
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
Are you expecting this to be conditional to
ENABLE_TI_UIO_DEVICES? Please clarify.The rest of your code is, isn't it?
That is what I meant - the rest of uio is conditional, so adding new DTB unconditionally is at least confusing... DTB should also be conditional.
Ok. I understand the feedback.
This is little bit new to me, so I may need some help with this.
Need something like:
#if ${ENABLE_TI_UIO_DEVICES}
KERNEL_DEVICETREE_append_am57xx-evm = " am572x-idk-pru-excl-uio.dtb" #endif
I don't a quick solution on how to do this in the recipe .inc file.
If we already do this for other variables in any of the recipes, please let me know. Appreciate your help.
Quoted 52 lines
Quoted 3 lines
Actually the dtb file is created, even if
ENABLE_TI_UIO_DEVICESis notdefined.
Quoted 6 lines
Only the uio device tree entries are added based on this variable.
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
KERNEL_DEVICETREE_omap3= "omap3-beagle.dtb omap3-beagle-xm.dtb
Quoted 1 line
Quoted 1 line
omap3-beagle-xm-ab.dtb omap3-evm.dtb omap3-evm-37xx.dtb
am3517-
Quoted 41 lines
Quoted 41 lines
Quoted 8 lines
Quoted 8 lines
evm.dtb"
recipes-kernel/linux/ti-uio.inc SRC_URI_append_keystone = " file://keystone-
Quoted 7 lines
KERNEL_DEVICETREE_am3517-evm = "am3517-evm.dtb" KERNEL_DEVICETREE_am37x-evm = "omap3-evm-37xx.dtb"
(quoted diff) +0
-0b/recipes-kernel/linux/ti-uio.inc index 776e4a4..4764d78 100644
recipes-kernel/linux/ti-uio.inc +0
-0@@ -2,6 +2,7 @@ SRC_URI_append_keystone = " file://keystone-
uio.dtsi"Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
recipes-kernel/linux/ti-uio.inc +1
-0SRC_URI_append_k2hk-evm = " file://k2hk-uio.dtsi" SRC_URI_append_k2l-evm = " file://k2l-uio.dtsi" SRC_URI_append_k2e-evm = " file://k2e-uio.dtsi" +SRC_URI_append_am57xx-evm = " file://am572x-pru-uio.dtsi" DTSI_LIST = "" DTSI_LIST_append_keystone = " keystone-uio.dtsi"@@ -24,4 +25,15 @@ do_setup_uio() { fi }Quoted 4 lines
Quoted 4 lines
recipes-kernel/linux/ti-uio.inc do_setup_uio() {
Quoted 4 lines
recipes-kernel/linux/ti-uio.inc +4
-0+do_setup_uio_append_am57xx-evm() { + dts="am572x-idk-pru-excl-uio.dts" + dtsi="am572x-pru-uio.dtsi" + cp ${S}/arch/arm/boot/dts/am572x-idk.dts${S}/arch/arm/boot/dts/$dts
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
recipes-kernel/linux/ti-uio.inc +7
-1+ if [ "${ENABLE_TI_UIO_DEVICES}" == "1" ] + then + cp ${WORKDIR}/${dtsi} ${S}/arch/arm/boot/dts/ + echo "#include \"${dtsi}\"" >> ${S}/arch/arm/boot/dts/$dts + fi +} + do_patch[postfuncs] += "do_setup_uio" --1.9.1
--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
Quoted 309 lines · Sam
Quoted 301 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Monday, May 16, 2016 3:22 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH] linux-ti-staging: Add new device tree target am572x-idk-pru-excl-uio.dtbQuoted 54 lines · Sam
Quoted 54 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Monday, May 16, 2016 12:05 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH] linux-ti-staging: Add new device tree target am572x-idk-pru-excl-uio.dtbQuoted 43 lines · Sam
Quoted 43 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Sunday, May 15, 2016 11:32 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH] linux-ti-staging: Add new device tree target am572x-idk-pru-excl-uio.dtbSee below.
Quoted 6 lines · Sam Nelson
This new device tree file is to support pruss with uio based drivers. Adds uio entries for pruss susbsystem.
Signed-off-by Sam Nelson <[email protected]>--- .../linux/files/dra7xx/am572x-pru-uio.dtsi | 191+++++++++++++++++++++
Quoted 22 lines
recipes-kernel/linux/linux-ti-staging_4.4.bb | 2 +- recipes-kernel/linux/ti-uio.inc | 12 ++ 3 files changed, 204 insertions(+), 1 deletion(-) createmode
100644recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsidiff --git
a/recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsib/recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsinew file mode 100644
index 0000000..001cbecrecipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +8
-0@@ -0,0 +1,191 @@ +/ { + ocp { + pruss2_eth { + status = "disabled"; + }; + uio_pruss1_mem: uio_pruss1_mem { + compatible = "ti,uio-module-drv"; + ti,hwmods = "pruss1";Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi line 16
Quoted 8 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +8
-0+ mem = <0x4b200000 0x2000>, + <0x4b202000 0x2000>, + <0x4b210000 0x8000>, + <0x4b220000 0x2000>, + <0x4b226000 0x2000>, + <0x4b22e000 0x31c>, + <0x4b232000 0x58>; + mem-names = "dram0", "dram1", "shrdram2","intc",
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
"cfg",
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi line 22
Quoted 6 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +6
-0+ "iep", "mii_rt"; + status = "okay"; + }; + uio_pruss1_evt0: uio_pruss1_evt0 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 186
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi line 27
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +5
-0+ status = "okay"; + }; + uio_pruss1_evt1: uio_pruss1_evt1 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 187
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi line 32
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +5
-0+ status = "okay"; + }; + uio_pruss1_evt2: uio_pruss1_evt2 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 188
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi line 37
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +5
-0+ status = "okay"; + }; + uio_pruss1_evt3: uio_pruss1_evt3 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 189
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi line 42
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +5
-0+ status = "okay"; + }; + uio_pruss1_evt4: uio_pruss1_evt4 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 190
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi line 47
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +5
-0+ status = "okay"; + }; + uio_pruss1_evt5: uio_pruss1_evt5 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 191
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi line 52
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +5
-0+ status = "okay"; + }; + uio_pruss1_evt6: uio_pruss1_evt6 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 192
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi line 57
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +5
-0+ status = "okay"; + }; + uio_pruss1_evt7: uio_pruss1_evt7 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 193
IRQ_TYPE_LEVEL_HIGH>;Quoted 30 lines
Quoted 30 lines
Quoted 30 lines
Quoted 30 lines
Quoted 30 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +30
-0+ status = "okay"; + }; + + uio_pruss1_0_mem: uio_pruss1_0_mem { + compatible = "ti,uio-module-drv"; + mem = <0x4b234000 0x3000>, + <0x4b222000 0x400>, + <0x4b222400 0x100>; + mem-names = "iram", "control", "debug"; + status = "okay"; + }; + + uio_pruss1_1_mem: uio_pruss1_1_mem { + compatible = "ti,uio-module-drv"; + mem = <0x4b238000 0x3000>, + <0x4b224000 0x400>, + <0x4b224400 0x100>; + mem-names = "iram", "control", "debug"; + status = "okay"; + }; + + uio_pruss1_mdio: uio_pruss1_mdio { + compatible = "ti,uio-module-drv"; + mem = <0x4b232400 0x90>; + status = "okay"; + }; + + uio_pruss2_mem: uio_pruss2_mem { + compatible = "ti,uio-module-drv"; + ti,hwmods = "pruss2";Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi line 95
Quoted 8 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +8
-0+ mem = <0x4b280000 0x2000>, + <0x4b282000 0x2000>, + <0x4b290000 0x8000>, + <0x4b2a0000 0x2000>, + <0x4b2a6000 0x2000>, + <0x4b2ae000 0x31c>, + <0x4b2b2000 0x58>; + mem-names = "dram0", "dram1", "shrdram2","intc",
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
"cfg",
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi line 101
Quoted 6 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +6
-0+ "iep", "mii_rt"; + status = "okay"; + }; + uio_pruss2_evt0: uio_pruss2_evt0 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 196
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi line 106
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +5
-0+ status = "okay"; + }; + uio_pruss2_evt1: uio_pruss2_evt1 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 197
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi line 111
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +5
-0+ status = "okay"; + }; + uio_pruss2_evt2: uio_pruss2_evt2 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 198
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi line 116
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +5
-0+ status = "okay"; + }; + uio_pruss2_evt3: uio_pruss2_evt3 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 199
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi line 121
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +5
-0+ status = "okay"; + }; + uio_pruss2_evt4: uio_pruss2_evt4 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 200
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi line 126
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +5
-0+ status = "okay"; + }; + uio_pruss2_evt5: uio_pruss2_evt5 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 201
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi line 131
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +5
-0+ status = "okay"; + }; + uio_pruss2_evt6: uio_pruss2_evt6 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 202
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi line 136
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +5
-0+ status = "okay"; + }; + uio_pruss2_evt7: uio_pruss2_evt7 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 203
IRQ_TYPE_LEVEL_HIGH>;Quoted 62 lines
Quoted 62 lines
Quoted 62 lines
Quoted 62 lines
recipes-kernel/linux/linux-ti-staging_4.4.bb KERNEL_DEVICETREE_beaglebone = "am335x-
Quoted 61 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi new file +55
-0+ status = "okay"; + }; + + uio_pruss2_0_mem: uio_pruss2_0_mem { + compatible = "ti,uio-module-drv"; + mem = <0x4b2b4000 0x3000>, + <0x4b2a2000 0x400>, + <0x4b2a2400 0x100>; + mem-names = "iram", "control", "debug"; + status = "okay"; + }; + uio_pruss2_1_mem: uio_pruss2_1_mem { + compatible = "ti,uio-module-drv"; + mem = <0x4b2b8000 0x3000>, + <0x4b2a4000 0x400>, + <0x4b2a4400 0x100>; + mem-names = "iram", "control", "debug"; + status = "okay"; + }; + uio_pruss2_mdio: uio_pruss2_mdio { + compatible = "ti,uio-module-drv"; + mem = <0x4b2b2400 0x90>; + mem-names = "mdio"; + status = "okay"; + }; + }; +}; + +&pruss1 { + status = "disabled"; +}; + +&pru1_0 { + status = "disabled"; +}; + +&pru1_1 { + status = "disabled"; +}; + +&pruss2 { + status = "disabled"; +}; + +&pru2_0 { + status = "disabled"; +}; + +&pru2_1 { + status = "disabled"; +}; + +&pruss2_mdio { + status = "disabled"; +};recipes-kernel/linux/linux-ti-staging_4.4.bb +0
-0@@ -52,7 +52,7 @@ KERNEL_DEVICETREE_beaglebone = "am335x-bone.dtb
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
am335x-boneblack.dtb am335x-bone KERNEL_DEVICETREE_omap5-
evm
Quoted 10 lines
Quoted 10 lines
=
Quoted 6 lines
Quoted 6 lines
"omap5-uevm.dtb"
Quoted 2 lines
KERNEL_DEVICETREE_dra7xx-evm = "dra7-evm.dtb
dra7-evm-lcd-lg.dtbdra7-evm-lcd-osd.dtb dra72-evm.dtb dra72-evm-revc.dtb dra72-evm-lcd- lg.dtb dra72-evm-lcd-osd.dtb"
Quoted 1 line
KERNEL_DEVICETREE_dra7xx-hs-evm =
"${KERNEL_DEVICETREE_dra7xx-
Quoted 2 lines
Quoted 2 lines
evm}"
Quoted 1 line
-KERNEL_DEVICETREE_am57xx-evm = "am57xx-beagle-x15.dtb
am57xx-
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
beagle-x15-revb1.dtb am57xx-evm.dtb am57xx-evm-reva3.dtb
am571x-
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
idk.dtb am572x-idk.dtb am571x-idk-lcd-osd.dtb am572x-idk-lcd-
osd.dtb"
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
+KERNEL_DEVICETREE_am57xx-evm = "am57xx-beagle-x15.dtb
am57xx-
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
beagle-x15-revb1.dtb am57xx-evm.dtb am57xx-evm-reva3.dtb
am571x-
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
idk.dtb am572x-idk.dtb am571x-idk-lcd-osd.dtb am572x-idk-lcd-osd.dtb am572x-idk-pru-excl-uio.dtb"
NACK, you are adding it here unconditionally.
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
Are you expecting this to be conditional to
ENABLE_TI_UIO_DEVICES? Please clarify.The rest of your code is, isn't it?
That is what I meant - the rest of uio is conditional, so adding new DTB unconditionally is at least confusing... DTB should also be conditional.
Quoted 9 lines
Ok. I understand the feedback.
This is little bit new to me, so I may need some help with this.
Need something like:
#if ${ENABLE_TI_UIO_DEVICES}
KERNEL_DEVICETREE_append_am57xx-evm = " am572x-idk-pru-excl-uio.dtb" #endif
I don't a quick solution on how to do this in the recipe .inc file.
If we already do this for other variables in any of the recipes, please let me know. Appreciate your help.
In uio.inc file add this:
KERNEL_DEVICETREE_append_am57xx-evm = "${@base_conditional("ENABLE_TI_UIO_DEVICES", "1", " am572x-idk-pru-excl-uio.dtb", "", d)}"
Quoted 50 lines
Quoted 50 lines
Quoted 1 line
Actually the dtb file is created, even if
ENABLE_TI_UIO_DEVICESis notdefined.
Quoted 6 lines
Only the uio device tree entries are added based on this variable.
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
KERNEL_DEVICETREE_omap3= "omap3-beagle.dtb omap3-beagle-xm.dtb
Quoted 1 line
Quoted 1 line
omap3-beagle-xm-ab.dtb omap3-evm.dtb omap3-evm-37xx.dtb
am3517-
Quoted 41 lines
Quoted 41 lines
Quoted 8 lines
Quoted 8 lines
evm.dtb"
recipes-kernel/linux/ti-uio.inc SRC_URI_append_keystone = " file://keystone-
Quoted 7 lines
KERNEL_DEVICETREE_am3517-evm = "am3517-evm.dtb" KERNEL_DEVICETREE_am37x-evm = "omap3-evm-37xx.dtb"
(quoted diff) +0
-0b/recipes-kernel/linux/ti-uio.inc index 776e4a4..4764d78 100644
recipes-kernel/linux/ti-uio.inc +0
-0@@ -2,6 +2,7 @@ SRC_URI_append_keystone = " file://keystone-
uio.dtsi"Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
recipes-kernel/linux/ti-uio.inc +1
-0SRC_URI_append_k2hk-evm = " file://k2hk-uio.dtsi" SRC_URI_append_k2l-evm = " file://k2l-uio.dtsi" SRC_URI_append_k2e-evm = " file://k2e-uio.dtsi" +SRC_URI_append_am57xx-evm = " file://am572x-pru-uio.dtsi" DTSI_LIST = "" DTSI_LIST_append_keystone = " keystone-uio.dtsi"@@ -24,4 +25,15 @@ do_setup_uio() { fi }Quoted 4 lines
Quoted 4 lines
recipes-kernel/linux/ti-uio.inc do_setup_uio() { · line 31
Quoted 4 lines
recipes-kernel/linux/ti-uio.inc +4
-0+do_setup_uio_append_am57xx-evm() { + dts="am572x-idk-pru-excl-uio.dts" + dtsi="am572x-pru-uio.dtsi" + cp ${S}/arch/arm/boot/dts/am572x-idk.dts${S}/arch/arm/boot/dts/$dts
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
recipes-kernel/linux/ti-uio.inc +7
-1+ if [ "${ENABLE_TI_UIO_DEVICES}" == "1" ] + then + cp ${WORKDIR}/${dtsi} ${S}/arch/arm/boot/dts/ + echo "#include \"${dtsi}\"" >> ${S}/arch/arm/boot/dts/$dts + fi +} + do_patch[postfuncs] += "do_setup_uio" --1.9.1
--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
Quoted 335 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Monday, May 16, 2016 5:15 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH] linux-ti-staging: Add new device tree target am572x-idk-pru-excl-uio.dtbQuoted 32 lines · Sam
Quoted 32 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Monday, May 16, 2016 3:22 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH] linux-ti-staging: Add new device tree target am572x-idk-pru-excl-uio.dtbQuoted 21 lines · Sam
Quoted 21 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Monday, May 16, 2016 12:05 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH] linux-ti-staging: Add new device tree target am572x-idk-pru-excl-uio.dtbQuoted 10 lines · Sam
Quoted 10 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Sunday, May 15, 2016 11:32 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH] linux-ti-staging: Add new device tree target am572x-idk-pru-excl-uio.dtbQuoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
See below.
Quoted 1 line · Sam Nelson
This new device tree file is to support pruss with uio based
drivers.
Quoted 231 lines
Quoted 231 lines
Quoted 30 lines
Quoted 30 lines
Quoted 30 lines
Quoted 30 lines
Quoted 5 lines
Adds uio entries for pruss susbsystem.
Signed-off-by Sam Nelson <[email protected]>--- .../linux/files/dra7xx/am572x-pru-uio.dtsi | 191+++++++++++++++++++++
Quoted 24 lines
recipes-kernel/linux/linux-ti-staging_4.4.bb | 2 +- recipes-kernel/linux/ti-uio.inc | 12 ++ 3 files changed, 204 insertions(+), 1 deletion(-) createmode
100644recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsidiff --git
a/recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsib/recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsinew file mode 100644
index 0000000..001cbecrecipes-kernel/linux/files/dra7xx/am572x-pru-uio.dts new file +9
-0+++ i@@ -0,0 +1,191 @@ +/ { + ocp { + pruss2_eth { + status = "disabled"; + }; + uio_pruss1_mem: uio_pruss1_mem { + compatible = "ti,uio-module-drv"; + ti,hwmods = "pruss1";Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dts line 16
Quoted 8 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dts new file +8
-0+ mem = <0x4b200000 0x2000>, + <0x4b202000 0x2000>, + <0x4b210000 0x8000>, + <0x4b220000 0x2000>, + <0x4b226000 0x2000>, + <0x4b22e000 0x31c>, + <0x4b232000 0x58>; + mem-names = "dram0", "dram1", "shrdram2","intc",
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
"cfg",
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dts line 22
Quoted 6 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dts new file +6
-0+ "iep", "mii_rt"; + status = "okay"; + }; + uio_pruss1_evt0: uio_pruss1_evt0 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 186
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dts line 27
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dts new file +5
-0+ status = "okay"; + }; + uio_pruss1_evt1: uio_pruss1_evt1 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 187
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dts line 32
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dts new file +5
-0+ status = "okay"; + }; + uio_pruss1_evt2: uio_pruss1_evt2 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 188
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dts line 37
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dts new file +5
-0+ status = "okay"; + }; + uio_pruss1_evt3: uio_pruss1_evt3 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 189
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dts line 42
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dts new file +5
-0+ status = "okay"; + }; + uio_pruss1_evt4: uio_pruss1_evt4 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 190
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dts line 47
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dts new file +5
-0+ status = "okay"; + }; + uio_pruss1_evt5: uio_pruss1_evt5 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 191
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dts line 52
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dts new file +5
-0+ status = "okay"; + }; + uio_pruss1_evt6: uio_pruss1_evt6 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 192
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dts line 57
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dts new file +5
-0+ status = "okay"; + }; + uio_pruss1_evt7: uio_pruss1_evt7 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 193
IRQ_TYPE_LEVEL_HIGH>;Quoted 30 lines
Quoted 30 lines
Quoted 30 lines
Quoted 30 lines
Quoted 30 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dts new file +30
-0+ status = "okay"; + }; + + uio_pruss1_0_mem: uio_pruss1_0_mem { + compatible = "ti,uio-module-drv"; + mem = <0x4b234000 0x3000>, + <0x4b222000 0x400>, + <0x4b222400 0x100>; + mem-names = "iram", "control", "debug"; + status = "okay"; + }; + + uio_pruss1_1_mem: uio_pruss1_1_mem { + compatible = "ti,uio-module-drv"; + mem = <0x4b238000 0x3000>, + <0x4b224000 0x400>, + <0x4b224400 0x100>; + mem-names = "iram", "control", "debug"; + status = "okay"; + }; + + uio_pruss1_mdio: uio_pruss1_mdio { + compatible = "ti,uio-module-drv"; + mem = <0x4b232400 0x90>; + status = "okay"; + }; + + uio_pruss2_mem: uio_pruss2_mem { + compatible = "ti,uio-module-drv"; + ti,hwmods = "pruss2";Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dts line 95
Quoted 8 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dts new file +8
-0+ mem = <0x4b280000 0x2000>, + <0x4b282000 0x2000>, + <0x4b290000 0x8000>, + <0x4b2a0000 0x2000>, + <0x4b2a6000 0x2000>, + <0x4b2ae000 0x31c>, + <0x4b2b2000 0x58>; + mem-names = "dram0", "dram1", "shrdram2","intc",
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
"cfg",
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dts line 101
Quoted 6 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dts new file +6
-0+ "iep", "mii_rt"; + status = "okay"; + }; + uio_pruss2_evt0: uio_pruss2_evt0 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 196
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dts line 106
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dts new file +5
-0+ status = "okay"; + }; + uio_pruss2_evt1: uio_pruss2_evt1 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 197
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dts line 111
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dts new file +5
-0+ status = "okay"; + }; + uio_pruss2_evt2: uio_pruss2_evt2 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 198
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dts line 116
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dts new file +5
-0+ status = "okay"; + }; + uio_pruss2_evt3: uio_pruss2_evt3 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 199
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dts line 121
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dts new file +5
-0+ status = "okay"; + }; + uio_pruss2_evt4: uio_pruss2_evt4 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 200
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dts line 126
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dts new file +5
-0+ status = "okay"; + }; + uio_pruss2_evt5: uio_pruss2_evt5 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 201
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dts line 131
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dts new file +5
-0+ status = "okay"; + }; + uio_pruss2_evt6: uio_pruss2_evt6 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 202
IRQ_TYPE_LEVEL_HIGH>;Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dts line 136
Quoted 5 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dts new file +5
-0+ status = "okay"; + }; + uio_pruss2_evt7: uio_pruss2_evt7 { + compatible = "ti,uio-module-drv"; + interrupts = <GIC_SPI 203
IRQ_TYPE_LEVEL_HIGH>;Quoted 53 lines
Quoted 53 lines
Quoted 53 lines
Quoted 53 lines
Quoted 53 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dts new file +53
-0+ status = "okay"; + }; + + uio_pruss2_0_mem: uio_pruss2_0_mem { + compatible = "ti,uio-module-drv"; + mem = <0x4b2b4000 0x3000>, + <0x4b2a2000 0x400>, + <0x4b2a2400 0x100>; + mem-names = "iram", "control", "debug"; + status = "okay"; + }; + uio_pruss2_1_mem: uio_pruss2_1_mem { + compatible = "ti,uio-module-drv"; + mem = <0x4b2b8000 0x3000>, + <0x4b2a4000 0x400>, + <0x4b2a4400 0x100>; + mem-names = "iram", "control", "debug"; + status = "okay"; + }; + uio_pruss2_mdio: uio_pruss2_mdio { + compatible = "ti,uio-module-drv"; + mem = <0x4b2b2400 0x90>; + mem-names = "mdio"; + status = "okay"; + }; + }; +}; + +&pruss1 { + status = "disabled"; +}; + +&pru1_0 { + status = "disabled"; +}; + +&pru1_1 { + status = "disabled"; +}; + +&pruss2 { + status = "disabled"; +}; + +&pru2_0 { + status = "disabled"; +}; + +&pru2_1 { + status = "disabled"; +}; + +&pruss2_mdio {Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
recipes-kernel/linux/linux-ti-staging_4.4.bb KERNEL_DEVICETREE_beaglebone =
Quoted 8 lines
recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dts new file +2
-0+ status = "disabled"; +};recipes-kernel/linux/linux-ti-staging_4.4.bb +0
-0@@ -52,7 +52,7 @@ KERNEL_DEVICETREE_beaglebone ="am335x-
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
bone.dtb
Quoted 1 line
am335x-boneblack.dtb am335x-bone
KERNEL_DEVICETREE_omap5-
Quoted 31 lines
Quoted 31 lines
evm
Quoted 10 lines
Quoted 10 lines
=
Quoted 6 lines
Quoted 6 lines
"omap5-uevm.dtb"
Quoted 2 lines
KERNEL_DEVICETREE_dra7xx-evm = "dra7-evm.dtb
dra7-evm-lcd-lg.dtbdra7-evm-lcd-osd.dtb dra72-evm.dtb dra72-evm-revc.dtb dra72-evm-lcd- lg.dtb dra72-evm-lcd-osd.dtb"
Quoted 1 line
KERNEL_DEVICETREE_dra7xx-hs-evm =
"${KERNEL_DEVICETREE_dra7xx-
Quoted 2 lines
Quoted 2 lines
evm}"
Quoted 1 line
-KERNEL_DEVICETREE_am57xx-evm = "am57xx-beagle-x15.dtb
am57xx-
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
beagle-x15-revb1.dtb am57xx-evm.dtb am57xx-evm-reva3.dtb
am571x-
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
idk.dtb am572x-idk.dtb am571x-idk-lcd-osd.dtb
am572x-idk-lcd-osd.dtb"
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
+KERNEL_DEVICETREE_am57xx-evm = "am57xx-beagle-x15.dtb
am57xx-
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
beagle-x15-revb1.dtb am57xx-evm.dtb am57xx-evm-reva3.dtb
am571x-
Quoted 9 lines
Quoted 9 lines
Quoted 7 lines
Quoted 4 lines
idk.dtb am572x-idk.dtb am571x-idk-lcd-osd.dtb am572x-idk-lcd-osd.dtb am572x-idk-pru-excl-uio.dtb"
NACK, you are adding it here unconditionally.
Are you expecting this to be conditional to
ENABLE_TI_UIO_DEVICES? Please clarify.The rest of your code is, isn't it?
Quoted 8 lines
Quoted 2 lines
That is what I meant - the rest of uio is conditional, so adding new DTB unconditionally is at least confusing... DTB should also be conditional.
Ok. I understand the feedback.
This is little bit new to me, so I may need some help with this. Need something like:
#if ${ENABLE_TI_UIO_DEVICES} KERNEL_DEVICETREE_append_am57xx-evm = " am572x-idk-pru-excl-uio.dtb"
Quoted 3 lines
#endif
I don't a quick solution on how to do this in the recipe .inc file. If we already do this for other variables in any of the recipes, please let me
Quoted 8 lines
know.
Quoted 1 line
Appreciate your help.
In uio.inc file add this:
KERNEL_DEVICETREE_append_am57xx-evm = "${@base_conditional("ENABLE_TI_UIO_DEVICES", "1", " am572x-idk-pru- excl-uio.dtb", "", d)}"
Thanks Denys.
Quoted 56 lines
Quoted 9 lines
Quoted 9 lines
Quoted 4 lines
Actually the dtb file is created, even if
ENABLE_TI_UIO_DEVICESis notdefined.
Quoted 4 lines
Only the uio device tree entries are added based on this variable.
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
KERNEL_DEVICETREE_omap3= "omap3-beagle.dtb omap3-beagle-
Quoted 46 lines
Quoted 46 lines
Quoted 2 lines
Quoted 2 lines
xm.dtb
Quoted 1 line
Quoted 1 line
omap3-beagle-xm-ab.dtb omap3-evm.dtb omap3-evm-37xx.dtb
am3517-
Quoted 43 lines
Quoted 43 lines
Quoted 10 lines
Quoted 10 lines
evm.dtb"
Quoted 9 lines
KERNEL_DEVICETREE_am3517-evm = "am3517-evm.dtb" KERNEL_DEVICETREE_am37x-evm = "omap3-evm-37xx.dtb"
(quoted diff) +0
-0b/recipes-kernel/linux/ti-uio.inc index 776e4a4..4764d78 100644
recipes-kernel/linux/ti-uio.inc +0
-0@@ -2,6 +2,7 @@ SRC_URI_append_keystone = "file://keystone-
uio.dtsi"Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
SRC_URI_append_k2hk-evm = " file://k2hk-uio.dtsi" SRC_URI_append_k2l-evm = " file://k2l-uio.dtsi" SRC_URI_append_k2e-evm = " file://k2e-uio.dtsi"
recipes-kernel/linux/ti-uio.inc +1
-0+SRC_URI_append_am57xx-evm = " file://am572x-pru-uio.dtsi" DTSI_LIST = "" DTSI_LIST_append_keystone = " keystone-uio.dtsi"@@ -24,4 +25,15 @@ do_setup_uio() { fi }Quoted 4 lines
Quoted 4 lines
recipes-kernel/linux/ti-uio.inc do_setup_uio() { · line 31
Quoted 4 lines
recipes-kernel/linux/ti-uio.inc +4
-0+do_setup_uio_append_am57xx-evm() { + dts="am572x-idk-pru-excl-uio.dts" + dtsi="am572x-pru-uio.dtsi" + cp ${S}/arch/arm/boot/dts/am572x-idk.dts${S}/arch/arm/boot/dts/$dts
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
recipes-kernel/linux/ti-uio.inc +7
-1+ if [ "${ENABLE_TI_UIO_DEVICES}" == "1" ] + then + cp ${WORKDIR}/${dtsi} ${S}/arch/arm/boot/dts/ + echo "#include \"${dtsi}\"" >> ${S}/arch/arm/boot/dts/$dts + fi +} + do_patch[postfuncs] += "do_setup_uio" --1.9.1
--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti