Rajendra Nayak | 9 Jul 09:32 2013
Picon

[PATCH 00/12] DRA7xx PRCM, hwmod and DT data

This series adds the data files for DRA7xx devices for
PRCM, hwmod and DT. This is dependent on the core support [1]
patches for DRA7xx and leaves out the clock data since its
on its way to DT [2]

The regbit headers for prm and cm are cleaned up post the
autogeneration as 95% was seen to be currently unused
(prm-regbits-7xx.h was 100% unused and hence removed)

These patches along with the core support patches are available at:
git://github.com/rrnayak/linux.git for-3.12/dra-core-data

[1] http://marc.info/?l=linux-omap&m=137335492102004&w=2

[2] http://www.mail-archive.com/linux-omap <at> vger.kernel.org/msg91318.html

Ambresh K (7):
  ARM: DRA7: PRM: Add DRA7XX register definitions
  ARM: DRA7: CM: Add DRA7XX register defines
  ARM: DRA7: PRCM: Add DRA7XX local MPU PRCM regsiters
  ARM: DRA7: clockdomain: Add DRA7XX data and update header
  ARM: DRA7: powerdomain: Add DRA7XX data and update header
  ARM: DRA7: hwmod: Create initial DRA7XX SoC data
  ARM: DRA7: Enable PM framework initializations

R Sricharan (2):
  ARM: DRA7: Add the build support in omap2plus
  ARM: DRA7: dts: Add the dts files for dra7 SoC and dra7-evm board

Rajendra Nayak (3):
(Continue reading)

Rajendra Nayak | 9 Jul 09:32 2013
Picon

[PATCH 01/12] ARM: DRA7: PRM: Add DRA7XX register definitions

From: Ambresh K <ambresh <at> ti.com>

Add the new defines for DRA7xx prm module registers.

Signed-off-by: Ambresh K <ambresh <at> ti.com>
Signed-off-by: Rajendra Nayak <rnayak <at> ti.com>
---
 arch/arm/mach-omap2/prm7xx.h |  677 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 677 insertions(+)
 create mode 100644 arch/arm/mach-omap2/prm7xx.h

diff --git a/arch/arm/mach-omap2/prm7xx.h b/arch/arm/mach-omap2/prm7xx.h
new file mode 100644
index 0000000..6c6db25
--- /dev/null
+++ b/arch/arm/mach-omap2/prm7xx.h
 <at>  <at>  -0,0 +1,677  <at>  <at> 
