From mboxrd@z Thu Jan 1 00:00:00 1970 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 9196BCCF9E0 for ; Fri, 24 Oct 2025 12:51:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Reply-To:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To: References:Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version: Subject:Date:From:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=m6d2YBVRAxsxtD7aavxLd6mWyhAION966pctRhNP1ms=; b=F9wiuXTimptPcnYva8llz30oAn ofhB4Rh+o1DG5eZoJB6AayOXJK4pVUDcOEuMUts5ct/nvXXixYL7SmN6nhBZGtw6XXOfuVMrWiJXr alFg8plsn4dPZ85F5qz9J/qULkq9zejrojD29lwebklawxrdqZmsOhTsJWWFme/9jnXBmGAos+eMj y1afkAd6Cpjnyf22omKH7Ephimmm7gK3vAePilDZ+8/Co9WI/vHk5eepPev5ztU4rPC7cShwVbxzT 8UDiKbO5aEil8OFSMsYmABQsbDZlwVXCtkVFj+PqLaTovhQIHpQM1nvUmhQptzg6bU6baU2nTof9O fZy7J6mg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vCHGo-00000009QY0-3VHx; Fri, 24 Oct 2025 12:51:50 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vCHGb-00000009QGn-1GNY; Fri, 24 Oct 2025 12:51:38 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 5FAD248AF0; Fri, 24 Oct 2025 12:51:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 095E5C113D0; Fri, 24 Oct 2025 12:51:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1761310296; bh=rtJkcFLFc1knvqExD8Pr/+VubLNDMv/tDbYdwMGF14s=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=DtCSGojIF7VlVB4ANTcCgJy5alH7n3wA33ojaT+zZ8iIPmtE9ffxrHS3jNbXwJbhf I3WvgVUGTPoaCUAGQ5ZSh8owtdKI5vEBlFQ9n8GOioXqOa5y0q99NRxLX/ZRl0EdhO U2SDE485ynd3XCK6/6OzZWzR6oLYtuOH9ffx7s7oEwYf9zmx4YZiljoihE4ZVvT8CD a2gpJmiGF6d32OXxCNsusHbz7lMxO5Xf6TlrwfIEpn2CN8JI00dbxH/LFHHih/gRF4 vhWJ7OldaMe9MhOyqE3eU3b73+2bjB42yR9HjbA23ijGhuWcQmu9Zu64IT4AWHg4qW bryVYaVLFaiLg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id ED9CECCF9E3; Fri, 24 Oct 2025 12:51:35 +0000 (UTC) From: Michael Riesch via B4 Relay Date: Fri, 24 Oct 2025 14:51:31 +0200 Subject: [PATCH v14 02/18] media: dt-bindings: video-interfaces: add defines for sampling modes MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240220-rk3568-vicap-v14-2-b38b6da0fc80@collabora.com> References: <20240220-rk3568-vicap-v14-0-b38b6da0fc80@collabora.com> In-Reply-To: <20240220-rk3568-vicap-v14-0-b38b6da0fc80@collabora.com> To: Mehdi Djait , Maxime Chevallier , =?utf-8?q?Th=C3=A9o_Lebrun?= , Thomas Petazzoni , Gerald Loacker , Bryan O'Donoghue , Markus Elfring , Laurent Pinchart , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Kever Yang , Nicolas Dufresne , Sebastian Reichel , Collabora Kernel Team , Paul Kocialkowski , 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 , Michael Riesch X-Mailer: b4 0.12.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1761310293; l=1070; i=michael.riesch@collabora.com; s=20250410; h=from:subject:message-id; bh=i0G3bjQUxPWSrwDi2kbON/7nXKFuVdlWiYyEBIeG7YY=; b=t/jppvARtOZw9azNNX6OwO+YqleU7f70H9cyKNXpnF32cO/mTYQz8AsuUqB5w8mSR/RABzX64 oYdl4s0KzswDKjLD5P8ED348qJxuGQFws9gYW7hD0ha334PnH3hM81Q X-Developer-Key: i=michael.riesch@collabora.com; a=ed25519; pk=+MWX1fffLFZtTPG/I6XdYm/+OSvpRE8D9evQaWbiN04= X-Endpoint-Received: by B4 Relay for michael.riesch@collabora.com/20250410 with auth_id=371 X-Original-From: Michael Riesch X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20251024_055137_381847_8604D214 X-CRM114-Status: UNSURE ( 9.69 ) X-CRM114-Notice: Please train this message. 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: , Reply-To: michael.riesch@collabora.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Michael Riesch 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. Acked-by: Rob Herring Signed-off-by: Michael Riesch Reviewed-by: Bryan O'Donoghue Signed-off-by: Michael Riesch --- 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 88b9d05d8075..0b19c9b2e627 100644 --- a/include/dt-bindings/media/video-interfaces.h +++ b/include/dt-bindings/media/video-interfaces.h @@ -20,4 +20,8 @@ #define MEDIA_BUS_CSI2_CPHY_LINE_ORDER_CAB 4 #define MEDIA_BUS_CSI2_CPHY_LINE_ORDER_CBA 5 +#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__ */ -- 2.39.5