Re: [BUG] USB boot issue on ROCKPro64 with UEFI

2021-09-03 Thread Rtp
Vincent Stehlé writes: Hi, > Hi U-Boot folks, > > Hopefully this is the right way to report bugs. If not, please do not hesitate > to let me know. > > I am hitting an issue with U-Boot v2021.07 on the ROCKPro64, when booting > Linux > with UEFI from USB. The kernel EFI stub will hang: > >

Re: Pull request: rockchip-for-v2021.07

2021-04-06 Thread Rtp
Kever Yang writes: Hi, > Hi Tom, > > Please pull the rockchip updates/fixes: > - Fix rk3368 lion board support; > - Fix px30 odroid-go2 board support; > - Add rk3399 NanoPi R4s and NanoPi M4B board support; Sorry for annoying you again. Is there some reply I missed about my latest version of

[patch v4 9/9] rockchip: video: vop: Add reset support

2021-03-05 Thread Rtp
In order to ensure that the VOP registers are in correct state, add missing support for the VOP reset lines found in the device-tree Signed-off-by: Arnaud Patard Tested-by: Peter Robinson Index: u-boot/drivers/video/rockchip/rk_vop.c

[patch v4 8/9] rockchip: video: edp: Add missing reset support

2021-03-05 Thread Rtp
In order to ensure that the eDP registers are in correct state, add missing support for the eDP reset lines found in the device-tree. Signed-off-by: Arnaud Patard Tested-by: Peter Robinson Index: u-boot/drivers/video/rockchip/rk_edp.c

[patch v4 2/9] rockchip: video: edp: Add rk3399 support

2021-03-05 Thread Rtp
According to linux commit "drm/rockchip: analogix_dp: add rk3399 eDP support" (82872e42bb1501dd9e60ca430f4bae45a469aa64), rk3288 and rk3399 eDP IPs are nearly the same, the difference is in the grf register (SOC_CON6 versus SOC_CON20). So, change the code to use the right register on each IP. The

[patch v4 7/9] rockchip: video: vop: Fix format of fbbase in debug string

2021-03-05 Thread Rtp
The debug string printing the device name, framebuffer address and of node is using %lu as format for the framebuffer address, which is not so nice. Change it to %lx. Signed-off-by: Arnaud Patard Tested-by: Peter Robinson Index: u-boot/drivers/video/rockchip/rk_vop.c

[patch v4 4/9] Rockchip: video: vop: Reserve efi fb memory

2021-03-05 Thread Rtp
When booting with EFI and graphics, the memory used for framebuffer has to be reserved, otherwise it may leads to kernel memory overwrite. Signed-off-by: Arnaud Patard Tested-by: Peter Robinson Index: u-boot/drivers/video/rockchip/rk_vop.c

[patch v4 3/9] Rockchip: video: edp: Change interrupt polarity configuration

2021-03-05 Thread Rtp
The linux code is setting polarity configuration to 3 but uboot code is setting it to 1. Change the configuration to match the linux configuration Signed-off-by: Arnaud Patard Tested-by: Peter Robinson Index: u-boot/arch/arm/include/asm/arch-rockchip/edp_rk3288.h

[patch v4 1/9] rockchip: video: vop: Use endpoint compatible string to find VOP mode

2021-03-05 Thread Rtp
The current code is using an hard coded enum and the of node reg value of endpoint to find out if the endpoint is mipi/hdmi/lvds/edp/dp. The order is different between rk3288, rk3399 vop little, rk3399 vop big. A possible solution would be to make sure that the rk3288.dtsi and rk3399.dtsi files

[patch v4 5/9] rockchip: Pinebook Pro: Enable edp

2021-03-05 Thread Rtp
- uboot rockchip edp code is looking for a rockchip,panel property for the edp dts node, so add it. Signed-off-by: Arnaud Patard Tested-by: Peter Robinson Index: u-boot/arch/arm/dts/rk3399-pinebook-pro-u-boot.dtsi === ---

