Re: [U-Boot] [RFC 1/9] Arm: dts: imx7d-pico: Import Linux pico-pi dts

2019-02-11 Thread Fabio Estevam
Hi Joris,

On Thu, Jan 31, 2019 at 1:20 PM Joris Offouga  wrote:

> I update the branche on my repo :)
>
> https://github.com/jorisoffouga/u-boot/tree/pico-imx7d/convert_dm
>
> The patches on top of u-boot master

I tested your series and I was able to reproduce the PMIC error.

I tried to debug it and could not fix the error yet. Also tested the
warp7 board, which uses the same PMIC and it has been converted to DM
without issues.

Maybe you could resend this series without the PMIC part for now and
we can work to add it as soon as we figure it out.

Thanks for your work!
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [RFC 1/9] Arm: dts: imx7d-pico: Import Linux pico-pi dts

2019-01-31 Thread Joris Offouga


Le 31/01/2019 à 13:39, Otavio Salvador a écrit :

On Thu, Jan 31, 2019 at 9:54 AM Offouga Joris  wrote:

On 31 Jan 2019, at 12:36, Otavio Salvador  
wrote:

On Thu, Jan 31, 2019 at 1:59 AM Offouga Joris  wrote:
The PMIC problem occurs after the dm conversion

It'd be good if you could rework the things I commented on the
patchset and refresh the patches on top of imx/master so we can all be
on same page.

Yes I fix them and I send patche without RFC ?

Not yet, we need to fix the PMIC error before sending it. Please fix
the branch so we can keep contributing there until it is good to be
send here ;-)


I update the branche on my repo :)

https://github.com/jorisoffouga/u-boot/tree/pico-imx7d/convert_dm

The patches on top of u-boot master

Best Regards,

Joris




___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [RFC 1/9] Arm: dts: imx7d-pico: Import Linux pico-pi dts

2019-01-31 Thread Otavio Salvador
On Thu, Jan 31, 2019 at 9:54 AM Offouga Joris  wrote:
> > On 31 Jan 2019, at 12:36, Otavio Salvador 
> >  wrote:
> >> On Thu, Jan 31, 2019 at 1:59 AM Offouga Joris  
> >> wrote:
> >> The PMIC problem occurs after the dm conversion
> >
> > It'd be good if you could rework the things I commented on the
> > patchset and refresh the patches on top of imx/master so we can all be
> > on same page.
>
> Yes I fix them and I send patche without RFC ?

Not yet, we need to fix the PMIC error before sending it. Please fix
the branch so we can keep contributing there until it is good to be
send here ;-)

-- 
Otavio Salvador O.S. Systems
http://www.ossystems.com.brhttp://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854  Mobile: +1 (347) 903-9750
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [RFC 1/9] Arm: dts: imx7d-pico: Import Linux pico-pi dts

2019-01-31 Thread Offouga Joris


> On 31 Jan 2019, at 12:36, Otavio Salvador  
> wrote:
> 
>> On Thu, Jan 31, 2019 at 1:59 AM Offouga Joris  wrote:
>> The PMIC problem occurs after the dm conversion
> 
> It'd be good if you could rework the things I commented on the
> patchset and refresh the patches on top of imx/master so we can all be
> on same page.
Yes I fix them and I send patche without RFC ? 
> 
> -- 
> Otavio Salvador O.S. Systems
> http://www.ossystems.com.brhttp://code.ossystems.com.br
> Mobile: +55 (53) 9 9981-7854  Mobile: +1 (347) 903-9750
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [RFC 1/9] Arm: dts: imx7d-pico: Import Linux pico-pi dts

2019-01-31 Thread Otavio Salvador
On Thu, Jan 31, 2019 at 1:59 AM Offouga Joris  wrote:
> The PMIC problem occurs after the dm conversion

It'd be good if you could rework the things I commented on the
patchset and refresh the patches on top of imx/master so we can all be
on same page.

-- 
Otavio Salvador O.S. Systems
http://www.ossystems.com.brhttp://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854  Mobile: +1 (347) 903-9750
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [RFC 1/9] Arm: dts: imx7d-pico: Import Linux pico-pi dts

2019-01-30 Thread Offouga Joris
Hi Fabio