+/*
+ * DRA7xx PRM instance offset macros
+ *
+ * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com
+ *
+ * Paul Walmsley (paul <at> pwsan.com)
+ * Rajendra Nayak (rnayak <at> ti.com)
+ * Benoit Cousson (b-cousson <at> ti.com)
+ *
+ * This file is automatically generated from the OMAP hardware databases.
+ * We respectfully ask that any modifications to this file be coordinated
+ * with the public linux-omap <at> vger.kernel.org mailing list and the
+ * authors above to ensure that the autogeneration scripts are kept
(Continue reading)

Rajendra Nayak | 9 Jul 09:32 2013
Picon

[PATCH 03/12] ARM: DRA7: CM: Add minimal regbit shifts

This header contains minimal regbits that are currently used in code.
This header has traditionally been autogenerated on OMAP4+ devices but
the autogenerated contents are largely (95%) unused and hence to reduce
unsued data in the kernel this header has been cut down (from the autogen
output) to whatever is currently needed. This is done by running a cleanup
script on top of the existing autogen script.

Signed-off-by: Rajendra Nayak <rnayak <at> ti.com>
Signed-off-by: Ambresh K <ambresh <at> ti.com>
---
 arch/arm/mach-omap2/cm-regbits-7xx.h |   50 ++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)
 create mode 100644 arch/arm/mach-omap2/cm-regbits-7xx.h

diff --git a/arch/arm/mach-omap2/cm-regbits-7xx.h b/arch/arm/mach-omap2/cm-regbits-7xx.h
new file mode 100644
index 0000000..674c9f4
--- /dev/null
+++ b/arch/arm/mach-omap2/cm-regbits-7xx.h
 <at>  <at>  -0,0 +1,50  <at>  <at> 
+/*
+ * DRA7xx Clock Management register bits
+ *
+ * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com
+ *
+ * Paul Walmsley (paul <at> pwsan.com)
+ * Rajendra Nayak (rnayak <at> ti.com)
+ * Benoit Cousson (b-cousson <at> ti.com)
+ *
+ * This file is automatically generated from the OMAP hardware databases.
(Continue reading)

Rajendra Nayak | 9 Jul 09:32 2013
Picon

[PATCH 04/12] ARM: DRA7: PRCM: Add DRA7XX local MPU PRCM regsiters

From: Ambresh K <ambresh <at> ti.com>

Add the PRCM MPU registers for DRA7XX platforms

Signed-off-by: Ambresh K <ambresh <at> ti.com>
Signed-off-by: Tero Kristo <t-kristo <at> ti.com>
Signed-off-by: Rajendra Nayak <rnayak <at> ti.com>
---
 arch/arm/mach-omap2/prcm44xx.h    |    5 +++
 arch/arm/mach-omap2/prcm_mpu7xx.h |   77 +++++++++++++++++++++++++++++++++++++
 2 files changed, 82 insertions(+)
 create mode 100644 arch/arm/mach-omap2/prcm_mpu7xx.h

diff --git a/arch/arm/mach-omap2/prcm44xx.h b/arch/arm/mach-omap2/prcm44xx.h
index f429cdd..4fea2cf 100644
--- a/arch/arm/mach-omap2/prcm44xx.h
+++ b/arch/arm/mach-omap2/prcm44xx.h
 <at>  <at>  -38,6 +38,11  <at>  <at> 
 #define OMAP54XX_SCRM_PARTITION			4
 #define OMAP54XX_PRCM_MPU_PARTITION		5

+#define DRA7XX_PRM_PARTITION                   1
+#define DRA7XX_CM_CORE_AON_PARTITION           2
+#define DRA7XX_CM_CORE_PARTITION               3
+#define DRA7XX_MPU_PRCM_PARTITION              5
+
 /*
  * OMAP4_MAX_PRCM_PARTITIONS: set to the highest value of the PRCM partition
  * IDs, plus one
diff --git a/arch/arm/mach-omap2/prcm_mpu7xx.h b/arch/arm/mach-omap2/prcm_mpu7xx.h
(Continue reading)

Rajendra Nayak | 9 Jul 09:32 2013
Picon

[PATCH 07/12] ARM: DRA7: powerdomain: Handle missing vc/vp

DRA7 belongs to the omap4plus devices which reuse the omap4_pwrdm_operations
ops for powerdomain control. DRA7 however has no VC/VP while all the
earlier omap4plus devices did.

So use the .pwrdm_has_voltdm() ops to pass this info on to the core.

Signed-off-by: Rajendra Nayak <rnayak <at> ti.com>
---
 arch/arm/mach-omap2/prm44xx.c |   10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/arm/mach-omap2/prm44xx.c b/arch/arm/mach-omap2/prm44xx.c
index 415c7e0..15271b6 100644
--- a/arch/arm/mach-omap2/prm44xx.c
+++ b/arch/arm/mach-omap2/prm44xx.c
 <at>  <at>  -620,6 +620,15  <at>  <at>  static int omap4_pwrdm_wait_transition(struct powerdomain *pwrdm)
 	return 0;
 }

+static int omap4_check_vcvp(void)
+{
+	/* No VC/VP on dra7xx devices */
+	if (soc_is_dra7xx())
+		return 0;
+
+	return 1;
+}
+
 struct pwrdm_ops omap4_pwrdm_operations = {
 	.pwrdm_set_next_pwrst	= omap4_pwrdm_set_next_pwrst,
(Continue reading)

Rajendra Nayak | 9 Jul 09:32 2013
Picon

[PATCH 06/12] ARM: DRA7: powerdomain: Add DRA7XX data and update header

From: Ambresh K <ambresh <at> ti.com>

Add the data file to describe all power domains inside the DRA7XX SoC.

Signed-off-by: Ambresh K <ambresh <at> ti.com>
Signed-off-by: Tero Kristo <t-kristo <at> ti.com>
Signed-off-by: Rajendra Nayak <rnayak <at> ti.com>
---
 arch/arm/mach-omap2/Makefile               |    1 +
 arch/arm/mach-omap2/powerdomain.h          |    1 +
 arch/arm/mach-omap2/powerdomains7xx_data.c |  453 ++++++++++++++++++++++++++++
 3 files changed, 455 insertions(+)
 create mode 100644 arch/arm/mach-omap2/powerdomains7xx_data.c

diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile
index f5576e0..d0a9d15 100644
--- a/arch/arm/mach-omap2/Makefile
+++ b/arch/arm/mach-omap2/Makefile
 <at>  <at>  -152,6 +152,7  <at>  <at>  obj-$(CONFIG_SOC_AM43XX)		+= $(powerdomain-common)
 obj-$(CONFIG_SOC_OMAP5)			+= $(powerdomain-common)
 obj-$(CONFIG_SOC_OMAP5)			+= powerdomains54xx_data.o
 obj-$(CONFIG_SOC_DRA7XX)		+= $(powerdomain-common)
+obj-$(CONFIG_SOC_DRA7XX)		+= powerdomains7xx_data.o

 # PRCM clockdomain control
 clockdomain-common			+= clockdomain.o
diff --git a/arch/arm/mach-omap2/powerdomain.h b/arch/arm/mach-omap2/powerdomain.h
index e4d7bd6..baf3d8b 100644
--- a/arch/arm/mach-omap2/powerdomain.h
+++ b/arch/arm/mach-omap2/powerdomain.h
(Continue reading)

Rajendra Nayak | 9 Jul 09:32 2013
Picon

[PATCH 10/12] ARM: DRA7: Enable PM framework initializations

From: Ambresh K <ambresh <at> ti.com>

Initialise powerdomains, clockdomains, and hwmod frameworks.

Signed-off-by: Ambresh K <ambresh <at> ti.com>
Signed-off-by: Rajendra Nayak <rnayak <at> ti.com>
---
 arch/arm/mach-omap2/io.c      |    5 +++++
 arch/arm/mach-omap2/prm44xx.c |    2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c
index 542e6bd..09115e7 100644
--- a/arch/arm/mach-omap2/io.c
+++ b/arch/arm/mach-omap2/io.c
 <at>  <at>  -667,6 +667,11  <at>  <at>  void __init dra7xx_init_early(void)
 	omap_prm_base_init();
 	omap_cm_base_init();
 	dra7xx_check_revision();
+	omap44xx_prm_init();
+	dra7xx_powerdomains_init();
+	dra7xx_clockdomains_init();
+	dra7xx_hwmod_init();
+	omap_hwmod_init_postsetup();
 }
 #endif

