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 5B445C4332F for ; Fri, 10 Dec 2021 18:33:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245418AbhLJSgo (ORCPT ); Fri, 10 Dec 2021 13:36:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245388AbhLJSgn (ORCPT ); Fri, 10 Dec 2021 13:36:43 -0500 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E25B9C0617A1 for ; Fri, 10 Dec 2021 10:33:07 -0800 (PST) Received: by mail-ed1-x529.google.com with SMTP id r25so32205522edq.7 for ; Fri, 10 Dec 2021 10:33:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vanguardiasur-com-ar.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=R+5wfzvY98r911pdlNHS5MRZhjqkHPF9SqDy5RQ+nGs=; b=0FrAeyHRpiQDLNRCH38LGYEW5OlercFk3DROOyI+5MF4Aiw8BvLF+GCTJpv3NKxJy8 w6XzrFa0A4VvMMlEU5z/Z298tMnaEJKBq6VeGIjX+thf/iO5KbDMg1BG2s0ux0pQV0XL L0w0pukiLEDpC5eKc8vPyhFf4+3+6sceGamqAVhs5Kn+fhrwpRXew7EnfGZfjV1KOpOo GsbDXtupxwNXVLa7onRj0aOr7ByIMeeLVr8b9i5Ih2ez3BMkuu+Noz8qQcPqLFM956T3 mU1cLd9j/5Aeb5XROTdKgsLG6YeZUnyInnb8MjJCX3TEKg+E78spgZbNmQA8jGbD++MV Xm+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=R+5wfzvY98r911pdlNHS5MRZhjqkHPF9SqDy5RQ+nGs=; b=wBG1sM1+SgOMLNfXEqbZdiSWvt7GC2kFD5kXtK0AnNRcQAQJj1GE/5TaxO/CQTz6Tr U8O01zYusMaENH7LkKY/smA30lSiZzfyj5mLpCOo4xgt/ibqYU38IUkEjf5LDgQWuzIB X8SctjQRyWYFydwyJoFH62W46TOMCkEFeQNrTtf55md4fYmP9sMmstMz6pFfdgUYyMMO FwKWzZAzHsGXw8cNLGJNE1bW6WhrqM2opjcfW7Obaaw3couIlFCCOtmsruP4lMlQvSP+ D+etYhXIOzI3jRIGQ+ovHuGLzytCEYa62NQ93VvlJn2zCKYiJRZmlzGa0G68wyjk5zsA q4wA== X-Gm-Message-State: AOAM531qsmcvcdTHWvb28Iu/UQyJIZE0w6bqq5x7zWpqwgxJHgJRet4s KUs75OMTdtfavQvxteMwirHxQ28sUBQBIOCukgGriQ== X-Google-Smtp-Source: ABdhPJw2lS/O2yAfLVTw6WVq78ELyMdt5/AEs5anuvPRPowAgkoa3NmZtsHE2c0DEj0r6fuPtxiB7KX0gypvQotrn6Q= X-Received: by 2002:aa7:c30e:: with SMTP id l14mr40506518edq.370.1639161186439; Fri, 10 Dec 2021 10:33:06 -0800 (PST) MIME-Version: 1.0 References: <20211208225030.2018923-1-aford173@gmail.com> <20211208225030.2018923-5-aford173@gmail.com> In-Reply-To: From: Ezequiel Garcia Date: Fri, 10 Dec 2021 15:32:54 -0300 Message-ID: Subject: Re: [PATCH 04/10] dt-bindings: media: nxp,imx8mq-vpu: Support split G1 and G2 nodes with vpu-blk-ctrl To: Adam Ford Cc: Lucas Stach , Rob Herring , linux-media , Benjamin Gaignard , Chris Healy , Adam Ford-BE , Nicolas Dufresne , Philipp Zabel , Mauro Carvalho Chehab , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Greg Kroah-Hartman , "open list:HANTRO VPU CODEC DRIVER" , devicetree , arm-soc , Linux Kernel Mailing List , "open list:STAGING SUBSYSTEM" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > > > I'm in favor of dropping the old binding from the schema. New DTs > > should clearly use the new binding and old DTs shouldn't change > > anymore, so validation is less useful there. > > I wonder if it makes sense to have a more standardized hantro schema > for all the users instead of one dedicated to each platform using a > hantro driver. The unified schema could have all the various > compatible flags so the driver still knows which features are > enabled/disabled and it's very clear who all the users are for it. I > would think it could cover both the encoder and decoder variants as > well. We do something similar for 8250 serial ports. > > If so, can someone from the media group suggest the best one to > follow? Ezequiel suggested I look at the sama5d4-vdec to help reduce > some clutter in the driver. If that binding is good enough, should I > just add the compatible flags to that and potentially rename it. > A unified schema might sound elegant and compelling, but I suspect it can bite us down the road, due to differences in the platform integration. Seems we are all on-board going forward with a patch similar to this one, but also dropping the deprecated binding from the schema (while of course still supporting old DTBs on new kernels). Rob's suggestion about having a warning in the platform if the binding has not been updated, sounds like very useful too. Keep in mind v5.16-rc5 is near, which means we still have a few weeks to discuss this patch, until the next linux-media merge season. Thanks, Ezequiel