All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/6] rockchip: defconfig: puma-rk3399: enable RK808 support
@ 2017-05-31 16:18 Philipp Tomsich
  2017-05-31 16:18 ` [U-Boot] [PATCH 2/6] rockchip: defconfig: puma-rk3399: update defconfig with video-support Philipp Tomsich
                   ` (5 more replies)
  0 siblings, 6 replies; 21+ messages in thread
From: Philipp Tomsich @ 2017-05-31 16:18 UTC (permalink / raw)
  To: u-boot

On the RK3399-Q7, we need PMIC support (for the RK808) to enable HDMI
output, as one of the required powerrails is not enabled on boot.
For this, we need to enable the RK808 driver.

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>

Version-changes: 3
- With the recent upstream changes to the RK808 (PMIC) driver, the
  associated configuration options have been renamed to RK8XX.  Track
  this change in the RK3399-Q7 defconfig.

---

Changes in v2: None

 configs/puma-rk3399_defconfig | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/configs/puma-rk3399_defconfig b/configs/puma-rk3399_defconfig
index 7b4f595..ecc85bc 100644
--- a/configs/puma-rk3399_defconfig
+++ b/configs/puma-rk3399_defconfig
@@ -54,8 +54,11 @@ CONFIG_GMAC_ROCKCHIP=y
 CONFIG_PINCTRL=y
 CONFIG_SPL_PINCTRL=y
 CONFIG_PINCTRL_ROCKCHIP_RK3399=y
+CONFIG_DM_PMIC=y
+CONFIG_PMIC_RK8XX=y
 CONFIG_REGULATOR_PWM=y
 CONFIG_DM_REGULATOR_FIXED=y
+CONFIG_REGULATOR_RK8XX=y
 CONFIG_PWM_ROCKCHIP=y
 CONFIG_RAM=y
 CONFIG_SPL_RAM=y
-- 
1.9.1

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

* [U-Boot] [PATCH 2/6] rockchip: defconfig: puma-rk3399: update defconfig with video-support
  2017-05-31 16:18 [U-Boot] [PATCH 1/6] rockchip: defconfig: puma-rk3399: enable RK808 support Philipp Tomsich
@ 2017-05-31 16:18 ` Philipp Tomsich
  2017-06-02  2:55   ` Simon Glass
  2017-05-31 16:18 ` [U-Boot] [PATCH 3/6] rockchip: defconfig: puma-rk3399: enable CONFIG_PHY_MICREL_KSZ9031 Philipp Tomsich
                   ` (4 subsequent siblings)
  5 siblings, 1 reply; 21+ messages in thread
From: Philipp Tomsich @ 2017-05-31 16:18 UTC (permalink / raw)
  To: u-boot

With HDMI output for the RK3399 working, this update the RK3399-Q7
(Puma) defconfig for the new functionality:
1. enables PMIC command (to check if the HDMI voltages are correct)
      +CONFIG_CMD_PMIC=y
      +CONFIG_CMD_REGULATOR=y
2. enables video-output (via HDMI)
      +CONFIG_DM_VIDEO=y
      +CONFIG_DISPLAY=y
      +CONFIG_VIDEO_ROCKCHIP=y
      +CONFIG_DISPLAY_ROCKCHIP_HDMI=y
3. turns on the 'dcache'-command (for a dcache flush) for our QA to
   fill the framebuffer using 'mw.l'
      +CONFIG_CMD_CACHE=y
4. turns on the 'bmp'-command
      +CONFIG_CMD_BMP=y

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>

---

Changes in v2:
- enable CMD_BMP in the puma-rk3399_defconfig (following a rebase to
  the upstream master after CMD_BMP was migrate to Kconfig)

 configs/puma-rk3399_defconfig | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/configs/puma-rk3399_defconfig b/configs/puma-rk3399_defconfig
index ecc85bc..e0f1821 100644
--- a/configs/puma-rk3399_defconfig
+++ b/configs/puma-rk3399_defconfig
@@ -29,7 +29,11 @@ CONFIG_CMD_SPI=y
 CONFIG_CMD_USB=y
 CONFIG_CMD_USB_MASS_STORAGE=y
 # CONFIG_CMD_SETEXPR is not set
+CONFIG_CMD_BMP=y
+CONFIG_CMD_CACHE=y
 CONFIG_CMD_TIME=y
+CONFIG_CMD_PMIC=y
+CONFIG_CMD_REGULATOR=y
 CONFIG_SPL_OF_CONTROL=y
 CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
 CONFIG_REGMAP=y
@@ -82,4 +86,8 @@ CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_G_DNL_MANUFACTURER="Theobroma Systems"
 CONFIG_G_DNL_VENDOR_NUM=0x2294
 CONFIG_G_DNL_PRODUCT_NUM=0x3399