diff --git a/arch/arm/mach-omap2/prm44xx.c b/arch/arm/mach-omap2/prm44xx.c
index 15271b6..03a6034 100644
--- a/arch/arm/mach-omap2/prm44xx.c
(Continue reading)

Rajendra Nayak | 9 Jul 09:32 2013
Picon

[PATCH 11/12] ARM: DRA7: Add the build support in omap2plus

From: R Sricharan <r.sricharan <at> ti.com>

Now that all the needed pieces for DRA7 based SoCs' is present, enable
the build support in omap2plus_defconfig

Signed-off-by: R Sricharan <r.sricharan <at> ti.com>
Signed-off-by: Rajendra Nayak <rnayak <at> ti.com>
---
 arch/arm/configs/omap2plus_defconfig |    1 +
 arch/arm/mach-omap2/Kconfig          |   10 +++++++++-
 arch/arm/plat-omap/Kconfig           |    2 +-
 3 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/arch/arm/configs/omap2plus_defconfig b/arch/arm/configs/omap2plus_defconfig
index 2ac0ffb..8b17466 100644
--- a/arch/arm/configs/omap2plus_defconfig
+++ b/arch/arm/configs/omap2plus_defconfig
 <at>  <at>  -286,3 +286,4  <at>  <at>  CONFIG_SOC_OMAP5=y
 CONFIG_TI_DAVINCI_MDIO=y
 CONFIG_TI_DAVINCI_CPDMA=y
 CONFIG_TI_CPSW=y
