[PATCH v1 1/2] drm/aspeed: Add gfx flags and clock selection for AST2600

2022-03-03 Thread Tommy Haung
Add clock selection code for AST2600. At AST2600 user could select more than one dispaly timing. Add gfx flags for future usage. Signed-off-by: Tommy Haung --- drivers/gpu/drm/aspeed/aspeed_gfx.h | 11 +++ drivers/gpu/drm/aspeed/aspeed_gfx_crtc.c | 14 ++ drivers/gpu

[PATCH v1 0/2] Add 1024x768 timing for AST2600

2022-03-03 Thread Tommy Haung
=y CONFIG_LOGO_LINUX_CLUT224=y 2. The Linux logo will be shown on the screen, when the BMC boot in Linux. 3. Check the display mode is 1024x768@70Hz at AST2600. 4. Check the display mode is 800x600@60Hz at AST2500. Tommy Haung (2): drm/aspeed: Add gfx flags and clock selection for

[PATCH v1 2/2] drm/aspeed: Add 1024x768 mode for AST2600

2022-03-03 Thread Tommy Haung
Update the aspeed_gfx_set_clk with display width. At AST2600, the display clock could be coming from HPLL clock / 16 = 75MHz. It would fit 1024x768@70Hz. Another chip will still keep 800x600. Signed-off-by: Tommy Haung --- drivers/gpu/drm/aspeed/aspeed_gfx.h | 12 ++ drivers/gpu

[PATCH v6 5/5] ARM: dtsi: aspeed: Modified gfx reset control

2022-03-01 Thread Tommy Haung
bit (SCU040[13]). And another part HW controller will be reset by Graphics controller bit (SCU040[26]). These two reset bit need be de-assert then the SOC display will be active. Signed-off-by: Tommy Haung --- arch/arm/boot/dts/aspeed-g6.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH v6 4/5] drm/aspeed: Add AST2600 chip support

2022-03-01 Thread Tommy Haung
Add AST2600 chip support and setting. Signed-off-by: Tommy Haung --- drivers/gpu/drm/aspeed/aspeed_gfx_drv.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c b/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c index d4b56b3c7597..d10246b1d1c2 100644

[PATCH v6 0/5] Add Aspeed AST2600 soc display support

2022-03-01 Thread Tommy Haung
the patch for clear separate purpose. Skip to send devicetree patch v2: Remove some unnecessary patch. Refine for reviwer request. v1: First add patch. Joel Stanley (2): ARM: dts: aspeed: Add GFX node to AST2600 ARM: dts: aspeed: ast2600-evb: Enable GFX device Tommy Haung (3): drm

[PATCH v6 1/5] ARM: dts: aspeed: Add GFX node to AST2600

2022-03-01 Thread Tommy Haung
From: Joel Stanley The GFX device is present in the AST2600 SoC. Signed-off-by: Joel Stanley Signed-off-by: Tommy Haung --- arch/arm/boot/dts/aspeed-g6.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-g6.dtsi b/arch/arm/boot/dts/aspeed-g6.dtsi

[PATCH v6 3/5] drm/aspeed: Update INTR_STS handling

2022-03-01 Thread Tommy Haung
Add interrupt clear register define for further chip support. Signed-off-by: Tommy Haung --- drivers/gpu/drm/aspeed/aspeed_gfx.h | 1 + drivers/gpu/drm/aspeed/aspeed_gfx_drv.c | 6 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/aspeed/aspeed_gfx.h b

[PATCH v6 2/5] ARM: dts: aspeed: ast2600-evb: Enable GFX device

2022-03-01 Thread Tommy Haung
From: Joel Stanley Enable the GFX device with a framebuffer memory region. Signed-off-by: Joel Stanley Signed-off-by: Tommy Haung --- arch/arm/boot/dts/aspeed-ast2600-evb.dts | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-ast2600-evb.dts b

[PATCH v5 6/7] arm:boot:dts:aspeed-g6 Add more gfx reset control

2021-12-07 Thread Tommy Haung
From: tommy-huang Add more gfx reset control for ast2600. Signed-off-by: tommy-huang --- arch/arm/boot/dts/aspeed-g6.dtsi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/aspeed-g6.dtsi b/arch/arm/boot/dts/aspeed-g6.dtsi index e38c3742761b..b92b24609660

[PATCH v5 7/7] dt-bindings:ast2600-clock Add CRT reset define

2021-12-07 Thread Tommy Haung
Add new CRT reset define for ast2600. Reported-by: kernel test robot Signed-off-by: Tommy Haung --- include/dt-bindings/clock/ast2600-clock.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/clock/ast2600-clock.h b/include/dt-bindings/clock/ast2600-clock.h index

[PATCH v5 4/7] drm/aspeed: Add AST2600 chip support

2021-12-07 Thread Tommy Haung
From: tommy-huang Add AST2600 chip support and setting. Signed-off-by: tommy-huang --- drivers/gpu/drm/aspeed/aspeed_gfx_drv.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c b/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c index d4b56b3c7597..d10

[PATCH v5 5/7] drm/aspeed: Add reset and clock for AST2600

2021-12-07 Thread Tommy Haung
From: tommy-huang Add more reset and clock select code for AST2600. The gfx_flags parameter was added for chip caps idenified. Signed-off-by: tommy-huang --- drivers/gpu/drm/aspeed/aspeed_gfx.h | 16 +++- drivers/gpu/drm/aspeed/aspeed_gfx_crtc.c | 16 drivers/gpu/drm/aspeed/a

