From patchwork Fri Mar 4 16:11:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Riesch X-Patchwork-Id: 12769410 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ED23BC433EF for ; Fri, 4 Mar 2022 16:14:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=rE5KU/oo5tcUeUzEMfCv6AyrSsf3657YMnd8zOMb2nI=; b=Ignw5sQTNS7qnv Xr9XyLjsDOrC8S1iYSWVWLRgoHpPJZd+BNpOJV26HiszYuLoddAC4l9tsIEmFnxJzmP3G1C/wih+N SG2vDoEQFA6eHLvxtFxUSOC206draejlTTp/RKLUQ01JJd8rrpQ1TKpjCamrXdkIqE5bH54FF4t/p WDus+Vch0H7uNoLmCl7SdRGoSiyE3v7iz9osBkLBMwM4rCXR3Y+kneL1PXnGC1KI5G0Ym+mgChKl6 fDE42rV8Ie2ELqaAxmegvzyfNJLBibkhP6YW6jibyQaOh+lC0w2AsQKwDsQ64ASHqj/9FSMmDFOq6 dIInuL9lNbVAGqefH9Bw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nQAXo-00AwGX-8G; Fri, 04 Mar 2022 16:12:42 +0000 Received: from mail-he1eur01on0604.outbound.protection.outlook.com ([2a01:111:f400:fe1e::604] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nQAX4-00AvrI-1y; Fri, 04 Mar 2022 16:11:55 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Wsp2HwADH3nLx/+DKlsCP0qm5PBVFGeysiKsjzQsbEiuxtlUzA0M0NCi4c+oWtm68Ca9i13s29uZhVCeDEfPv6tFochqdZ18lo7VU4d2nsi9O0noGjgGPhnkpw0Mh8zvS5fDNQc10z18tayidz5qJWX9dFBTlCj3bXrcgBbuUKTgxPBKQE4T6HOZW3NYnZlS64XpzlK+s3HUZ9nDrSIwp1aA8BhzIs65XzVULY7c5eeAlz2N4EJ0xURr3lxuTsvEX56IeoYaGBAdoV2p8rLaEWr6BS9FwA5mQeVj0ERecup00Wz1yUQj0HjuCTo6ODBocxMMMQFKkhLsUCzWGZQF1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=LZw1+VtLOQLBFtratwHT1jmRlN9tWZHxciODuakdhR8=; b=TTqhgv0MCRUpfFmopSUe8jP0bvJ6Tfo+0SK5r8q5LXArksXa8QxG6kCtM4n+N362IwnmpVZkS2depU3UnkGN7+y8G9jPIpbdsO1kYlpskdUXmiVsrBC2G1Avx1gR2G7wZnbJBJPct9PQcc2iDS3e9yKVY914k9P/tS0tKYn6KumGxS6Fhg7TyyGknyWpcVYMu80QzhyhC/3OX4hYJwUZjMK9JYrAzI4sVdxuYzTdnCpvINuxNbbm/nclDUBoP9+wonpsTCM4AQREprAYW/FhASi5X9lxTW0ARDFtsu0UDzNlfDHy6bISTybXhsUXV43TfMALENGwUxfdjhGR2Jy1Ew== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LZw1+VtLOQLBFtratwHT1jmRlN9tWZHxciODuakdhR8=; b=NFd3fwxR04iyZsVodfZ7qSfOgXcNW6bAgEGiSUXK9cJX1QV5PjaOVCUgxJMTO8ZiVzqiBBUgd42tZkYsvt/0QDEMGyuaB9+gvq64IvSyh+uJXHWjQwS+VvAPKCWRpb9mEq6qRbnQ8k6T8bGTc+mTiEkv3bNUDnVpxD+/7/KjLq4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from HE1PR0802MB2426.eurprd08.prod.outlook.com (2603:10a6:3:e1::23) by DB8PR08MB5481.eurprd08.prod.outlook.com (2603:10a6:10:114::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.16; Fri, 4 Mar 2022 16:11:48 +0000 Received: from HE1PR0802MB2426.eurprd08.prod.outlook.com ([fe80::f9ee:a333:b115:5049]) by HE1PR0802MB2426.eurprd08.prod.outlook.com ([fe80::f9ee:a333:b115:5049%4]) with mapi id 15.20.5017.028; Fri, 4 Mar 2022 16:11:48 +0000 From: Michael Riesch To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Rob Herring , Heiko Stuebner , Levin Du , Tianling Shen , Chen-Yu Tsai , Sascha Hauer , Alex Bee , Liang Chen , Peter Geis , Michael Riesch Subject: [PATCH 3/3] arm64: dts: rockchip: enable vop2 and hdmi tx on rock-3a Date: Fri, 4 Mar 2022 17:11:30 +0100 Message-Id: <20220304161130.34977-4-michael.riesch@wolfvision.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220304161130.34977-1-michael.riesch@wolfvision.net> References: <20220304161130.34977-1-michael.riesch@wolfvision.net> X-ClientProxiedBy: ZR0P278CA0016.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:16::26) To HE1PR0802MB2426.eurprd08.prod.outlook.com (2603:10a6:3:e1::23) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b80ed30e-e6dd-4c22-45ac-08d9fdf9afae X-MS-TrafficTypeDiagnostic: DB8PR08MB5481:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: l3Dc8EpPBzidiMJRgvj8IVfik9hwzFKQw4QgYYSI4d5QJph5a6Z0PmDgGYhnde4tx6uwwdGX25VBCu7pifyegML6Cvv1pLRAkAZ5Gp1shaabFwoeRqPfYaneHCs5SPkJEJ9NBjd+EHag/4BUaoFuEJ7lVYK0tuynU5rGfaLCAthEn7Zk8e4Zj90k6L2OB4tblw+2FXrvDKDwYMdcUfX2oTTMTeFb+LC3wtbTYbdK1xwxqEFxK0koFnImfXJHPkJ5/GU2ky9a3UkAG7iPhuoDgJYufX6NsnH/1LXIwy7x5eiKUQGNp8abc929Vrf61LvsuTJL8sfIWi0WltU6Hb+KOf65r00toSjs3XwCgSIrodj9dymSrS+GGVLXYw3xx1GaWYJE2Ac6Wy78tD1Cltyu6Dig5YcKiQ3H5qrs4gDVK7wFwQxSDxt+Tc/ERGG4J4mbt6hDgfywq4sOS8r7wDZIO/dLvEDim+9qff+I90eMJLmO77YivxagknvAHW8Ke/N06RQuOYvcNu9Aa7sfM2WebbjoGhO5ph0HFKoOvaCcgggaZcMLVji/PoX7006cLqa3CL2FYtKeHUq+E7RBSug3DzFcEPYyXBu6FvLoljSnkznlmoQOLDxhmrRdD/rFjBJQfiMIbkBoJe/vh1OrnlnOMA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR0802MB2426.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(346002)(376002)(39840400004)(366004)(136003)(396003)(5660300002)(4326008)(38100700002)(8676002)(66476007)(7416002)(86362001)(66556008)(44832011)(6486002)(2616005)(508600001)(186003)(316002)(1076003)(107886003)(66946007)(6512007)(54906003)(36756003)(83380400001)(6666004)(52116002)(6506007)(2906002)(8936002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 49L4MmB0kzW2lkJ/gUlavAIyfa47ikKqw+KtUJkPRBaOmKiUhQAUIhnwr+ZSU7xKhCTVBrDkNMxarN5SzMFgVax7kLDfVYb4dufAlAez66KOXUvx6B4/pB007+9hgyOnU2lSe70vayAj/Obw+rxfpXmnaBwe19Ein/yUPZmL8OivJT4LLgOePZaOlKkFWFlmCL3QzIeXzVpYej3Pz43vgcWUe2BCy6dUf2t5VnPrKFG5EW1tSWZvQovOQ7QpStnALQ2ypwZSDdoyPA07cjiv4CIEr4H2iejjBYC2m2KLpQ64FJB9IiezSnGLh6reWe9yztdb8SmMz2oKR7wQeJaNE6Ci66AxtF9PNAAlTI5eHXqqYAueBtQEpOequar/V5vfwpxXBMVqbGF5qnbdsyOUCacGKEYSgqSDmwoeizAuHu1qb9p4J4RxrOn2UdOCPM46HeRC0bHsjj0/ndZyZmhOP/a9kYdGYBzy9cWE737jHIhikkevnZK3h5lb7iF57H2HNeuaFZcUeLV4QVjwPssA12CsJPozqxh0cJmCw2yOzfIgk8ef2/D/pvDU27gNakIZDIjJqDOd25ob9+z2O4JjFaQSUlaVsBTJX4IFHU9R0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DUYazD8/IN/DTseluDF3ky9wFwKhzrUzQw0QqOHSLpqApjLX/qofCaoac1m9xODlfr/ibJI= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: b80ed30e-e6dd-4c22-45ac-08d9fdf9afae X-MS-Exchange-CrossTenant-AuthSource: HE1PR0802MB2426.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Mar 2022 16:11:48.7003 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: EIfkrwTNEznw8gR++ApRg5Uzk5e0dK8TAI98DEB20LSNflOKfiLr10MXyrneIrcC2L/wJ1X2XdfFv+PxXTBUMIDHZJNlYeAHknMsiiGLn28= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR08MB5481 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220304_081154_162554_AD3ECB1A X-CRM114-Status: GOOD ( 10.32 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Enable the RK356x Video Output Processor (VOP) 2 on the Radxa ROCK3 Model A. Signed-off-by: Michael Riesch --- .../boot/dts/rockchip/rk3568-rock-3a.dts | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts index 18d2d8e5e693..e568ce377055 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts @@ -4,6 +4,7 @@ #include #include #include +#include #include "rk3568.dtsi" / { @@ -20,6 +21,17 @@ chosen: chosen { stdout-path = "serial2:1500000n8"; }; + hdmi-con { + compatible = "hdmi-connector"; + type = "a"; + + port { + hdmi_con_in: endpoint { + remote-endpoint = <&hdmi_out_con>; + }; + }; + }; + leds { compatible = "gpio-leds"; @@ -134,6 +146,24 @@ &gpu { status = "okay"; }; +&hdmi { + avdd-0v9-supply = <&vdda0v9_image>; + avdd-1v8-supply = <&vcca1v8_image>; + status = "okay"; +}; + +&hdmi_in { + hdmi_in_vp0: endpoint { + remote-endpoint = <&vp0_out_hdmi>; + }; +}; + +&hdmi_out { + hdmi_out_con: endpoint { + remote-endpoint = <&hdmi_con_in>; + }; +}; + &i2c0 { status = "okay"; @@ -499,3 +529,20 @@ &usb2phy1_otg { phy-supply = <&vcc5v0_usb_host>; status = "okay"; }; + +&vop { + assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>; + assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>; + status = "okay"; +}; + +&vop_mmu { + status = "okay"; +}; + +&vp0 { + vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_EP_HDMI0 { + reg = ; + remote-endpoint = <&hdmi_in_vp0>; + }; +};