Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp206135rda; Sat, 21 Oct 2023 04:57:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFFB4sGy+ZJTjtO/hX1ir4BQ7jrUXD+UovRGrxr8wuJ8OBLXEI/CsdTTsQ0zWCjdDc5EAX0 X-Received: by 2002:a17:902:e747:b0:1c9:fb76:42fe with SMTP id p7-20020a170902e74700b001c9fb7642femr4843629plf.45.1697889420746; Sat, 21 Oct 2023 04:57:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697889420; cv=none; d=google.com; s=arc-20160816; b=HSOEKuK+Q+8tglz0aUqBsyy0Ksntg37JuOxfMuBL9akB2Czx7FDjLpXB7PFNl2ZPl7 PpfwI+9zAzz5JoajP79XjwiLyhSl7wkJbG6AfUQzu+MjG6WyVpvKnWAuMNXKJaKX2BeF I7XK6bpTcGHLETjUAzdG/5eYhagAsK3gwhsuKG6FERjNNUbWnMoaSKORjGYpHSl0jo5/ YUKmA2r9uoOW1VGx9ej9pBa0tfn83bhkDXLF8r4AlonYFt/Qvn/RPsIm3i3uA/lidrLd FdUekolkKW2embxsLvDdXoqp+xgNYiXtQSuloexuDHC0U+DSv8oXnkqYz6WeJkgiQsrw rIIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=oLw64ba33EHmJ8N5eQgqKQu3iE1v5B71ukTfm3GB30E=; fh=bE0pFjmyeQlo93Xe++fcBHwz2CiWQm2dIGiW5YUyoxg=; b=tti7CTg/6ePr2tKhy3D7ePe5fDhlCdCoE/+b5Mewh0+eIhq23KX2kRoop5lwU/LsAH 6wzCjfQ02ea4HC+QRXYCoTTwV0YZ69hTB0vUxSfVYvi/mDZllYA0lKVzGptWQXYqrzwv tpQQx9pUDE3VCbdF5y7dbUDPREbhAnhK3PaEUrgU3Iqx4DhiW6mugh716+gMtp6Z98tB 9faE8H7KLI1oKEBELzAsYjk6efNjqQ7Q/vkVaTmWdw7CUWCTHE5mwucc+7+Fx8WYG5Zw RQELEPE6ec2TS1Bin/JqLw2qjENC8OV5+L5GnkbjOsWIhNLtPIKdo8AjuB/mAJhAGgUq ifbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Lt4imCyU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id n7-20020a170903110700b001cad3a744aesi1154816plh.153.2023.10.21.04.57.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Oct 2023 04:57:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Lt4imCyU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 891788070D39; Sat, 21 Oct 2023 04:56:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231126AbjJULxv (ORCPT + 99 others); Sat, 21 Oct 2023 07:53:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229478AbjJULxu (ORCPT ); Sat, 21 Oct 2023 07:53:50 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C699A1A4; Sat, 21 Oct 2023 04:53:44 -0700 (PDT) Received: from localhost (89-26-75-29.dyn.cablelink.at [89.26.75.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sebastianfricke) by madras.collabora.co.uk (Postfix) with ESMTPSA id 04A88660734B; Sat, 21 Oct 2023 12:53:42 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1697889223; bh=6RRGq7dtsDUYF+lQ+Zt4IpjIt/PofZwGotEJ0ImmOQU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Lt4imCyUAXHE/aVO8kWHutl7uB1wKalMAHhy4/9VY8jSanNaXzNkTQAlh1CPY+DrT iU2gjiOKYrDyHLoEaqIzyWv8u7Q1nBXLGS9W4foa2I4zkY4jVggfehJjWDyVfhsYaG wweOoUAfg2OaewES/D6nQ8lvO+AnMvZd0M4U00KVvqFgqeaQ71fyhIJfN0SyojpY8m tbwuLD1VbqYXzudaCgVAaQnt2Z90JOMgPZk4+wMrGc4kdM4AoOFPCxdvPCDid2hSCe O5BUM5ksgwrCVaKp3wbyHnmKoUtmUMOztIFl0LUy0GEE6A/h+OvhteVA3LdYSbl6qy OmobyL3K8WgtQ== Date: Sat, 21 Oct 2023 13:53:40 +0200 From: Sebastian Fricke To: Devarsh Thakkar Cc: Krzysztof Kozlowski , NXP Linux Team , Conor Dooley , Mauro Carvalho Chehab , Jackson Lee , Hans Verkuil , Sascha Hauer , Rob Herring , Pengutronix Kernel Team , Shawn Guo , Philipp Zabel , Nas Chung , Fabio Estevam , linux-media@vger.kernel.org, Tomasz Figa , linux-kernel@vger.kernel.org, Nicolas Dufresne , kernel@collabora.com, Robert Beckett , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Darren Etheridge , "Bajjuri, Praneeth" , "Raghavendra, Vignesh" , "Bhatia, Aradhya" , "Luthra, Jai" , "Brnich, Brandon" , "Pothukuchi, Vijay" Subject: Re: [PATCH v13 6/8] media: dt-bindings: wave5: add Chips&Media 521c codec IP support Message-ID: <20231021115340.kgjmz6fr5av6ne6s@basti-XPS-13-9310> References: <20230929-wave5_v13_media_master-v13-0-5ac60ccbf2ce@collabora.com> <20230929-wave5_v13_media_master-v13-6-5ac60ccbf2ce@collabora.com> <4c557cbd-33e9-a0df-3431-04ade12b6f07@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline In-Reply-To: <4c557cbd-33e9-a0df-3431-04ade12b6f07@ti.com> 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Sat, 21 Oct 2023 04:56:16 -0700 (PDT) Hello Krzysztof and Rob, this question is quite important for our next version and for the overall direction of the DT bindings, could you have a look at this? Thank you and Regards, Sebastian On 17.10.2023 19:09, Devarsh Thakkar wrote: >Hi Sebastian, Krzysztof, Rob, > >On 12/10/23 16:31, Sebastian Fricke wrote: >> From: Robert Beckett >> >> Add bindings for the chips&media wave5 codec driver >> >> Signed-off-by: Robert Beckett >> Signed-off-by: Dafna Hirschfeld >> Signed-off-by: Sebastian Fricke >> --- >> .../devicetree/bindings/media/cnm,wave5.yaml | 60 ++++++++++++++++++++++ >> 1 file changed, 60 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/media/cnm,wave5.yaml b/Documentation/devicetree/bindings/media/cnm,wave5.yaml >> new file mode 100644 >> index 000000000000..b31d34aec05b >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/media/cnm,wave5.yaml >> @@ -0,0 +1,60 @@ >> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/media/cnm,wave5.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: Chips&Media Wave 5 Series multi-standard codec IP >> + >> +maintainers: >> + - Nas Chung >> + - Jackson Lee >> + >> +description: >> + The Chips&Media WAVE codec IP is a multi format video encoder/decoder >> + >> +properties: >> + compatible: >> + enum: >> + - cnm,cm521c-vpu >> + >> + reg: >> + maxItems: 1 >> + >> + clocks: >> + items: >> + - description: VCODEC clock >> + >> + interrupts: >> + maxItems: 1 >> + >> + power-domains: >> + maxItems: 1 >> + >> + resets: >> + maxItems: 1 >> + >> + sram: >> + $ref: /schemas/types.yaml#/definitions/phandle >> + description: >> + The VPU uses the SRAM to store some of the reference data instead of >> + storing it on DMA memory. It is mainly used for the purpose of reducing >> + bandwidth. >> + >> +required: >> + - compatible >> + - reg >> + - clocks >> + - interrupts >> + > >Is it possible to keep interrupts property as optional given HW can still work >without it if SW does polling of ISR using registers? > >The reason to ask is in TI AM62A SoC (which also uses this codec) there is an >SoC errata of missing interrupt line to A53 and we are using SW based polling >locally to run the driver. > >We were planning to upstream that SW based polling support patch in CnM driver >once this base initial driver patch series gets merged, but just wanted to >check if upfront it is possible to have interrupts property as optional so >that we don't have to change the binding doc again to make it optional later on. > >Also note that the polling patch won't be specific to AM62A, other SoC's too >which use this wave5 hardware if they want can enable polling by choice (by >removing interrupt property) > >Could you please share your opinion on this ? > >Regards >Devarsh > >> +additionalProperties: false >> + >> +examples: >> + - | >> + vpu: video-codec@12345678 { >> + compatible = "cnm,cm521c-vpu"; >> + reg = <0x12345678 0x1000>; >> + clocks = <&clks 42>; >> + interrupts = <42>; >> + sram = <&sram>; >> + }; >> >_______________________________________________ >Kernel mailing list -- kernel@mailman.collabora.com >To unsubscribe send an email to kernel-leave@mailman.collabora.com