From nobody Fri Nov 29 10:40:59 2024 Received: from smtp.forwardemail.net (smtp.forwardemail.net [207.246.76.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2CDBC154C07 for ; Sat, 21 Sep 2024 22:21:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=207.246.76.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726957273; cv=none; b=cMx8RqaET+XR6eK3rDjGDwSifNn+w0/M7rfC96emJnm0Bp0Ct38qdVfUefxUmL5Kw+0jGMcD25paOnLnAmHRmXLl6ONDHlOEFXihkYRm5z4z31oQWZIcuthVZnINDz8+KUmCi1NHzJHW37rNZyRlVy1nadmoShs2K1N+YcFKM44= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726957273; c=relaxed/simple; bh=p+1BIaT8kSMswDxJwX1gQqgeENAGd1miWO8oxKnxVXI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kP//FbM2/Gy2xb1vpzLkZDezgPmREwlQSKuGy3elAJ//M/uX5jUheZzMn5haEgE4bjkS1eOe7Is3YJ6KS5xH6PxT9ucLod0tDpqbRjnUg2sv7awEFQrieCf8x9iulgPwpmIkqSPFozO4i/6oDW+bvZP0sM9uXYhN3TFqVdNHerw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kwiboo.se; spf=pass smtp.mailfrom=fe-bounces.kwiboo.se; dkim=pass (2048-bit key) header.d=kwiboo.se header.i=@kwiboo.se header.b=KAyi3mxc; arc=none smtp.client-ip=207.246.76.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kwiboo.se Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fe-bounces.kwiboo.se Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kwiboo.se header.i=@kwiboo.se header.b="KAyi3mxc" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-ID: Date: Subject: Cc: To: From; q=dns/txt; s=fe-e1b5cab7be; t=1726957241; bh=83YVW5OYUCMyv+K4hF+rZLCGivVi+6ztPahHaGSzq38=; b=KAyi3mxcuaykdnHyb/UcXZwcOTQhrHtUXCiA3t2a6b+m6FCoVYmLQLRSj41xFiYCpsqFZjVCq Bs2HLZl1byfOqRM+DEMs8F+h7KFdrwTE6NIgtpjclzLVVJbSUnkGq+k6jnhar0kKaoyT6cQoBjS e1wk35rqqCadBcwggWnFBJP+vctxOBgaYII6l/NPPuRtqrI4fmWQ2CeiHEr7jfgJY/fLoBUHNtH gXdGgAcusIulsjpIqBsUWCdjdNhFYD6U7cNiWJ+PFUYwQ/0g+mnrohFiUhGHs9//iqn5q4/uTP4 3D226GaR2jzNj7BBQB7tMliyh0glhJ4w3MPwE8g4dr0A== From: Jonas Karlman To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sandy Huang , Heiko Stuebner , Andy Yan , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter Cc: linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Jonas Karlman Subject: [PATCH 1/3] dt-bindings: display: rockchip-vop: Split rk3288-vop into big and lit Date: Sat, 21 Sep 2024 22:20:01 +0000 Message-ID: <20240921222007.2301868-2-jonas@kwiboo.se> X-Mailer: git-send-email 2.46.1 In-Reply-To: <20240921222007.2301868-1-jonas@kwiboo.se> References: <20240921222007.2301868-1-jonas@kwiboo.se> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Report-Abuse-To: abuse@forwardemail.net X-Report-Abuse: abuse@forwardemail.net X-Complaints-To: abuse@forwardemail.net X-ForwardEmail-Version: 0.4.40 X-ForwardEmail-Sender: rfc822; jonas@kwiboo.se, smtp.forwardemail.net, 207.246.76.47 X-ForwardEmail-ID: 66ef46b718c10b4d4a165d05 Content-Type: text/plain; charset="utf-8" The Rockchip RK3288 SoC contain two different Visual Output Processor (VOP) blocks, VOP_BIG and VOP_LIT. The VOP blocks support different max output resolution, 3840x2160 and 2560x1600. Add compatible to differentiate between the two VOP blocks. Signed-off-by: Jonas Karlman --- .../display/rockchip/rockchip-vop.yaml | 36 +++++++++++-------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/Documentation/devicetree/bindings/display/rockchip/rockchip-vo= p.yaml b/Documentation/devicetree/bindings/display/rockchip/rockchip-vop.ya= ml index b339b7e708c6..ce4169b030af 100644 --- a/Documentation/devicetree/bindings/display/rockchip/rockchip-vop.yaml +++ b/Documentation/devicetree/bindings/display/rockchip/rockchip-vop.yaml @@ -17,21 +17,27 @@ maintainers: =20 properties: compatible: - enum: - - rockchip,px30-vop-big - - rockchip,px30-vop-lit - - rockchip,rk3036-vop - - rockchip,rk3066-vop - - rockchip,rk3126-vop - - rockchip,rk3188-vop - - rockchip,rk3228-vop - - rockchip,rk3288-vop - - rockchip,rk3328-vop - - rockchip,rk3366-vop - - rockchip,rk3368-vop - - rockchip,rk3399-vop-big - - rockchip,rk3399-vop-lit - - rockchip,rv1126-vop + oneOf: + - items: + - enum: + - rockchip,rk3288-vop-big + - rockchip,rk3288-vop-lit + - const: rockchip,rk3288-vop + - enum: + - rockchip,px30-vop-big + - rockchip,px30-vop-lit + - rockchip,rk3036-vop + - rockchip,rk3066-vop + - rockchip,rk3126-vop + - rockchip,rk3188-vop + - rockchip,rk3228-vop + - rockchip,rk3288-vop + - rockchip,rk3328-vop + - rockchip,rk3366-vop + - rockchip,rk3368-vop + - rockchip,rk3399-vop-big + - rockchip,rk3399-vop-lit + - rockchip,rv1126-vop =20 reg: minItems: 1 --=20 2.46.1 From nobody Fri Nov 29 10:40:59 2024 Received: from smtp.forwardemail.net (smtp.forwardemail.net [207.246.76.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2CD6E154C03 for ; Sat, 21 Sep 2024 22:21:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=207.246.76.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726957273; cv=none; b=hCKXyE0tWbLm6G475PWG3bEKDyyuUwQMjDy9bKzmz44dFF2yAM6oBLnYvrBviW/oJEsxoBi2pgnqKCnIl86rDLTe+2fu+z+fLZt9MG57WXDR8K5q/ElIlMthSQAf3zclnKaH9N30vaQv9dhIrA3cXYaJufiBE85+EloERyF9VLw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726957273; c=relaxed/simple; bh=h3gPCTdpuHWkodsWh4/OCphmUBGoIW6TJDe8mjOhsc4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IrmZvH6lmovljJXsZ6zk8h37XqSjPs/YMk+QPbRp0God7fuLIy1E7c3w6I1Qix/8WtZu7FrJYiLp35mlW9Wy8es4tcytKyl5BnH/ID/opEYi6d9ZKkfkdlILs28UytQzxO4c4fjK85oz/3J3sl0aF2lqbhynEA3rYSLivELf9ds= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kwiboo.se; spf=pass smtp.mailfrom=fe-bounces.kwiboo.se; dkim=pass (2048-bit key) header.d=kwiboo.se header.i=@kwiboo.se header.b=uQOZd3jy; arc=none smtp.client-ip=207.246.76.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kwiboo.se Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fe-bounces.kwiboo.se Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kwiboo.se header.i=@kwiboo.se header.b="uQOZd3jy" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-ID: Date: Subject: Cc: To: From; q=dns/txt; s=fe-e1b5cab7be; t=1726957246; bh=q4HGnQgfycy2AHtw5GfrgdiaBd9jGsGqRiZpjBBUbHw=; b=uQOZd3jysDFSkaUze5WIN/0cEfwZHt2UeyM8cszJYuDpN9jMxjIhkAYfxrGxQWar/MiqiYnml S57QTZnmF3JUPqlIDBw1WYMrQ7c/aU+sUzZVVkKJE4CZXTDoCAEaII1C1o5CVy43kCnmmeTjJMH /8Ca6ExY1wua2Ggthv8CCYbShOJeL9iEoNjE+ui/ocQYeLNshyRjADFL/d5rveOHKpVNdw81d/7 qxpT7RBxVWP1qc1J+b6R/Cp2TojDmhmWoDgsUOg/CsyKjCo+ovrcOdmTv+rkv7ee4QeF0CydNDq XGaL1JDAsvU6/5xTotMz2zsjr73QZIHxtlpUBlE2UFzw== From: Jonas Karlman To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sandy Huang , Heiko Stuebner , Andy Yan , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter Cc: linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Jonas Karlman Subject: [PATCH 2/3] ARM: dts: rockchip: Split rk3288-vop into big and lit Date: Sat, 21 Sep 2024 22:20:02 +0000 Message-ID: <20240921222007.2301868-3-jonas@kwiboo.se> X-Mailer: git-send-email 2.46.1 In-Reply-To: <20240921222007.2301868-1-jonas@kwiboo.se> References: <20240921222007.2301868-1-jonas@kwiboo.se> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Report-Abuse-To: abuse@forwardemail.net X-Report-Abuse: abuse@forwardemail.net X-Complaints-To: abuse@forwardemail.net X-ForwardEmail-Version: 0.4.40 X-ForwardEmail-Sender: rfc822; jonas@kwiboo.se, smtp.forwardemail.net, 207.246.76.47 X-ForwardEmail-ID: 66ef46bd18c10b4d4a165d17 Content-Type: text/plain; charset="utf-8" The Rockchip RK3288 SoC contain two different Visual Output Processor (VOP) blocks, VOP_BIG and VOP_LIT. The VOP blocks support different max output resolution, 3840x2160 and 2560x1600. Change compatible to differentiate between VOP_BIG and VOP_LIT, the old compatible is kept for backward compatibility. Signed-off-by: Jonas Karlman --- arch/arm/boot/dts/rockchip/rk3288.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/rockchip/rk3288.dtsi b/arch/arm/boot/dts/roc= kchip/rk3288.dtsi index 3f1d640afafa..db4a258551f4 100644 --- a/arch/arm/boot/dts/rockchip/rk3288.dtsi +++ b/arch/arm/boot/dts/rockchip/rk3288.dtsi @@ -1026,7 +1026,7 @@ rga: rga@ff920000 { }; =20 vopb: vop@ff930000 { - compatible =3D "rockchip,rk3288-vop"; + compatible =3D "rockchip,rk3288-vop-big", "rockchip,rk3288-vop"; reg =3D <0x0 0xff930000 0x0 0x19c>, <0x0 0xff931000 0x0 0x1000>; interrupts =3D ; clocks =3D <&cru ACLK_VOP0>, <&cru DCLK_VOP0>, <&cru HCLK_VOP0>; @@ -1075,7 +1075,7 @@ vopb_mmu: iommu@ff930300 { }; =20 vopl: vop@ff940000 { - compatible =3D "rockchip,rk3288-vop"; + compatible =3D "rockchip,rk3288-vop-lit", "rockchip,rk3288-vop"; reg =3D <0x0 0xff940000 0x0 0x19c>, <0x0 0xff941000 0x0 0x1000>; interrupts =3D ; clocks =3D <&cru ACLK_VOP1>, <&cru DCLK_VOP1>, <&cru HCLK_VOP1>; --=20 2.46.1 From nobody Fri Nov 29 10:40:59 2024 Received: from smtp.forwardemail.net (smtp.forwardemail.net [207.246.76.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7505C1547C6 for ; Sat, 21 Sep 2024 22:21:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=207.246.76.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726957272; cv=none; b=UWIuk2RRuLfgCOoBMdPIneCTIYF2kcSIoEHGaHL5Y3qLE2EvkJIS6YS3oajjUo6dezgx+CTBUGrwf+ZFyRenXmCnecPyob1+eA8W/jz9TToBDOs8aHUP4QVN/yBzZDcZRfQchoZIm6P6eW8U+xqXboMGFtQZZNHvbS4n4slFxJM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726957272; c=relaxed/simple; bh=ji7KsBSQlNR/X346xRrdEqiQPAQT+NlXZdQr0aXDGVA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qcavc1afK7YVSGXA4y2Wq5YwrcKR6CEbBz6NXwzfQNM9YznKZTBe0xyjbKGg/cCYt0KUMVpW9a90Z/n0EsWWDKwuGIBIcO6lJXw37NgSWjJS9WBoK/H8oOlerz4lqCjxRxHAdT8ATRUxfYpkOwol5B4p082g8wvfwIypWJlmdd4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kwiboo.se; spf=pass smtp.mailfrom=fe-bounces.kwiboo.se; dkim=pass (2048-bit key) header.d=kwiboo.se header.i=@kwiboo.se header.b=sX6GAVKn; arc=none smtp.client-ip=207.246.76.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kwiboo.se Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fe-bounces.kwiboo.se Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kwiboo.se header.i=@kwiboo.se header.b="sX6GAVKn" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-ID: Date: Subject: Cc: To: From; q=dns/txt; s=fe-e1b5cab7be; t=1726957252; bh=8XVidTJxe1Ijnds0MNBHEWFnH2eEKvVTfDWt1cqAA5Q=; b=sX6GAVKnIhbByF5a0w2D3pfJpJS0QMar9ShPqOlepKOoNlTSd9B5t71Is4cLwO49fVp3g9xRl 8GGOgyCEb+Zmbf5OqPBb3l+YdRH5TufOXIIzuVIV78bdoXSyAHd9e0nKXxMOlxGT6iTE/dwif+w yj8eUjOqQlIcO5z1AFytaEQXcSwlakSOSJApJKVv56Y6flGZKZ+jit4hDcNTw+Puc6ihCyh2998 1BbWEpuS/r0qUrbixizgO3tNR7hyELhUPT6hG5HrCuY62nbiphNTLvKQ8lHkHVxYK1TPIhaBEfT Q/4S6d3v+ngk6USufMkTjOdqImE71Efsb9WnTkfgwFOQ== From: Jonas Karlman To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sandy Huang , Heiko Stuebner , Andy Yan , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter Cc: linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Jonas Karlman Subject: [PATCH 3/3] drm/rockchip: vop: Split rk3288-vop into big and lit Date: Sat, 21 Sep 2024 22:20:03 +0000 Message-ID: <20240921222007.2301868-4-jonas@kwiboo.se> X-Mailer: git-send-email 2.46.1 In-Reply-To: <20240921222007.2301868-1-jonas@kwiboo.se> References: <20240921222007.2301868-1-jonas@kwiboo.se> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Report-Abuse-To: abuse@forwardemail.net X-Report-Abuse: abuse@forwardemail.net X-Complaints-To: abuse@forwardemail.net X-ForwardEmail-Version: 0.4.40 X-ForwardEmail-Sender: rfc822; jonas@kwiboo.se, smtp.forwardemail.net, 207.246.76.47 X-ForwardEmail-ID: 66ef46c318c10b4d4a165d2b Content-Type: text/plain; charset="utf-8" The Rockchip RK3288 SoC contain two different Visual Output Processor (VOP) blocks, VOP_BIG and VOP_LIT. The VOP blocks support different max output resolution, 3840x2160 and 2560x1600. Add support for the compatible used to differentiate between VOP_BIG and VOP_LIT, support for the old compatible is kept for compatibility with older device tree. Signed-off-by: Jonas Karlman --- drivers/gpu/drm/rockchip/rockchip_vop_reg.c | 27 +++++++++++++++------ 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_vop_reg.c b/drivers/gpu/drm/= rockchip/rockchip_vop_reg.c index e2c6ba26f437..978db93cda33 100644 --- a/drivers/gpu/drm/rockchip/rockchip_vop_reg.c +++ b/drivers/gpu/drm/rockchip/rockchip_vop_reg.c @@ -762,7 +762,7 @@ static const struct vop_intr rk3288_vop_intr =3D { .clear =3D VOP_REG(RK3288_INTR_CTRL0, 0xf, 8), }; =20 -static const struct vop_data rk3288_vop =3D { +static const struct vop_data rk3288_vop_big =3D { .version =3D VOP_VERSION(3, 1), .feature =3D VOP_FEATURE_OUTPUT_RGB10, .intr =3D &rk3288_vop_intr, @@ -772,14 +772,22 @@ static const struct vop_data rk3288_vop =3D { .win =3D rk3288_vop_win_data, .win_size =3D ARRAY_SIZE(rk3288_vop_win_data), .lut_size =3D 1024, - /* - * This is the maximum resolution for the VOPB, the VOPL can only do - * 2560x1600, but we can't distinguish them as they have the same - * compatible. - */ .max_output =3D { 3840, 2160 }, }; =20 +static const struct vop_data rk3288_vop_lit =3D { + .version =3D VOP_VERSION(3, 1), + .feature =3D VOP_FEATURE_OUTPUT_RGB10, + .intr =3D &rk3288_vop_intr, + .common =3D &rk3288_common, + .modeset =3D &rk3288_modeset, + .output =3D &rk3288_output, + .win =3D rk3288_vop_win_data, + .win_size =3D ARRAY_SIZE(rk3288_vop_win_data), + .lut_size =3D 1024, + .max_output =3D { 2560, 1600 }, +}; + static const int rk3368_vop_intrs[] =3D { FS_INTR, 0, 0, @@ -1245,8 +1253,13 @@ static const struct of_device_id vop_driver_dt_match= [] =3D { .data =3D &rk3066_vop }, { .compatible =3D "rockchip,rk3188-vop", .data =3D &rk3188_vop }, + { .compatible =3D "rockchip,rk3288-vop-big", + .data =3D &rk3288_vop_big }, + { .compatible =3D "rockchip,rk3288-vop-lit", + .data =3D &rk3288_vop_lit }, + /* rockchip,rk3288-vop kept for backward compatibility */ { .compatible =3D "rockchip,rk3288-vop", - .data =3D &rk3288_vop }, + .data =3D &rk3288_vop_big }, { .compatible =3D "rockchip,rk3368-vop", .data =3D &rk3368_vop }, { .compatible =3D "rockchip,rk3366-vop", --=20 2.46.1