From: Benoit Cousson <bcousson@baylibre.com>
To: Tony Lindgren <tony@atomide.com>,
Kishon Vijay Abraham I <kishon@ti.com>,
Roger Quadros <rogerq@ti.com>
Cc: Felipe Balbi <balbi@ti.com>,
Linux OMAP Mailing List <linux-omap@vger.kernel.org>,
Linux ARM Kernel Mailing List
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH] arm: omap5: hwmod: add missing ocp2scp hwmod data
Date: Wed, 21 Aug 2013 14:11:21 +0200 [thread overview]
Message-ID: <5214AE69.8010009@baylibre.com> (raw)
In-Reply-To: <CALpuT30YToRvgS3rgvpSZf8d1DZBK9y5mNUJL6qbHS22mL4k-g@mail.gmail.com>
+ Kishon and Roger
Ok, so in fact that's a complete series now.
[v2,1/5] arm: omap5: dts: fix reg property size
[v2,2/5] arm: omap5: dts: fix ocp2scp DTS data
[v2,3/5] arm: omap5: dts: add palmas-usb node
[v2,4/5] arm: omap5: hwmod: add missing ocp2scp hwmod data
[v2,5/5] arm: omap2plus_defconfig: enable dwc3 and dependencies
Moreover, it does not build because of the change in the palmas SMPS10 regulator name from Kishon I already pulled.
Kishon or Roger,
Could you resend that series ASAP after fixing, testing and changing my email address?
Tony,
I will need your ack for the omap2plus_defconfig patch.
Thanks,
Benoit
On 21/08/2013 11:48, Benoit Cousson wrote:
> Gosh, I've just realized it does contain some DTS stuff in it as well :-(
> I should have pushed it in my DTS branch.
>
> Benoit
>
>
> 2013/8/21 Benoit Cousson <bcousson@baylibre.com
> <mailto:bcousson@baylibre.com>>
>
> On 21/08/2013 09:47, Tony Lindgren wrote:
>
> Benoit,
>
> Got this one queued up somewhere?
>
>
> No yet. That's the only hwmod patch I have so far.
> I'll put it in a branch and send you the pull-request ASAP.
>
> Regards,
> Benoit
>
>
>
> * Felipe Balbi <balbi@ti.com <mailto:balbi@ti.com>> [130712 08:21]:
>
> From: Benoit Cousson <benoit.cousson@linaro.org
> <mailto:benoit.cousson@linaro.org>>
>
> without that hwmod data, USB3 will not in OMAP5 boards.
>
> While at that, also fix DTS data to pass reg property,
> otherwise driver won't probe.
>
> Signed-off-by: Benoit Cousson <benoit.cousson@linaro.org
> <mailto:benoit.cousson@linaro.org>>
> Signed-off-by: Felipe Balbi <balbi@ti.com <mailto:balbi@ti.com>>
> ---
>
> tested on OMAP5 uEVM. Gets rid of a data abort when USB3
> is enabled. There still some other patches missing to get
> USB3 working out of the box, but that's on Palmas and will
> come as soon as I get those ready.
>
> This is already on step forward.
>
> arch/arm/boot/dts/omap5.dtsi | 3 +-
> arch/arm/mach-omap2/omap___hwmod_54xx_data.c | 45
> ++++++++++++++++++++++++++++++
> 2 files changed, 47 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/boot/dts/omap5.dtsi
> b/arch/arm/boot/dts/omap5.dtsi
> index da41d70..a0de586 100644
> --- a/arch/arm/boot/dts/omap5.dtsi
> +++ b/arch/arm/boot/dts/omap5.dtsi
> @@ -654,10 +654,11 @@
> };
> };
>
> - ocp2scp {
> + ocp2scp@4a080000 {
> compatible = "ti,omap-ocp2scp";
> #address-cells = <1>;
> #size-cells = <1>;
> + reg = <0x4a080000 0x20>;
> ranges;
> ti,hwmods = "ocp2scp1";
> usb2_phy: usb2phy@4a084000 {
> diff --git a/arch/arm/mach-omap2/omap___hwmod_54xx_data.c
> b/arch/arm/mach-omap2/omap___hwmod_54xx_data.c
> index 2435109..d9118a1 100644
> --- a/arch/arm/mach-omap2/omap___hwmod_54xx_data.c
> +++ b/arch/arm/mach-omap2/omap___hwmod_54xx_data.c
> @@ -1105,6 +1105,42 @@ static struct omap_hwmod
> omap54xx_mpu_hwmod = {
> };
>
> /*
> + * 'ocp2scp' class
> + * bridge to transform ocp interface protocol to scp
> (serial control port)
> + * protocol
> + */
> +
> +static struct omap_hwmod_class_sysconfig
> omap54xx_ocp2scp_sysc = {
> + .rev_offs = 0x0000,
> + .sysc_offs = 0x0010,
> + .syss_offs = 0x0014,
> + .sysc_flags = (SYSC_HAS_AUTOIDLE |
> SYSC_HAS_SIDLEMODE |
> + SYSC_HAS_SOFTRESET |
> SYSS_HAS_RESET_STATUS),
> + .idlemodes = (SIDLE_FORCE | SIDLE_NO |
> SIDLE_SMART),
> + .sysc_fields = &omap_hwmod_sysc_type1,
> +};
> +
> +static struct omap_hwmod_class omap54xx_ocp2scp_hwmod_class = {
> + .name = "ocp2scp",
> + .sysc = &omap54xx_ocp2scp_sysc,
> +};
> +
> +/* ocp2scp1 */
> +static struct omap_hwmod omap54xx_ocp2scp1_hwmod = {
> + .name = "ocp2scp1",
> + .class = &omap54xx_ocp2scp_hwmod_class,
> + .clkdm_name = "l3init_clkdm",
> + .main_clk = "l4_root_clk_div",
> + .prcm = {
> + .omap4 = {
> + .clkctrl_offs =
> OMAP54XX_CM_L3INIT_OCP2SCP1___CLKCTRL_OFFSET,
> + .context_offs =
> OMAP54XX_RM_L3INIT_OCP2SCP1___CONTEXT_OFFSET,
> + .modulemode = MODULEMODE_HWCTRL,
> + },
> + },
> +};
> +
> +/*
> * 'timer' class
> * general purpose timer module with accurate 1ms tick
> * This class contains several variants: ['timer_1ms',
> 'timer']
> @@ -1900,6 +1936,14 @@ static struct omap_hwmod_ocp_if
> omap54xx_l4_cfg__mpu = {
> .user = OCP_USER_MPU | OCP_USER_SDMA,
> };
>
> +/* l4_cfg -> ocp2scp1 */
> +static struct omap_hwmod_ocp_if omap54xx_l4_cfg__ocp2scp1 = {
> + .master = &omap54xx_l4_cfg_hwmod,
> + .slave = &omap54xx_ocp2scp1_hwmod,
> + .clk = "l4_root_clk_div",
> + .user = OCP_USER_MPU | OCP_USER_SDMA,
> +};
> +
> /* l4_wkup -> timer1 */
> static struct omap_hwmod_ocp_if omap54xx_l4_wkup__timer1 = {
> .master = &omap54xx_l4_wkup_hwmod,
> @@ -2102,6 +2146,7 @@ static struct omap_hwmod_ocp_if
> *omap54xx_hwmod_ocp_ifs[] __initdata = {
> &omap54xx_l4_per__mmc4,
> &omap54xx_l4_per__mmc5,
> &omap54xx_l4_cfg__mpu,
> + &omap54xx_l4_cfg__ocp2scp1,
> &omap54xx_l4_wkup__timer1,
> &omap54xx_l4_per__timer2,
> &omap54xx_l4_per__timer3,
> --
> 1.8.2.1
>
>
>
>
>
> --
> *Benoît Cousson*
> CTO
> BayLibre - Incubateur PACA Est
> Business Pole
> 1047 route des Dolines, Accès Allée Pierre Ziller, Entrée A
> 06560 Valbonne Sophia Antipolis
--
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
WARNING: multiple messages have this Message-ID (diff)
From: bcousson@baylibre.com (Benoit Cousson)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] arm: omap5: hwmod: add missing ocp2scp hwmod data
Date: Wed, 21 Aug 2013 14:11:21 +0200 [thread overview]
Message-ID: <5214AE69.8010009@baylibre.com> (raw)
In-Reply-To: <CALpuT30YToRvgS3rgvpSZf8d1DZBK9y5mNUJL6qbHS22mL4k-g@mail.gmail.com>
+ Kishon and Roger
Ok, so in fact that's a complete series now.
[v2,1/5] arm: omap5: dts: fix reg property size
[v2,2/5] arm: omap5: dts: fix ocp2scp DTS data
[v2,3/5] arm: omap5: dts: add palmas-usb node
[v2,4/5] arm: omap5: hwmod: add missing ocp2scp hwmod data
[v2,5/5] arm: omap2plus_defconfig: enable dwc3 and dependencies
Moreover, it does not build because of the change in the palmas SMPS10 regulator name from Kishon I already pulled.
Kishon or Roger,
Could you resend that series ASAP after fixing, testing and changing my email address?
Tony,
I will need your ack for the omap2plus_defconfig patch.
Thanks,
Benoit
On 21/08/2013 11:48, Benoit Cousson wrote:
> Gosh, I've just realized it does contain some DTS stuff in it as well :-(
> I should have pushed it in my DTS branch.
>
> Benoit
>
>
> 2013/8/21 Benoit Cousson <bcousson@baylibre.com
> <mailto:bcousson@baylibre.com>>
>
> On 21/08/2013 09:47, Tony Lindgren wrote:
>
> Benoit,
>
> Got this one queued up somewhere?
>
>
> No yet. That's the only hwmod patch I have so far.
> I'll put it in a branch and send you the pull-request ASAP.
>
> Regards,
> Benoit
>
>
>
> * Felipe Balbi <balbi at ti.com <mailto:balbi@ti.com>> [130712 08:21]:
>
> From: Benoit Cousson <benoit.cousson@linaro.org
> <mailto:benoit.cousson@linaro.org>>
>
> without that hwmod data, USB3 will not in OMAP5 boards.
>
> While at that, also fix DTS data to pass reg property,
> otherwise driver won't probe.
>
> Signed-off-by: Benoit Cousson <benoit.cousson@linaro.org
> <mailto:benoit.cousson@linaro.org>>
> Signed-off-by: Felipe Balbi <balbi at ti.com <mailto:balbi@ti.com>>
> ---
>
> tested on OMAP5 uEVM. Gets rid of a data abort when USB3
> is enabled. There still some other patches missing to get
> USB3 working out of the box, but that's on Palmas and will
> come as soon as I get those ready.
>
> This is already on step forward.
>
> arch/arm/boot/dts/omap5.dtsi | 3 +-
> arch/arm/mach-omap2/omap___hwmod_54xx_data.c | 45
> ++++++++++++++++++++++++++++++
> 2 files changed, 47 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/boot/dts/omap5.dtsi
> b/arch/arm/boot/dts/omap5.dtsi
> index da41d70..a0de586 100644
> --- a/arch/arm/boot/dts/omap5.dtsi
> +++ b/arch/arm/boot/dts/omap5.dtsi
> @@ -654,10 +654,11 @@
> };
> };
>
> - ocp2scp {
> + ocp2scp at 4a080000 {
> compatible = "ti,omap-ocp2scp";
> #address-cells = <1>;
> #size-cells = <1>;
> + reg = <0x4a080000 0x20>;
> ranges;
> ti,hwmods = "ocp2scp1";
> usb2_phy: usb2phy at 4a084000 {
> diff --git a/arch/arm/mach-omap2/omap___hwmod_54xx_data.c
> b/arch/arm/mach-omap2/omap___hwmod_54xx_data.c
> index 2435109..d9118a1 100644
> --- a/arch/arm/mach-omap2/omap___hwmod_54xx_data.c
> +++ b/arch/arm/mach-omap2/omap___hwmod_54xx_data.c
> @@ -1105,6 +1105,42 @@ static struct omap_hwmod
> omap54xx_mpu_hwmod = {
> };
>
> /*
> + * 'ocp2scp' class
> + * bridge to transform ocp interface protocol to scp
> (serial control port)
> + * protocol
> + */
> +
> +static struct omap_hwmod_class_sysconfig
> omap54xx_ocp2scp_sysc = {
> + .rev_offs = 0x0000,
> + .sysc_offs = 0x0010,
> + .syss_offs = 0x0014,
> + .sysc_flags = (SYSC_HAS_AUTOIDLE |
> SYSC_HAS_SIDLEMODE |
> + SYSC_HAS_SOFTRESET |
> SYSS_HAS_RESET_STATUS),
> + .idlemodes = (SIDLE_FORCE | SIDLE_NO |
> SIDLE_SMART),
> + .sysc_fields = &omap_hwmod_sysc_type1,
> +};
> +
> +static struct omap_hwmod_class omap54xx_ocp2scp_hwmod_class = {
> + .name = "ocp2scp",
> + .sysc = &omap54xx_ocp2scp_sysc,
> +};
> +
> +/* ocp2scp1 */
> +static struct omap_hwmod omap54xx_ocp2scp1_hwmod = {
> + .name = "ocp2scp1",
> + .class = &omap54xx_ocp2scp_hwmod_class,
> + .clkdm_name = "l3init_clkdm",
> + .main_clk = "l4_root_clk_div",
> + .prcm = {
> + .omap4 = {
> + .clkctrl_offs =
> OMAP54XX_CM_L3INIT_OCP2SCP1___CLKCTRL_OFFSET,
> + .context_offs =
> OMAP54XX_RM_L3INIT_OCP2SCP1___CONTEXT_OFFSET,
> + .modulemode = MODULEMODE_HWCTRL,
> + },
> + },
> +};
> +
> +/*
> * 'timer' class
> * general purpose timer module with accurate 1ms tick
> * This class contains several variants: ['timer_1ms',
> 'timer']
> @@ -1900,6 +1936,14 @@ static struct omap_hwmod_ocp_if
> omap54xx_l4_cfg__mpu = {
> .user = OCP_USER_MPU | OCP_USER_SDMA,
> };
>
> +/* l4_cfg -> ocp2scp1 */
> +static struct omap_hwmod_ocp_if omap54xx_l4_cfg__ocp2scp1 = {
> + .master = &omap54xx_l4_cfg_hwmod,
> + .slave = &omap54xx_ocp2scp1_hwmod,
> + .clk = "l4_root_clk_div",
> + .user = OCP_USER_MPU | OCP_USER_SDMA,
> +};
> +
> /* l4_wkup -> timer1 */
> static struct omap_hwmod_ocp_if omap54xx_l4_wkup__timer1 = {
> .master = &omap54xx_l4_wkup_hwmod,
> @@ -2102,6 +2146,7 @@ static struct omap_hwmod_ocp_if
> *omap54xx_hwmod_ocp_ifs[] __initdata = {
> &omap54xx_l4_per__mmc4,
> &omap54xx_l4_per__mmc5,
> &omap54xx_l4_cfg__mpu,
> + &omap54xx_l4_cfg__ocp2scp1,
> &omap54xx_l4_wkup__timer1,
> &omap54xx_l4_per__timer2,
> &omap54xx_l4_per__timer3,
> --
> 1.8.2.1
>
>
>
>
>
> --
> *Beno?t Cousson*
> CTO
> BayLibre - Incubateur PACA Est
> Business Pole
> 1047 route des Dolines, Acc?s All?e Pierre Ziller, Entr?e A
> 06560 Valbonne Sophia Antipolis
next prev parent reply other threads:[~2013-08-21 12:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-12 15:14 [PATCH] arm: omap5: hwmod: add missing ocp2scp hwmod data Felipe Balbi
2013-07-12 15:14 ` Felipe Balbi
2013-08-21 7:47 ` Tony Lindgren
2013-08-21 7:47 ` Tony Lindgren
2013-08-21 9:46 ` Benoit Cousson
2013-08-21 9:46 ` Benoit Cousson
[not found] ` <CALpuT30YToRvgS3rgvpSZf8d1DZBK9y5mNUJL6qbHS22mL4k-g@mail.gmail.com>
2013-08-21 12:11 ` Benoit Cousson [this message]
2013-08-21 12:11 ` Benoit Cousson
2013-08-21 12:54 ` Tony Lindgren
2013-08-21 12:54 ` Tony Lindgren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5214AE69.8010009@baylibre.com \
--to=bcousson@baylibre.com \
--cc=balbi@ti.com \
--cc=kishon@ti.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-omap@vger.kernel.org \
--cc=rogerq@ti.com \
--cc=tony@atomide.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.