devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/6] ARM: dts: OMAP36xx: add device tree for ABB
@ 2013-03-28 17:16 Andrii Tseglytskyi
  2013-03-28 17:16 ` [PATCH 2/6] ARM: dts: OMAP4: " Andrii Tseglytskyi
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Andrii Tseglytskyi @ 2013-03-28 17:16 UTC (permalink / raw)
  To: linux-patch-review
  Cc: Nishanth Menon, Tero Kristo, Andrii.Tseglytskyi, Mike Turquette,
	Benoît Cousson, devicetree-discuss, linux-omap

From: "Andrii.Tseglytskyi" <andrii.tseglytskyi@ti.com>

Add DT ABB data for OMAP36xx family of devices.
This data is based on OMAP36XX_ES1.x_NDA_TRM_vAB.pdf
document.

Cc: Mike Turquette <mturquette@linaro.org>
Cc: Tero Kristo <t-kristo@ti.com>
Cc: Nishanth Menon <nm@ti.com>
Cc: "Benoît Cousson" <b-cousson@ti.com>
Cc: devicetree-discuss@lists.ozlabs.org
Cc: linux-omap@vger.kernel.org

Signed-off-by: Andrii.Tseglytskyi <andrii.tseglytskyi@ti.com>
---
 arch/arm/boot/dts/omap36xx.dtsi |   16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/arch/arm/boot/dts/omap36xx.dtsi b/arch/arm/boot/dts/omap36xx.dtsi
index 96bf028..72d5135 100644
--- a/arch/arm/boot/dts/omap36xx.dtsi
+++ b/arch/arm/boot/dts/omap36xx.dtsi
@@ -15,6 +15,22 @@
 		serial3 = &uart4;
 	};
 
+	abb@0x483072f0 {
+		compatible = "ti,omap36xx-abb";
+		#address-cells = <1>;
+		#size-cells = <1>;
+		reg = <0x483072f0 0x8>,
+		      <0x48306818 0x4>; /* PRM_IRQSTATUS_MPU */
+		operating-points = <
+			/* kHz   ABB */
+			300000  0
+			600000  0
+			800000  0
+			1000000 1
+		>;
+		ti,tranxdone_status_mask = <0x4000000>; /* (1 << 26) */
+	};
+
 	ocp {
 		uart4: serial@49042000 {
 			compatible = "ti,omap3-uart";
-- 
1.7.9.5

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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/6] ARM: dts: OMAP4: add device tree for ABB
  2013-03-28 17:16 [PATCH 1/6] ARM: dts: OMAP36xx: add device tree for ABB Andrii Tseglytskyi
@ 2013-03-28 17:16 ` Andrii Tseglytskyi
  2013-03-28 17:16 ` [PATCH 3/6] ARM: dts: OMAP5: " Andrii Tseglytskyi
  2013-03-28 17:16 ` [PATCH 4/6] ARM: OMAP3+: ABB: add aliases for clocks used in ABB driver Andrii Tseglytskyi
  2 siblings, 0 replies; 4+ messages in thread
From: Andrii Tseglytskyi @ 2013-03-28 17:16 UTC (permalink / raw)
  To: linux-patch-review
  Cc: Nishanth Menon, Tero Kristo, Andrii.Tseglytskyi, Mike Turquette,
	Benoît Cousson, devicetree-discuss, linux-omap

From: "Andrii.Tseglytskyi" <andrii.tseglytskyi@ti.com>

Add DT ABB data for OMAP44xx family of devices.
This data is based on OMAP4430_ES2.x_NDA_TRM_vAA.pdf
document.

Cc: Mike Turquette <mturquette@linaro.org>
Cc: Tero Kristo <t-kristo@ti.com>
Cc: Nishanth Menon <nm@ti.com>
Cc: "Benoît Cousson" <b-cousson@ti.com>
Cc: devicetree-discuss@lists.ozlabs.org
Cc: linux-omap@vger.kernel.org

Signed-off-by: Andrii.Tseglytskyi <andrii.tseglytskyi@ti.com>
---
 arch/arm/boot/dts/omap4.dtsi    |   18 ++++++++++++++++++
 arch/arm/boot/dts/omap443x.dtsi |   20 ++++++++++++++++++++
 arch/arm/boot/dts/omap446x.dtsi |   36 ++++++++++++++++++++++++++++++++++++
 3 files changed, 74 insertions(+)
 create mode 100644 arch/arm/boot/dts/omap446x.dtsi

