From patchwork Fri Jan 14 10:57:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Riesch X-Patchwork-Id: 12713572 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A9DFFC433FE for ; Fri, 14 Jan 2022 10:58:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238001AbiANK6N (ORCPT ); Fri, 14 Jan 2022 05:58:13 -0500 Received: from mail-eopbgr70082.outbound.protection.outlook.com ([40.107.7.82]:4932 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S237803AbiANK6L (ORCPT ); Fri, 14 Jan 2022 05:58:11 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jUADj5XZ5YTl4I2F0nuT6ZpZpP4exo7MMI92pmfyPpgRjXH/RDrNUZin37ZV9oAEZLQixN3ivbiuunWJbsrEplMg4jXc+FZCNCdrqFQQIlh3zq9KWO5jBtnLrSHT3X8lbhb7flB6YCYABdR0Tqudyu52W2hzYg6EaV4X9jCjCkDLnTVlvaSgCH0xnrCya1jB9DL7BDbAJIyX3DB8lY65QQ+pzxukW64L/i8BQ+xXHXyDlHoIlLrowZHOXD0IPU2cV292UVlKovGNw6NjHXGVW8TKVycwTOARPKPsd13UL+OwBlylf+MuCZA9juXR0ze8dJNoytwQ3DIGlJOHnxV7qg== 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=YIu+JeCdxa3gIXiPdXmRZS+0hjA4wgMyM3ginypIAbM=; b=M2lDcIMrbn4oLjWhH2pN0FsFKYhBw48Eszxg247FoU1cOHLtdEDE63rmk3Wjj77HYZclScCMrVmEh7GUbUlgxae/Iqxf/p7Ke3N8o0bp693YHoE+WkRCPKv0xX7hOwQy6bc4S1P+5C2RgGKdFI/+0cCFVosRcUBF2SrYYE5bB2gIlximArQoNqC4BeO5mKLYAMPDUK/9nJRM5On/biCkcMsoEl+wdfXv2AQ6MLZQ3gGAo/iHTItrXJKBrbxF8n5WK8xbVuV4vvAcXGdgz9WEqH3DLgBvBHuvQ6PHSCpTnBcbgqq1knezvHf9bw39Zv+SnI9j7iQDjVmyRkXyiJuBwg== 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=YIu+JeCdxa3gIXiPdXmRZS+0hjA4wgMyM3ginypIAbM=; b=pz0jfjkisqedeeF8PrgiDzQQrmx7sHtoyltY4B+HzYxNJm++k9hmE+gH+Ly2UAXEOyYDAgLjRVhOdqN5aXA8ahyw4Fp3rdjF19T0DEXNtiBurOjoX14EDer2NWCY2GppZlU217rKNpmwZvzSbFdUIXF+k8iTCDRDOXa2q1vgOVI= 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 HE1PR0802MB2282.eurprd08.prod.outlook.com (2603:10a6:3:c9::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4888.11; Fri, 14 Jan 2022 10:58:07 +0000 Received: from HE1PR0802MB2426.eurprd08.prod.outlook.com ([fe80::809:72af:1fb6:1294]) by HE1PR0802MB2426.eurprd08.prod.outlook.com ([fe80::809:72af:1fb6:1294%4]) with mapi id 15.20.4867.012; Fri, 14 Jan 2022 10:58:07 +0000 From: Michael Riesch To: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Mauro Carvalho Chehab , Rob Herring , Sakari Ailus , Ezequiel Garcia , Jacopo Mondi , Laurent Pinchart , Daniel Scally , =?utf-8?q?Niklas_S=C3=B6derlund?= , Michael Riesch Subject: [PATCH 0/2] media: v4l2-mediabus: add support for dual edge sampling Date: Fri, 14 Jan 2022 11:57:53 +0100 Message-Id: <20220114105755.730200-1-michael.riesch@wolfvision.net> X-Mailer: git-send-email 2.30.2 X-ClientProxiedBy: VI1PR06CA0115.eurprd06.prod.outlook.com (2603:10a6:803:8c::44) 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: b87d65c9-7c78-49ae-d2df-08d9d74cbe9e X-MS-TrafficTypeDiagnostic: HE1PR0802MB2282:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: oRUuagdO2trZ+T/7AF+iX1hRhM7t3DIBKWYkWgd9pjao+hypUmmUJfhT6EeUZl0K7K+Zp08WLcyLtWJ5fIed4+Tu+hPjaOqNENXKbj/npm5KVmgzU5FlVy8kgq3+uloyx5Mc9Zn4IaRvHCvFyaMWxvZKfLavupz5oQPCzA3t4bTO8qUy4Dk2VGplrTA/IzdNIEuuRmmyyrnYPntK3oBsyI3HGwvch4mh8UfTM3UYaOR/RCIOkU/5TLrUNsrsTzTlEhf6oAeTjIHV0nUl3dMmIZm2eN4ELnTFfBEslCAlarw90cSdZ9tdF2lsLnXExKqdF73R5guG4Y5wEwBJLSB+9UQv8g8f5K3zYvT1ZVorV606MKDY+x4EM0ZRXRu16CRjOhoCuKlJsWhTBDerNEeM/yNbCy7EStaeZN66cBQMzio7TUOVI6VO8ZMgaZKlcJqcXBUfHuJt2EeBLh5L8A0HxRGc56KQSDQST1UIto75x1fAOkQHiDmQYLdaGCkPgzzIPG2GgxEIjizRIxrIadtL2f7787uxnsz14wo7pl98PzmG/2gunkt9qa3pE+dfPJMDlaDfIVxi8UhE+A7uRdE51hEZJpdPl0k4I9QI0XtriZCseUshhzxvtsrcIFBpPy3SFMlKgjq3JruAZkyJCKEPHQ== 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:(4636009)(136003)(396003)(376002)(39840400004)(366004)(346002)(316002)(66946007)(6512007)(8936002)(6486002)(8676002)(508600001)(52116002)(86362001)(5660300002)(4326008)(2906002)(107886003)(66476007)(54906003)(4744005)(36756003)(6506007)(186003)(1076003)(38100700002)(6666004)(2616005)(66556008)(44832011)(83380400001)(7416002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: QwdQZkfPjHNcsIdJp3BxWSplv3sGvTNvP1sqaX9baPX6S/ZObuWDimGhKhdoTgRCjIeRGUPMqICDtJPHEP2uJxD75LI1WLdqMrYg+xKFgAhamUgJKmLVsKwwIVJ/p3d0E1FgsvTp9WqIR/etptiShphJ8sApL1/HM4GbekclJDIIc8hij9iM2mPhHdV5ehlqkB8/89Owqm1nizWxP8Ao/fVZJqDK4VGcHjzvd5LGSj4tdiVqb3hU2O2wRbIaWtPNor2ovF4h5PgiXJL3NIzNpMDUbPs4Ve7/b0hVQ1o2K2Pm5Cy9hVuDrLuyX6eqT39CKCcg0v2t6U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DH90P2yNQqChzBLguPO0h0xxUP+utSFV1YG82k4zDnfPB6OM/g0bbI5KQB1AQ81PCZh7uNr3L/4E+gQTQ5X/4AiZcpGlajrEPN4XzumEPQxi27BXQTarNyJR7TKB4THkFuW42dFTXUJmBR789wD7pG2VAryDpp2o59mJUwJZJqYcD+FC+jFg7I9yOox9OvjGkz4zmYjn0bqo2Vkf3Rx1xmXyb5oNPkQ2GfkJjmdgYK0hX4JYwaxOjfb5QlPtx9WguyrPt++968+NvAyWc8i5fSfzhzHZFKSprSE6cP9MWnU/2OTsRAkBmiAOp71ZhERsYWiHMThKOrR+P6oxZR5N+m4osmmmWMYACngEA== X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: b87d65c9-7c78-49ae-d2df-08d9d74cbe9e X-MS-Exchange-CrossTenant-AuthSource: HE1PR0802MB2426.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jan 2022 10:58:06.8795 (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: +RrW/Fggmhlee7ODWx6fub9NBQ1Xiqj43RkMMyzKgTd6vaJmcg0k8pXHmqMLSevK7eFLmboOPdY2WwI2CRifVovmC2XEhGdONEH+bDcuf9U= X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0802MB2282 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Hi all, Some devices (such as the Rockchip Video Input Processor (VIP) or the IT6801 HDMI receiver) support sampling of the parallel data at both edges of the interface pixel clock in order to reduce the pixel clock by two. This series adds support for this feature by using the pclk-sample device tree property. Looking forward to your comments! Best regards, Michael Michael Riesch (2): dt-bindings: media: video-interfaces: add support for dual edge sampling media: v4l2-mediabus: add support for dual edge sampling .../bindings/media/video-interfaces.yaml | 5 ++-- drivers/media/v4l2-core/v4l2-fwnode.c | 23 +++++++++++++++---- include/media/v4l2-mediabus.h | 17 +++++++------- 3 files changed, 31 insertions(+), 14 deletions(-)