All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kukjin Kim <kgene.kim@samsung.com>
To: Mark Rutland <mark.rutland@arm.com>
Cc: Kukjin Kim <kgene.kim@samsung.com>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>,
	Catalin Marinas <Catalin.Marinas@arm.com>,
	"linux-samsung-soc@vger.kernel.org"
	<linux-samsung-soc@vger.kernel.org>,
	Thomas Abraham <thomas.ab@samsung.com>,
	Ilho Lee <ilho215.lee@samsung.com>
Subject: Re: [PATCH 1/3] arm64: dts: add initial dts for Samsung GH7 SoC and SSDK-GH7 board
Date: Tue, 25 Feb 2014 08:56:21 +0900	[thread overview]
Message-ID: <530BDC25.10207@samsung.com> (raw)
In-Reply-To: <20140218103015.GA6051@e106331-lin.cambridge.arm.com>

On 02/18/14 19:30, Mark Rutland wrote:
> On Tue, Feb 11, 2014 at 03:16:26AM +0000, Kukjin Kim wrote:
>> On 02/12/14 03:15, Mark Rutland wrote:
>>> On Tue, Feb 11, 2014 at 06:29:41AM +0000, Kukjin Kim wrote:
>>>> Signed-off-by: Kukjin Kim<kgene.kim@samsung.com>
>>>> Reviewed-by: Thomas Abraham<thomas.ab@samsung.com>
>>>> Cc: Catalin Marinas<catalin.marinas@arm.com>
>>>> ---
>>>>    arch/arm64/boot/dts/samsung-gh7.dtsi     |  108 ++++++++++++++++++++++++++++++
>>>>    arch/arm64/boot/dts/samsung-ssdk-gh7.dts |   26 +++++++
>>>>    2 files changed, 134 insertions(+)
>>>>    create mode 100644 arch/arm64/boot/dts/samsung-gh7.dtsi
>>>>    create mode 100644 arch/arm64/boot/dts/samsung-ssdk-gh7.dts
>>>>
>>>> diff --git a/arch/arm64/boot/dts/samsung-gh7.dtsi b/arch/arm64/boot/dts/samsung-gh7.dtsi
>>>> new file mode 100644
>>>> index 0000000..5b8785c
>>>> --- /dev/null
>>>> +++ b/arch/arm64/boot/dts/samsung-gh7.dtsi
>>>> @@ -0,0 +1,108 @@
>>>> +/*
>>>> + * SAMSUNG GH7 SoC device tree source
>>>> + *
>>>> + * Copyright (c) 2014 Samsung Electronics Co., Ltd.
>>>> + *		http://www.samsung.com
>>>> + *
>>>> + * This program is free software; you can redistribute it and/or modify
>>>> + * it under the terms of the GNU General Public License version 2 as
>>>> + * published by the Free Software Foundation.
>>>> +*/
>>>> +
>>>> +/dts-v1/;
>>>> +
>>>> +/memreserve/ 0x80000000 0x0C400000;
>>>
>>> That looks _very_ large. What is this for?
>>>
>> Yes, I know but we need to reserve that for EL3 monitor, UEFI services,
>> secure, hypervisor and scan chanin...
>
> OK. How much of that memory does the kernel need to know about then?
>
> Surely the kernel shouldn't be able to map the EL3 monitor or hypervisor
> at all?
>
> What address is the kernel getting loaded at if everything up to
> 0x8C400000 isn't usable?
>
> [...]
>
>>
>>> [...]
>>>
>>>> +	amba {
>>>> +		compatible = "arm,amba-bus";
>>>> +		#address-cells =<1>;
>>>> +		#size-cells =<1>;
>>>> +		ranges;
>>>> +
>>>> +		serial@12c00000 {
>>>> +			compatible = "arm,pl011", "arm,primecell";
>>>> +			reg =<0x12c00000 0x10000>;
>>>> +			interrupts =<418>;
>>>> +		};
>>>> +
>>>> +		serial@12c20000 {
>>>> +			compatible = "arm,pl011", "arm,primecell";
>>>> +			reg =<0x12c20000 0x10000>;
>>>> +			interrupts =<420>;
>>>> +		};
>>>
>>> Don't these need clocks?
>>>
>> We don't need and the clocks will be handled by bootloader...
>
> While that might be sufficient for the device to function, Linux doesn't
> know that from this DT, and as far as I can see the device can't
> possibly probe, as no clocks are provided through platform data:
>
> of_platform_bus_create will call of_amba_device_create for anyting
> compatible with "arm,primecell". This in turn will call amba_device_add,
> which will call amba_get_enable_pclk. Then clk_get(&pcdev->dev,
> "apb_pclk") should fail, amba_device_add should fail, and
> of_platform_bus_create will stop trying to probe the node.
> of_platform_populate will carry on probing other nodes.
>
> Surely the pl011 nodes at least need "apb_pclk"?
>
You're right. We should make a dummy clock for pl011, proper clocks will 
be added in next version.

Thanks,
Kukjin

WARNING: multiple messages have this Message-ID (diff)
From: kgene.kim@samsung.com (Kukjin Kim)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/3] arm64: dts: add initial dts for Samsung GH7 SoC and SSDK-GH7 board
Date: Tue, 25 Feb 2014 08:56:21 +0900	[thread overview]
Message-ID: <530BDC25.10207@samsung.com> (raw)
In-Reply-To: <20140218103015.GA6051@e106331-lin.cambridge.arm.com>

On 02/18/14 19:30, Mark Rutland wrote:
> On Tue, Feb 11, 2014 at 03:16:26AM +0000, Kukjin Kim wrote:
>> On 02/12/14 03:15, Mark Rutland wrote:
>>> On Tue, Feb 11, 2014 at 06:29:41AM +0000, Kukjin Kim wrote:
>>>> Signed-off-by: Kukjin Kim<kgene.kim@samsung.com>
>>>> Reviewed-by: Thomas Abraham<thomas.ab@samsung.com>
>>>> Cc: Catalin Marinas<catalin.marinas@arm.com>
>>>> ---
>>>>    arch/arm64/boot/dts/samsung-gh7.dtsi     |  108 ++++++++++++++++++++++++++++++
>>>>    arch/arm64/boot/dts/samsung-ssdk-gh7.dts |   26 +++++++
>>>>    2 files changed, 134 insertions(+)
>>>>    create mode 100644 arch/arm64/boot/dts/samsung-gh7.dtsi
>>>>    create mode 100644 arch/arm64/boot/dts/samsung-ssdk-gh7.dts
>>>>
>>>> diff --git a/arch/arm64/boot/dts/samsung-gh7.dtsi b/arch/arm64/boot/dts/samsung-gh7.dtsi
>>>> new file mode 100644
>>>> index 0000000..5b8785c
>>>> --- /dev/null
>>>> +++ b/arch/arm64/boot/dts/samsung-gh7.dtsi
>>>> @@ -0,0 +1,108 @@
>>>> +/*
>>>> + * SAMSUNG GH7 SoC device tree source
>>>> + *
>>>> + * Copyright (c) 2014 Samsung Electronics Co., Ltd.
>>>> + *		http://www.samsung.com
>>>> + *
>>>> + * This program is free software; you can redistribute it and/or modify
>>>> + * it under the terms of the GNU General Public License version 2 as
>>>> + * published by the Free Software Foundation.
>>>> +*/
>>>> +
>>>> +/dts-v1/;
>>>> +
>>>> +/memreserve/ 0x80000000 0x0C400000;
>>>
>>> That looks _very_ large. What is this for?
>>>
>> Yes, I know but we need to reserve that for EL3 monitor, UEFI services,
>> secure, hypervisor and scan chanin...
>
> OK. How much of that memory does the kernel need to know about then?
>
> Surely the kernel shouldn't be able to map the EL3 monitor or hypervisor
> at all?
>
> What address is the kernel getting loaded at if everything up to
> 0x8C400000 isn't usable?
>
> [...]
>
>>
>>> [...]
>>>
>>>> +	amba {
>>>> +		compatible = "arm,amba-bus";
>>>> +		#address-cells =<1>;
>>>> +		#size-cells =<1>;
>>>> +		ranges;
>>>> +
>>>> +		serial at 12c00000 {
>>>> +			compatible = "arm,pl011", "arm,primecell";
>>>> +			reg =<0x12c00000 0x10000>;
>>>> +			interrupts =<418>;
>>>> +		};
>>>> +
>>>> +		serial at 12c20000 {
>>>> +			compatible = "arm,pl011", "arm,primecell";
>>>> +			reg =<0x12c20000 0x10000>;
>>>> +			interrupts =<420>;
>>>> +		};
>>>
>>> Don't these need clocks?
>>>
>> We don't need and the clocks will be handled by bootloader...
>
> While that might be sufficient for the device to function, Linux doesn't
> know that from this DT, and as far as I can see the device can't
> possibly probe, as no clocks are provided through platform data:
>
> of_platform_bus_create will call of_amba_device_create for anyting
> compatible with "arm,primecell". This in turn will call amba_device_add,
> which will call amba_get_enable_pclk. Then clk_get(&pcdev->dev,
> "apb_pclk") should fail, amba_device_add should fail, and
> of_platform_bus_create will stop trying to probe the node.
> of_platform_populate will carry on probing other nodes.
>
> Surely the pl011 nodes at least need "apb_pclk"?
>
You're right. We should make a dummy clock for pl011, proper clocks will 
be added in next version.

Thanks,
Kukjin

  reply	other threads:[~2014-02-24 23:56 UTC|newest]

Thread overview: 82+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-11  6:29 [PATCH 0/3] arm64: add new support Samsung GH7 SoC and SSDK board Kukjin Kim
2014-02-11  6:29 ` Kukjin Kim
2014-02-11  6:29 ` [PATCH 1/3] arm64: dts: add initial dts for Samsung GH7 SoC and SSDK-GH7 board Kukjin Kim
2014-02-11  6:29   ` Kukjin Kim
2014-02-11 18:15   ` Mark Rutland
2014-02-11 18:15     ` Mark Rutland
2014-02-11  3:16     ` Kukjin Kim
2014-02-11  3:16       ` Kukjin Kim
2014-02-18 10:30       ` Mark Rutland
2014-02-18 10:30         ` Mark Rutland
2014-02-24 23:56         ` Kukjin Kim [this message]
2014-02-24 23:56           ` Kukjin Kim
2014-02-11 23:36   ` Olof Johansson
2014-02-11 23:36     ` Olof Johansson
2014-02-11  3:25     ` Kukjin Kim
2014-02-11  3:25       ` Kukjin Kim
2014-02-12 11:13     ` Marc Zyngier
2014-02-12 11:13       ` Marc Zyngier
2014-02-12 11:29       ` Mark Rutland
2014-02-12 11:29         ` Mark Rutland
2014-02-12 11:40         ` Marc Zyngier
2014-02-12 11:40           ` Marc Zyngier
2014-02-11  3:03           ` Kukjin Kim
2014-02-11  3:03             ` Kukjin Kim
2014-02-11  6:29 ` [PATCH 2/3] arm64: Add Kconfig option for Samsung GH7 SoC family Kukjin Kim
2014-02-11  6:29   ` Kukjin Kim
2014-02-11 23:39   ` Olof Johansson
2014-02-11 23:39     ` Olof Johansson
2014-02-12 10:38     ` Catalin Marinas
2014-02-12 10:38       ` Catalin Marinas
2014-02-12 16:25       ` Kumar Gala
2014-02-12 16:25         ` Kumar Gala
2014-02-12 18:12         ` Catalin Marinas
2014-02-12 18:12           ` Catalin Marinas
2014-02-12 19:04           ` Kumar Gala
2014-02-12 19:04             ` Kumar Gala
2014-02-12 19:14             ` Arnd Bergmann
2014-02-12 19:14               ` Arnd Bergmann
2014-02-11  2:52               ` Kukjin Kim
2014-02-11  2:52                 ` Kukjin Kim
2014-02-13 19:26                 ` Olof Johansson
2014-02-13 19:26                   ` Olof Johansson
2014-02-14 17:06                   ` Arnd Bergmann
2014-02-14 17:06                     ` Arnd Bergmann
2014-02-18  1:10                     ` Kukjin Kim
2014-02-18  1:10                       ` Kukjin Kim
2014-02-18 10:53                       ` Arnd Bergmann
2014-02-18 10:53                         ` Arnd Bergmann
2014-02-18 16:16                       ` Olof Johansson
2014-02-18 16:16                         ` Olof Johansson
2014-02-18 18:13                         ` Arnd Bergmann
2014-02-18 18:13                           ` Arnd Bergmann
2014-02-18 19:52                           ` John Stultz
2014-02-18 19:52                             ` John Stultz
2014-02-18 20:00                             ` Olof Johansson
2014-02-18 20:00                               ` Olof Johansson
2014-02-18 20:06                               ` John Stultz
2014-02-18 20:06                                 ` John Stultz
2014-02-20  9:03                                 ` Olof Johansson
2014-02-20  9:03                                   ` Olof Johansson
2014-02-20 11:22                                   ` Catalin Marinas
2014-02-20 11:22                                     ` Catalin Marinas
2014-02-20 12:07                                     ` Arnd Bergmann
2014-02-20 12:07                                       ` Arnd Bergmann
2014-02-20 17:09                                     ` Olof Johansson
2014-02-20 17:09                                       ` Olof Johansson
2014-02-20 18:58                                       ` Catalin Marinas
2014-02-20 18:58                                         ` Catalin Marinas
2014-02-25  0:19                                         ` Kukjin Kim
2014-02-25  0:19                                           ` Kukjin Kim
2014-02-25  0:20                                   ` Kukjin Kim
2014-02-25  0:20                                     ` Kukjin Kim
2014-02-25  0:10                               ` Kukjin Kim
2014-02-25  0:10                                 ` Kukjin Kim
2014-02-18 16:40                       ` Catalin Marinas
2014-02-18 16:40                         ` Catalin Marinas
2014-02-13 20:08     ` Rob Herring
2014-02-13 20:08       ` Rob Herring
2014-02-13 20:19       ` Olof Johansson
2014-02-13 20:19         ` Olof Johansson
2014-02-11  6:29 ` [PATCH 3/3] Documentation: DT: add new entry for Samsung GH7 SoC and SSDK board Kukjin Kim
2014-02-11  6:29   ` Kukjin Kim

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=530BDC25.10207@samsung.com \
    --to=kgene.kim@samsung.com \
    --cc=Catalin.Marinas@arm.com \
    --cc=ilho215.lee@samsung.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=thomas.ab@samsung.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.