diff --git a/arch/arm/boot/dts/omap4.dtsi b/arch/arm/boot/dts/omap4.dtsi
index 739bb79..0bc3ef1 100644
--- a/arch/arm/boot/dts/omap4.dtsi
+++ b/arch/arm/boot/dts/omap4.dtsi
@@ -81,6 +81,24 @@
 		};
 	};
 
+	abb@0x4a307bd0 {
+		compatible = "ti,omap4-abb";
+		#address-cells = <1>;
+		#size-cells = <1>;
+		reg = <0x4a307bd0 0x8>,
+		      <0x4a306014 0x4>; /* PRM_IRQSTATUS_MPU_A9_2 */
+		ti,tranxdone_status_mask = <0x80>; /* (1 << 7) */
+	};
+
+	abb@0x4a307bd8 {
+		compatible = "ti,omap4-abb";
+		#address-cells = <1>;
+		#size-cells = <1>;
+		reg = <0x4a307bd8 0x8>,
+		      <0x4a306010 0x4>; /* PRM_IRQSTATUS_MPU_A9 */
+		ti,tranxdone_status_mask = <0x80000000>; /* (1 << 31) */
+	};
+
 	/*
 	 * XXX: Use a flat representation of the OMAP4 interconnect.
 	 * The real OMAP interconnect network is quite complex.
diff --git a/arch/arm/boot/dts/omap443x.dtsi b/arch/arm/boot/dts/omap443x.dtsi
index cccf39a..6c511c6 100644
--- a/arch/arm/boot/dts/omap443x.dtsi
+++ b/arch/arm/boot/dts/omap443x.dtsi
@@ -24,4 +24,24 @@
 			clock-latency = <300000>; /* From legacy driver */
 		};
 	};
+
+	abb@0x4a307bd0 {
+		operating-points = <
+			/* kHz   ABB */
+			300000  0
+			600000  0
+			800000  0
+			1008000 1
+		>;
+	};
+
+	abb@0x4a307bd8 {
+		operating-points = <
+			/* kHz   ABB */
+			133000  0
+			266100  0
+			332000  0
+		>;
+	};
+
 };