+CONFIG_SOC_DRA7XX=y
diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig
index bd34483..e85d430 100644
--- a/arch/arm/mach-omap2/Kconfig
+++ b/arch/arm/mach-omap2/Kconfig
 <at>  <at>  -36,7 +36,7  <at>  <at>  config ARCH_OMAP2PLUS_TYPICAL
 	select I2C
 	select I2C_OMAP
 	select MENELAUS if ARCH_OMAP2
(Continue reading)

Rajendra Nayak | 9 Jul 09:32 2013
Picon

[PATCH 08/12] ARM: DRA7: Reuse the omap44xx_restart and fix the device instance

The omap44xx_restart used on omap4 and omap5 devices can be reused
on dra7 devices as well. The device instance however is different
across omap5 and dra7 as compared to omap4. So fix this for omap5
as well as dra7.

Signed-off-by: Rajendra Nayak <rnayak <at> ti.com>
Signed-off-by: R Sricharan <r.sricharan <at> ti.com>
---
 arch/arm/mach-omap2/Makefile        |    1 +
 arch/arm/mach-omap2/board-generic.c |    1 +
 arch/arm/mach-omap2/prminst44xx.c   |   20 ++++++++++++++++----
 3 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile
index d0a9d15..137c9e4 100644
--- a/arch/arm/mach-omap2/Makefile
+++ b/arch/arm/mach-omap2/Makefile
 <at>  <at>  -63,6 +63,7  <at>  <at>  obj-$(CONFIG_SOC_AM33XX)		+= am33xx-restart.o
 obj-$(CONFIG_ARCH_OMAP3)		+= omap3-restart.o
 obj-$(CONFIG_ARCH_OMAP4)		+= omap4-restart.o
 obj-$(CONFIG_SOC_OMAP5)			+= omap4-restart.o
+obj-$(CONFIG_SOC_DRA7XX)		+= omap4-restart.o

 # Pin multiplexing
 obj-$(CONFIG_SOC_OMAP2420)		+= mux2420.o
diff --git a/arch/arm/mach-omap2/board-generic.c b/arch/arm/mach-omap2/board-generic.c
index 92f8dd3..55d3ee8 100644
--- a/arch/arm/mach-omap2/board-generic.c
+++ b/arch/arm/mach-omap2/board-generic.c
 <at>  <at>  -217,5 +217,6  <at>  <at>  DT_MACHINE_START(DRA7XX_DT, "Generic DRA7XX (Flattened Device Tree)")
(Continue reading)

Kevin Hilman | 14 Jul 14:12 2013

Re: [PATCH 08/12] ARM: DRA7: Reuse the omap44xx_restart and fix the device instance

On 07/09/2013 08:32 AM, Rajendra Nayak wrote:
> The omap44xx_restart used on omap4 and omap5 devices can be reused
> on dra7 devices as well. The device instance however is different
> across omap5 and dra7 as compared to omap4. So fix this for omap5
> as well as dra7.
> 
> Signed-off-by: Rajendra Nayak <rnayak <at> ti.com>
> Signed-off-by: R Sricharan <r.sricharan <at> ti.com>

[...]