> Le 31 janv. 2019 à 02:16, Fabio Estevam  a écrit :
> 
> Hi Bryan and Joris,
> 
> On Wed, Jan 23, 2019 at 7:53 AM Bryan O'Donoghue
>  wrote:
> 
>> Hi Joris,
>> 
>> I've been told that this board exhibits this same problem even without
>> the DM conversion.
>> 
>> "PMIC:  PFUZE3000 DEV_ID=0x0 REV_ID=0xfffb
>> read error from device: 9df65458 register: 0x69!
>> write error to device: 9df65458 register: 0x23!
>> write error to device: 9df65458 register: 0x31!"
> 
> I cannot reproduce the error here on U-Boot master:
> 
> U-Boot SPL 2019.01-00410-g748ad078ee (Jan 30 2019 - 23:02:31 -0200)
> Trying to boot from MMC1
> 
> 
> U-Boot 2019.01-00410-g748ad078ee (Jan 30 2019 - 23:02:31 -0200)
> 
> CPU:   Freescale i.MX7D rev1.2 1000 MHz (running at 792 MHz)
> CPU:   Commercial temperature grade (0C to 95C) at 47C
> Reset cause: POR
> Board: i.MX7D PICOSOM
> I2C:   ready
> DRAM:  512 MiB
> PMIC:  PFUZE3000 DEV_ID=0x30 REV_ID=0x11
> MMC:   FSL_SDHC: 0
> Loading Environment from MMC... OK
> Video: 800x480x24
> In:serial
> Out:   serial
> Err:   serial
> Net:   FEC0
> Hit any key to stop autoboot:  0
> 
> Are you sure the PMIC problem happens prior to the DM conversion?
The PMIC problem occurs after the dm conversion 
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [RFC 1/9] Arm: dts: imx7d-pico: Import Linux pico-pi dts

2019-01-30 Thread Fabio Estevam
Hi Bryan and Joris,

On Wed, Jan 23, 2019 at 7:53 AM Bryan O'Donoghue
 wrote:

> Hi Joris,
>
> I've been told that this board exhibits this same problem even without
> the DM conversion.
>
> "PMIC:  PFUZE3000 DEV_ID=0x0 REV_ID=0xfffb
> read error from device: 9df65458 register: 0x69!
> write error to device: 9df65458 register: 0x23!
> write error to device: 9df65458 register: 0x31!"

I cannot reproduce the error here on U-Boot master:

U-Boot SPL 2019.01-00410-g748ad078ee (Jan 30 2019 - 23:02:31 -0200)
Trying to boot from MMC1


U-Boot 2019.01-00410-g748ad078ee (Jan 30 2019 - 23:02:31 -0200)

CPU:   Freescale i.MX7D rev1.2 1000 MHz (running at 792 MHz)
CPU:   Commercial temperature grade (0C to 95C) at 47C
Reset cause: POR
Board: i.MX7D PICOSOM
I2C:   ready
DRAM:  512 MiB
PMIC:  PFUZE3000 DEV_ID=0x30 REV_ID=0x11
MMC:   FSL_SDHC: 0
Loading Environment from MMC... OK
Video: 800x480x24
In:serial
Out:   serial
Err:   serial
Net:   FEC0
Hit any key to stop autoboot:  0

Are you sure the PMIC problem happens prior to the DM conversion?
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [RFC 1/9] Arm: dts: imx7d-pico: Import Linux pico-pi dts

2019-01-28 Thread Offouga Joris


> Le 28 janv. 2019 à 07:53, Jun Nie  a écrit :
> 
> Joris Offouga  于2019年1月25日周五 下午8:27写道:
>> 
>> 
 Le 25/01/2019 à 02:19, Jun Nie a écrit :
 Joris Offouga  于2019年1月24日周四 下午9:07写道:
 
>> Le 24/01/2019 à 13:54, Jun Nie a écrit :
>> Joris Offouga  于2019年1月24日周四 下午6:30写道:
>> Le 24/01/2019 à 11:02, Jun Nie a écrit :
>> Hi Joris,
>> 
>> I've been told that this board exhibits this same problem even 
>> without
>> the DM conversion.
>> 
>> "PMIC:  PFUZE3000 DEV_ID=0x0 REV_ID=0xfffb
>> read error from device: 9df65458 register: 0x69!
>> write error to device: 9df65458 register: 0x23!
>> write error to device: 9df65458 register: 0x31!"
> The result before DM conversion is :
> 
> PMIC:  PFUZE3000 DEV_ID=0x30 REV_ID=0x11
> 
> Did you have this problem with the warp7 ?
 No.
 
 Jun - do you see the above error on the pico ?