[patch v4 6/9] rockchip: pwm: Fix default polarity

2021-03-05 Thread Rtp
In the code, the default polarity is set to positive/positive, which is neither normal polarity or inverted polarity. It's only the hardware default. This leads to booting linux with wrong polarity setting. Update the code to use PWM_DUTY_POSTIVE | PWM_INACTIVE_NEGATIVE by default instead.

[patch v4 0/9] rk3399 (Pinebook pro) EDP support

2021-03-05 Thread Rtp
This patchset add support for the rk3399 eDP. It has been tested on the pinebook pro and Google Kevin chromeos devices. The changes have been written by studying the linux code, since I didn't find any manual for theses part of the RK3399 SoC. On the linux kernel side, on recent kernels, it

Re: Pull request: u-boot-rockchip-20210121

2021-01-21 Thread Rtp
Kever Yang writes: Hi, > Hi Tom, > > Please pull the rockchip updates/fixes: > - New board: rk3328 NanoPi R2S board; > - Fix init voltage for some rk3399 boards; > - enable rng for rk3399 by default; > - set default to SPI bus 1 for SPI-flash for some board; > - add dwc PCIe controller driver

[patch v3 7/9] rockchip: video: vop: Fix format of fbbase in debug string

2020-11-20 Thread Rtp
The debug string printing the device name, framebuffer address and of node is using %lu as format for the framebuffer address, which is not so nice. Change it to %lx. Signed-off-by: Arnaud Patard Index: u-boot/drivers/video/rockchip/rk_vop.c

[patch v3 0/9] rk3399 (Pinebook pro) EDP support

2020-11-20 Thread Rtp
This patchset add support for the rk3399 eDP. It has been tested on the pinebook pro and Google Kevin chromeos devices. The changes have been written by studying the linux code, since I didn't find any manual for theses part of the RK3399 SoC. On the linux kernel side, on recent kernels, it

[patch v3 2/9] rockchip: video: edp: Add rk3399 support

2020-11-20 Thread Rtp
According to linux commit "drm/rockchip: analogix_dp: add rk3399 eDP support" (82872e42bb1501dd9e60ca430f4bae45a469aa64), rk3288 and rk3399 eDP IPs are nearly the same, the difference is in the grf register (SOC_CON6 versus SOC_CON20). So, change the code to use the right register on each IP. The

[patch v3 9/9] rockchip: videp: vop: Add reset support

2020-11-20 Thread Rtp
In order to ensure that the VOP registers are in correct state, add missing support for the VOP reset lines found in the device-tree Signed-off-by: Arnaud Patard Index: u-boot/drivers/video/rockchip/rk_vop.c === ---

[patch v3 8/9] rockchip: video: edp: Add missing reset support

2020-11-20 Thread Rtp
In order to ensure that the eDP registers are in correct state, add missing support for the eDP reset lines found in the device-tree. Signed-off-by: Arnaud Patard Index: u-boot/drivers/video/rockchip/rk_edp.c === ---

[patch v3 4/9] ockchip: video: vop: Reserve efi fb memory

2020-11-20 Thread Rtp
When booting with EFI and graphics, the memory used for framebuffer has to be reserved, otherwise it may leads to kernel memory overwrite. Signed-off-by: Arnaud Patard Index: u-boot/drivers/video/rockchip/rk_vop.c === ---

[patch v3 6/9] rockchip: pwm: Fix default polarity

2020-11-20 Thread Rtp
In the code, the default polarity is set to positive/positive, which is neither normal polarity or inverted polarity. It's only the hardware default. This leads to booting linux with wrong polarity setting. Update the code to use PWM_DUTY_POSTIVE | PWM_INACTIVE_NEGATIVE by default instead.

[patch v3 5/9] rockchip: Pinebook Pro: Enable edp

