[U-Boot] [PATCH 0/5]
Subsystems (2)
cover [U-Boot] [PATCH 0/5]
This serials patches add mipi dsi support for rk3399. Except the
basic mipi driver, we need also enable pmic rk808 for lcd power and enable i2c for rk808 communication. what's more, the needed clk and pwm for backlight is init in spl stage, make sure spl work first.
Eric Gao (3):
rockchip: video: Add mipi dsi driver
rockchip: Add dts config for mipi dsi
rockchip: Enable mipi dsi configs
eric.gao (2):
rockchip: i2c: enable i2c for rk3399
rockchip: pmic: Enable RK808 for rk3399 evb
arch/arm/dts/rk3399-evb.dts | 123 ++++++ arch/arm/dts/rk3399.dtsi | 88 +++++ arch/arm/include/asm/arch-rockchip/cru_rk3399.h | 1 + arch/arm/include/asm/arch-rockchip/grf_rk3399.h | 25 ++ arch/arm/include/asm/arch-rockchip/mipi_rk3399.h | 189 +++++++++ arch/arm/include/asm/arch-rockchip/vop_rk3288.h | 1 + configs/evb-rk3399_defconfig | 12 + drivers/i2c/rk_i2c.c | 1 + drivers/video/Kconfig | 2 + drivers/video/rockchip/Kconfig | 47 +++ drivers/video/rockchip/Makefile | 6 +- drivers/video/rockchip/rk_mipi.c | 465 +++++++++++++++++++++++ drivers/video/rockchip/rk_vop.c | 39 +- 13 files changed, 992 insertions(+), 7 deletions(-) create mode 100644 arch/arm/include/asm/arch-rockchip/mipi_rk3399.h create mode 100644 drivers/video/rockchip/Kconfig create mode 100644 drivers/video/rockchip/rk_mipi.c
Signature · 1 line
1.9.1
PATCH 1/5 rockchip: i2c: enable i2c for rk3399
From: "eric.gao" <[email protected]>
To enable mipi display, we need to enable pmic
rk808 first for lcd3v3 power,which use i2c0 to
communicate with soc. So enable i2c0.
---
arch/arm/dts/rk3399.dtsi | 16 ++++++++++++++++ configs/evb-rk3399_defconfig | 1 + drivers/i2c/rk_i2c.c | 1 + 3 files changed, 18 insertions(+)
arch/arm/dts/rk3399.dtsi +16 -0
@@ -26,6 +26,7 @@ serial4 = &uart4; mmc0 = &sdhci; mmc1 = &sdmmc; + i2c0 = &i2c0; }; cpus {
@@ -651,6 +652,21 @@ status = "disabled"; }; + i2c0: i2c at ff3c0000 { + compatible = "rockchip,rk3399-i2c"; + reg = <0x0 0xff3c0000 0x0 0x1000>; + assigned-clocks = <&pmucru SCLK_I2C0_PMU>; + assigned-clock-rates = <200000000>; + clocks = <&pmucru SCLK_I2C0_PMU>, <&pmucru PCLK_I2C0_PMU>; + clock-names = "i2c", "pclk"; + interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH 0>; + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_xfer>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + pinctrl: pinctrl { u-boot,dm-pre-reloc; compatible = "rockchip,rk3399-pinctrl";
configs/evb-rk3399_defconfig +1 -0
@@ -58,3 +58,4 @@ CONFIG_USB_EHCI_GENERIC=y CONFIG_USB_STORAGE=y CONFIG_USE_TINY_PRINTF=y CONFIG_ERRNO_STR=y +CONFIG_SYS_I2C_ROCKCHIP=y
drivers/i2c/rk_i2c.c +1 -0
@@ -381,6 +381,7 @@ static const struct dm_i2c_ops rockchip_i2c_ops = {static const struct udevice_id rockchip_i2c_ids[] = { { .compatible ="rockchip,rk3288-i2c" }, + { .compatible ="rockchip,rk3399-i2c" }, { } };
Signature · 1 line
1.9.1
PATCH 1/5 rockchip: i2c: enable i2c for rk3399
Hello Eric,
Am 08.04.2017 um 14:22 schrieb Eric Gao:
Quoted 9 lines
From: "eric.gao" <[email protected]>
To enable mipi display, we need to enable pmic
rk808 first for lcd3v3 power,which use i2c0 to
communicate with soc. So enable i2c0.Signed-off-by eric.gao <[email protected]>Signed-off-by Eric Gao <[email protected]>
Why you have 2 "Signed-off-by" lines?
Quoted 6 lines
---
arch/arm/dts/rk3399.dtsi | 16 ++++++++++++++++ configs/evb-rk3399_defconfig | 1 + drivers/i2c/rk_i2c.c | 1 + 3 files changed, 18 insertions(+)
bye,
Heiko
Signature · 2 lines
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
PATCH 1/5 rockchip: i2c: enable i2c for rk3399
Dear all,
I am very very sorry. Because I used patman tool to send the
patches , which use "send-email" by default.
but "send-email" combine “263.com smtp server” will always
encounter problem. It‘s show as that when the
patch's quantity more than 3, patches can not be send completely(log
said: session count exceed limit).
I have ever tried many times and get the same result. Finally, I changed to use msmtp, it can works
well. So, forget all these incomplete junk email and refer to the latest one please. Sorry to bother all your guys.
Many Thanks.
Quoted 26 lines · Heiko Schocher
Hello Eric,
Am 08.04.2017 um 14:22 schrieb Eric Gao:
Quoted 9 lines
From: "eric.gao" <[email protected]>
To enable mipi display, we need to enable pmic
rk808 first for lcd3v3 power,which use i2c0 to
communicate with soc. So enable i2c0.Signed-off-by eric.gao <[email protected]>Signed-off-by Eric Gao <[email protected]>Why you have 2 "Signed-off-by" lines?
Quoted 6 lines
---
arch/arm/dts/rk3399.dtsi | 16 ++++++++++++++++ configs/evb-rk3399_defconfig | 1 + drivers/i2c/rk_i2c.c | 1 + 3 files changed, 18 insertions(+)Reviewed-by Heiko Schocher <[email protected]>bye,
Heiko