Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2551671rda; Wed, 25 Oct 2023 06:12:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGoixZEuLe7d2I1mqbq1Rx0TYrHIFVvV8J8rYocSDtVULx5VKx7NqUGwArxo7Kpasqd1PPx X-Received: by 2002:a25:b94b:0:b0:da0:228e:9cc5 with SMTP id s11-20020a25b94b000000b00da0228e9cc5mr6253201ybm.42.1698239547858; Wed, 25 Oct 2023 06:12:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698239547; cv=pass; d=google.com; s=arc-20160816; b=hoSA2PIkm3EdkpRVnrZrGuyAt6v1DwEfQxmXDeOBLsmW98b9nSNzXDYQlwE9fofRVv h23A72x7qskYG27mlfnkhEQkT9+qKpk3QlS9EKkYJ1iff2b4zqpbjDG/2hUPz88+oMEs 2ao29+ynsuiVPqg+rSgAeait22wYfUTsesDqydbdU7X8yE1uxaMUsImTp1k2/fQ2eCxy vo2YGRajIhN+5eaGYTVrzzpxiK1W88NjFiCXrkffAroL5IPr42WoxmTn5zXYCfq0tl92 QgQxWBuCqSjgeQV4F3wzDwUG7eIFC9xqt0J89x1lk75LTK5hDCSZpdiVlb61ceg4ePmE kIUA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:organization:from:references:cc:to:content-language :subject:user-agent:date:message-id:dkim-signature; bh=ZO/wvLvFgZOSltfJzlHYVZYZLacswJX1nlYq9Kqiud0=; fh=0VDmUrERmoP+A3tzmCE8pjql74AGYL/J+FC3KiTTCXc=; b=yL/OcoXPCB1JC+jYXQnk+P2Gdmh2FjZyQtKJZqfvv5HE74Y48KEqlSAU/bxpc7d0S5 OX98mCImbV39KbBSpZPag1G3+dHPI+Lx/EBKDspuJgh27jOAP9dhfoMXU93eusvOnFUF SUHCf/hy3+uetUwnQiQFmmm5pJYtFLlNNBp2ZvbPw6lDfqOh38CSdcCyGjKg0LhYbLP3 D2Pbq+a9vrVWNn8g+D6/PiXKRbc4zVGr8BTqw6Cnv5Ny3b27nrKdWHXDcW55kMMDXUVC //C0t53VGti2UjtM6IVK2lh9+bfBoKFNmm1vUZBf/noL59XfiQklvIMdOE7pFcplguOR hk8A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wolfvision.net header.s=selector2 header.b=Ull6uLCT; arc=pass (i=1 spf=pass spfdomain=wolfvision.net dkim=pass dkdomain=wolfvision.net dmarc=pass fromdomain=wolfvision.net); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id j9-20020a256e09000000b00d9a66ec5a28si10573170ybc.121.2023.10.25.06.12.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 06:12:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@wolfvision.net header.s=selector2 header.b=Ull6uLCT; arc=pass (i=1 spf=pass spfdomain=wolfvision.net dkim=pass dkdomain=wolfvision.net dmarc=pass fromdomain=wolfvision.net); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 9912F802EE76; Wed, 25 Oct 2023 06:12:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344307AbjJYNMN (ORCPT + 99 others); Wed, 25 Oct 2023 09:12:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234964AbjJYNMM (ORCPT ); Wed, 25 Oct 2023 09:12:12 -0400 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2072.outbound.protection.outlook.com [40.107.22.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E6D9111; Wed, 25 Oct 2023 06:12:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ESjOixrF8xE1o4innKiLS3NeyOFmiEeJai1UE+U5VJSxQzI5EqUqvmYzSfzSoMHxRCRy1YyqcPpM9dj8gE3XKQkPy9vecUnHYnQmvp4zl1uOKaWiohVXoUmmEXLVrwX0e8XS8iFQJnD+kPGNV+mQB0VGixl1hnGY9IL0DKA6eP1KnH0INPNLo8KSg+EWCK+n0nzDZ+SSHVIsVFiY0L3vLV1A8l7GuxWZKMBf1znU4ppEAA1CApwEEJtd0wpsxDtr5tfjGWBAxRYBGs2wwncmpOJBmYDfCMglk0XbeIn/rT8jQcOswJh2blB1YwWlnY2+Ja8M9G2998AtjoU+NGyNlA== 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=ZO/wvLvFgZOSltfJzlHYVZYZLacswJX1nlYq9Kqiud0=; b=cBdjmrcirvVq8qRkTEOr62FEC8fvPrdcNivx3FCNAEGpTK4dtXhla/7vRk18tMBAdiJvkfCYOFL7qnHh9p+BJRpyTaYD3TVoswsUlpIPYMKzbJJzQ5/kN5eQzwFe4Woj8NvPaaacM58Q56VWkJ2ntxMTO2Yv6FQywPyYZVX2VXIecqgU489sRwG/iGgMyDXdUAfWGBr8RRzhpfwa6aETGHlHxoEMgApj4/nVKNcfVIR5SwUQquil486tzuLvQhAcQCMyOI0Yjr6RRbo+IVq5Vv+N3DFEwBELwK1vZfPKxk5iyKNkz2gepQDxblPS4UY9AOCQQjHYrgHoTZ3CFnONBw== 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=ZO/wvLvFgZOSltfJzlHYVZYZLacswJX1nlYq9Kqiud0=; b=Ull6uLCTK31eQOzC51UhOlDFH0kaDEcelkxNC7e1q+PnX8h+vyVOlXBmOefKInNahKuopFIABPR8pWmYwhnLVLnPOS9DQaBE0xhPiQRlJV42EaUaGCA+mfEsB80UMqiOWkI2XpCLVQAXTrlDDaj1wow2AIstfCKrwgvlA74Qhv4= 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 AS2PR08MB8408.eurprd08.prod.outlook.com (2603:10a6:20b:55b::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.31; Wed, 25 Oct 2023 13:12:06 +0000 Received: from DU0PR08MB9155.eurprd08.prod.outlook.com ([fe80::87b4:3635:b89d:c07c]) by DU0PR08MB9155.eurprd08.prod.outlook.com ([fe80::87b4:3635:b89d:c07c%6]) with mapi id 15.20.6933.019; Wed, 25 Oct 2023 13:12:06 +0000 Message-ID: Date: Wed, 25 Oct 2023 15:12:01 +0200 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v8 0/3] media: rockchip: Add a driver for Rockchip's camera interface Content-Language: en-US To: Mehdi Djait , Paul Kocialkowski Cc: mchehab@kernel.org, heiko@sntech.de, hverkuil-cisco@xs4all.nl, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org, conor+dt@kernel.org, ezequiel@vanguardiasur.com.ar, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, alexandre.belloni@bootlin.com, maxime.chevallier@bootlin.com References: <11cccad3-e665-41dc-89c2-5ddc22b1e2fe@wolfvision.net> <5438a194-7349-4a20-84d0-efe88b7ab396@wolfvision.net> From: Michael Riesch Organization: WolfVision GmbH In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: VI1PR09CA0174.eurprd09.prod.outlook.com (2603:10a6:800:120::28) To DU0PR08MB9155.eurprd08.prod.outlook.com (2603:10a6:10:416::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR08MB9155:EE_|AS2PR08MB8408:EE_ X-MS-Office365-Filtering-Correlation-Id: 6f20195c-f24f-4b3f-f73e-08dbd55bfcb0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ndP2Uk1unDU8aBJG2S1R6D8TWxiIRt3nBwFt54evUA6CqwQmFz1TuMIAn5Ck5eekrHj0RrY4ZDapWNIU0X1lxQMSPU4lNh196ijXAME6ncCIJYJkvzS1d0kJWI7D3Hi3O9GyPBaS+KZohxLRQlFc6BYFrhGVLHkWK45F8oIuyiRXxUfIESj3EJnz2qhwb/uJ7y7QKa5tv8Us7nIh0c0abOwtTSGCNhgQjObA/Qm/wQrhi5G54034z6O7YX1S5PiqJHWjJEV2q0cvUobPkl+IOG3fnj3zu82Pd4EKVHs2GaIiB0waWHBfa20ManRZxM7nmLnsBUM84RgFFhgmG8Y4ehwll94wq/TT86tTrNZX7lTvunBGlc5HH/9RCwfpfg8wxRShd32sJGK+Q+dv/7reLad27npnaX/P3LQUgeEb8dWSt/2FX/HnLl/7kqEB2Y7z5OAh83Lx7KeNrVkXWTKWle+4kZ6fniNLuwNbwxMLYtAK2JF3RAl6Ao7tmldZaHrxaN9JOBH8iEZahJVdKwXNIVZnWqmgohFAWbJjm2ws8nZZWmD7kg5vcguzunEwaZ2l+2L8B6U43zvS4CgdSwuP6o5Em2DhtQpx26FVRxQPYv7LbYHEwEwp+Vdjil0Z9s8J8lXs76wanOwc/8xvGo6TiA== 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)(39850400004)(366004)(376002)(136003)(396003)(346002)(230922051799003)(451199024)(64100799003)(1800799009)(186009)(44832011)(2906002)(86362001)(38100700002)(41300700001)(6666004)(2616005)(66946007)(66556008)(478600001)(6506007)(110136005)(36916002)(53546011)(6486002)(6512007)(316002)(83380400001)(66476007)(31696002)(5660300002)(36756003)(4326008)(8676002)(7416002)(8936002)(26005)(31686004)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?VEp1SUVOYlJ4Zk1wdE1WMG1vcW5BZnREcVdmSjhLUEdycVhDV0RwcGNkUUNC?= =?utf-8?B?S3dqUjhVZXZaSGxMVzhhMUFTaXl2QjAyM0htc1FKeUVzTzJnMXdSWDg3ajdE?= =?utf-8?B?bWliV0JGY28raWNvQ2xJdnF2Q1FMV1lUQTY1T0p1MXB0emUweERjMXJEayto?= =?utf-8?B?MTVvOFJXVmEwbEhFNWlVcFVRM3Ezc0p5aDJRcnpNa09FOUIvSkJidnlj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S9ROXBDUHI2WFBTQmFZV0lQL3cw?= =?utf-8?B?ZzA3WmRsSFRwdHc4dnRvT1lPc21Uc0x4Z3paYVF2QWFvVTdTbHlQNjN1bXYv?= =?utf-8?B?UWlZaFJST2haM1RXdEp5bWpneERNSFFFbTBXUjFZeVdIb0laQmpZZ3JDa1Mx?= =?utf-8?B?WGc9PQ==?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 6f20195c-f24f-4b3f-f73e-08dbd55bfcb0 X-MS-Exchange-CrossTenant-AuthSource: DU0PR08MB9155.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Oct 2023 13:12:06.2963 (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: ERUYb1rsIEzPUi4MeD5kxwvd8zeKWhAo8BZYITD2h4366ODX2cxRb7VyobTcSaHusQAndcvO5S3k4JbAp/7HMsHHsYHCvWpJxPyJt/CTcgk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR08MB8408 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 25 Oct 2023 06:12:23 -0700 (PDT) Hi Mehdi, On 10/25/23 12:33, Mehdi Djait wrote: > Hi Paul, Hi Michael > > On Wed, Oct 25, 2023 at 11:54:27AM +0200, Paul Kocialkowski wrote: >> Michael, >> >> On Wed 25 Oct 23, 11:17, Michael Riesch wrote: >>> Hi Paul, >>> >>> On 10/25/23 10:43, Paul Kocialkowski wrote: >>>> [...] >>>>>> Here is the detail of my research on the concerned chips. The + at the beginning >>>>>> of the line indicate support in Rockchip's 4.4 tree: >>>>>> >>>>>> - RK3566/RK3568 (2020): CIF pins + VICAP terminology >>>>>> + RK1808 (2019): CIF pins + VIP registers + VIP_MIPI registers >>>>>> + PX30 (2017): VIP pins + VIP registers >>>>>> + RK3328 (2017): CIF pins + VIP terminology >>>>>> - RK3326 (2017): CIF pins + VIP terminology >>>>>> - RK3399 (2016): CIF pins >>>>>> - RK3368 (2015): CIF pins >>>>>> - PX2 (2014-11): CIF pins + CIF registers >>>>>> + RK3126/RK3128 (2014-10): CIF pins + registers >>>>>> + RK3288 (2014-05): CIF pins + VIP terminology >>>>>> - RK3026 (2013): CIF pins + CIF registers >>>>>> - RK3168/RK3188/PX3 (2012): CIF pins + CIF registers >>>>>> - RK3066 (2012): CIF pins + CIF registers >>>>>> >>>>>> Note that there are a few variations over time (added/removed registers), but >>>>>> the offsets of crucial registers are always the same, so we can safely >>>>>> assume this is the same unit in different generations. >>>>>> >>>>>> Since the RK3066 is the first model starting the RK30 lineup I think we can >>>>>> safely use that for the "base" compatible to be used for e.g. the bindings >>>>>> document, instead of px30 which is just one of the many SoCs that use this unit. >>>>> >>>>> Once the name of the driver is defined and adjusted in v9, I can try to >>>>> give the series a shot on my RK3568 board. First attempts to do so > > This sounds good! > >>>>> basing on Maxime's v5 showed that with a few modifications the DVP >>>>> feature works fine. In a subsequent step, we could discuss the inclusion >>>>> of the MIPI CSI-2 things in order to keep the driver sufficiently general. >>>> >>>> Nice! I guess there will be a need to introduce a variant structure associated >>>> to each compatible to express the differences betweens these different >>>> generations. >>> >>> Indeed. If Mehdi and you suggest something, I'd be happy to review. >> >> Well the be honest the scope of work on our side is really centered on PX30 >> and merging this first version. >> >>> Otherwise, I'll try to come up with something reasonable. IMHO it would >>> make sense (as a first step) to have the clocks and the resets in this >>> structure, as well as a sub-structure that describes the DVP. The latter >>> consists of registers mainly, but maybe supported input/output formats >>> and other things should go in there as well. Also, downstream code has a >>> significant number of >>> if (some condition including chip_id) A; else B; >>> things that we should probably get rid of with this variant structure. >> >> Indeed I think we want to try avoid that. Another common option is to define >> capability flags to represent differences between generations in a more >> practical and clean way than explicitly checking chip ids or so. >> >>> As next step, a sub-structure for MIPI CSI-2 could be defined. RK356X >>> will have one of those, RK3588 will feature even six of them. So we >>> should add a const array to the variant structure. >>> >>>> Note that we will also probably need to convert the driver over to a MC-centric >>>> approach, but this is of course outside of the scope of this series. >>> >>> That would absolutely make sense. What is missing, though? (I was >>> wondering that the driver calls media_device_(un)register but no >>> /dev/mediaX device pops up.) Sorry, had a false memory of this. The media device *does* pop up. >> Switching from video node-centric to MC-centric is more of a semantic change. >> In the first case we expect that subdevs are configured by the video device >> driver and userspace is not expected to change anything in the media topology >> or to configure media entities explicitly. >> >> In the latter case it's the opposite : the driver should never try to push >> configuration to a subdev and should instead validate that the current >> configuration makes sense. >> >> Still, I believe should be a media device registered and visible to userspace. >> Mehdi could you take a look at this? Do you see a media device in `media-ctl -p` >> and /dev/mediaX? > > Yes I do have a media device > > media-ctl -p > Media device information > ------------------------ > driver rockchip-cif > model rk_cif > serial > bus info platform:ff490000.video-capture > hw revision 0x0 > driver version 6.6.0 > > Device topology > - entity 1: rockchip_cif (1 pad, 1 link) > type Node subtype V4L flags 0 > device node name /dev/video0 > pad0: Sink > <- "tw9900 2-0044":0 [ENABLED] > > - entity 5: tw9900 2-0044 (1 pad, 1 link) > type V4L2 subdev subtype Unknown flags 0 > device node name /dev/v4l-subdev0 > pad0: Source > [fmt:UYVY8_2X8/720x480 field:none colorspace:smpte170m xfer:709 ycbcr:601] > -> "rockchip_cif":0 [ENABLED] > >> >> Cheers, >> >> Paul >> >>> Best regards, >>> Michael >>> >>>> >>>> Cheers, >>>> >>>> Paul >>>> >>>>> @Mehdi: If you could Cc: me when you send out v9 it'd be much appreciated. > > Of course I will :) Cool, thanks! Looking forward to it! Best regards, Michael > > -- > Kind Regards > Mehdi Djait