2020-11-20 Thread Rtp
- uboot rockchip edp code is looking for a rockchip,panel property for the edp dts node, so add it. Signed-off-by: Arnaud Patard Index: u-boot/arch/arm/dts/rk3399-pinebook-pro-u-boot.dtsi === ---

[patch v3 3/9] ockchip: video: edp: Change interrupt polarity configuration

2020-11-20 Thread Rtp
The linux code is setting polarity configuration to 3 but uboot code is setting it to 1. Change the configuration to match the linux configuration Signed-off-by: Arnaud Patard Index: u-boot/arch/arm/include/asm/arch-rockchip/edp_rk3288.h

[patch v3 1/9] rockchip: video: vop: Use endpoint compatible string to find VOP mode

2020-11-20 Thread Rtp
The current code is using an hard coded enum and the of node reg value of endpoint to find out if the endpoint is mipi/hdmi/lvds/edp/dp. The order is different between rk3288, rk3399 vop little, rk3399 vop big. A possible solution would be to make sure that the rk3288.dtsi and rk3399.dtsi files

Re: [patch v2 01/10] drivers/video/rockchip/rk_vop.c: Use endpoint compatible string to find VOP mode

2020-10-30 Thread Rtp
Kever Yang writes: > Hi Arnaud, > >     Thanks for your patch. > >     Please use module name as subject prefix instead of a file name, > eg. "rockchip: video: vop". > ok. will fix. > On 2020/10/27 下午9:21, Arnaud Patard (Rtp) wrote: >> The

[patch v2 02/10] drivers/video/rockchip/rk_edp.c: Add rk3399 support

2020-10-27 Thread Rtp
According to linux commit "drm/rockchip: analogix_dp: add rk3399 eDP support" (82872e42bb1501dd9e60ca430f4bae45a469aa64), rk3288 and rk3399 eDP IPs are nearly the same, the difference is in the grf register (SOC_CON6 versus SOC_CON20). So, change the code to use the right register on each IP. The

[patch v2 07/10] drivers/pwm/rk_pwm.c: Fix default polarity

2020-10-27 Thread Rtp
In the code, the default polarity is set to positive/positive, which is neither normal polarity or inverted polarity. It's only the hardware default. This leads to booting linux with wrong polarity setting. Update the code to use PWM_DUTY_POSTIVE | PWM_INACTIVE_NEGATIVE by default instead.

[patch v2 05/10] rk3399-pinebook-pro-u-boot.dtsi: Enable edp

2020-10-27 Thread Rtp
- uboot rockchip edp code is looking for a rockchip,panel property for the edp dts node, so add it. Signed-off-by: Arnaud Patard Index: u-boot/arch/arm/dts/rk3399-pinebook-pro-u-boot.dtsi === ---

[patch v2 08/10] drivers/video/rockchip/rk_vop.c: Fix format of fbbase in debug string

2020-10-27 Thread Rtp
The debug string printing the device name, framebuffer address and of node is using %lu as format for the framebuffer address, which is not so nice. Change it to %lx. Signed-off-by: Arnaud Patard Index: u-boot/drivers/video/rockchip/rk_vop.c

[patch v2 10/10] drivers/video/rockchip/rk_vop.c: Add reset support

2020-10-27 Thread Rtp
In order to ensure that the VOP registers are in correct state, add missing support for the VOP reset lines found in the device-tree Signed-off-by: Arnaud Patard Index: u-boot/drivers/video/rockchip/rk_vop.c === ---

[patch v2 00/10] rk3399 (Pinebook pro) EDP support

2020-10-27 Thread Rtp
This patchset add support for the rk3399 eDP. It has been tested on the pinebook pro and Google Kevin chromeos devices. The changes have been written by studying the linux code, since I didn't find any manual for theses part of the RK3399 SoC. For Kevin devices, this patchset is needed:

[patch v2 06/10] configs/pinebook-pro-rk3399_defconfig: enable SYS_USB_EVENT_POLL_VIA_INT_QUEUE

2020-10-27 Thread Rtp
The default configuration will use SYS_USB_EVENT_POLL for handling the usb keyboard and it makes the system really slow (eg slow keypress, loading kernel/initrd from grub-efi is taking ages). Using CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE seems to be improving things a lot, so use it. Tested-by:

[patch v2 09/10] drivers/video/rockchip/rk_edp.c: Add missing reset support

2020-10-27 Thread Rtp
In order to ensure that the eDP registers are in correct state, add missing support for the eDP reset lines found in the device-tree. Signed-off-by: Arnaud Patard Index: u-boot/drivers/video/rockchip/rk_edp.c === ---

[patch v2 04/10] drivers/video/rockchip/rk_vop.c: Reserve efi fb memory

2020-10-27 Thread Rtp
When booting with EFI and graphics, the memory used for framebuffer has to be reserved, otherwise it may leads to kernel memory overwrite. Signed-off-by: Arnaud Patard Index: u-boot/drivers/video/rockchip/rk_vop.c === ---

[patch v2 01/10] drivers/video/rockchip/rk_vop.c: Use endpoint compatible string to find VOP mode

2020-10-27 Thread Rtp
The current code is using an hard coded enum and the of node reg value of endpoint to find out if the endpoint is mipi/hdmi/lvds/edp/dp. The order is different between rk3288, rk3399 vop little, rk3399 vop big. A possible solution would be to make sure that the rk3288.dtsi and rk3399.dtsi files

[patch v2 03/10] drivers/video/rockchip/rk_edp.c: Change interrupt polarity configuration

2020-10-27 Thread Rtp
The linux code is setting polarity configuration to 3 but uboot code is setting it to 1. Change the configuration to match the linux configuration Signed-off-by: Arnaud Patard Index: u-boot/arch/arm/include/asm/arch-rockchip/edp_rk3288.h

Re: [patch 4/8] RFC: drivers/video/rockchip/rk_edp.c: Change clock rate

2020-10-23 Thread Rtp
Alper Nebi Yasak writes: > On 25/09/2020 21:36, Arnaud Patard (Rtp) wrote: >> The current code is setting the clock rate to 19200, but >> due to the current device-tree configuration and linux code, >> it should rather be 1. >> > > This looks like i

Re: [patch 3/8] RFC: drivers/video/rockchip/rk_edp.c: Change interrupt polarity configuration

2020-10-23 Thread Rtp
Alper Nebi Yasak writes: > On 25/09/2020 21:36, Arnaud Patard (Rtp) wrote: >> The linux code is setting polarity configuration to 3 but >> uboot code is setting it to 1. Change the configuration to match the >> linux configuration > FYI, coreboot does the same as existing

Re: [patch 2/8] RFC: drivers/video/rockchip/rk_edp.c: Add rk3399 support

2020-10-23 Thread Rtp
Alper Nebi Yasak writes: Hi, > On 25/09/2020 21:36, Arnaud Patard (Rtp) wrote: >> According to linux commit "drm/rockchip: analogix_dp: add rk3399 eDP >> support" (82872e42bb1501dd9e60ca430f4bae45a469aa64), rk3288 and rk3399 >> eDP IPs are nearly the same, the di

Re: [PATCH] video: rockchip: Add missing dpcd_write() call to link_train_ce()

2020-10-15 Thread Rtp
Alper Nebi Yasak writes: > On 14/10/2020 22:31, Tom Rini wrote: >> On Wed, Oct 14, 2020 at 09:58:28PM +0300, Alper Nebi Yasak wrote: >>> On 14/10/2020 18:24, Tom Rini wrote: Ugh. In so far as anything can be re-licensed, who did it all originally? I suspect coreboot isn't interested

Re: Pinebook Pro keyboard (RK3399 OHCI)?