+CONFIG_DM_VIDEO=y
+CONFIG_DISPLAY=y
+CONFIG_VIDEO_ROCKCHIP=y
+CONFIG_DISPLAY_ROCKCHIP_HDMI=y
 CONFIG_ERRNO_STR=y
-- 
1.9.1

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

* [U-Boot] [PATCH 3/6] rockchip: defconfig: puma-rk3399: enable CONFIG_PHY_MICREL_KSZ9031
  2017-05-31 16:18 [U-Boot] [PATCH 1/6] rockchip: defconfig: puma-rk3399: enable RK808 support Philipp Tomsich
  2017-05-31 16:18 ` [U-Boot] [PATCH 2/6] rockchip: defconfig: puma-rk3399: update defconfig with video-support Philipp Tomsich
@ 2017-05-31 16:18 ` Philipp Tomsich
  2017-06-02  2:55   ` Simon Glass
  2017-05-31 16:18 ` [U-Boot] [PATCH 4/6] rockchip: defconfig: puma-rk3399: enable I2C Philipp Tomsich
                   ` (3 subsequent siblings)
  5 siblings, 1 reply; 21+ messages in thread
From: Philipp Tomsich @ 2017-05-31 16:18 UTC (permalink / raw)
  To: u-boot

The RK3399-Q7 has a KSZ9031 GbE PHY. Enable support for it in defconfig.

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
---

Changes in v2: None

 configs/puma-rk3399_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configs/puma-rk3399_defconfig b/configs/puma-rk3399_defconfig
index e0f1821..994aeac 100644
--- a/configs/puma-rk3399_defconfig
+++ b/configs/puma-rk3399_defconfig
@@ -52,6 +52,7 @@ CONFIG_MMC_SDHCI_ROCKCHIP=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_WINBOND=y
 CONFIG_PHY_MICREL=y
+CONFIG_PHY_MICREL_KSZ9031=y
 CONFIG_DM_ETH=y
 CONFIG_ETH_DESIGNWARE=y
 CONFIG_GMAC_ROCKCHIP=y
-- 
1.9.1

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

* [U-Boot] [PATCH 4/6] rockchip: defconfig: puma-rk3399: enable I2C
  2017-05-31 16:18 [U-Boot] [PATCH 1/6] rockchip: defconfig: puma-rk3399: enable RK808 support Philipp Tomsich
  2017-05-31 16:18 ` [U-Boot] [PATCH 2/6] rockchip: defconfig: puma-rk3399: update defconfig with video-support Philipp Tomsich
  2017-05-31 16:18 ` [U-Boot] [PATCH 3/6] rockchip: defconfig: puma-rk3399: enable CONFIG_PHY_MICREL_KSZ9031 Philipp Tomsich
@ 2017-05-31 16:18 ` Philipp Tomsich
  2017-06-02  2:55   ` Simon Glass
  2017-05-31 16:18 ` [U-Boot] [PATCH 5/6] rockchip: defconfig: puma-rk3399: do not filter clock-names for SPL Philipp Tomsich
                   ` (2 subsequent siblings)
  5 siblings, 1 reply; 21+ messages in thread
From: Philipp Tomsich @ 2017-05-31 16:18 UTC (permalink / raw)
  To: u-boot

The RK3399-Q7 exposes I2C on its edge connector and uses it as one of
the interfaces towards the on-module STM32 (for the emulated RTC and
fan-controller).

Enable I2C and CMD_I2C support in the defconfig.

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
---

Changes in v2: None

 configs/puma-rk3399_defconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/configs/puma-rk3399_defconfig b/configs/puma-rk3399_defconfig
index 994aeac..413d0ac 100644
--- a/configs/puma-rk3399_defconfig
+++ b/configs/puma-rk3399_defconfig
@@ -26,6 +26,7 @@ CONFIG_CMD_GPT=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_SF=y
 CONFIG_CMD_SPI=y
+CONFIG_CMD_I2C=y
 CONFIG_CMD_USB=y
 CONFIG_CMD_USB_MASS_STORAGE=y
 # CONFIG_CMD_SETEXPR is not set
@@ -43,6 +44,7 @@ CONFIG_SPL_SYSCON=y
 CONFIG_CLK=y
 CONFIG_SPL_CLK=y
 CONFIG_ROCKCHIP_GPIO=y
+CONFIG_SYS_I2C_ROCKCHIP=y
 CONFIG_MISC=y
 CONFIG_ROCKCHIP_EFUSE=y
 CONFIG_MMC_DW=y
-- 
1.9.1

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

* [U-Boot] [PATCH 5/6] rockchip: defconfig: puma-rk3399: do not filter clock-names for SPL
  2017-05-31 16:18 [U-Boot] [PATCH 1/6] rockchip: defconfig: puma-rk3399: enable RK808 support Philipp Tomsich
                   ` (2 preceding siblings ...)
  2017-05-31 16:18 ` [U-Boot] [PATCH 4/6] rockchip: defconfig: puma-rk3399: enable I2C Philipp Tomsich
@ 2017-05-31 16:18 ` Philipp Tomsich
  2017-06-02  2:55   ` Simon Glass
  2017-05-31 16:18 ` [U-Boot] [PATCH 6/6] rockchip: defconfig: puma-rk3399: CONFIG_SPL_FIT no longer exists Philipp Tomsich
  2017-06-02  2:55 ` [U-Boot] [PATCH 1/6] rockchip: defconfig: puma-rk3399: enable RK808 support Simon Glass
  5 siblings, 1 reply; 21+ messages in thread
From: Philipp Tomsich @ 2017-05-31 16:18 UTC (permalink / raw)
  To: u-boot

For the RK3399-Q7 module, we use full OF_CONTROL (i.e. not
OF_PLATDATA) for SPL.  In this configuration, the rockchip_dw_mmc
driver retrieves one of its clocks via clk_get_by_name and fails if
this is not possible.  For this reason, we can not filter clock-names
from the device-tree nodes used for the configuration of the SPL
stage.

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
---

Changes in v2: None

 configs/puma-rk3399_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configs/puma-rk3399_defconfig b/configs/puma-rk3399_defconfig
index 413d0ac..ab49f27 100644
--- a/configs/puma-rk3399_defconfig
+++ b/configs/puma-rk3399_defconfig
@@ -36,7 +36,7 @@ CONFIG_CMD_TIME=y
 CONFIG_CMD_PMIC=y
 CONFIG_CMD_REGULATOR=y
 CONFIG_SPL_OF_CONTROL=y
-CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
+CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
 CONFIG_REGMAP=y
 CONFIG_SPL_REGMAP=y
 CONFIG_SYSCON=y
-- 
1.9.1

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

* [U-Boot] [PATCH 6/6] rockchip: defconfig: puma-rk3399: CONFIG_SPL_FIT no longer exists
  2017-05-31 16:18 [U-Boot] [PATCH 1/6] rockchip: defconfig: puma-rk3399: enable RK808 support Philipp Tomsich
                   ` (3 preceding siblings ...)
  2017-05-31 16:18 ` [U-Boot] [PATCH 5/6] rockchip: defconfig: puma-rk3399: do not filter clock-names for SPL Philipp Tomsich
@ 2017-05-31 16:18 ` Philipp Tomsich
  2017-06-02  2:55   ` Simon Glass
  2017-06-02  2:55 ` [U-Boot] [PATCH 1/6] rockchip: defconfig: puma-rk3399: enable RK808 support Simon Glass
  5 siblings, 1 reply; 21+ messages in thread