>  <at>  <at>  -165,10 +168,19  <at>  <at>  int omap4_prminst_deassert_hardreset(u8 shift, u8 part, s16 inst,
>  void omap4_prminst_global_warm_sw_reset(void)
>  {
>  	u32 v;
> -
> -	v = omap4_prminst_read_inst_reg(OMAP4430_PRM_PARTITION,
> -				    OMAP4430_PRM_DEVICE_INST,
> -				    OMAP4_PRM_RSTCTRL_OFFSET);
> +	s16 dev_inst;
> +
> +	if (cpu_is_omap44xx())
> +		dev_inst = OMAP4430_PRM_DEVICE_INST;

Please don't use cpu_is_* (or soc_is_*) at runtime.  Rather, the right
offset/instance should be setup at init time.

Kevin

--
(Continue reading)

Rajendra Nayak | 9 Jul 09:32 2013
Picon

[PATCH 05/12] ARM: DRA7: clockdomain: Add DRA7XX data and update header

From: Ambresh K <ambresh <at> ti.com>

Add the data file to describe all clock domains inside the DRA7XX SoC

Signed-off-by: Ambresh K <ambresh <at> ti.com>
Signed-off-by: Tero Kristo <t-kristo <at> ti.com>
Signed-off-by: Rajendra Nayak <rnayak <at> ti.com>
---
 arch/arm/mach-omap2/Makefile               |    1 +
 arch/arm/mach-omap2/clockdomain.h          |    1 +
 arch/arm/mach-omap2/clockdomains7xx_data.c |  739 ++++++++++++++++++++++++++++
 3 files changed, 741 insertions(+)
 create mode 100644 arch/arm/mach-omap2/clockdomains7xx_data.c

diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile
index dbcd73f..f5576e0 100644
--- a/arch/arm/mach-omap2/Makefile
+++ b/arch/arm/mach-omap2/Makefile
 <at>  <at>  -170,6 +170,7  <at>  <at>  obj-$(CONFIG_SOC_AM43XX)		+= $(clockdomain-common)
 obj-$(CONFIG_SOC_OMAP5)			+= $(clockdomain-common)
 obj-$(CONFIG_SOC_OMAP5)			+= clockdomains54xx_data.o
 obj-$(CONFIG_SOC_DRA7XX)		+= $(clockdomain-common)
+obj-$(CONFIG_SOC_DRA7XX)		+= clockdomains7xx_data.o

 # Clock framework
 obj-$(CONFIG_ARCH_OMAP2)		+= $(clock-common) clock2xxx.o
diff --git a/arch/arm/mach-omap2/clockdomain.h b/arch/arm/mach-omap2/clockdomain.h
index daeecf1..4b03394 100644
--- a/arch/arm/mach-omap2/clockdomain.h
+++ b/arch/arm/mach-omap2/clockdomain.h
(Continue reading)

Rajendra Nayak | 9 Jul 09:32 2013
Picon

[PATCH 02/12] ARM: DRA7: CM: Add DRA7XX register defines

From: Ambresh K <ambresh <at> ti.com>

Add the new defines for DRA7XX CM registers.

Signed-off-by: Ambresh K <ambresh <at> ti.com>
Signed-off-by: Tero Kristo <t-kristo <at> ti.com>
Signed-off-by: Rajendra Nayak <rnayak <at> ti.com>
---
 arch/arm/mach-omap2/cm1_7xx.h |  323 ++++++++++++++++++++++++++
 arch/arm/mach-omap2/cm2_7xx.h |  512 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 835 insertions(+)
 create mode 100644 arch/arm/mach-omap2/cm1_7xx.h
 create mode 100644 arch/arm/mach-omap2/cm2_7xx.h

diff --git a/arch/arm/mach-omap2/cm1_7xx.h b/arch/arm/mach-omap2/cm1_7xx.h
new file mode 100644
index 0000000..2aae8c2
--- /dev/null
+++ b/arch/arm/mach-omap2/cm1_7xx.h
 <at>  <at>  -0,0 +1,323  <at>  <at> 
+/*
+ * DRA7xx CM1 instance offset macros
+ *
+ * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com
+ *
+ * Paul Walmsley (paul <at> pwsan.com)
+ * Rajendra Nayak (rnayak <at> ti.com)
+ * Benoit Cousson (b-cousson <at> ti.com)
+ *
+ * This file is automatically generated from the OMAP hardware databases.
(Continue reading)

Rajendra Nayak | 9 Jul 09:32 2013
Picon

[PATCH 12/12] ARM: DRA7: dts: Add the dts files for dra7 SoC and dra7-evm board

From: R Sricharan <r.sricharan <at> ti.com>

Add minimal device tree source needed for DRA7 based SoCs.
Also add a board dts file for the dra7-evm (based on dra752)
which contains 1.5G of memory with 1G interleaved and 512MB
non-interleaved.

Signed-off-by: R Sricharan <r.sricharan <at> ti.com>
Signed-off-by: Rajendra Nayak <rnayak <at> ti.com>
---
 arch/arm/boot/dts/Makefile     |    3 +-
 arch/arm/boot/dts/dra7-evm.dts |   20 ++
 arch/arm/boot/dts/dra7.dtsi    |  488 ++++++++++++++++++++++++++++++++++++++++
 3 files changed, 510 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/boot/dts/dra7-evm.dts
 create mode 100644 arch/arm/boot/dts/dra7.dtsi

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 641b3c9..e2f8566 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
 <at>  <at>  -173,7 +173,8  <at>  <at>  dtb-$(CONFIG_ARCH_OMAP2PLUS) += omap2420-h4.dtb \
 	am335x-bone.dtb \
 	am3517-evm.dtb \
 	am3517_mt_ventoux.dtb \
-	am43x-epos-evm.dtb
+	am43x-epos-evm.dtb \
+	dra7-evm.dtb
 dtb-$(CONFIG_ARCH_ORION5X) += orion5x-lacie-ethernet-disk-mini-v2.dtb
 dtb-$(CONFIG_ARCH_PRIMA2) += prima2-evb.dtb
(Continue reading)

Rajendra Nayak | 9 Jul 09:32 2013
Picon

[PATCH 09/12] ARM: DRA7: hwmod: Create initial DRA7XX SoC data

From: Ambresh K <ambresh <at> ti.com>

Adding the hwmod data for DRA7XX platforms.

Signed-off-by: Ambresh K <ambresh <at> ti.com>
Signed-off-by: Tero Kristo <t-kristo <at> ti.com>
Signed-off-by: Rajendra Nayak <rnayak <at> ti.com>
---
 arch/arm/mach-omap2/Makefile              |    1 +
 arch/arm/mach-omap2/omap_hwmod.h          |    1 +
 arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 2724 +++++++++++++++++++++++++++++
 3 files changed, 2726 insertions(+)
 create mode 100644 arch/arm/mach-omap2/omap_hwmod_7xx_data.c

diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile
index 137c9e4..6ed1eb1 100644
--- a/arch/arm/mach-omap2/Makefile
+++ b/arch/arm/mach-omap2/Makefile
 <at>  <at>  -218,6 +218,7  <at>  <at>  obj-$(CONFIG_ARCH_OMAP3)		+= omap_hwmod_3xxx_data.o
 obj-$(CONFIG_SOC_AM33XX)		+= omap_hwmod_33xx_data.o
 obj-$(CONFIG_ARCH_OMAP4)		+= omap_hwmod_44xx_data.o
 obj-$(CONFIG_SOC_OMAP5)			+= omap_hwmod_54xx_data.o
+obj-$(CONFIG_SOC_DRA7XX)		+= omap_hwmod_7xx_data.o
 
 # EMU peripherals
 obj-$(CONFIG_OMAP3_EMU)			+= emu.o
diff --git a/arch/arm/mach-omap2/omap_hwmod.h b/arch/arm/mach-omap2/omap_hwmod.h
index aab33fd..85eff28 100644
--- a/arch/arm/mach-omap2/omap_hwmod.h
+++ b/arch/arm/mach-omap2/omap_hwmod.h
(Continue reading)

Tony Lindgren | 9 Jul 10:31 2013

Re: [PATCH 09/12] ARM: DRA7: hwmod: Create initial DRA7XX SoC data

* Rajendra Nayak <rnayak <at> ti.com> [130709 00:39]:
> From: Ambresh K <ambresh <at> ti.com>

> --- /dev/null
> +++ b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c
...

> +/* dma_system */
> +static struct omap_hwmod_irq_info dra7xx_dma_system_irqs[] = {
> +	{ .name = "0", .irq = 12 + DRA7XX_IRQ_GIC_START },
> +	{ .name = "1", .irq = 13 + DRA7XX_IRQ_GIC_START },
> +	{ .name = "2", .irq = 14 + DRA7XX_IRQ_GIC_START },
> +	{ .name = "3", .irq = 15 + DRA7XX_IRQ_GIC_START },
> +	{ .irq = -1 }
> +};

I think these should no longer be needed?

In general, we must move the hwmod stuff to drivers/bus and start
parsing the data from device tree along the lines Tero is doing
for the clock data.

What's the plan for doing that?

Regards,

Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo <at> vger.kernel.org
(Continue reading)

Rajendra Nayak | 9 Jul 12:14 2013
Picon

Re: [PATCH 09/12] ARM: DRA7: hwmod: Create initial DRA7XX SoC data

On Tuesday 09 July 2013 02:01 PM, Tony Lindgren wrote:
> * Rajendra Nayak <rnayak <at> ti.com> [130709 00:39]:
>> From: Ambresh K <ambresh <at> ti.com>
> 
>> --- /dev/null
>> +++ b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c
> ...
> 
>> +/* dma_system */
>> +static struct omap_hwmod_irq_info dra7xx_dma_system_irqs[] = {
>> +	{ .name = "0", .irq = 12 + DRA7XX_IRQ_GIC_START },
>> +	{ .name = "1", .irq = 13 + DRA7XX_IRQ_GIC_START },
>> +	{ .name = "2", .irq = 14 + DRA7XX_IRQ_GIC_START },
>> +	{ .name = "3", .irq = 15 + DRA7XX_IRQ_GIC_START },
>> +	{ .irq = -1 }
>> +};
> 
> I think these should no longer be needed?

These are needed only for dma because mach-omap2/dma.c still creates
devices from hmwod and which are used by plat/dma.c.
These irqs for sdma exist even in the cleaned up omap4 and omap5 hmwod files.
I'll try and get rid of that dependency of plat/dma on mach/dma to create devices.

> 
> In general, we must move the hwmod stuff to drivers/bus and start
> parsing the data from device tree along the lines Tero is doing
> for the clock data.

We already have irq/dma and iospace moved to DT (some iospace info still
(Continue reading)

Tony Lindgren | 9 Jul 13:36 2013

Re: [PATCH 09/12] ARM: DRA7: hwmod: Create initial DRA7XX SoC data

* Rajendra Nayak <rnayak <at> ti.com> [130709 03:21]:
> On Tuesday 09 July 2013 02:01 PM, Tony Lindgren wrote:
> > * Rajendra Nayak <rnayak <at> ti.com> [130709 00:39]:
> >> From: Ambresh K <ambresh <at> ti.com>
> > 
> >> --- /dev/null
> >> +++ b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c
> > ...
> > 
> >> +/* dma_system */
> >> +static struct omap_hwmod_irq_info dra7xx_dma_system_irqs[] = {
> >> +	{ .name = "0", .irq = 12 + DRA7XX_IRQ_GIC_START },
> >> +	{ .name = "1", .irq = 13 + DRA7XX_IRQ_GIC_START },
> >> +	{ .name = "2", .irq = 14 + DRA7XX_IRQ_GIC_START },
> >> +	{ .name = "3", .irq = 15 + DRA7XX_IRQ_GIC_START },
> >> +	{ .irq = -1 }
> >> +};
> > 
> > I think these should no longer be needed?
> 
> These are needed only for dma because mach-omap2/dma.c still creates
> devices from hmwod and which are used by plat/dma.c.
> These irqs for sdma exist even in the cleaned up omap4 and omap5 hmwod files.
> I'll try and get rid of that dependency of plat/dma on mach/dma to create devices.

OK great.

> > In general, we must move the hwmod stuff to drivers/bus and start
> > parsing the data from device tree along the lines Tero is doing
> > for the clock data.
(Continue reading)

Rajendra Nayak | 15 Jul 11:22 2013
Picon

Re: [PATCH 09/12] ARM: DRA7: hwmod: Create initial DRA7XX SoC data

On Tuesday 09 July 2013 05:06 PM, Tony Lindgren wrote:
>>>> +/* dma_system */
>>>> > >> +static struct omap_hwmod_irq_info dra7xx_dma_system_irqs[] = {
>>>> > >> +	{ .name = "0", .irq = 12 + DRA7XX_IRQ_GIC_START },
>>>> > >> +	{ .name = "1", .irq = 13 + DRA7XX_IRQ_GIC_START },
>>>> > >> +	{ .name = "2", .irq = 14 + DRA7XX_IRQ_GIC_START },
>>>> > >> +	{ .name = "3", .irq = 15 + DRA7XX_IRQ_GIC_START },
>>>> > >> +	{ .irq = -1 }
>>>> > >> +};
>>> > > 
>>> > > I think these should no longer be needed?
>> > 
>> > These are needed only for dma because mach-omap2/dma.c still creates
>> > devices from hmwod and which are used by plat/dma.c.
>> > These irqs for sdma exist even in the cleaned up omap4 and omap5 hmwod files.
>> > I'll try and get rid of that dependency of plat/dma on mach/dma to create devices.
> OK great.

Looks like this wouldn't be possible because drivers/dma/omap-dma.c is the one which is
probing the sdma device created using device tree. So we can't have plat-omap/dma.c probe the
same device.

>  

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

(Continue reading)

Paul Walmsley | 21 Aug 04:10 2013

Re: [PATCH 00/12] DRA7xx PRCM, hwmod and DT data

Hi

On Tue, 9 Jul 2013, Rajendra Nayak wrote:

> This series adds the data files for DRA7xx devices for
> PRCM, hwmod and DT. This is dependent on the core support [1]
> patches for DRA7xx and leaves out the clock data since its
> on its way to DT [2]
> 
> The regbit headers for prm and cm are cleaned up post the
> autogeneration as 95% was seen to be currently unused
> (prm-regbits-7xx.h was 100% unused and hence removed)
> 
> These patches along with the core support patches are available at:
> git://github.com/rrnayak/linux.git for-3.12/dra-core-data

Is a public TRM available for this chip?

Can development boards be made available to the OMAP maintainers so we can 
ensure that the code, once merged, continues to work?

- Paul
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Paul Walmsley | 21 Aug 10:55 2013

Re: [PATCH 00/12] DRA7xx PRCM, hwmod and DT data

On Tue, 9 Jul 2013, Rajendra Nayak wrote:

> This series adds the data files for DRA7xx devices for
> PRCM, hwmod and DT. This is dependent on the core support [1]
> patches for DRA7xx and leaves out the clock data since its
> on its way to DT [2]
> 
> The regbit headers for prm and cm are cleaned up post the
> autogeneration as 95% was seen to be currently unused
> (prm-regbits-7xx.h was 100% unused and hence removed)
> 
> These patches along with the core support patches are available at:
> git://github.com/rrnayak/linux.git for-3.12/dra-core-data

Have glanced through these patches.  The form looks okay to me.  But again 
it's impossible to me to spot-check or verify almost anything in the data 
here, until some documentation is available.  Nor can I verify that the 
series works here, since I don't have a DRA7xx board.  It would be best 
for TI and for upstream Linux if us maintainers outside TI could at least 
test these patches, otherwise we are flying blind.

One minor comment is that I think the credit information in the comments 
of the data files needs to be qualified.  Instead of simply:

+ * Paul Walmsley (paul <at> pwsan.com)
+ * Rajendra Nayak (rnayak <at> ti.com)
+ * Benoit Cousson (b-cousson <at> ti.com)

it would be better if it read something like:

(Continue reading)

Rajendra Nayak | 21 Aug 11:16 2013
Picon

Re: [PATCH 00/12] DRA7xx PRCM, hwmod and DT data

On Wednesday 21 August 2013 02:25 PM, Paul Walmsley wrote:
> On Tue, 9 Jul 2013, Rajendra Nayak wrote:
> 
>> This series adds the data files for DRA7xx devices for
>> PRCM, hwmod and DT. This is dependent on the core support [1]
>> patches for DRA7xx and leaves out the clock data since its
>> on its way to DT [2]
>>
>> The regbit headers for prm and cm are cleaned up post the
>> autogeneration as 95% was seen to be currently unused
>> (prm-regbits-7xx.h was 100% unused and hence removed)
>>
>> These patches along with the core support patches are available at:
>> git://github.com/rrnayak/linux.git for-3.12/dra-core-data
> 
> Have glanced through these patches.  The form looks okay to me.  But again 
> it's impossible to me to spot-check or verify almost anything in the data 
> here, until some documentation is available.  Nor can I verify that the 
> series works here, since I don't have a DRA7xx board.  It would be best 
> for TI and for upstream Linux if us maintainers outside TI could at least 
> test these patches, otherwise we are flying blind.

I agree Paul. There isn't a public TRM available yet but I will see if an
NDA TRM can be made available to all maintainers.
As for the boards, we are really running short of these for now due to
lower fab yield etc, but once the situation improves I will push for
boards to be shipped.

> 
> One minor comment is that I think the credit information in the comments 
(Continue reading)


Gmane