diff --git a/arch/arm/boot/dts/omap446x.dtsi b/arch/arm/boot/dts/omap446x.dtsi
new file mode 100644
index 0000000..b884c60
--- /dev/null
+++ b/arch/arm/boot/dts/omap446x.dtsi
@@ -0,0 +1,36 @@
+/*
+ * Device Tree Source for OMAP446x SoC
+ *
+ * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
+ *
+ * This file is licensed under the terms of the GNU General Public License
+ * version 2.  This program is licensed "as is" without any warranty of any
+ * kind, whether express or implied.
+ */
+
+/include/ "omap4.dtsi"
+
+/ {
+	abb@0x4a307bd0 {
+		operating-points = <
+			/* kHz   ABB */
+			350000  0
+			700000  0
+			920000  0
+			1200000 1
+			1500000 1
+		>;
+	};
+
+	abb@0x4a307bd8 {
+		operating-points = <
+			/* kHz   ABB */
+			133000  0
+			266100  0
+			332000  0
+			430000  1
+			500000  1
+		>;
+	};
+
+};
-- 
1.7.9.5

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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 3/6] ARM: dts: OMAP5: add device tree for ABB
  2013-03-28 17:16 [PATCH 1/6] ARM: dts: OMAP36xx: add device tree for ABB Andrii Tseglytskyi
  2013-03-28 17:16 ` [PATCH 2/6] ARM: dts: OMAP4: " Andrii Tseglytskyi
@ 2013-03-28 17:16 ` Andrii Tseglytskyi
  2013-03-28 17:16 ` [PATCH 4/6] ARM: OMAP3+: ABB: add aliases for clocks used in ABB driver Andrii Tseglytskyi
  2 siblings, 0 replies; 4+ messages in thread
From: Andrii Tseglytskyi @ 2013-03-28 17:16 UTC (permalink / raw)
  To: linux-patch-review
  Cc: Nishanth Menon, Tero Kristo, Andrii.Tseglytskyi, Mike Turquette,
	Benoît Cousson, linux-omap, devicetree-discuss

From: "Andrii.Tseglytskyi" <andrii.tseglytskyi@ti.com>

Add DT ABB data for OMAP543x family of devices.
This data is based on OMAP543x_ES2.0_NDA_TRM_vR.pdf
document.

Cc: Mike Turquette <mturquette@linaro.org>
Cc: Tero Kristo <t-kristo@ti.com>
Cc: Nishanth Menon <nm@ti.com>
Cc: "Benoît Cousson" <b-cousson@ti.com>
Cc: linux-omap@vger.kernel.org
Cc: devicetree-discuss@lists.ozlabs.org

Signed-off-by: Andrii.Tseglytskyi <andrii.tseglytskyi@ti.com>
---
 arch/arm/boot/dts/omap5.dtsi |   31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/arch/arm/boot/dts/omap5.dtsi b/arch/arm/boot/dts/omap5.dtsi
index 150bff6..eb11bb7 100644
--- a/arch/arm/boot/dts/omap5.dtsi
+++ b/arch/arm/boot/dts/omap5.dtsi
@@ -74,6 +74,37 @@
 		};
 	};
 
+	abb@0x4ae07cdc {
+		compatible = "ti,omap5-abb";
+		#address-cells = <1>;
+		#size-cells = <1>;
+		reg = <0x4ae07cdc 0x8>,
+		      <0x4ae06014 0x4>; /* PRM_IRQSTATUS_MPU_2 */
+		operating-points = <
+				/* kHz   ABB */
+				499200  0
+				1099800 1
+				1500000 1
+				1699200 1
+		>;
+		ti,tranxdone_status_mask = <0x80>; /* (1 << 7) */
+	};
+
+	abb@0x4ae07ce4 {
+		compatible = "ti,omap5-abb";
+		#address-cells = <1>;
+		#size-cells = <1>;
+		reg = <0x4ae07ce4 0x8>,
+		      <0x4ae06010 0x4>; /* PRM_IRQSTATUS_MPU */
+		operating-points = <
+				/* kHz   ABB */
+				194100	0
+				388310	0
+				531200	0
+		>;
+		ti,tranxdone_status_mask = <0x80000000>; /* (1 << 31) */
+	};
+
 	/*
 	 * XXX: Use a flat representation of the OMAP3 interconnect.
 	 * The real OMAP interconnect network is quite complex.
-- 
1.7.9.5

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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 4/6] ARM: OMAP3+: ABB: add aliases for clocks used in ABB driver
  2013-03-28 17:16 [PATCH 1/6] ARM: dts: OMAP36xx: add device tree for ABB Andrii Tseglytskyi
  2013-03-28 17:16 ` [PATCH 2/6] ARM: dts: OMAP4: " Andrii Tseglytskyi
  2013-03-28 17:16 ` [PATCH 3/6] ARM: dts: OMAP5: " Andrii Tseglytskyi
@ 2013-03-28 17:16 ` Andrii Tseglytskyi
  2 siblings, 0 replies; 4+ messages in thread
From: Andrii Tseglytskyi @ 2013-03-28 17:16 UTC (permalink / raw)
  To: linux-patch-review
  Cc: Nishanth Menon, Tero Kristo, Andrii.Tseglytskyi, Mike Turquette,
	Benoît Cousson, linux-omap, devicetree-discuss

From: "Andrii.Tseglytskyi" <andrii.tseglytskyi@ti.com>

This patch introduces aliases for SYS clock, MPU clock
and IVA clock. These aliases will be used in ABB driver,
which will be introduced in the following patches.

Cc: Mike Turquette <mturquette@linaro.org>
Cc: Tero Kristo <t-kristo@ti.com>
Cc: Nishanth Menon <nm@ti.com>
Cc: "Benoît Cousson" <b-cousson@ti.com>
Cc: linux-omap@vger.kernel.org
Cc: devicetree-discuss@lists.ozlabs.org

Signed-off-by: Andrii.Tseglytskyi <andrii.tseglytskyi@ti.com>
---
 arch/arm/mach-omap2/cclock3xxx_data.c |    2 ++
 arch/arm/mach-omap2/cclock44xx_data.c |    4 ++++
 arch/arm/mach-omap2/cclock54xx_data.c |    4 ++++
 3 files changed, 10 insertions(+)