From: Philipp Tomsich @ 2017-05-31 16:18 UTC (permalink / raw)
  To: u-boot

With the merging of Andre's SPL_FIT support, the CONFIG_SPL_FIT option
is no longer required for the RK3399-Q7.  Remove it from the defconfig.

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
---

Changes in v2: None

 configs/puma-rk3399_defconfig | 1 -
 1 file changed, 1 deletion(-)

diff --git a/configs/puma-rk3399_defconfig b/configs/puma-rk3399_defconfig
index ab49f27..8816886 100644
--- a/configs/puma-rk3399_defconfig
+++ b/configs/puma-rk3399_defconfig
@@ -10,7 +10,6 @@ CONFIG_SPL_SPI_SUPPORT=y
 CONFIG_SPL_STACK_R_ADDR=0x80000
 CONFIG_DEFAULT_DEVICE_TREE="rk3399-puma"
 CONFIG_FIT=y
-CONFIG_SPL_FIT=y
 CONFIG_SPL_LOAD_FIT=y
 CONFIG_SPL_FIT_SOURCE="board/theobroma-systems/puma_rk3399/fit_spl_atf.its"
 # CONFIG_DISPLAY_CPUINFO is not set
-- 
1.9.1

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

* [U-Boot] [PATCH 1/6] rockchip: defconfig: puma-rk3399: enable RK808 support
  2017-05-31 16:18 [U-Boot] [PATCH 1/6] rockchip: defconfig: puma-rk3399: enable RK808 support Philipp Tomsich
                   ` (4 preceding siblings ...)
  2017-05-31 16:18 ` [U-Boot] [PATCH 6/6] rockchip: defconfig: puma-rk3399: CONFIG_SPL_FIT no longer exists Philipp Tomsich
@ 2017-06-02  2:55 ` Simon Glass
  2017-06-05 21:31   ` sjg at google.com
  5 siblings, 1 reply; 21+ messages in thread
From: Simon Glass @ 2017-06-02  2:55 UTC (permalink / raw)
  To: u-boot