>>> No. The only line I see about PMIC is:
>>> PMIC:  PFUZE3000 DEV_ID=0x30 REV_ID=0x11
>>> 
>>> Jun
>> Yes it is the line that appears before the conversion
>> 
>> Jun - do you have the pico board ?
>> 
>> Can you help me with the conversion ?
>> 
>> Joris
> OK, I can try it. Where can I find a git branch with these patches?
 Non,  fork the repo and I create a branch on my repo you go?
 
 If you have a preference, tell me
>>> Right, you create a branch, I will clone and test on it.
>> 
>> I create a branch pico-imx7d/convert_dm on my github repo :
>> 
>> https://github.com/jorisoffouga/u-boot/tree/pico-imx7d/convert_dm
> 
> Hi Joris,
> 
> I burn u-boot.img to offset 69KB, but SPL does not boot into u-boot
> according to log. Not sure
Hi Jun 

You have the same behavior as me. For the spl I think it should copy Otavio and 
Fabio who put it in place. 


> 
> U-Boot SPL 2019.01-00273-g3006f29-dirty (Jan 27 2019 - 22:19:00 +0800)
> Trying to boot from MMC1
> 
> If I replace SPL with DCD file for early initilization, I see below
> log. Suppose it is due to i2c failure.
> 
> 4474 U-Boot 2019.01-00274-gca08248-dirty (Jan 27 2019 - 22:28:17 +0800)
> 4475
> 4476 CPU:   Freescale i.MX7D rev1.2 1000 MHz (running at 792 MHz)
> 4477 CPU:   Commercial temperature grade (0C to 95C) at 27C
> 4478 Reset cause: POR
> 4479 Model: TechNexion PICO-IMX7D Board and PI baseboard
> 4480 Board: i.MX7D PICOSOM
> 4481 DRAM:  512 MiB
> 4482 read error from device: 9df54458 register: 0x3!
> 4483 PMIC:  PFUZE3000 DEV_ID=0x0 REV_ID=0xfffb
> 4484 read error from device: 9df54458 register: 0x69!
> 4485 write error to device: 9df54458 register: 0x23!
> 4486 write error to device: 9df54458 register: 0x31!
> 4487 write error to device: 9df54458 register: 0x21!
> 4488 write error to device: 9df54458 register: 0x2f!
> 4489 read error from device: 9df54458 register: 0x2e!
> 4490 write error to device: 9df54458 register: 0x2e!
> 4491 MMC:   FSL_SDHC: 2, FSL_SDHC: 1, FSL_SDHC: 0
> 4492 Loading Environment from MMC... OK
> 4493 In:serial@30a7
> 4494 Out:   serial@30a7
> 4495 Err:   serial@30a7
> 4496 Net:   gpio@3025: dir_output: error: gpio GPIO6_11 not reserved
> 4497 gpio@3025: set_value: error: gpio GPIO6_11 not reserved
> 4498 Board Net Initialization Failed
> 4499 No ethernet found.
> 4500 Hit any key to stop autoboot:  2 ^H^H^H 1 ^H^H^H 0
> 4501 Saving Environment to MMC... Writing to MMC(0)... OK
> 4502 switch to partitions #0, OK
> 4503 mmc0(part 0) is current device
> 4504 Scanning mmc 0:1...
> 4505 Found U-Boot script /boot.scr
> 4506 830 bytes read in 3 ms (269.5 KiB/s)
> 4507 ## Executing script at 8080
> 
> Jun
Joris 
> 
>>> 
>>> Jun
>> Joris
>>> 
 Joris
 
> Jun
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [RFC 1/9] Arm: dts: imx7d-pico: Import Linux pico-pi dts

2019-01-23 Thread Bryan O'Donoghue



On 21/01/2019 12:02, Offouga Joris wrote:




Le 21 janv. 2019 à 11:58, Bryan O'Donoghue  a écrit 
:




On 21/01/2019 10:34, jorisoffouga wrote:

Le 21/01/2019 à 10:52, Bryan O'Donoghue a écrit :



On 20/01/2019 21:18, Joris Offouga wrote:
This patch imports the Linux kernel base board imx7d-pico.dtsi and specific
dts for imx7d-pico-pi


