All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] OF_PLATDATA questions on rk3399 platfrom
@ 2017-05-08  7:01 Ziyuan
  2017-05-20  2:29 ` Simon Glass
  0 siblings, 1 reply; 4+ messages in thread
From: Ziyuan @ 2017-05-08  7:01 UTC (permalink / raw)
  To: u-boot

hi simon,

I need to achieve emmc_phy physical address in driver, so that I can 
configure phy in different scenarios (phy register address should be 
0xff77f780). see below:
     sdhci: sdhci at fe330000 {

         phys = <&emmc_phy>;
         phy-names = "phy_arasan";

     };

     grf: syscon at ff770000 {
         reg = <0x0 0xff770000 0x0 0x10000>;

         emmc_phy: phy at f780 {
             compatible = "rockchip,rk3399-emmc-phy";
             reg = <0xf780 0x24>;
             #phy-cells = <0>;
             status = "disabled";
         };
     };

  AKA, I can't use libfdt if OF_PLATDATA is enabled,  so how to get it?

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

* [U-Boot] OF_PLATDATA questions on rk3399 platfrom
  2017-05-08  7:01 [U-Boot] OF_PLATDATA questions on rk3399 platfrom Ziyuan
@ 2017-05-20  2:29 ` Simon Glass
  2017-05-23  8:36   ` Kever Yang
  0 siblings, 1 reply; 4+ messages in thread
From: Simon Glass @ 2017-05-20  2:29 UTC (permalink / raw)
  To: u-boot

Hi Ziyuan,

On 8 May 2017 at 01:01, Ziyuan <xzy.xu@rock-chips.com> wrote:
> hi simon,
>
> I need to achieve emmc_phy physical address in driver, so that I can
> configure phy in different scenarios (phy register address should be
> 0xff77f780). see below:
>     sdhci: sdhci at fe330000 {
>
>         phys = <&emmc_phy>;
>         phy-names = "phy_arasan";
>
>     };
>
>     grf: syscon at ff770000 {
>         reg = <0x0 0xff770000 0x0 0x10000>;
>
>         emmc_phy: phy at f780 {
>             compatible = "rockchip,rk3399-emmc-phy";
>             reg = <0xf780 0x24>;
>             #phy-cells = <0>;
>             status = "disabled";
>         };
>     };
>
>  AKA, I can't use libfdt if OF_PLATDATA is enabled,  so how to get it?
>

At present this is not supported. I'm not quite sure how to support
it, or at least the best way. Do you have ideas on what the C
structure should be for this?

Regards,
Simon

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

* [U-Boot] OF_PLATDATA questions on rk3399 platfrom
  2017-05-20  2:29 ` Simon Glass
@ 2017-05-23  8:36   ` Kever Yang
  2017-06-21  3:29     ` Simon Glass
  0 siblings, 1 reply; 4+ messages in thread
From: Kever Yang @ 2017-05-23  8:36 UTC (permalink / raw)
  To: u-boot

Hi Ziyuan, Simon,


On 05/20/2017 10:29 AM, Simon Glass wrote:
> Hi Ziyuan,
>
> On 8 May 2017 at 01:01, Ziyuan <xzy.xu@rock-chips.com> wrote:
>> hi simon,
>>
>> I need to achieve emmc_phy physical address in driver, so that I can
>> configure phy in different scenarios (phy register address should be
>> 0xff77f780). see below:
>>      sdhci: sdhci at fe330000 {
>>
>>          phys = <&emmc_phy>;
>>          phy-names = "phy_arasan";
>>
>>      };
>>
>>      grf: syscon at ff770000 {
>>          reg = <0x0 0xff770000 0x0 0x10000>;
>>
>>          emmc_phy: phy at f780 {
>>              compatible = "rockchip,rk3399-emmc-phy";
>>              reg = <0xf780 0x24>;
>>              #phy-cells = <0>;
>>              status = "disabled";
>>          };
>>      };
>>
>>   AKA, I can't use libfdt if OF_PLATDATA is enabled,  so how to get it?
>>
> At present this is not supported. I'm not quite sure how to support
> it, or at least the best way. Do you have ideas on what the C
> structure should be for this?

     I don't know how much operation for grf access is needed in SPL,

but I think driver in SPL should be simple, and OF_PLATDATA is also for

reduce memory size requirement in SPL. If operation is not much, can we

just use the GRF base address directly when OF_PLATDATA enabled? just

like other GRF access in SPL on different board files.


Thanks,
- Kever
>
> Regards,
> Simon
>

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

* [U-Boot] OF_PLATDATA questions on rk3399 platfrom
  2017-05-23  8:36   ` Kever Yang
@ 2017-06-21  3:29     ` Simon Glass
  0 siblings, 0 replies; 4+ messages in thread
From: Simon Glass @ 2017-06-21  3:29 UTC (permalink / raw)
  To: u-boot

Hi Kever,

On 23 May 2017 at 02:36, Kever Yang <kever.yang@rock-chips.com> wrote:
> Hi Ziyuan, Simon,
>
>
> On 05/20/2017 10:29 AM, Simon Glass wrote:
>>
>> Hi Ziyuan,
>>
>> On 8 May 2017 at 01:01, Ziyuan <xzy.xu@rock-chips.com> wrote:
>>>
>>> hi simon,
>>>
>>> I need to achieve emmc_phy physical address in driver, so that I can
>>> configure phy in different scenarios (phy register address should be
>>> 0xff77f780). see below:
>>>      sdhci: sdhci at fe330000 {
>>>
>>>          phys = <&emmc_phy>;
>>>          phy-names = "phy_arasan";
>>>
>>>      };
>>>
>>>      grf: syscon at ff770000 {
>>>          reg = <0x0 0xff770000 0x0 0x10000>;
>>>
>>>          emmc_phy: phy at f780 {
>>>              compatible = "rockchip,rk3399-emmc-phy";
>>>              reg = <0xf780 0x24>;
>>>              #phy-cells = <0>;
>>>              status = "disabled";
>>>          };
>>>      };
>>>
>>>   AKA, I can't use libfdt if OF_PLATDATA is enabled,  so how to get it?
>>>
>> At present this is not supported. I'm not quite sure how to support
>> it, or at least the best way. Do you have ideas on what the C
>> structure should be for this?
>
>
>     I don't know how much operation for grf access is needed in SPL,
>
> but I think driver in SPL should be simple, and OF_PLATDATA is also for
>
> reduce memory size requirement in SPL. If operation is not much, can we
>
> just use the GRF base address directly when OF_PLATDATA enabled? just
>
> like other GRF access in SPL on different board files.

I think in another thread you are hoping to use syscon/regmap for
this. Please let me know if this is not the case.

Regards,
Simon

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

end of thread, other threads:[~2017-06-21  3:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-08  7:01 [U-Boot] OF_PLATDATA questions on rk3399 platfrom Ziyuan
2017-05-20  2:29 ` Simon Glass
2017-05-23  8:36   ` Kever Yang
2017-06-21  3:29     ` Simon Glass

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.