On 31 May 2017 at 10:18, Philipp Tomsich
<philipp.tomsich@theobroma-systems.com> wrote:
> On the RK3399-Q7, we need PMIC support (for the RK808) to enable HDMI
> output, as one of the required powerrails is not enabled on boot.
> For this, we need to enable the RK808 driver.
>
> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
>
> Version-changes: 3
> - With the recent upstream changes to the RK808 (PMIC) driver, the
>   associated configuration options have been renamed to RK8XX.  Track
>   this change in the RK3399-Q7 defconfig.
>
> ---
>
> Changes in v2: None
>
>  configs/puma-rk3399_defconfig | 3 +++
>  1 file changed, 3 insertions(+)

Reviewed-by: Simon Glass <sjg@chromium.org>

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

* [U-Boot] [PATCH 2/6] rockchip: defconfig: puma-rk3399: update defconfig with video-support
  2017-05-31 16:18 ` [U-Boot] [PATCH 2/6] rockchip: defconfig: puma-rk3399: update defconfig with video-support Philipp Tomsich
@ 2017-06-02  2:55   ` Simon Glass
  2017-06-05 21:33     ` Simon Glass
  0 siblings, 1 reply; 21+ messages in thread
From: Simon Glass @ 2017-06-02  2:55 UTC (permalink / raw)
  To: u-boot

On 31 May 2017 at 10:18, Philipp Tomsich
<philipp.tomsich@theobroma-systems.com> wrote:
> With HDMI output for the RK3399 working, this update the RK3399-Q7
> (Puma) defconfig for the new functionality:
> 1. enables PMIC command (to check if the HDMI voltages are correct)
>       +CONFIG_CMD_PMIC=y
>       +CONFIG_CMD_REGULATOR=y
> 2. enables video-output (via HDMI)
>       +CONFIG_DM_VIDEO=y
>       +CONFIG_DISPLAY=y
>       +CONFIG_VIDEO_ROCKCHIP=y
>       +CONFIG_DISPLAY_ROCKCHIP_HDMI=y
> 3. turns on the 'dcache'-command (for a dcache flush) for our QA to
>    fill the framebuffer using 'mw.l'
>       +CONFIG_CMD_CACHE=y
> 4. turns on the 'bmp'-command
>       +CONFIG_CMD_BMP=y
>
> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
>
> ---
>
> Changes in v2:
> - enable CMD_BMP in the puma-rk3399_defconfig (following a rebase to
>   the upstream master after CMD_BMP was migrate to Kconfig)
>
>  configs/puma-rk3399_defconfig | 8 ++++++++
>  1 file changed, 8 insertions(+)

Reviewed-by: Simon Glass <sjg@chromium.org>

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

* [U-Boot] [PATCH 3/6] rockchip: defconfig: puma-rk3399: enable CONFIG_PHY_MICREL_KSZ9031
  2017-05-31 16:18 ` [U-Boot] [PATCH 3/6] rockchip: defconfig: puma-rk3399: enable CONFIG_PHY_MICREL_KSZ9031 Philipp Tomsich
@ 2017-06-02  2:55   ` Simon Glass
  2017-06-05 21:31     ` sjg at google.com
  0 siblings, 1 reply; 21+ messages in thread
From: Simon Glass @ 2017-06-02  2:55 UTC (permalink / raw)
  To: u-boot

On 31 May 2017 at 10:18, Philipp Tomsich
<philipp.tomsich@theobroma-systems.com> wrote:
> The RK3399-Q7 has a KSZ9031 GbE PHY. Enable support for it in defconfig.
>
> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> ---
>
> Changes in v2: None
>
>  configs/puma-rk3399_defconfig | 1 +
>  1 file changed, 1 insertion(+)

Reviewed-by: Simon Glass <sjg@chromium.org>

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

* [U-Boot] [PATCH 4/6] rockchip: defconfig: puma-rk3399: enable I2C
  2017-05-31 16:18 ` [U-Boot] [PATCH 4/6] rockchip: defconfig: puma-rk3399: enable I2C Philipp Tomsich
@ 2017-06-02  2:55   ` Simon Glass
  2017-06-05 21:31     ` sjg at google.com
  0 siblings, 1 reply; 21+ messages in thread
From: Simon Glass @ 2017-06-02  2:55 UTC (permalink / raw)
  To: u-boot

On 31 May 2017 at 10:18, Philipp Tomsich
<philipp.tomsich@theobroma-systems.com> wrote:
> The RK3399-Q7 exposes I2C on its edge connector and uses it as one of
> the interfaces towards the on-module STM32 (for the emulated RTC and
> fan-controller).
>
> Enable I2C and CMD_I2C support in the defconfig.
>
> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> ---
>
> Changes in v2: None
>
>  configs/puma-rk3399_defconfig | 2 ++
>  1 file changed, 2 insertions(+)

Reviewed-by: Simon Glass <sjg@chromium.org>

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

* [U-Boot] [PATCH 5/6] rockchip: defconfig: puma-rk3399: do not filter clock-names for SPL
  2017-05-31 16:18 ` [U-Boot] [PATCH 5/6] rockchip: defconfig: puma-rk3399: do not filter clock-names for SPL Philipp Tomsich
