All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nishanth Menon <nm-l0cyMroinI0@public.gmane.org>
To: Lucas Stach <l.stach-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>,
	Robert Nelson
	<robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	Gowtham Tammana <g-tammana-l0cyMroinI0@public.gmane.org>,
	Tomi Valkeinen <tomi.valkeinen-l0cyMroinI0@public.gmane.org>,
	Tero Kristo <t-kristo-l0cyMroinI0@public.gmane.org>
Subject: Re: [RFC 4/6] ARM: dts: dra7: add entry for bb2d module
Date: Fri, 18 Nov 2016 07:56:35 -0600	[thread overview]
Message-ID: <15bbd8af-c321-689b-ca85-acce581bd8a7@ti.com> (raw)
In-Reply-To: <1479466741.20533.5.camel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>

On 11/18/2016 04:59 AM, Lucas Stach wrote:
> Am Donnerstag, den 17.11.2016, 20:44 -0600 schrieb Robert Nelson:
>> From: Gowtham Tammana <g-tammana-l0cyMroinI0@public.gmane.org>
>>
>> BB2D entry is added to the dts file. Crossbar index number is used
>> for interrupt mapping.
>>
>> Signed-off-by: Gowtham Tammana <g-tammana-l0cyMroinI0@public.gmane.org>
>> Signed-off-by: Tomi Valkeinen <tomi.valkeinen-l0cyMroinI0@public.gmane.org>
>> ---
>>  arch/arm/boot/dts/dra7.dtsi | 10 ++++++++++
>>  1 file changed, 10 insertions(+)
>>
>> diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi
>> index addb753..43488b6 100644
>> --- a/arch/arm/boot/dts/dra7.dtsi
>> +++ b/arch/arm/boot/dts/dra7.dtsi
>> @@ -959,6 +959,16 @@
>>  			ti,hwmods = "dmm";
>>  		};
>>
>> +		bb2d: bb2d@59000000 {
>> +			compatible = "ti,dra7-bb2d";
>> +			reg = <0x59000000 0x0700>;
>> +			interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
>> +			ti,hwmods = "bb2d";
>> +			clocks = <&dpll_core_h24x2_ck>;
>> +			clock-names = "fclk";
>
> "fclk" is not an accepted clock name for the etnaviv driver. It supports
> up to 3 clocks: "bus", "core" and "shader". If there is only one clock
> required in your design it would probably be the "core" clock.

fclk is used as a standard for all hwmod (SoC level control library 
that existed prior to ARM DT-fication, and now slowly being converted 
to DT). I think the core and bus clock is the same here.. I wonder if 
something duplicated like the following will fly?

clocks = <&dpll_core_h24x2_ck>, <&dpll_core_h24x2_ck> ;
clock-names = "fclk", "core";

It might have been better if hwmod clocks were'nt assumed from 
clock-names.. instead it could have been something like:
ti,hwmod-fck-clk-names = "core";
ti,hwmod-ick-clk-names = "bus";
ti,hwmod-ock-clk-names = "shader";
clocks = <&dpll_core_h24x2_ck>, <&clk2>, <&clk3>;
clock-names = "core", "bus", "shader";

Tero: ?

-- 
Regards,
Nishanth Menon
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

WARNING: multiple messages have this Message-ID (diff)
From: nm@ti.com (Nishanth Menon)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC 4/6] ARM: dts: dra7: add entry for bb2d module
Date: Fri, 18 Nov 2016 07:56:35 -0600	[thread overview]
Message-ID: <15bbd8af-c321-689b-ca85-acce581bd8a7@ti.com> (raw)
In-Reply-To: <1479466741.20533.5.camel@pengutronix.de>

