From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 7E602E00DBE; Sun, 15 May 2016 20:32:38 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [198.47.26.153 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from devils.ext.ti.com (devils.ext.ti.com [198.47.26.153]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 167ABE00DB5 for ; Sun, 15 May 2016 20:32:34 -0700 (PDT) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id u4G3WX93009813 for ; Sun, 15 May 2016 22:32:33 -0500 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id u4G3WXmx009748 for ; Sun, 15 May 2016 22:32:33 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.294.0; Sun, 15 May 2016 22:32:33 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id u4G3WXqY022934; Sun, 15 May 2016 22:32:33 -0500 Date: Sun, 15 May 2016 23:32:17 -0400 From: Denys Dmytriyenko To: Sam Nelson Message-ID: <20160516033217.GF16188@edge> References: <1463368232-52539-1-git-send-email-sam.nelson@ti.com> MIME-Version: 1.0 In-Reply-To: <1463368232-52539-1-git-send-email-sam.nelson@ti.com> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: meta-ti@yoctoproject.org Subject: Re: [PATCH] linux-ti-staging: Add new device tree target am572x-idk-pru-excl-uio.dtb X-BeenThere: meta-ti@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-ti layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 May 2016 03:32:38 -0000 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline See below. On Sun, May 15, 2016 at 11:10:32PM -0400, Sam Nelson wrote: > This new device tree file is to support pruss with uio based drivers. > Adds uio entries for pruss susbsystem. > > Signed-off-by: Sam Nelson > --- > .../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 > > diff --git a/recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi b/recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi > new file mode 100644 > index 0000000..001cbec > --- /dev/null > +++ b/recipes-kernel/linux/files/dra7xx/am572x-pru-uio.dtsi > @@ -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 = ; > + status = "okay"; > + }; > + uio_pruss1_evt1: uio_pruss1_evt1 { > + compatible = "ti,uio-module-drv"; > + interrupts = ; > + status = "okay"; > + }; > + uio_pruss1_evt2: uio_pruss1_evt2 { > + compatible = "ti,uio-module-drv"; > + interrupts = ; > + status = "okay"; > + }; > + uio_pruss1_evt3: uio_pruss1_evt3 { > + compatible = "ti,uio-module-drv"; > + interrupts = ; > + status = "okay"; > + }; > + uio_pruss1_evt4: uio_pruss1_evt4 { > + compatible = "ti,uio-module-drv"; > + interrupts = ; > + status = "okay"; > + }; > + uio_pruss1_evt5: uio_pruss1_evt5 { > + compatible = "ti,uio-module-drv"; > + interrupts = ; > + status = "okay"; > + }; > + uio_pruss1_evt6: uio_pruss1_evt6 { > + compatible = "ti,uio-module-drv"; > + interrupts = ; > + status = "okay"; > + }; > + uio_pruss1_evt7: uio_pruss1_evt7 { > + compatible = "ti,uio-module-drv"; > + interrupts = ; > + 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 = ; > + status = "okay"; > + }; > + uio_pruss2_evt1: uio_pruss2_evt1 { > + compatible = "ti,uio-module-drv"; > + interrupts = ; > + status = "okay"; > + }; > + uio_pruss2_evt2: uio_pruss2_evt2 { > + compatible = "ti,uio-module-drv"; > + interrupts = ; > + status = "okay"; > + }; > + uio_pruss2_evt3: uio_pruss2_evt3 { > + compatible = "ti,uio-module-drv"; > + interrupts = ; > + status = "okay"; > + }; > + uio_pruss2_evt4: uio_pruss2_evt4 { > + compatible = "ti,uio-module-drv"; > + interrupts = ; > + status = "okay"; > + }; > + uio_pruss2_evt5: uio_pruss2_evt5 { > + compatible = "ti,uio-module-drv"; > + interrupts = ; > + status = "okay"; > + }; > + uio_pruss2_evt6: uio_pruss2_evt6 { > + compatible = "ti,uio-module-drv"; > + interrupts = ; > + status = "okay"; > + }; > + uio_pruss2_evt7: uio_pruss2_evt7 { > + compatible = "ti,uio-module-drv"; > + interrupts = ; > + 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"; > +}; > diff --git a/recipes-kernel/linux/linux-ti-staging_4.4.bb b/recipes-kernel/linux/linux-ti-staging_4.4.bb > index a9b99c0..620a789 100644 > --- a/recipes-kernel/linux/linux-ti-staging_4.4.bb > +++ b/recipes-kernel/linux/linux-ti-staging_4.4.bb > @@ -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. > 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" > diff --git a/recipes-kernel/linux/ti-uio.inc b/recipes-kernel/linux/ti-uio.inc > index 776e4a4..4764d78 100644 > --- a/recipes-kernel/linux/ti-uio.inc > +++ b/recipes-kernel/linux/ti-uio.inc > @@ -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 > meta-ti@yoctoproject.org > https://lists.yoctoproject.org/listinfo/meta-ti