From patchwork Tue Feb 20 09:39:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Riesch X-Patchwork-Id: 203524 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp293792dyc; Tue, 20 Feb 2024 01:55:37 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXaFqD4L5EYH+5tHph/Vj2tSoKW9VsLN7gLTM1hH6gnoaNexSH9Y164E1bLqbanwYgGdghr6i4SCCanQiwcUGckg+03dQ== X-Google-Smtp-Source: AGHT+IHQ2yP17Cjku7R/FbpOSfV75PFURyf/Z/jD21JbYuz6uUK89tA+TGQCaKwsH3dW1+UsXxjK X-Received: by 2002:a05:6a21:2d8e:b0:19e:ab8e:b3a4 with SMTP id ty14-20020a056a212d8e00b0019eab8eb3a4mr24581967pzb.24.1708422937076; Tue, 20 Feb 2024 01:55:37 -0800 (PST) Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id a17-20020a637051000000b005dc4fca7d3csi6024779pgn.200.2024.02.20.01.55.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 01:55:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72713-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@wolfvision.net header.s=selector2 header.b=Cjr8MuCo; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-72713-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72713-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 74C8CB2509D for ; Tue, 20 Feb 2024 09:42:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4544465190; Tue, 20 Feb 2024 09:40:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=wolfvision.net header.i=@wolfvision.net header.b="Cjr8MuCo" Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2128.outbound.protection.outlook.com [40.107.21.128]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CC762627F1; Tue, 20 Feb 2024 09:40:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.128 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708422011; cv=fail; b=RbgyXaR6cpyqCZth5zp8+TVsP1oV8H/5WgwmtKTBzKGh2bL7y/FB7L6sPP66e/P5vYlxOO1ZUM1yDDALN30GYGHExUfwTAeTvzlAgmpZ+Z6lUaS0/0dZKz0Xz3grplwfUMcB0cxNity+qLx4OhA09YktoeZC3WLurwry3Pd7K4I= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708422011; c=relaxed/simple; bh=jLO5zZr3iqLcHWi2UTNWnW0pIZ89WenifkK9e6MjsWE=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=fzGdhfcILFLwFp4sYVm71J4jNARj7w3eAdP3mLHDHZLfjNxLEHhH2wIzg5F1K3lNNhdVwwUBjLuWH+xfJRt+UsdFWSxTmKj2WK0W3JYInPluFpgSoC/NPE+7WLakWaUB1hQ6NgZpfE3kE6gZ7+OBJedGS7IGvikkL+K7PD8gj8g= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wolfvision.net; spf=pass smtp.mailfrom=wolfvision.net; dkim=pass (1024-bit key) header.d=wolfvision.net header.i=@wolfvision.net header.b=Cjr8MuCo; arc=fail smtp.client-ip=40.107.21.128 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wolfvision.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wolfvision.net ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TcaghJha+j4HBBXOPUlkOn0bWMEWdxvwMGxrdLkzjLKVd5z9OKnKOu+WHQ0joHfDukSX45qHT4A+YdxVjvHbmV07HK9Clg9zMUSvDLVBwBNxSTDthUlB/ZVDHrGOQja/mHWBVflhcaEjKbdcgYYmHVy4hPYaOcNFuU3Ge0QgdsGpczOfoX+rUBIyCu39mnpdHnoid3JjFEi3kGCgiKPIXO+iXc60mHPXlGgRqE28+OWvo0GHd2Ds71d1wzwOm196Re7YnzekX5l+NMz427dVA1XnqJJJmEBb+2iuNN6eUK1Etji9UNVyMb3rd0tD9a9maEqwnjLbjLqsxUiDeSjoVQ== 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=sgxx/BbQP8Rwa0uW6yWMPJGzjK7QlTC2G+7rvNzH78M=; b=b6XO0EcQ0YGT6srL3Ruj3a7i+M/m5MEsJ7vCA4Mx2bW7RP0/0rrie/GmPxeH4QjZUeMfwiNle1K/hVAEDG1SjT8eKGActu8XacsY76KDnmO7DQM0mohepzPGovuVqWbS1uP7HFEsYXEfLD57QmDPBvbfCsR6u/er2/FEKUL8q5X+tAyQjb3E/ZbVMTY1QCUVW2peGR4t/5IAjMl4ojKInzMJ54kUSBmCXMYRB99MdOvSVp+5p+i9eVffWJ5fCqkogaHN8lFFHKsmimOuaqfqHJEtHqsg+AmtC5WA0Wc1Cj1T/PeYLYXk1EoHUt0MWenCIJtdLa4Dn4M69+ZWLICiBQ== 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=sgxx/BbQP8Rwa0uW6yWMPJGzjK7QlTC2G+7rvNzH78M=; b=Cjr8MuCoaS/CUohythEdma9p3xVP69wKLpr8UX7zzI375Zmr/JFWpVnNEt839URAPVDp5vbA0r1YtUIpu124lZsXiU0z86OBsVXmrIruYJN8/emBKztlzWjAgV4NRIGqHGggLcMe0pt65qc59Z9oN8vORN1H7Lwwq6htWOT+vd0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from DU0PR08MB9155.eurprd08.prod.outlook.com (2603:10a6:10:416::5) by DB9PR08MB6763.eurprd08.prod.outlook.com (2603:10a6:10:2af::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.39; Tue, 20 Feb 2024 09:40:06 +0000 Received: from DU0PR08MB9155.eurprd08.prod.outlook.com ([fe80::7409:db60:8209:c9f4]) by DU0PR08MB9155.eurprd08.prod.outlook.com ([fe80::7409:db60:8209:c9f4%6]) with mapi id 15.20.7270.043; Tue, 20 Feb 2024 09:40:06 +0000 From: Michael Riesch Date: Tue, 20 Feb 2024 10:39:15 +0100 Subject: [PATCH 05/14] media: dt-bindings: media: rockchip,px30-vip: add rk3568-vicap compatible Message-Id: <20240220-v6-8-topic-rk3568-vicap-v1-5-2680a1fa640b@wolfvision.net> References: <20240220-v6-8-topic-rk3568-vicap-v1-0-2680a1fa640b@wolfvision.net> In-Reply-To: <20240220-v6-8-topic-rk3568-vicap-v1-0-2680a1fa640b@wolfvision.net> To: Mehdi Djait , =?utf-8?q?Th=C3=A9o_Lebrun?= , Thomas Petazzoni , Laurent Pinchart , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Sakari Ailus Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, Michael Riesch X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1708421995; l=2097; i=michael.riesch@wolfvision.net; s=20230803; h=from:subject:message-id; bh=jLO5zZr3iqLcHWi2UTNWnW0pIZ89WenifkK9e6MjsWE=; b=eAAciqIRF+rh69n2FNQHR/MURlqw5qOmN0VYe5JZyMHXOYDRCQLfPLBnxxUKoC1NUcrvkginR EKKtLfxJgveAVZiwlWO9MKCTQn9hBirFfvUuip0UxRM7O1E+7DLpdHZ X-Developer-Key: i=michael.riesch@wolfvision.net; a=ed25519; pk=9ral3sulLe95bLcbaiNXTgUTRiBayRBEFZ5OVIEHp+0= X-ClientProxiedBy: VI1PR04CA0128.eurprd04.prod.outlook.com (2603:10a6:803:f0::26) To DU0PR08MB9155.eurprd08.prod.outlook.com (2603:10a6:10:416::5) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR08MB9155:EE_|DB9PR08MB6763:EE_ X-MS-Office365-Filtering-Correlation-Id: 1ad7360a-a6d8-4b45-56c8-08dc31f7ebbd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cE9Ka2/xCrDBTay3tl7YUoEOE6rmkRXX2H/wX3HAtHQwgSLYAOtJazEuoAhGqKW/PJB6RqWT4Nil6EvPsfAacwAV3ekeq692ENwcsJSL0A/DrTj6OmF4q3IqxH3gxdni39pOGNBxd0PXLE89gkWrGN1Jks6cF2bR7mADZKdO8zrnjP75f4BWzvTFJ6wpxWR5BHpIzKBt6rUTbBZGTxpICocNYBQlwXVjutQiThEtVOl0iQjNEYVvRSuE+v04ha1hYAYvn9UyQaok+TqoXNgbw6HomCZcL1OeSLiIfaMUd+WVhy7m+pF4KFjwPVXozz/Twk39cjo6uqF9Xs0kmJIPhay1pgTPr/jeDBT46HrzLIRVno+42moN2POXcPNb+c5jxG5XX9OVy1QU1u/+cWvsHvzOoYR3nz8gTdlj5AnhIhqJeBObzNHT6PEeexrzps+ZpEVLYx2cy+HN15MwUKcyll7KrG4yhHue0Cvl4HCAjZKbWv89+42hfT9DkgtTWYy+E+j78APWxxjGHJ3zxqWvfyuqetIKhLYELs0KJY1bd6Iu0bbkkkmd6qfAGBi0ptvO8Z+nB/HrmK0zaYx4jMiiEtexGb3OOZPVzvsvBu1x+6z2PvIDsbZu5MH7mBMkBcbJ32WW9V6jXqNEymESgBrnHA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR08MB9155.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(921011)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?SRS7zvi60EEiLUBGFhRR3YFy83i2?= =?utf-8?q?H7WxppG8cWJnff64EnV4BPHVZSRMBmd+yZ1TUwHqbjTw+AYUVvJV6U9wkojjzgAVA?= =?utf-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?q?T0U3VyLZUhTzUJ/rJrGIUDCnqGZ6xkyyt4enH1ndGMgobicsW6GlL8vr/0KuUEUFx?= =?utf-8?q?KA31gjyhC4/vPO/BHIAk6nbBkAqCzRT7zWYEHo8XdO+glgrMbgn539bGTe0k+ASQp?= =?utf-8?q?uNS8JYIH59iI3Z8OCBa2xzebns1KFBsF34GR8+TwoGVr7NfFMq8w+ufTDXoeu6mkI?= =?utf-8?q?7Qb5pu8g+ZqL+faiEeuduwj+vqUg9UhtPS0A1x48ewGVeYKiT/nvPZTuBJxPLv6Rj?= =?utf-8?q?81RFaQ6ubFLYAIO+ofIPzNhlGn0viuDwurdlthIm5kYra4Zn9+LWkNKbbNobaQ7wX?= =?utf-8?q?2JUglIZJRj2xib+eWoeGyYfmwppp4VXnscrTbtN4nUE79qMTl3/quzeASen3ATv55?= =?utf-8?q?9/NJ5BsAxGpnuT4CMbrCVsuPrUKGKjSDA+VLRlj86T8pZXOVQ4MnPpGSk2x2n0O9X?= =?utf-8?q?6t/eREq5xPLSy6sqnAzI+jYENUfP1wujDg4AO9/7PKmkF1DYFQCbuCYJWJrHQyTgM?= =?utf-8?q?1LZEuQoocRtZCxsXIs97Jw9wIzKScvdOX8VHXgBSW2b7rjjYry0rJ88wPdV9GKwpf?= =?utf-8?q?7GJfZ3DGIQsfEezEib8WOxbI49mJuKzo7Q=3D=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 1ad7360a-a6d8-4b45-56c8-08dc31f7ebbd X-MS-Exchange-CrossTenant-AuthSource: DU0PR08MB9155.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Feb 2024 09:40:06.2233 (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: mHhg2lU3inK96ei/j9BE6cyhrU59MnyEFPPZ/DjmtX90OMd8vRVurCGnfwj/wVqMQXzHa8WasH7XX8cKHOetDsPSYwDccN1CdzZ4Xal2pt0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB6763 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791411289306314869 X-GMAIL-MSGID: 1791411289306314869 Add compatible for the variant found in the Rockchip RK3568 SoC. Signed-off-by: Michael Riesch --- .../bindings/media/rockchip,px30-vip.yaml | 45 +++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/media/rockchip,px30-vip.yaml b/Documentation/devicetree/bindings/media/rockchip,px30-vip.yaml index 7168f166798c..06d49f591efd 100644 --- a/Documentation/devicetree/bindings/media/rockchip,px30-vip.yaml +++ b/Documentation/devicetree/bindings/media/rockchip,px30-vip.yaml @@ -16,7 +16,9 @@ description: properties: compatible: - const: rockchip,px30-vip + enum: + - rockchip,px30-vip + - rockchip,rk3568-vicap reg: maxItems: 1 @@ -35,6 +37,11 @@ properties: reset-names: true + rockchip,grf: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle to general register file used for video input block control. + power-domains: maxItems: 1 @@ -100,6 +107,42 @@ allOf: - const: axi - const: ahb - const: pclkin + - if: + properties: + compatible: + contains: + const: rockchip,rk3568-vicap + then: + properties: + clocks: + items: + - description: ACLK + - description: HCLK + - description: DCLK + - description: ICLK + + clock-names: + items: + - const: aclk + - const: hclk + - const: dclk + - const: iclk + + resets: + items: + - description: ARST + - description: HRST + - description: DRST + - description: PRST + - description: IRST + + reset-names: + items: + - const: arst + - const: hrst + - const: drst + - const: prst + - const: irst additionalProperties: false