@ 2017-06-02  2:55   ` Simon Glass
  2017-06-05 21:31     ` sjg at google.com
  0 siblings, 1 reply; 21+ messages in thread
From: Simon Glass @ 2017-06-02  2:55 UTC (permalink / raw)
  To: u-boot

On 31 May 2017 at 10:18, Philipp Tomsich
<philipp.tomsich@theobroma-systems.com> wrote:
> For the RK3399-Q7 module, we use full OF_CONTROL (i.e. not
> OF_PLATDATA) for SPL.  In this configuration, the rockchip_dw_mmc
> driver retrieves one of its clocks via clk_get_by_name and fails if
> this is not possible.  For this reason, we can not filter clock-names
> from the device-tree nodes used for the configuration of the SPL
> stage.
>
> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> ---
>
> Changes in v2: None
>
>  configs/puma-rk3399_defconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg@chromium.org>

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

* [U-Boot] [PATCH 6/6] rockchip: defconfig: puma-rk3399: CONFIG_SPL_FIT no longer exists
  2017-05-31 16:18 ` [U-Boot] [PATCH 6/6] rockchip: defconfig: puma-rk3399: CONFIG_SPL_FIT no longer exists Philipp Tomsich
@ 2017-06-02  2:55   ` Simon Glass
  2017-06-05 21:31     ` sjg at google.com
  0 siblings, 1 reply; 21+ messages in thread
From: Simon Glass @ 2017-06-02  2:55 UTC (permalink / raw)
  To: u-boot

On 31 May 2017 at 10:18, Philipp Tomsich
<philipp.tomsich@theobroma-systems.com> wrote:
> With the merging of Andre's SPL_FIT support, the CONFIG_SPL_FIT option
> is no longer required for the RK3399-Q7.  Remove it from the defconfig.
>
> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> ---
>
> Changes in v2: None
>
>  configs/puma-rk3399_defconfig | 1 -
>  1 file changed, 1 deletion(-)
>

Reviewed-by: Simon Glass <sjg@chromium.org>

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

* [U-Boot] [PATCH 6/6] rockchip: defconfig: puma-rk3399: CONFIG_SPL_FIT no longer exists
  2017-06-02  2:55   ` Simon Glass
@ 2017-06-05 21:31     ` sjg at google.com
  0 siblings, 0 replies; 21+ messages in thread
From: sjg at google.com @ 2017-06-05 21:31 UTC (permalink / raw)
  To: u-boot

On 31 May 2017 at 10:18, Philipp Tomsich
<philipp.tomsich@theobroma-systems.com> wrote:
> With the merging of Andre's SPL_FIT support, the CONFIG_SPL_FIT option
> is no longer required for the RK3399-Q7.  Remove it from the defconfig.
>
> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> ---
>
> Changes in v2: None
>
>  configs/puma-rk3399_defconfig | 1 -
>  1 file changed, 1 deletion(-)
>

Reviewed-by: Simon Glass <sjg@chromium.org>

Applied to u-boot-rockchip, thanks!

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

* [U-Boot] [PATCH 5/6] rockchip: defconfig: puma-rk3399: do not filter clock-names for SPL
  2017-06-02  2:55   ` Simon Glass
@ 2017-06-05 21:31     ` sjg at google.com
  0 siblings, 0 replies; 21+ messages in thread
From: sjg at google.com @ 2017-06-05 21:31 UTC (permalink / raw)
  To: u-boot

On 31 May 2017 at 10:18, Philipp Tomsich
<philipp.tomsich@theobroma-systems.com> wrote:
> For the RK3399-Q7 module, we use full OF_CONTROL (i.e. not
> OF_PLATDATA) for SPL.  In this configuration, the rockchip_dw_mmc
> driver retrieves one of its clocks via clk_get_by_name and fails if
> this is not possible.  For this reason, we can not filter clock-names
> from the device-tree nodes used for the configuration of the SPL
> stage.
>
> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> ---
>
> Changes in v2: None
>
>  configs/puma-rk3399_defconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg@chromium.org>

Applied to u-boot-rockchip, thanks!

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

* [U-Boot] [PATCH 4/6] rockchip: defconfig: puma-rk3399: enable I2C
  2017-06-02  2:55   ` Simon Glass
