Add pruss and pru support for am33xx and am57xx
Subsystems (5)
cover Add pruss and pru support for am33xx and am57xx
This series adds support for the pruss/pru_rproc drivers on am33xx and am57xx SoCs.
All PRU interfaces pru0 and pru1 are supported on am33xx. All PRU interfaces pru0, pru1, pru2, and pru3 are supported on am57xx.
Testing is done via the "rproc" U-Boot command.
This patch series is based on ti-u-boot-2020.01 branch on ti-u-boot repository located at: https://git.ti.com/cgit/ti-u-boot/ti-u-boot/
and commit 2781231a33c3
("arm: mach-k3: j721e_init: probe clock node after sci node is probed")
From looking at the master branch of the main u-boot repository, there does not appear to be significant effort required to merge it into the master branch.
Greg Leonberg (10):
arm: Add omap5 pruss1 and pruss2 to prcm structure
arm: arch-am33xx: Add prm_per definition
arm: arch-am33xx: Add pru_icss clkctrl
soc: ti: pruss: Add support for am33xx
soc: ti: pruss: Add support for am57xx
remoteproc: pru_rproc: Add support for am33xx
remoteproc: pru_rproc: Add support for am57xx
remoteproc: pru_rproc: Add is_running support
arm: dts: am33xx: Add pruss and pru
arm: dts: dra7: Add pruss and pru
arch/arm/dts/am33xx.dtsi | 105 +++++++++++ arch/arm/dts/dra7.dtsi | 198 ++++++++++++++++++++ arch/arm/include/asm/arch-am33xx/cpu.h | 13 +- arch/arm/include/asm/arch-am33xx/hardware_am33xx.h | 1 + arch/arm/include/asm/omap_common.h | 2 + arch/arm/mach-omap2/omap5/prcm-regs.c | 2 + drivers/remoteproc/Kconfig | 6 +- drivers/remoteproc/Makefile | 6 + drivers/remoteproc/pru_rproc.c | 200 +++++++++++++++------ drivers/soc/ti/Kconfig | 10 +- drivers/soc/ti/Makefile | 6 + drivers/soc/ti/pruss.c | 102 ++++++++++- 12 files changed, 582 insertions(+), 69 deletions(-)
Signature · 1 line
1.8.3.1
PATCH 1/10 arm: Add omap5 pruss1 and pruss2 to prcm structure
The pruss1_clkctrl and pruss2_clkctrl registers need to be added to the prcm register structure in order to allow the pruss driver to enable the clock for each of them during the pruss probe function calls for am57xx
--- arch/arm/include/asm/omap_common.h | 2 ++ arch/arm/mach-omap2/omap5/prcm-regs.c | 2 ++ 2 files changed, 4 insertions(+)
arch/arm/include/asm/omap_common.h +2 -0
@@ -241,6 +241,8 @@ struct prcm_regs {u32 cm_l4per_clkstctrl;u32 cm_l4per_dynamicdep;u32 cm_l4per_adc_clkctrl; +u32 cm_l4per2_pruss1_clkctrl; +u32 cm_l4per2_pruss2_clkctrl;u32 cm_l4per_gptimer10_clkctrl;u32 cm_l4per_gptimer11_clkctrl;u32 cm_l4per_gptimer2_clkctrl;
arch/arm/mach-omap2/omap5/prcm-regs.c +2 -0
@@ -940,6 +940,8 @@ struct prcm_regs const dra7xx_prcm = {/* cm2.l4per */ .cm_l4per_clkstctrl = 0x4a009700, .cm_l4per_dynamicdep = 0x4a009708, + .cm_l4per2_pruss1_clkctrl = 0x4a009718, + .cm_l4per2_pruss2_clkctrl = 0x4a009720, .cm_l4per_gptimer10_clkctrl = 0x4a009728, .cm_l4per_gptimer11_clkctrl = 0x4a009730, .cm_l4per_gptimer2_clkctrl = 0x4a009738,
Signature · 1 line
1.8.3.1
PATCH 2/10 arm: arch-am33xx: Add prm_per definition
In reply to Greg LeonbergThe PRM_PER structure needs to be defined in order to allow the pruss driver to bring the pru subsystem out of reset during the pruss driver probe
--- arch/arm/include/asm/arch-am33xx/cpu.h | 7 +++++++ arch/arm/include/asm/arch-am33xx/hardware_am33xx.h | 1 + 2 files changed, 8 insertions(+)
arch/arm/include/asm/arch-am33xx/cpu.h +7 -0
@@ -65,6 +65,7 @@ | BIT(3) | BIT(4))#define PRM_RSTCTRL_RESET 0x01 +#define PRM_PER_RSTCTRL_RESET 0x00000002#define PRM_RSTST_WARM_RESET_MASK 0x232/* EMIF Control register bits */
@@ -210,6 +211,12 @@ struct prm_device_inst {unsigned int prm_rsttime;unsigned int prm_rstst; }; + +struct prm_per { +unsigned int prm_per_rstctrl; +unsigned int prm_per_pwrstst; +unsigned int prm_per_pwrstctrl; +};#else /* Encapsulating core pll registers */ struct cm_wkuppll {
arch/arm/include/asm/arch-am33xx/hardware_am33xx.h +1 -0
@@ -36,6 +36,7 @@#define CM_WKUP 0x44E00400#define CM_DPLL 0x44E00500#define CM_RTC 0x44E00800 +#define PRM_PER 0x44E00C00#define PRM_RSTCTRL (PRCM_BASE + 0x0F00)#define PRM_RSTST (PRM_RSTCTRL + 8)
Signature · 1 line
1.8.3.1
PATCH 3/10 arm: arch-am33xx: Add pru_icss clkctrl
In reply to Greg LeonbergThe pruicssclkctrl register needs to be added to the cm_perpll register structure in order to allow the pruss driver to enable the clock for it during the pruss probe function call on am33xx
This patch depends on patch 0002 of this patch series.
--- arch/arm/include/asm/arch-am33xx/cpu.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
arch/arm/include/asm/arch-am33xx/cpu.h +4 -2
@@ -177,7 +177,8 @@ struct cm_perpll {unsigned int epwmss2clkctrl;/* offset 0xD8 */ unsigned int l3instrclkctrl;/* offset 0xDC */ unsigned int l3clkctrl;/* Offset 0xE0 */ -unsigned int resv8[2 ]; +unsigned int resv8[1 ]; +unsigned int pruicssclkctrl;/* offset 0xE8 */ unsigned int timer5clkctrl;/* offset 0xEC */ unsigned int timer6clkctrl;/* offset 0xF0 */ unsigned int mmc1clkctrl;/* offset 0xF4 */
@@ -185,7 +186,8 @@ struct cm_perpll {unsigned int resv9[8 ];unsigned int l4hsclkstctrl;/* offset 0x11C */ unsigned int l4hsclkctrl;/* offset 0x120 */ -unsigned int resv10[8 ]; +unsigned int resv10[7 ]; +unsigned int pruicssclkstctrl;/* offset 0x140 */ unsigned int cpswclkstctrl;/* offset 0x144 */ unsigned int lcdcclkstctrl;/* offset 0x148 */ };
Signature · 1 line
1.8.3.1
PATCH 4/10 soc: ti: pruss: Add support for am33xx
In reply to Greg LeonbergIn order to support the am33xx pruss, the KConfig needed to have the depends updated to support either ARCH_K3 or ARCH_OMAP2PLUS. The Makefile needed to be tweaked because when building for am33xx, the SPL will not fit into SRAM if the pruss driver is built into it.
Logic was added to the pruss driver to bring the pruss out of reset on am33xx and enable the clock to it during the probe.
This patch depends on patch 0003 of this patch series.
--- drivers/soc/ti/Kconfig | 10 +++--- drivers/soc/ti/Makefile | 6 ++++ drivers/soc/ti/pruss.c | 84 +++++++++++++++++++++++++++++++++++++++++++------ 3 files changed, 86 insertions(+), 14 deletions(-)
drivers/soc/ti/Kconfig +5 -5
@@ -32,16 +32,16 @@ config TI_KEYSTONE_SERDES K2 platforms. config TI_PRUSS - bool "Support for TI's K3 based Pruss driver" + bool "Support for TI's Pruss driver" depends on DM - depends on ARCH_K3 + depends on ARCH_K3 || ARCH_OMAP2PLUS depends on OF_CONTROL depends on SYSCON help - Support for TI PRU-ICSSG subsystem. + Support for TI PRU-ICSS(G) subsystem. - Currently supported on AM65xx SoCs Say Y here to support the - Programmable Realtime Unit (PRU). + Currently supported on AM65xx and AM33xx SoCs + Say Y here to support the Programmable Realtime Unit (PRU). endif # SOC_TI
drivers/soc/ti/Makefile +6 -0
@@ -2,4 +2,10 @@ obj-$(CONFIG_TI_K3_NAVSS_RINGACC) += k3-navss-ringacc.o obj-$(CONFIG_TI_KEYSTONE_SERDES) += keystone_serdes.o +ifndef CONFIG_AM33XX obj-$(CONFIG_TI_PRUSS) += pruss.o +else +ifndef CONFIG_SPL_BUILD +obj-$(CONFIG_TI_PRUSS) += pruss.o +endif +endif
drivers/soc/ti/pruss.c +75 -9
169 lines not on this page · raw message
Signature · 1 line
1.8.3.1
PATCH 5/10 soc: ti: pruss: Add support for am57xx
In reply to Greg LeonbergThe KConfig file was updated to indicate support for am57xx SoCs.
Logic was added to the pruss driver to enable the clock for am57xx pruss during the driver probe function.
This patch depends on patches 0001 and 0004 of this patch series.
--- drivers/soc/ti/Kconfig | 2 +- drivers/soc/ti/pruss.c | 26 ++++++++++++++++++++++---- 2 files changed, 23 insertions(+), 5 deletions(-)
drivers/soc/ti/Kconfig +1 -1
@@ -41,7 +41,7 @@ config TI_PRUSS Support for TI PRU-ICSS(G) subsystem. - Currently supported on AM65xx and AM33xx SoCs + Currently supported on AM65xx, AM57xx, and AM33xx SoCs Say Y here to support the Programmable Realtime Unit (PRU). endif # SOC_TI
drivers/soc/ti/pruss.c +22 -4
@@ -18,8 +18,10 @@#include <asm/io.h> #include <power-domain.h> #include <ti-pruss.h> -#ifdef CONFIG_AM33XX +#if defined(CONFIG_AM33XX ) || defined(CONFIG_OMAP54XX )#include <asm/omap_common.h> +#endif +#ifdef CONFIG_AM33XX #include <asm/arch-am33xx/clock.h> #include <asm/arch-am33xx/hardware_am33xx.h> #include <asm/arch-am33xx/cpu.h>
@@ -222,14 +224,28 @@ static int pruss_probe(struct udevice *dev)if (!data->is_icssg) {u32 *const clk_domains[] = {0 }; -u32 *const clk_modules_specific_am33xx[] = { +__maybe_unused u32 const clk_modules_hw_auto[] = {0 }; +__maybe_unused u32 *const clk_modules_specific_am33xx[] = { #ifdef CONFIG_AM33XX &(((struct cm_perpll *)CM_PER )->pruicssclkctrl), #endif0 }; +__maybe_unused u32 const clk_modules_specific[] = { + #ifdef CONFIG_OMAP54XX + (*prcm)->cm_l4per2_pruss1_clkctrl, + (*prcm)->cm_l4per2_pruss2_clkctrl, + #endif +0 + }; +#ifdef CONFIG_AM33XX do_enable_clocks (clk_domains, clk_modules_specific_am33xx,1 ); +#else +do_enable_clocks ((u32 const *)clk_domains, + clk_modules_hw_auto, + clk_modules_specific,1 ); +#endif goto skip_coreclk_mux; }
@@ -258,7 +274,7 @@ skip_coreclk_mux:return 0 ; } -static const struct pruss_private_data am33xx_priv_data = { +static const struct pruss_private_data am33xx_am57xx_priv_data = { .is_icssg = false };
@@ -270,7 +286,9 @@ static const struct udevice_id pruss_ids[] = { { .compatible = "ti,am654-icssg", .data = (unsigned long)&k2g_am65x_j7_priv_data}, { .compatible = "ti,am3356-pruss", - .data = (unsigned long)&am33xx_priv_data}, + .data = (unsigned long)&am33xx_am57xx_priv_data}, + { .compatible = "ti,am5728-pruss", + .data = (unsigned long)&am33xx_am57xx_priv_data}, {} };
Signature · 1 line
1.8.3.1
PATCH 6/10 remoteproc: pru_rproc: Add support for am33xx
In reply to Greg LeonbergIn order to support the am33xx pru_rproc, the KConfig needed to have the depends updated to support either ARCH_K3 or ARCH_OMAP2PLUS. The Makefile needed to be tweaked because when building for am33xx, the SPL will not fit into SRAM if the pru_rproc driver is built into it.
The pru_rproc struct udevice_id was modified in line with how it is in the Linux kernel driver to add support for other devices via checking the .data structure contents during the probe for flags and platform-specific data. Additionally, the memory address reading from the DT "reg" property was modified to use the "reg-names" property similar to how it is done in the Linux kernel driver.
--- drivers/remoteproc/Kconfig | 6 +- drivers/remoteproc/Makefile | 6 ++ drivers/remoteproc/pru_rproc.c | 173 +++++++++++++++++++++++++++++------------ 3 files changed, 132 insertions(+), 53 deletions(-)
drivers/remoteproc/Kconfig +3 -3
@@ -83,14 +83,14 @@ config REMOTEPROC_TI_POWER found on certain TI keystone and OMAP generation SoCs. config REMOTEPROC_TI_PRU - bool "Support for TI's K3 based PRU remoteproc driver" + bool "Support for TI's PRU remoteproc driver" select REMOTEPROC depends on DM depends on TI_PRUSS - depends on ARCH_K3 + depends on ARCH_K3 || ARCH_OMAP2PLUS depends on OF_CONTROL help - Say 'y' here to add support for TI' K3 remoteproc driver. + Say 'y' here to add support for TI pru remoteproc driver. config REMOTEPROC_TI_IPU bool "Support for TI's K3 based IPU remoteproc driver"
drivers/remoteproc/Makefile +6 -0
@@ -14,5 +14,11 @@ obj-$(CONFIG_REMOTEPROC_TI_K3_ARM64) += ti_k3_arm64_rproc.o obj-$(CONFIG_REMOTEPROC_TI_K3_DSP) += ti_k3_dsp_rproc.o obj-$(CONFIG_REMOTEPROC_TI_K3_R5F) += ti_k3_r5f_rproc.o obj-$(CONFIG_REMOTEPROC_TI_POWER) += ti_power_proc.o +ifndef CONFIG_AM33XX obj-$(CONFIG_REMOTEPROC_TI_PRU) += pru_rproc.o +else +ifndef CONFIG_SPL_BUILD +obj-$(CONFIG_REMOTEPROC_TI_PRU) += pru_rproc.o +endif +endif obj-$(CONFIG_REMOTEPROC_TI_IPU) += ipu_rproc.o
drivers/remoteproc/pru_rproc.c +123 -50
311 lines not on this page · raw message
Signature · 1 line
1.8.3.1
PATCH 7/10 remoteproc: pru_rproc: Add support for am57xx
In reply to Greg LeonbergThe am57xx pru uses the same logic as the am33xx so it just needed to have the struct udevice_id updated.
This patch depends on patch 0006 of this patch series.
--- drivers/remoteproc/pru_rproc.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/remoteproc/pru_rproc.c +2 -0
@@ -523,6 +523,8 @@ static const struct udevice_id pru_ids[] = { .data = (unsigned long)&k3_tx_pru_data, }, { .compatible = "ti,am3356-pru", .data = (unsigned long)&pru_data, }, + { .compatible = "ti,am5728-pru", + .data = (unsigned long)&pru_data, }, {} };
Signature · 1 line
1.8.3.1
PATCH 8/10 remoteproc: pru_rproc: Add is_running support
In reply to Greg LeonbergAn integer flag in the private data structure for the udev was added to indicate run-state. A function was also added to return that flag in order for the driver to support the is_running driver function.
This patch depends on patch 0007 of this patch series.
--- drivers/remoteproc/pru_rproc.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+)
drivers/remoteproc/pru_rproc.c +25 -0
@@ -107,6 +107,7 @@ struct pru {int id;struct pruss *prusspriv;const struct pru_private_data *data; +int isRunning; };static inline u32 pru_control_read_reg (struct pru *pru,unsigned int reg)
@@ -162,6 +163,23 @@ static int pru_rproc_set_ctable(struct pru *pru, enum pru_ctable_idx c, u32 addr }/** +* pru_is_running() - check if the pru is running +* @dev: corresponding remote processor device +* +* Return: 0 if the pru is running, else 1. +*/ +static int pru_is_running (struct udevice *dev) +{ +struct pru *priv; + + priv =dev_get_priv (dev); +if (!priv) +return 0 ; + +return priv->isRunning; +} + +/** * pru_start() - start the pru processor * @dev: corresponding k3 remote processor device *
@@ -179,6 +197,8 @@ static int pru_start(struct udevice *dev) val =CTRL_CTRL_EN | ((priv->bootaddr >>2 ) <<16 );writel (val, priv->mem_regions[PRU_MEM_CTRL ].pa +PRU_CTRL_CTRL ); + priv->isRunning =0 ; +return 0 ; }
@@ -199,6 +219,8 @@ static int pru_stop(struct udevice *dev) val &= ~CTRL_CTRL_EN ;writel (val, priv->mem_regions[PRU_MEM_CTRL ].pa +PRU_CTRL_CTRL ); + priv->isRunning =1 ; +return 0 ; }
@@ -431,6 +453,7 @@ static const struct dm_rproc_ops pru_ops = { .start = pru_start, .stop = pru_stop, .load = pru_load, + .is_running = pru_is_running, };static void pru_set_id (struct pru *priv,struct udevice *dev)
@@ -482,6 +505,8 @@ static int pru_probe(struct udevice *dev) } priv->data = data; + priv->isRunning =1 ; +pru_set_id (priv, dev);return 0 ;
Signature · 1 line
1.8.3.1
PATCH 9/10 arm: dts: am33xx: Add pruss and pru
In reply to Greg LeonbergAdded the pruss subsystem to the device tree based on the device tree info from the Linux kernel.
--- arch/arm/dts/am33xx.dtsi | 105 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 105 insertions(+)
arch/arm/dts/am33xx.dtsi +105 -0
@@ -401,6 +401,111 @@ status = "disabled"; }; + pruss: pruss@4a300000 { + compatible = "ti,am3356-pruss"; + reg = <0x0 0x80000>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x4a300000 0x80000>; + dma-ranges; + + pruss_mem: memories@0 { + reg = <0x0 0x2000>, + <0x2000 0x2000>, + <0x10000 0x3000>; + reg-names = "dram0", "dram1", + "shrdram2"; + }; + + pruss_cfg: cfg@26000 { + compatible = "syscon"; + reg = <0x26000 0x2000>; + }; + + pruss_iepclk_mux: iepclk-mux { + #clock-cells = <0>; + clocks = <&l3_gclk>, + <&pruss_ocp_gclk>; + }; + + pruss_iep: iep@2e000 { + compatible = "ti,am3356-icss-iep"; + reg = <0x2e000 0x31c>; + clocks = <&pruss_iepclk_mux>; + }; + + pruss_ecap: ecap@30000 { + compatible = "ti,pruss-ecap"; + reg = <0x30000 0x60>; + }; + + pruss_uart: serial@28000 { + compatible = "ti,pruss-uart"; + reg = <0x28000 0x38>; + clocks = <&dpll_per_m2_ck>; + interrupt-parent = <&pruss_intc>; + interrupts = <6>; + status = "disabled"; + }; + + pruss_mii_rt: mii-rt@32000 { + compatible = "syscon"; + reg = <0x32000 0x58>; + }; + + pruss_intc: interrupt-controller@20000 { + compatible = "ti,pruss-intc"; + reg = <0x20000 0x2000>; + interrupts = <20 21 22 23 24 25 26 27>; + interrupt-names = "host_intr0", "host_intr1", + "host_intr2", "host_intr3", + "host_intr4", "host_intr5", + "host_intr6", "host_intr7"; + interrupt-controller; + #interrupt-cells = <1>; + ti,irqs-shared = /bits/ 8 <0 6 7>; + }; + + pru0: pru@34000 { + compatible = "ti,am3356-pru"; + #address-cells = <3>; + reg = <0x34000 0x2000>, + <0x22000 0x400>, + <0x22400 0x100>; + reg-names = "iram", "control", "debug"; + firmware-name = "am335x-pru0-fw"; + interrupt-parent = <&pruss_intc>; + interrupts = <16>, <17>; + interrupt-names = "vring", "kick"; + remoteproc-name = "pru0"; + }; + + pru1: pru@38000 { + compatible = "ti,am3356-pru"; + #address-cells = <3>; + reg = <0x38000 0x2000>, + <0x24000 0x400>, + <0x24400 0x100>; + reg-names = "iram", "control", "debug"; + firmware-name = "am335x-pru1-fw"; + interrupt-parent = <&pruss_intc>; + interrupts = <18>, <19>; + interrupt-names = "vring", "kick"; + remoteproc-name = "pru1"; + }; + + pruss_mdio: mdio@32400 { + compatible = "ti,davinci_mdio"; + reg = <0x32400 0x90>; + clocks = <&dpll_core_m4_ck>; + clock-names = "fck"; + bus_freq = <1000000>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + }; + i2c0: i2c@44e0b000 { compatible = "ti,omap4-i2c"; #address-cells = <1>;
Signature · 1 line
1.8.3.1
PATCH 10/10 arm: dts: dra7: Add pruss and pru
In reply to Greg LeonbergAdded the pruss subsystem to the device tree based on the device tree info from the Linux kernel.
--- arch/arm/dts/dra7.dtsi | 198 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 198 insertions(+)
arch/arm/dts/dra7.dtsi +198 -0
@@ -517,6 +517,204 @@ interrupt-names = "edma3_tcerrint"; }; + pruss1: pruss@4b200000 { + compatible = "ti,am5728-pruss"; + reg = <0x0 0x80000>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x4b200000 0x80000>; + dma-ranges; + + pruss1_mem: memories@0 { + reg = <0x0 0x2000>, + <0x2000 0x2000>, + <0x10000 0x8000>; + reg-names = "dram0", "dram1", + "shrdram2"; + }; + + pruss1_cfg: cfg@26000 { + compatible = "syscon"; + reg = <0x26000 0x2000>; + }; + + pruss1_iepclk_mux: iepclk-mux { + #clock-cells = <0>; + clocks = <&dpll_gmac_m3x2_ck>, + <&dpll_gmac_h13x2_ck>; + }; + + pruss1_iep: iep@2e000 { + compatible = "ti,am5728-icss-iep"; + reg = <0x2e000 0x31c>; + clocks = <&pruss1_iepclk_mux>; + }; + + pruss1_ecap: ecap@30000 { + compatible = "ti,pruss-ecap"; + reg = <0x30000 0x60>; + }; + + pruss1_mii_rt: mii-rt@32000 { + compatible = "syscon"; + reg = <0x32000 0x58>; + }; + + pruss1_intc: interrupt-controller@20000 { + compatible = "ti,pruss-intc"; + reg = <0x20000 0x2000>; + interrupt-controller; + #interrupt-cells = <1>; + interrupts = <GIC_SPI 186 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 187 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 191 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 193 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "host_intr0", "host_intr1", + "host_intr2", "host_intr3", + "host_intr4", "host_intr5", + "host_intr6", "host_intr7"; + ti,irqs-shared = /bits/ 8 <6 7>; + }; + + pru1_0: pru1_0@34000 { + compatible = "ti,am5728-pru"; + reg = <0x34000 0x3000>, + <0x22000 0x400>, + <0x22400 0x100>; + reg-names = "iram", "control", "debug"; + firmware-name = "am57xx-pru1_0-fw"; + interrupt-parent = <&pruss1_intc>; + interrupts = <16>, <17>; + interrupt-names = "vring", "kick"; + }; + + pru1_1: pru1_1@38000 { + compatible = "ti,am5728-pru"; + reg = <0x38000 0x3000>, + <0x24000 0x400>, + <0x24400 0x100>; + reg-names = "iram", "control", "debug"; + firmware-name = "am57xx-pru1_1-fw"; + interrupt-parent = <&pruss1_intc>; + interrupts = <18>, <19>; + interrupt-names = "vring", "kick"; + }; + + pruss1_mdio: mdio@32400 { + compatible = "ti,davinci_mdio"; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&dpll_gmac_h13x2_ck>; + clock-names = "fck"; + bus_freq = <1000000>; + reg = <0x32400 0x90>; + status = "disabled"; + }; + }; + + pruss2: pruss@4b280000 { + compatible = "ti,am5728-pruss"; + reg = <0x0 0x80000>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x4b280000 0x80000>; + dma-ranges; + + pruss2_mem: memories@0 { + reg = <0x0 0x2000>, + <0x2000 0x2000>, + <0x10000 0x8000>; + reg-names = "dram0", "dram1", + "shrdram2"; + }; + + pruss2_cfg: cfg@26000 { + compatible = "syscon"; + reg = <0x26000 0x2000>; + }; + + pruss2_iepclk_mux: iepclk-mux { + #clock-cells = <0>; + clocks = <&dpll_gmac_m3x2_ck>, + <&dpll_gmac_h13x2_ck>; + }; + + pruss2_iep: iep@2e000 { + compatible = "ti,am5728-icss-iep"; + reg = <0x2e000 0x31c>; + clocks = <&pruss2_iepclk_mux>; + }; + + pruss2_ecap: ecap@30000 { + compatible = "ti,pruss-ecap"; + reg = <0x30000 0x60>; + }; + + pruss2_mii_rt: mii-rt@32000 { + compatible = "syscon"; + reg = <0x32000 0x58>; + }; + + pruss2_intc: interrupt-controller@20000 { + compatible = "ti,pruss-intc"; + reg = <0x20000 0x2000>; + interrupt-controller; + #interrupt-cells = <1>; + interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 199 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 201 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 202 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 203 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "host_intr0", "host_intr1", + "host_intr2", "host_intr3", + "host_intr4", "host_intr5", + "host_intr6", "host_intr7"; + ti,irqs-shared = /bits/ 8 <6 7>; + }; + + pru2_0: pru2_0@34000 { + compatible = "ti,am5728-pru"; + reg = <0x34000 0x3000>, + <0x22000 0x400>, + <0x22400 0x100>; + reg-names = "iram", "control", "debug"; + firmware-name = "am57xx-pru2_0-fw"; + interrupt-parent = <&pruss2_intc>; + interrupts = <16>, <17>; + interrupt-names = "vring", "kick"; + }; + + pru2_1: pru2_1@38000 { + compatible = "ti,am5728-pru"; + reg = <0x38000 0x3000>, + <0x24000 0x400>, + <0x24400 0x100>; + reg-names = "iram", "control", "debug"; + firmware-name = "am57xx-pru2_1-fw"; + interrupt-parent = <&pruss2_intc>; + interrupts = <18>, <19>; + interrupt-names = "vring", "kick"; + }; + + pruss2_mdio: mdio@32400 { + compatible = "ti,davinci_mdio"; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&dpll_gmac_h13x2_ck>; + clock-names = "fck"; + bus_freq = <1000000>; + reg = <0x32400 0x90>; + status = "disabled"; + }; + }; + gpio1: gpio@4ae10000 { compatible = "ti,omap4-gpio"; reg = <0x4ae10000 0x200>;
Signature · 1 line
1.8.3.1
Quoted 8 lines · Greg Leonberg
This series adds support for the pruss/pru_rproc drivers on am33xx and am57xx SoCs.
All PRU interfaces pru0 and pru1 are supported on am33xx. All PRU interfaces pru0, pru1, pru2, and pru3 are supported on am57xx.
Testing is done via the "rproc" U-Boot command.
Quoted 8 lines
This patch series is based on ti-u-boot-2020.01 branch on ti-u-boot repository located at: https://git.ti.com/cgit/ti-u-boot/ti-u-boot/
and commit2781231a33c3
("arm: mach-k3:j721e_init: probe clock node after sci node is probed")From looking at the master branch of the main u-boot repository, there does not appear to be significant effort required to merge it into the master branch.
Please note that there is some effort required however, for upstream. If you intend for this to be merged upstream, please rebase and resend, thanks.
Signature · 1 line
Tom