diff --git a/arch/arm/mach-omap2/cclock3xxx_data.c b/arch/arm/mach-omap2/cclock3xxx_data.c
index 6ef8758..1d0f36d 100644
--- a/arch/arm/mach-omap2/cclock3xxx_data.c
+++ b/arch/arm/mach-omap2/cclock3xxx_data.c
@@ -3494,6 +3494,8 @@ static struct omap_clk omap3xxx_clks[] = {
 	CLK(NULL,	"timer_32k_ck",	&omap_32k_fck,  CK_3XXX),
 	CLK(NULL,	"timer_sys_ck",	&sys_ck,	CK_3XXX),
 	CLK(NULL,	"cpufreq_ck",	&dpll1_ck,	CK_3XXX),
+	CLK("483072f0.abb",	"abb_notify_ck",	&dpll1_ck,	CK_36XX),
+	CLK("483072f0.abb",	"abb_sys_ck",		&sys_ck,	CK_36XX),
 };
 
 static const char *enable_init_clks[] = {
diff --git a/arch/arm/mach-omap2/cclock44xx_data.c b/arch/arm/mach-omap2/cclock44xx_data.c
index a2cc046..3eb3a7f 100644
--- a/arch/arm/mach-omap2/cclock44xx_data.c
+++ b/arch/arm/mach-omap2/cclock44xx_data.c
@@ -1978,6 +1978,10 @@ static struct omap_clk omap44xx_clks[] = {
 	CLK("4013c000.timer",	"timer_sys_ck",	&syc_clk_div_ck,	CK_443X),
 	CLK("4013e000.timer",	"timer_sys_ck",	&syc_clk_div_ck,	CK_443X),
 	CLK(NULL,	"cpufreq_ck",	&dpll_mpu_ck,	CK_443X),
+	CLK("4a307bd0.abb",	"abb_notify_ck",	&dpll_mpu_ck,		CK_443X),
+	CLK("4a307bd8.abb",	"abb_notify_ck",	&dpll_iva_m5x2_ck,	CK_443X),
+	CLK("4a307bd0.abb",	"abb_sys_ck",	&sys_clkin_ck,		CK_443X),
+	CLK("4a307bd8.abb",	"abb_sys_ck",	&sys_clkin_ck,		CK_443X),
 };
 
 static const char *enable_init_clks[] = {
diff --git a/arch/arm/mach-omap2/cclock54xx_data.c b/arch/arm/mach-omap2/cclock54xx_data.c
index a9ebed6..b440c9b 100644
--- a/arch/arm/mach-omap2/cclock54xx_data.c
+++ b/arch/arm/mach-omap2/cclock54xx_data.c
@@ -1383,6 +1383,10 @@ static struct omap_clk omap54xx_clks[] = {
 	CLK("4013a000.timer",	"timer_sys_ck",		&dss_syc_gfclk_div, 	CK_54XX),
 	CLK("4013c000.timer",	"timer_sys_ck",		&dss_syc_gfclk_div, 	CK_54XX),
 	CLK("4013e000.timer",	"timer_sys_ck",		&dss_syc_gfclk_div, 	CK_54XX),
+	CLK("4ae07cdc.abb",	"abb_notify_ck",	&dpll_mpu_ck,		CK_54XX),
+	CLK("4ae07ce4.abb",	"abb_notify_ck",        &dpll_iva_h12x2_ck,	CK_54XX),
+	CLK("4ae07cdc.abb",	"abb_sys_ck",		&sys_clkin,		CK_54XX),
+	CLK("4ae07ce4.abb",	"abb_sys_ck",		&sys_clkin,		CK_54XX),
 };
 
 int __init omap5xxx_clk_init(void)
-- 
1.7.9.5

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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-03-28 17:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-28 17:16 [PATCH 1/6] ARM: dts: OMAP36xx: add device tree for ABB Andrii Tseglytskyi
2013-03-28 17:16 ` [PATCH 2/6] ARM: dts: OMAP4: " Andrii Tseglytskyi
2013-03-28 17:16 ` [PATCH 3/6] ARM: dts: OMAP5: " Andrii Tseglytskyi
2013-03-28 17:16 ` [PATCH 4/6] ARM: OMAP3+: ABB: add aliases for clocks used in ABB driver Andrii Tseglytskyi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).