@ 2017-06-05 21:31     ` sjg at google.com
  0 siblings, 0 replies; 21+ messages in thread
From: sjg at google.com @ 2017-06-05 21:31 UTC (permalink / raw)
  To: u-boot

On 31 May 2017 at 10:18, Philipp Tomsich
<philipp.tomsich@theobroma-systems.com> wrote:
> The RK3399-Q7 exposes I2C on its edge connector and uses it as one of
> the interfaces towards the on-module STM32 (for the emulated RTC and
> fan-controller).
>
> Enable I2C and CMD_I2C support in the defconfig.
>
> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> ---
>
> Changes in v2: None
>
>  configs/puma-rk3399_defconfig | 2 ++
>  1 file changed, 2 insertions(+)

Reviewed-by: Simon Glass <sjg@chromium.org>

Applied to u-boot-rockchip, thanks!

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

* [U-Boot] [PATCH 3/6] rockchip: defconfig: puma-rk3399: enable CONFIG_PHY_MICREL_KSZ9031
  2017-06-02  2:55   ` Simon Glass
@ 2017-06-05 21:31     ` sjg at google.com
  0 siblings, 0 replies; 21+ messages in thread
From: sjg at google.com @ 2017-06-05 21:31 UTC (permalink / raw)
  To: u-boot

On 31 May 2017 at 10:18, Philipp Tomsich
<philipp.tomsich@theobroma-systems.com> wrote:
> The RK3399-Q7 has a KSZ9031 GbE PHY. Enable support for it in defconfig.
>
> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> ---
>
> Changes in v2: None
>
>  configs/puma-rk3399_defconfig | 1 +
>  1 file changed, 1 insertion(+)

Reviewed-by: Simon Glass <sjg@chromium.org>

Applied to u-boot-rockchip, thanks!

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

* [U-Boot] [PATCH 1/6] rockchip: defconfig: puma-rk3399: enable RK808 support
  2017-06-02  2:55 ` [U-Boot] [PATCH 1/6] rockchip: defconfig: puma-rk3399: enable RK808 support Simon Glass
@ 2017-06-05 21:31   ` sjg at google.com
  0 siblings, 0 replies; 21+ messages in thread
From: sjg at google.com @ 2017-06-05 21:31 UTC (permalink / raw)
  To: u-boot

On 31 May 2017 at 10:18, Philipp Tomsich
<philipp.tomsich@theobroma-systems.com> wrote:
> On the RK3399-Q7, we need PMIC support (for the RK808) to enable HDMI
> output, as one of the required powerrails is not enabled on boot.
> For this, we need to enable the RK808 driver.
>
> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
>
> Version-changes: 3
> - With the recent upstream changes to the RK808 (PMIC) driver, the
>   associated configuration options have been renamed to RK8XX.  Track
>   this change in the RK3399-Q7 defconfig.
>
> ---
>
> Changes in v2: None
>
>  configs/puma-rk3399_defconfig | 3 +++
>  1 file changed, 3 insertions(+)

Reviewed-by: Simon Glass <sjg@chromium.org>

Applied to u-boot-rockchip, thanks!

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

* [U-Boot] [PATCH 2/6] rockchip: defconfig: puma-rk3399: update defconfig with video-support
  2017-06-02  2:55   ` Simon Glass
@ 2017-06-05 21:33     ` Simon Glass
  2017-06-05 23:01       ` Dr. Philipp Tomsich
  0 siblings, 1 reply; 21+ messages in thread
From: Simon Glass @ 2017-06-05 21:33 UTC (permalink / raw)
  To: u-boot

Hi Phlilpp,

On 1 June 2017 at 20:55, Simon Glass <sjg@chromium.org> wrote:
> On 31 May 2017 at 10:18, Philipp Tomsich
> <philipp.tomsich@theobroma-systems.com> wrote:
>> With HDMI output for the RK3399 working, this update the RK3399-Q7
>> (Puma) defconfig for the new functionality:
>> 1. enables PMIC command (to check if the HDMI voltages are correct)
>>       +CONFIG_CMD_PMIC=y
>>       +CONFIG_CMD_REGULATOR=y
>> 2. enables video-output (via HDMI)
>>       +CONFIG_DM_VIDEO=y
>>       +CONFIG_DISPLAY=y
>>       +CONFIG_VIDEO_ROCKCHIP=y
>>       +CONFIG_DISPLAY_ROCKCHIP_HDMI=y
>> 3. turns on the 'dcache'-command (for a dcache flush) for our QA to
>>    fill the framebuffer using 'mw.l'
>>       +CONFIG_CMD_CACHE=y
>> 4. turns on the 'bmp'-command
>>       +CONFIG_CMD_BMP=y
>>
>> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
>>
>> ---
>>
>> Changes in v2:
>> - enable CMD_BMP in the puma-rk3399_defconfig (following a rebase to
>>   the upstream master after CMD_BMP was migrate to Kconfig)
>>
>>  configs/puma-rk3399_defconfig | 8 ++++++++
>>  1 file changed, 8 insertions(+)
>
> Reviewed-by: Simon Glass <sjg@chromium.org>

Sadly another build error:

+drivers/video/rockchip/rk_hdmi.c:150: undefined reference to `rk_setreg'
+drivers/video/rockchip/rk_hdmi.c:153: undefined reference to `rk_clrsetreg'

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

