From patchwork Tue Dec 17 15:55:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Riesch X-Patchwork-Id: 13912182 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 C2F61E7717F for ; Tue, 17 Dec 2024 16:26:30 +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:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=xzfAhFanUJrnU4pINW7La83rPPI7+OkPjyOxM9ME9b8=; b=fTXLJHlBWtpyUJlJFNZ48lxd72 9q+SsUD6kGMTVy9dn0K2RifuS71jy13Mizw1BgEHsOyu3k8SuYk126GUR72p0AgpR1bNijA6EfnlW IaNeCFJ9ToH8hTa+fCLlSq1lfXqkagGELydf9IDTSBX65zd8C4MdaOuD0n9aCxWWxRJLnjjqkT+QZ PeJPdhyJ9NWAJoBQhEwv4oU8izJ8wrThUikea3sXiFpNx09sAfFfPRjXYPg28gmWr8oaoGDx5rAye es+LYsZSDnYJ9UDah6KHdv97tPEujRUSui3Xm2AjcY9LmSunOVLiFRD+oHsEegTSTeqpSjhRX0VWD kLzV5WdQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tNaOx-0000000EAhi-1fuU; Tue, 17 Dec 2024 16:26:27 +0000 Received: from mail-northeuropeazlp170110001.outbound.protection.outlook.com ([2a01:111:f403:c200::1] helo=DB3PR0202CU003.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tNZuy-0000000E2po-145s; Tue, 17 Dec 2024 15:55:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Aa0/qdNX1Pav0gqc+mdUJp7vTVJvnIMBXmPpi4zzhNCLAV5ITgWf31/RI+aM5upmqR8ggWXal+JBJlqgMcKpxMOMBlNinnio3HrLUKRfuwLTbyV/DZW2CPCsXEF2X7eD9slooieYTfr/rwiEEuK3UwsKs1+rlgID0av79N+iCofcx+n7w1fLiel1OFb5bkEIQX6zYjHVYar1lR/zDvLQiNK95qV5w6AhZqtgMkpTcpKjbGPYNQRuGaSBhlLBVEkzGD6BMTkFazwujlr04HFxSUURMKLNCVnbPFYwrBSsZo+yqKwVFoFWcfmZR8VS1jC5mwjqwutccoMvjSJpg+Ulzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=pWkNc8fK9Tfm7JgT59wI/imAn+vxr11dgp2yqbb1eTw=; b=i/lpMeaEEQu3VegK4L65em0M0E8eWXBDJvXV6Fdj4nfANykFv7JVxTZ8q3Maqt99Dp+6F3p+vusAcQbZ4PyT/XyEFcL4bXGmMxOJ9AwHpVwKX9NKeuneIkgU6WhHcYvmy4o+6KATaELgwjFxdRfdJ8maATL3XJ4ad6d1ZMT82jyabUKH4IxCW7TAA9s3kS/PLeofn8tlUlaYWDCwrqHtS/aYniPv5Z8WgYJIkJQGPc+CIDBEM4yccRFoox1YNW9bGv5aU6YFUvQklaa4MUeO44n9kV9Se+suaivXuKq2T+2RGjf9q+FUXmpLYnBrzUfRKrauDlnbZmv5xQ3LiERhGQ== 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=pWkNc8fK9Tfm7JgT59wI/imAn+vxr11dgp2yqbb1eTw=; b=IVba4SFzSwHnjClEI0hb8D8QDUQOkcPM0vyrC9nGUu5nlGOOvQSZLlIo7Z3lEDtRhGnGNfN9/CiBfDB5nj5BKb0ROgE72isSmQU+CtyPyi5yVQJINgBPp2bPn18dBwceHOWQhFzjgeoP5DG0MLOJK2DfZDzvEl1MPMb/tRdhT0E= 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 AS8PR08MB10149.eurprd08.prod.outlook.com (2603:10a6:20b:63f::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.21; Tue, 17 Dec 2024 15:55:22 +0000 Received: from DU0PR08MB9155.eurprd08.prod.outlook.com ([fe80::4e72:c5d4:488e:f16d]) by DU0PR08MB9155.eurprd08.prod.outlook.com ([fe80::4e72:c5d4:488e:f16d%5]) with mapi id 15.20.8251.015; Tue, 17 Dec 2024 15:55:22 +0000 From: Michael Riesch Date: Tue, 17 Dec 2024 16:55:13 +0100 Subject: [PATCH v2 1/6] media: dt-bindings: media: video-interfaces: add defines for sampling modes Message-Id: <20241217-v6-8-topic-rk3568-vicap-v2-1-b1d488fcc0d3@wolfvision.net> References: <20241217-v6-8-topic-rk3568-vicap-v2-0-b1d488fcc0d3@wolfvision.net> In-Reply-To: <20241217-v6-8-topic-rk3568-vicap-v2-0-b1d488fcc0d3@wolfvision.net> To: Mehdi Djait , Maxime Chevallier , =?utf-8?q?Th=C3=A9o_Leb?= =?utf-8?q?run?= , Thomas Petazzoni , Laurent Pinchart , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Kever Yang , Nicolas Dufresne , Sebastian Fricke , Alexander Shiyan , Val Packett , Rob Herring , Philipp Zabel , 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.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1734450919; l=927; i=michael.riesch@wolfvision.net; s=20240405; h=from:subject:message-id; bh=g3tpAJJnMyFyzkixlbq6j8An04absIUx2MkV/qioC2o=; b=F45ata9Zbkm53oBC7JEJb4kRgJ01vOjjiu+4lgjQhu7gawLvMAUqEaoDMX1Mv+hAQXtvKXmRl cT0Zk1Qj5I3CRXW/mFEMxMUqgZY8VebKIGWwcbZIybRwg44cfQimBSX X-Developer-Key: i=michael.riesch@wolfvision.net; a=ed25519; pk=cSJmgKSH3B6kdCIDCl+IYDW1Pw/Ybc6g9rmnUd/G7Ck= X-ClientProxiedBy: VI1PR08CA0244.eurprd08.prod.outlook.com (2603:10a6:803:dc::17) To DU0PR08MB9155.eurprd08.prod.outlook.com (2603:10a6:10:416::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR08MB9155:EE_|AS8PR08MB10149:EE_ X-MS-Office365-Filtering-Correlation-Id: c6721763-cd48-4b25-897f-08dd1eb336ab X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|7416014|366016|52116014|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?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QezOBdfrTtWoHznmTaEkPS8YU?= =?utf-8?q?V7T36Z+oLEhTdozketaSzq0QS0XMUK24ccFtEPexn1j8arqncMtbpgc2fsDTddPK1?= =?utf-8?q?iakVZhbOJzkj1zQiBtvNYiRRe4qfo1x2GrG8uWZDTfwHTitIi8CZw1BJ8Cw6FIRB0?= =?utf-8?q?RoqKNCp1xqpF2IQHSMZpxQ8kvaIzbOKMP+/imSWo1bfXoJSiOXAPuBLc40x1lOa5C?= =?utf-8?q?tMwf7Tagf/DrOK39C13fVNE/3LsJHz8dr47jIdrWyqe849BKu1vH0i8GNQueMtcCL?= =?utf-8?q?E+tb3rCKHlhnl0ZAK0Xp6Q/j+bZOll129BCF09NNxyhDRhG3drN8luZSBH7JIsC1v?= =?utf-8?q?6m/fYyblwLmYXpO6un5j6Al6POs+6VNqM5FK9prqGQujgPcFkF9EeN9SQ/doSRIWB?= =?utf-8?q?2klVHHN1cOHvLxB+TPTyT9vJABZf/XehpWyZRsQpHZRCSJBHF7w0JK+gKEC+qhpNR?= =?utf-8?q?94Q3cQ+/lN/Chz8ZQCj970qcV2tEVVnszGKgrL76rJuWuFbba2/Qd1m6+elSXEm/k?= =?utf-8?q?FD0AQTMLXM1a5b1bLHpD/6HYBWJ+9ThCg=3D=3D?= 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:(13230040)(1800799024)(376014)(7416014)(366016)(52116014)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?8rh1dBDgSUFMit71Y9mCVz/8O5B3?= =?utf-8?q?TbKoKBJuQEdG86sX0gIiPSOR3twpI7Xt9toewn6SmRUmqa97TYAXBs6mZBzb7ug32?= =?utf-8?q?aRkK4YwKbpiQwKKnVRFjOtOF2+JXt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9sPfLkmh5Q?= =?utf-8?q?99j/riMCvV8kEk+5PaPdB6nqJ38p7bZm1HwKKo9sTK/fDsyUx9+PH46tZ1RTvy5FP?= =?utf-8?q?Qdn/NXkHbOyGdjzNgLqnKpQfoPk7egnO1rS3ap21vLpzf5sLHw+MzLkWX0oRH330g?= =?utf-8?q?PLbtZhloCm3SXHVwgMVKtpHRYwk7gH2n/H8Us68Qs9ZVA/bFGVU1SKCb8a4azOwst?= =?utf-8?q?bQf43MX+PD+zCpZfZpDp+AMC/x3PSYTRnNN8Nn/tVMHSzEwkNxZ24ZMhhwh8xrIj1?= =?utf-8?q?R5sm8wenI8LbIp158nvGwGLJnz2YgOGsaE6GHKR9o4irQGd1kJvoUlFiCPCNKG9te?= =?utf-8?q?TRilkxZ2tkS+fyBD84Pl37JF66hAmVwYdc8QjRJsYFwAxZ+yeZtQdaeg6jVw7CUYN?= =?utf-8?q?ppgKVtyqP70st636KrQU5fGUfSK9JxglHRB7wU0JwTMo5rArIgidVkITkDfJ2Gs3g?= =?utf-8?q?QjKpfFyoRnwniW6P/2kqMOxSRLWgWqnqyMWDJtf54NkqOXitSwWjkyWxrDg9c2oOP?= =?utf-8?q?A5c1M6tA/OjtKDjowyEYYzkMDgvY4Rk7ug=3D=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: c6721763-cd48-4b25-897f-08dd1eb336ab X-MS-Exchange-CrossTenant-AuthSource: DU0PR08MB9155.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Dec 2024 15:55:22.2482 (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: 3Z4Swsxy4GbdxxqTpXjhFAHZruMh2MtHuWeQnOxAAdfsjLcDmJCvz3lDyvnDO3Zmmh4wHXnjdKZ/5gVeoMs+O6xKAAFMnB5NiOGrd4LD/RU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB10149 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241217_075528_298388_C198594C X-CRM114-Status: UNSURE ( 9.81 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Add defines for the pixel clock sampling modes (rising edge, falling edge, dual edge) for parallel video interfaces. This avoids hardcoded constants in device tree sources. Signed-off-by: Michael Riesch Acked-by: Rob Herring --- include/dt-bindings/media/video-interfaces.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/dt-bindings/media/video-interfaces.h b/include/dt-bindings/media/video-interfaces.h index 68ac4e05e37f..02d8239c2038 100644 --- a/include/dt-bindings/media/video-interfaces.h +++ b/include/dt-bindings/media/video-interfaces.h @@ -13,4 +13,8 @@ #define MEDIA_BUS_TYPE_PARALLEL 5 #define MEDIA_BUS_TYPE_BT656 6 +#define MEDIA_PCLK_SAMPLE_FALLING_EDGE 0 +#define MEDIA_PCLK_SAMPLE_RISING_EDGE 1 +#define MEDIA_PCLK_SAMPLE_DUAL_EDGE 2 + #endif /* __DT_BINDINGS_MEDIA_VIDEO_INTERFACES_H__ */