[PATCH v5 1/7] ARM: dts: aspeed: Add GFX node to AST2600

2021-12-07 Thread Tommy Haung
From: Joel Stanley The GFX device is present in the AST2600 SoC. Signed-off-by: Joel Stanley Signed-off-by: tommy-huang --- arch/arm/boot/dts/aspeed-g6.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-g6.dtsi b/arch/arm/boot/dts/aspeed-g6.dtsi ind

[PATCH v5 2/7] ARM: dts: aspeed: ast2600-evb: Enable GFX device

2021-12-07 Thread Tommy Haung
From: Joel Stanley Enable the GFX device with a framebuffer memory region. Signed-off-by: Joel Stanley Signed-off-by: tommy-huang --- arch/arm/boot/dts/aspeed-ast2600-evb.dts | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-ast2600-evb.dts b/ar

[PATCH v5 0/7] Add Aspeed AST2600 soc display support

2021-12-07 Thread Tommy Haung
for reviwer request. v1: First add patch. Joel Stanley (2): ARM: dts: aspeed: Add GFX node to AST2600 ARM: dts: aspeed: ast2600-evb: Enable GFX device Tommy Haung (1): dt-bindings:ast2600-clock Add CRT reset define tommy-huang (4): drm/aspeed: Update INTR_STS handling drm/aspeed: Add

[PATCH v5 3/7] drm/aspeed: Update INTR_STS handling

2021-12-07 Thread Tommy Haung
From: tommy-huang Add interrupt clear register define for further chip support. Signed-off-by: tommy-huang --- drivers/gpu/drm/aspeed/aspeed_gfx.h | 1 + drivers/gpu/drm/aspeed/aspeed_gfx_drv.c | 6 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/aspeed

[PATCH v4 3/6] drm/aspeed: Update INTR_STS handling

2021-12-07 Thread Tommy Haung
From: tommy-huang Add interrupt clear register define for further chip support. Signed-off-by: tommy-huang --- drivers/gpu/drm/aspeed/aspeed_gfx.h | 1 + drivers/gpu/drm/aspeed/aspeed_gfx_drv.c | 6 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/aspeed

[PATCH v4 2/6] ARM: dts: aspeed: ast2600-evb: Enable GFX device

2021-12-07 Thread Tommy Haung
From: Joel Stanley Enable the GFX device with a framebuffer memory region. Signed-off-by: Joel Stanley Signed-off-by: tommy-huang --- arch/arm/boot/dts/aspeed-ast2600-evb.dts | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-ast2600-evb.dts b/ar

[PATCH v4 4/6] drm/aspeed: Add AST2600 chip support

2021-12-07 Thread Tommy Haung
From: tommy-huang Add AST2600 chip support and setting. Signed-off-by: tommy-huang --- drivers/gpu/drm/aspeed/aspeed_gfx_drv.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c b/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c index d4b56b3c7597..d10

[PATCH v4 6/6] arm:boot:dts:aspeed-g6 Add more gfx reset control

2021-12-07 Thread Tommy Haung
From: tommy-huang Add more gfx reset control for ast2600. Signed-off-by: tommy-huang --- arch/arm/boot/dts/aspeed-g6.dtsi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/aspeed-g6.dtsi b/arch/arm/boot/dts/aspeed-g6.dtsi index e38c3742761b..b92b24609660

[PATCH v4 5/6] drm/aspeed: Add reset and clock for AST2600

2021-12-07 Thread Tommy Haung
From: tommy-huang Add more reset and clock select code for AST2600. The gfx_flags parameter was added for chip caps idenified. Signed-off-by: tommy-huang --- drivers/gpu/drm/aspeed/aspeed_gfx.h | 16 +++- drivers/gpu/drm/aspeed/aspeed_gfx_crtc.c | 16 drivers/gpu/drm/aspeed/a

[PATCH v4 1/1] arm:boot:dts:aspeed-g6 Add more gfx reset control

2021-12-07 Thread Tommy Haung
From: tommy-huang Add more gfx reset control for ast2600. Signed-off-by: tommy-huang --- arch/arm/boot/dts/aspeed-g6.dtsi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/aspeed-g6.dtsi b/arch/arm/boot/dts/aspeed-g6.dtsi index a730c7706ecf..ae7a18b27701

[PATCH v4 1/6] ARM: dts: aspeed: Add GFX node to AST2600

2021-12-07 Thread Tommy Haung
From: Joel Stanley The GFX device is present in the AST2600 SoC. Signed-off-by: Joel Stanley Signed-off-by: tommy-huang --- arch/arm/boot/dts/aspeed-g6.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-g6.dtsi b/arch/arm/boot/dts/aspeed-g6.dtsi ind

[PATCH v4 0/6] Add Aspeed AST2600 soc display support

2021-12-07 Thread Tommy Haung
From: tommy-huang v4: Add necessary reset control for ast2600. Add chip caps for futher use. These code are test on AST2500 and AST2600 by below steps. 1. Add below config to turn VT and LOGO on. CONFIG_TTY=y CONFIG_VT=y CONFIG_CONSOLE_TRANSLATIONS=y CONF