* [U-Boot] [PATCH 2/6] rockchip: defconfig: puma-rk3399: update defconfig with video-support
  2017-06-05 21:33     ` Simon Glass
@ 2017-06-05 23:01       ` Dr. Philipp Tomsich
  2017-06-06  0:05         ` Simon Glass
  0 siblings, 1 reply; 21+ messages in thread
From: Dr. Philipp Tomsich @ 2017-06-05 23:01 UTC (permalink / raw)
  To: u-boot

Simon,

This was only tested with the new RK3399 HDMI support in place.
There’s a missing #include in the original rk_hdmi.c (before I submitted my patches for HDMI), which causes these functions to not be defined.

What’s the preferred way that you’d like this resolved:
(a) wait until the HDMI-changes (in Anatolij’s tree) are merged to master, before applying this patch?
(b) fix the issue in the older rk_hdmi.c (which doesn’t really have RK3399 support anyway) and deal with the conflict when the changeset from Anatolij’s tree trickled back down into the rockchip tree?

Thanks,
Philipp.

> On 05 Jun 2017, at 23:33, Simon Glass <sjg@chromium.org> wrote:
> 
> Hi Phlilpp,
> 
> On 1 June 2017 at 20:55, Simon Glass <sjg@chromium.org> wrote:
>> On 31 May 2017 at 10:18, Philipp Tomsich
>> <philipp.tomsich@theobroma-systems.com> wrote:
>>> With HDMI output for the RK3399 working, this update the RK3399-Q7
>>> (Puma) defconfig for the new functionality:
>>> 1. enables PMIC command (to check if the HDMI voltages are correct)
>>>      +CONFIG_CMD_PMIC=y
>>>      +CONFIG_CMD_REGULATOR=y
>>> 2. enables video-output (via HDMI)
>>>      +CONFIG_DM_VIDEO=y
>>>      +CONFIG_DISPLAY=y
>>>      +CONFIG_VIDEO_ROCKCHIP=y
>>>      +CONFIG_DISPLAY_ROCKCHIP_HDMI=y
>>> 3. turns on the 'dcache'-command (for a dcache flush) for our QA to
>>>   fill the framebuffer using 'mw.l'
>>>      +CONFIG_CMD_CACHE=y
>>> 4. turns on the 'bmp'-command
>>>      +CONFIG_CMD_BMP=y
>>> 
>>> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
>>> 
>>> ---
>>> 
>>> Changes in v2:
>>> - enable CMD_BMP in the puma-rk3399_defconfig (following a rebase to
>>>  the upstream master after CMD_BMP was migrate to Kconfig)
>>> 
>>> configs/puma-rk3399_defconfig | 8 ++++++++
>>> 1 file changed, 8 insertions(+)
>> 
>> Reviewed-by: Simon Glass <sjg@chromium.org>
> 
> Sadly another build error:
> 
> +drivers/video/rockchip/rk_hdmi.c:150: undefined reference to `rk_setreg'
> +drivers/video/rockchip/rk_hdmi.c:153: undefined reference to `rk_clrsetreg'

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

* [U-Boot] [PATCH 2/6] rockchip: defconfig: puma-rk3399: update defconfig with video-support
  2017-06-05 23:01       ` Dr. Philipp Tomsich
@ 2017-06-06  0:05         ` Simon Glass
  2017-06-06  7:21           ` Dr. Philipp Tomsich
  0 siblings, 1 reply; 21+ messages in thread
From: Simon Glass @ 2017-06-06  0:05 UTC (permalink / raw)
  To: u-boot

Hi,

On Jun 5, 2017 17:01, "Dr. Philipp Tomsich" <
philipp.tomsich@theobroma-systems.com> wrote:

Simon,

This was only tested with the new RK3399 HDMI support in place.
There’s a missing #include in the original rk_hdmi.c (before I submitted my
patches for HDMI), which causes these functions to not be defined.

What’s the preferred way that you’d like this resolved:
(a) wait until the HDMI-changes (in Anatolij’s tree) are merged to master,
before applying this patch?
(b) fix the issue in the older rk_hdmi.c (which doesn’t really have RK3399
support anyway) and deal with the conflict when the changeset from
Anatolij’s tree trickled back down into the rockchip tree?


Can you send your pending patches rebased to rockchip/master and add a new
patch to add the missing header? Then it will eitherbgoba at in my rebased
or be sorted out by Tom.

Regards,
Simon


Thanks,
Philipp.