2020-10-02 Thread Rtp
Simon South writes: > Simon South writes: >> Has anyone managed to get the built-in keyboard of the Pinebook Pro >> working with U-Boot? >> >> Even using the latest code, having USB started makes the U-boot >> console feel sluggish while pressing keys on the keyboard produces no >> result. > >

Re: [patch 0/8] RFC: Pinebook pro EDP support

2020-09-28 Thread Rtp
Alper Nebi Yasak writes: Hi, > On 25/09/2020 21:36, Arnaud Patard (Rtp) wrote: >> This patchset add support for the rk3399 edp. It has been tested on the >> pinebook >> pro devices. The only missing part is a hack used to get stable edp output >> after >>

Re: [PATCH v2 2/2] pwm: Add a driver for Chrome OS EC PWM

2020-09-27 Thread Rtp
of use > here as well: > > https://lists.denx.de/pipermail/u-boot/2020-September/427790.html > If this platform has a screen on rk3399 edp, I'll be happy to get tests / comments / ... of my patches on it. I've only a pinebook pro, so it's hard to know if something is platform specifi

[patch 3/8] RFC: drivers/video/rockchip/rk_edp.c: Change interrupt polarity configuration

2020-09-25 Thread Rtp
The linux code is setting polarity configuration to 3 but uboot code is setting it to 1. Change the configuration to match the linux configuration Signed-off-by: Arnaud Patard Index: u-boot/drivers/video/rockchip/rk_edp.c === ---

[patch 7/8] RFC: configs/pinebook-pro-rk3399_defconfig: enable SYS_USB_EVENT_POLL_VIA_INT_QUEUE

2020-09-25 Thread Rtp
The default configuration will use SYS_USB_EVENT_POLL for handling the usb keyboard and it makes the system really slow (eg slow keypress, loading kernel/initrd from grub-efi is taking ages). Using CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE seems to be improving things a lot, so use it. Tested-by:

[patch 5/8] RFC: drivers/video/rockchip/rk_vop.c: Reserve efi fb memory

2020-09-25 Thread Rtp
When booting with EFI and graphics, the memory used for framebuffer has to be reserved, otherwise it may leads to kernel memory overwrite. Signed-off-by: Arnaud Patard Index: u-boot/drivers/video/rockchip/rk_vop.c === ---

[patch 2/8] RFC: drivers/video/rockchip/rk_edp.c: Add rk3399 support

2020-09-25 Thread Rtp
According to linux commit "drm/rockchip: analogix_dp: add rk3399 eDP support" (82872e42bb1501dd9e60ca430f4bae45a469aa64), rk3288 and rk3399 eDP IPs are nearly the same, the difference is in the grf register (SOC_CON6 versus SOC_CON20). So, change the code to use the right register on each IP. The

[patch 8/8] RFC: drivers/pwm/rk_pwm.c: Fix default polarity

2020-09-25 Thread Rtp
In the code, the default polarity is set to positive/positive, which is neither normal polarity or inverted polarity. It's only the hardware default. This leads to booting linux with wrong polarity setting. Update the code to use PWM_DUTY_POSTIVE | PWM_INACTIVE_NEGATIVE by default instead.

[patch 1/8] RFC: drivers/video/rockchip/rk_vop.c: Use endpoint compatible string to find VOP mode

2020-09-25 Thread Rtp
The current code is using an hard coded enum and the of node reg value of endpoint to find out if the endpoint is mipi/hdmi/lvds/edp/dp. The order is different between rk3288, rk3399 vop little, rk3399 vop big. A possible solution would be to make sure that the rk3288.dtsi and rk3399.dtsi files

[patch 4/8] RFC: drivers/video/rockchip/rk_edp.c: Change clock rate

2020-09-25 Thread Rtp
The current code is setting the clock rate to 19200, but due to the current device-tree configuration and linux code, it should rather be 1. Signed-off-by: Arnaud Patard Index: u-boot/drivers/video/rockchip/rk_edp.c ===

[patch 0/8] RFC: Pinebook pro EDP support

2020-09-25 Thread Rtp
This patchset add support for the rk3399 edp. It has been tested on the pinebook pro devices. The only missing part is a hack used to get stable edp output after a warn reset, which is possibly specific to this device. I'm not sure if it's suitable for merge. The changes have been written by

[patch 6/8] RFC: rk3399-pinebook-pro-u-boot.dtsi: Enable edp

2020-09-25 Thread Rtp
- uboot rockchip edp code is looking for a rockchip,panel property for the edp dts node, so add it. Signed-off-by: Arnaud Patard Index: u-boot/arch/arm/dts/rk3399-pinebook-pro-u-boot.dtsi === ---

Re: Pinebook Pro keyboard (RK3399 OHCI)?

2020-07-14 Thread Rtp
Simon South writes: > Arnaud Patard (Rtp) writes: >> Did you check if everything needed is enabled in your configuration and >> if the keyboard is detected after a usb start / usb tree ? > > It is detected, yes. ok. > > I believe the configuration is fine; I see th

Re: Pinebook Pro keyboard (RK3399 OHCI)?

2020-07-14 Thread Rtp
Simon South writes: > Peter Robinson writes: >> It should be fixed in the main devel repo, commit 3a5771249 > > That commit enables the OHCI driver but doesn't lead to a working > keyboard, at least for me. > > Have you actually tested this successfully on a PBP? (Has anyone else?) > I wonder

Re: rockchip: correctly set vop0 or vop1

2020-06-08 Thread Rtp
Patrick Wildt writes: > On Mon, Jun 08, 2020 at 10:18:19AM +0200, Arnaud Patard wrote: >> Patrick Wildt writes: >> >> Hi, >> >> > The EDP_LCDC_SEL bit has to be set correctly to select vop0 or >> > vop1, but so far we have set it in both conditions, which is not >> > correct. >> > >> > Can

Re: rockchip: correctly set vop0 or vop1

2020-06-08 Thread Rtp
Patrick Wildt writes: Hi, > The EDP_LCDC_SEL bit has to be set correctly to select vop0 or > vop1, but so far we have set it in both conditions, which is not > correct. > > Can someone verify this is the correct way round? vop1 -> set, > vop0 -> clear? > > Signed-off-by: Patrick Wildt > >

Re: [PATCH 5/5] Add initial support for the Pinebook Pro laptop from Pine64.

2020-04-22 Thread Rtp
Hi, > diff --git a/arch/arm/dts/rk3399-pinebook-pro-u-boot.dtsi > b/arch/arm/dts/rk3399-pinebook-pro-u-boot.dtsi > new file mode 100644 > index 00..1a2e24d3ef > --- /dev/null > +++ b/arch/arm/dts/rk3399-pinebook-pro-u-boot.dtsi > @@ -0,0 +1,43 @@ > +// SPDX-License-Identifier: GPL-2.0+ >

Re: [PATCH 3/5] dt-bindings: leds: adopt Linux leds common binding constants

2020-04-22 Thread Rtp
Fwiw, it looks like that this file is already in uboot: https://gitlab.denx.de/u-boot/u-boot/-/blob/master/include/dt-bindings/leds/common.h commit 423aabc43613b58d7b91a28a94791ab937afcd90 Author: Jerome Brunet Date: Thu Mar 5 12:12:35 2020 +0100 dt-bindings: leds: import common led

Re: [PATCH 1/5] video: simple_panel: add boe,nv140fhmn49 display

2020-04-21 Thread Rtp
eDP of my PBP and managed to get it. You need more patches in order to get it. The vopl mipi and eDP endpoints are inverted in the rk3399.dtsi file and the rk_edp.c file needs patching. I've put my current patches and uboot configuration at http://people.hupstream.com/~rtp/pbp/ in case you want to t