On 11/18/2016 04:59 AM, Lucas Stach wrote:
> Am Donnerstag, den 17.11.2016, 20:44 -0600 schrieb Robert Nelson:
>> From: Gowtham Tammana <g-tammana@ti.com>
>>
>> BB2D entry is added to the dts file. Crossbar index number is used
>> for interrupt mapping.
>>
>> Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
>> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
>> ---
>>  arch/arm/boot/dts/dra7.dtsi | 10 ++++++++++
>>  1 file changed, 10 insertions(+)
>>
>> diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi
>> index addb753..43488b6 100644
>> --- a/arch/arm/boot/dts/dra7.dtsi
>> +++ b/arch/arm/boot/dts/dra7.dtsi
>> @@ -959,6 +959,16 @@
>>  			ti,hwmods = "dmm";
>>  		};
>>
>> +		bb2d: bb2d at 59000000 {
>> +			compatible = "ti,dra7-bb2d";
>> +			reg = <0x59000000 0x0700>;
>> +			interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
>> +			ti,hwmods = "bb2d";
>> +			clocks = <&dpll_core_h24x2_ck>;
>> +			clock-names = "fclk";
>
> "fclk" is not an accepted clock name for the etnaviv driver. It supports
> up to 3 clocks: "bus", "core" and "shader". If there is only one clock
> required in your design it would probably be the "core" clock.

fclk is used as a standard for all hwmod (SoC level control library 
that existed prior to ARM DT-fication, and now slowly being converted 
to DT). I think the core and bus clock is the same here.. I wonder if 
something duplicated like the following will fly?

clocks = <&dpll_core_h24x2_ck>, <&dpll_core_h24x2_ck> ;
clock-names = "fclk", "core";

It might have been better if hwmod clocks were'nt assumed from 
clock-names.. instead it could have been something like:
ti,hwmod-fck-clk-names = "core";
ti,hwmod-ick-clk-names = "bus";
ti,hwmod-ock-clk-names = "shader";
clocks = <&dpll_core_h24x2_ck>, <&clk2>, <&clk3>;
clock-names = "core", "bus", "shader";

Tero: ?

-- 
Regards,
Nishanth Menon

  parent reply	other threads:[~2016-11-18 13:56 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-18  2:44 [RFC 1/6] drm/etnaviv: add binding for the gc320 found in ti socs Robert Nelson
2016-11-18  2:44 ` Robert Nelson
     [not found] ` <20161118024436.13447-1-robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-11-18  2:44   ` [RFC 2/6] drm/etnaviv: allow building etnaviv on omap devices Robert Nelson
2016-11-18  2:44     ` Robert Nelson
     [not found]     ` <20161118024436.13447-2-robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-11-18  2:52       ` Nishanth Menon
2016-11-18  2:52         ` Nishanth Menon
2016-11-18 16:33       ` Rob Herring
2016-11-18 16:33         ` Rob Herring
2016-11-19 11:58         ` Joshua Clayton
2016-11-19 11:58           ` Joshua Clayton
2016-11-20 11:43           ` Russell King - ARM Linux
2016-11-20 11:43             ` Russell King - ARM Linux
2016-11-18  2:44   ` [RFC 3/6] Documentation: dt: add bindings for ti bb2d Robert Nelson
2016-11-18  2:44     ` Robert Nelson
     [not found]     ` <20161118024436.13447-3-robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-11-18  2:54       ` Nishanth Menon
2016-11-18  2:54         ` Nishanth Menon
2016-11-18  2:44   ` [RFC 4/6] ARM: dts: dra7: add entry for bb2d module Robert Nelson
2016-11-18  2:44     ` Robert Nelson
     [not found]     ` <20161118024436.13447-4-robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-11-18 10:59       ` Lucas Stach
2016-11-18 10:59         ` Lucas Stach
     [not found]         ` <1479466741.20533.5.camel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2016-11-18 13:56           ` Nishanth Menon [this message]
2016-11-18 13:56             ` Nishanth Menon
2016-11-18  2:44   ` [RFC 5/6] ARM: dts: dra7: add vivante " Robert Nelson
2016-11-18  2:44     ` Robert Nelson
     [not found]     ` <20161118024436.13447-5-robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-11-18 10:55       ` Lucas Stach
2016-11-18 10:55         ` Lucas Stach
2016-11-18  2:44   ` [RFC 6/6] ARM: dts: am57xx-beagle-x15-common: enable etnaviv Robert Nelson
2016-11-18  2:44     ` Robert Nelson
     [not found]     ` <20161118024436.13447-6-robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-11-18  2:56       ` Nishanth Menon
2016-11-18  2:56         ` Nishanth Menon
     [not found]         ` <e69a797c-bec3-2243-5c19-9d7633092369-l0cyMroinI0@public.gmane.org>
2016-11-18  3:44           ` Robert Nelson
2016-11-18  3:44             ` Robert Nelson
     [not found]             ` <CAOCHtYiUz1cjYw9nNa4YZGtzNVgSgjEa=4Lqiktz07rszsSksw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-11-18  4:15               ` Nishanth Menon
2016-11-18  4:15                 ` Nishanth Menon
     [not found]                 ` <3eb346ad-1675-e613-93ef-bd2d07bf2ab8-l0cyMroinI0@public.gmane.org>
2016-11-18  4:26                   ` Robert Nelson
2016-11-18  4:26                     ` Robert Nelson
     [not found]                     ` <CAOCHtYh8QebrYA2ioaXgURdc47QY4x+EwZLBXLLGP1-k7eAMmw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-11-18  4:34                       ` Nishanth Menon
2016-11-18  4:34                         ` Nishanth Menon
2016-11-18 16:42           ` Rob Herring
2016-11-18 16:42             ` Rob Herring
2016-11-18  2:51   ` [RFC 1/6] drm/etnaviv: add binding for the gc320 found in ti socs Robert Nelson
2016-11-18  2:51     ` Robert Nelson
2016-11-18  2:53   ` Nishanth Menon
2016-11-18  2:53     ` Nishanth Menon
     [not found]     ` <0bf288ee-33bc-c3b5-389f-08d9bb89ccb5-l0cyMroinI0@public.gmane.org>
2016-11-18 12:13       ` Russell King - ARM Linux
2016-11-18 12:13         ` Russell King - ARM Linux
     [not found]         ` <20161118121340.GC23750-l+eeeJia6m9URfEZ8mYm6t73F7V6hmMc@public.gmane.org>
2016-11-18 13:34           ` Lucas Stach
2016-11-18 13:34             ` Lucas Stach
     [not found]             ` <1479476068.20533.19.camel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2016-11-18 15:07               ` Robert Nelson
2016-11-18 15:07                 ` Robert Nelson

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=15bbd8af-c321-689b-ca85-acce581bd8a7@ti.com \
    --to=nm-l0cymroini0@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=g-tammana-l0cyMroinI0@public.gmane.org \
    --cc=l.stach-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org \
    --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=t-kristo-l0cyMroinI0@public.gmane.org \
    --cc=tomi.valkeinen-l0cyMroinI0@public.gmane.org \
    --cc=tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org \
    /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.