> On 05 Jun 2017, at 23:33, Simon Glass <sjg@chromium.org> wrote:
>
> Hi Phlilpp,
>
> On 1 June 2017 at 20:55, Simon Glass <sjg@chromium.org> wrote:
>> On 31 May 2017 at 10:18, Philipp Tomsich
>> <philipp.tomsich@theobroma-systems.com> wrote:
>>> With HDMI output for the RK3399 working, this update the RK3399-Q7
>>> (Puma) defconfig for the new functionality:
>>> 1. enables PMIC command (to check if the HDMI voltages are correct)
>>>      +CONFIG_CMD_PMIC=y
>>>      +CONFIG_CMD_REGULATOR=y
>>> 2. enables video-output (via HDMI)
>>>      +CONFIG_DM_VIDEO=y
>>>      +CONFIG_DISPLAY=y
>>>      +CONFIG_VIDEO_ROCKCHIP=y
>>>      +CONFIG_DISPLAY_ROCKCHIP_HDMI=y
>>> 3. turns on the 'dcache'-command (for a dcache flush) for our QA to
>>>   fill the framebuffer using 'mw.l'
>>>      +CONFIG_CMD_CACHE=y
>>> 4. turns on the 'bmp'-command
>>>      +CONFIG_CMD_BMP=y
>>>
>>> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
>>>
>>> ---
>>>
>>> Changes in v2:
>>> - enable CMD_BMP in the puma-rk3399_defconfig (following a rebase to
>>>  the upstream master after CMD_BMP was migrate to Kconfig)
>>>
>>> configs/puma-rk3399_defconfig | 8 ++++++++
>>> 1 file changed, 8 insertions(+)
>>
>> Reviewed-by: Simon Glass <sjg@chromium.org>
>
> Sadly another build error:
>
> +drivers/video/rockchip/rk_hdmi.c:150: undefined reference to `rk_setreg'
> +drivers/video/rockchip/rk_hdmi.c:153: undefined reference to
`rk_clrsetreg'

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

* [U-Boot] [PATCH 2/6] rockchip: defconfig: puma-rk3399: update defconfig with video-support
  2017-06-06  0:05         ` Simon Glass
@ 2017-06-06  7:21           ` Dr. Philipp Tomsich
  0 siblings, 0 replies; 21+ messages in thread
From: Dr. Philipp Tomsich @ 2017-06-06  7:21 UTC (permalink / raw)
  To: u-boot

Simon,

> On 06 Jun 2017, at 02:05, Simon Glass <sjg@chromium.org> wrote:
> 
> What’s the preferred way that you’d like this resolved:
> (a) wait until the HDMI-changes (in Anatolij’s tree) are merged to master, before applying this patch?
> (b) fix the issue in the older rk_hdmi.c (which doesn’t really have RK3399 support anyway) and deal with the conflict when the changeset from Anatolij’s tree trickled back down into the rockchip tree?
> 
> Can you send your pending patches rebased to rockchip/master and add a new patch to add the missing header? Then it will eitherbgoba at in my rebased or be sorted out by Tom. 

I split this specific patch off into a new series that bundles this together with the fix for the ‘implicit definition’ warning for pre-RK3399 rk_hdmi.c.  I hope that this will make tracking and resolving the eventual conflict a bit easier.

Regards,
Philipp.

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

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

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-31 16:18 [U-Boot] [PATCH 1/6] rockchip: defconfig: puma-rk3399: enable RK808 support Philipp Tomsich
2017-05-31 16:18 ` [U-Boot] [PATCH 2/6] rockchip: defconfig: puma-rk3399: update defconfig with video-support Philipp Tomsich
2017-06-02  2:55   ` Simon Glass
2017-06-05 21:33     ` Simon Glass
2017-06-05 23:01       ` Dr. Philipp Tomsich
2017-06-06  0:05         ` Simon Glass
2017-06-06  7:21           ` Dr. Philipp Tomsich
2017-05-31 16:18 ` [U-Boot] [PATCH 3/6] rockchip: defconfig: puma-rk3399: enable CONFIG_PHY_MICREL_KSZ9031 Philipp Tomsich
2017-06-02  2:55   ` Simon Glass
2017-06-05 21:31     ` sjg at google.com
2017-05-31 16:18 ` [U-Boot] [PATCH 4/6] rockchip: defconfig: puma-rk3399: enable I2C Philipp Tomsich
2017-06-02  2:55   ` Simon Glass
2017-06-05 21:31     ` sjg at google.com
2017-05-31 16:18 ` [U-Boot] [PATCH 5/6] rockchip: defconfig: puma-rk3399: do not filter clock-names for SPL Philipp Tomsich
2017-06-02  2:55   ` Simon Glass
2017-06-05 21:31     ` sjg at google.com
2017-05-31 16:18 ` [U-Boot] [PATCH 6/6] rockchip: defconfig: puma-rk3399: CONFIG_SPL_FIT no longer exists Philipp Tomsich
2017-06-02  2:55   ` Simon Glass
2017-06-05 21:31     ` sjg at google.com
2017-06-02  2:55 ` [U-Boot] [PATCH 1/6] rockchip: defconfig: puma-rk3399: enable RK808 support Simon Glass
2017-06-05 21:31   ` sjg at google.com

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.