I recommend including the upstream Linux SHA in the commit log to make it 
easier to validate against and also if any changes/bugfixes go in upstream 
makes it easier to cherry-pick onto the local dts in u-boot.


Indeed, i add to v2.
I have a problem with pmic, can you watch the patch corresponding to the pmic ?
https://patchwork.ozlabs.org/patch/1028229/


Let me add Jun, he's better place than me to help with this.

Thanks , i'm waiting for this help
Joris


Hi Joris,

I've been told that this board exhibits this same problem even without 
the DM conversion.


"PMIC:  PFUZE3000 DEV_ID=0x0 REV_ID=0xfffb
read error from device: 9df65458 register: 0x69!
write error to device: 9df65458 register: 0x23!
write error to device: 9df65458 register: 0x31!"

I suggest trying to do a git bisect on the existing non-DM code to 
root-cause where the error creeps in.


---
bod
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [RFC 1/9] Arm: dts: imx7d-pico: Import Linux pico-pi dts

2019-01-21 Thread Offouga Joris


> Le 21 janv. 2019 à 11:58, Bryan O'Donoghue  a 
> écrit :
> 
> 
> 
>> On 21/01/2019 10:34, jorisoffouga wrote:
>>> Le 21/01/2019 à 10:52, Bryan O'Donoghue a écrit :
>>> 
>>> 
 On 20/01/2019 21:18, Joris Offouga wrote:
 This patch imports the Linux kernel base board imx7d-pico.dtsi and specific
 dts for imx7d-pico-pi
>>> 
>>> I recommend including the upstream Linux SHA in the commit log to make it 
>>> easier to validate against and also if any changes/bugfixes go in upstream 
>>> makes it easier to cherry-pick onto the local dts in u-boot.
>>> 
>> Indeed, i add to v2.
>> I have a problem with pmic, can you watch the patch corresponding to the 
>> pmic ?
>> https://patchwork.ozlabs.org/patch/1028229/
> 
> Let me add Jun, he's better place than me to help with this.
Thanks , i'm waiting for this help 
Joris 
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [RFC 1/9] Arm: dts: imx7d-pico: Import Linux pico-pi dts

2019-01-21 Thread Bryan O'Donoghue



On 21/01/2019 10:34, jorisoffouga wrote:


Le 21/01/2019 à 10:52, Bryan O'Donoghue a écrit :



On 20/01/2019 21:18, Joris Offouga wrote:
This patch imports the Linux kernel base board imx7d-pico.dtsi and 
specific

dts for imx7d-pico-pi


I recommend including the upstream Linux SHA in the commit log to make 
it easier to validate against and also if any changes/bugfixes go in 
upstream makes it easier to cherry-pick onto the local dts in u-boot.



Indeed, i add to v2.

I have a problem with pmic, can you watch the patch corresponding to the 
pmic ?


https://patchwork.ozlabs.org/patch/1028229/


Let me add Jun, he's better place than me to help with this.
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [RFC 1/9] Arm: dts: imx7d-pico: Import Linux pico-pi dts

2019-01-21 Thread jorisoffouga


Le 21/01/2019 à 10:52, Bryan O'Donoghue a écrit :



On 20/01/2019 21:18, Joris Offouga wrote:
This patch imports the Linux kernel base board imx7d-pico.dtsi and 
specific

dts for imx7d-pico-pi


I recommend including the upstream Linux SHA in the commit log to make 
it easier to validate against and also if any changes/bugfixes go in 
upstream makes it easier to cherry-pick onto the local dts in u-boot.



Indeed, i add to v2.

I have a problem with pmic, can you watch the patch corresponding to the 
pmic ?


https://patchwork.ozlabs.org/patch/1028229/

Best regards,

Joris  Offouga


---
bod
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [RFC 1/9] Arm: dts: imx7d-pico: Import Linux pico-pi dts

2019-01-21 Thread Bryan O'Donoghue



On 20/01/2019 21:18, Joris Offouga wrote:

This patch imports the Linux kernel base board imx7d-pico.dtsi and specific
dts for imx7d-pico-pi


I recommend including the upstream Linux SHA in the commit log to make 
it easier to validate against and also if any changes/bugfixes go in 
upstream makes it easier to cherry-pick onto the local dts in u-boot.


---
bod
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot