Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3165262rdg; Tue, 17 Oct 2023 06:40:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEpdp/U15XMxCZgvpfRPoLpYkTJDu5lALTf8O2sgB7svwOcXpEA0MB6aNRj79SX9ZYMPKHT X-Received: by 2002:a17:903:24c:b0:1c3:64f9:45ad with SMTP id j12-20020a170903024c00b001c364f945admr2988644plh.48.1697550010101; Tue, 17 Oct 2023 06:40:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697550010; cv=none; d=google.com; s=arc-20160816; b=PuOETNj4Rn3zG/sjmmNccs8FL2NpprQqYu05uK7yab/EGhWR21iNmU4dLhJ6XcZdq8 hsFjVKkvojTUed9/+GhJHie9AofibrRDgBABgJ1oR9IMWmDgTE/oCpd0k4BTFRLRwcEp LaHryn4pyGb6UHFDfl8YWaJxSolAMXNPZZGxP89wvv3juRVDD1yTfoAIgiYkknYr0B7t 81+ZX6d3CEE2U0+HiOR+Y+lboS/nngXYC+0JHSuK7/fBMG8G4fvGZrWdiU+6Qu0miVX9 cDAw7ZmQiwU5GQw4ZkxDxnKXUlmA6XIAE3ffkd8uzjcrksp3ldbrOR9KAL0B/sthkM+c 41EQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=zcTmoQI5XOd7YSgPhdwywqy2VG0q705HIlmnAOctNUE=; fh=2hpDi6mtHcXomNFTtUMmV+fOH1fAx23JOaKEALnyOGw=; b=V1GRsG5Rji0JZpAsqfU0al7DU0kOBWDr/Yp/AN0J7OHvz1zJsczGHA4fPLaiDwwi6y DTOXgDLJdFsG9hfUnT0rdRxnMo8CCcpGGTpBj0usVCARcRDhmDz8J3P5NBJ9gBiiDKhI 7cWeoSY8ZzI4bYIW0EI1AF+aW2sLRSukIfVjT2+U2fNtec+w8/5JYh2RXCqvykGMUv95 Y7REXGPCLuMefoMD2PjeHyYXjC4uvYqnXGqCpPPtz3/yft3xcBztlRhxYa5FCc4dSWmH onNg0oQDHAiqcUsFsnaULoKeBWDG88M8mI7XeKbsl+M+RXzlre6UhQIIXtThaUVdd+jv Jffw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=NFmbL+gU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id u1-20020a170902e80100b001ca0a487ab2si1836963plg.200.2023.10.17.06.40.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 06:40:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=NFmbL+gU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id A46258029B42; Tue, 17 Oct 2023 06:40:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343893AbjJQNj4 (ORCPT + 99 others); Tue, 17 Oct 2023 09:39:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234635AbjJQNjz (ORCPT ); Tue, 17 Oct 2023 09:39:55 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05496F0; Tue, 17 Oct 2023 06:39:53 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 39HDdO2g044792; Tue, 17 Oct 2023 08:39:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1697549964; bh=zcTmoQI5XOd7YSgPhdwywqy2VG0q705HIlmnAOctNUE=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=NFmbL+gUvmprNcJ9LsQkgLvg6g5gCaC/+H9Gq09iZm1OR8MS14MJL/Z890V12cU2O ks8bhgqlg3wcKvMPK0wF2tveadJyZHUzNMi9rHveR2VLfoEZ4RycSjSZqfZsx9L3LT +dtHM2Rtv+doDY2NKv2zM0krk4dC5giepaMUALLQ= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 39HDdOEn071153 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 17 Oct 2023 08:39:24 -0500 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 17 Oct 2023 08:39:23 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 17 Oct 2023 08:39:24 -0500 Received: from [172.24.227.6] (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 39HDdFKM105476; Tue, 17 Oct 2023 08:39:16 -0500 Message-ID: <4c557cbd-33e9-a0df-3431-04ade12b6f07@ti.com> Date: Tue, 17 Oct 2023 19:09:15 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v13 6/8] media: dt-bindings: wave5: add Chips&Media 521c codec IP support Content-Language: en-US To: Sebastian Fricke , 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 CC: , Tomasz Figa , , Nicolas Dufresne , , Robert Beckett , , , Darren Etheridge , "Bajjuri, Praneeth" , "Raghavendra, Vignesh" , "Bhatia, Aradhya" , "Luthra, Jai" , "Bajjuri, Praneeth" , "Brnich, Brandon" , "Pothukuchi, Vijay" References: <20230929-wave5_v13_media_master-v13-0-5ac60ccbf2ce@collabora.com> <20230929-wave5_v13_media_master-v13-6-5ac60ccbf2ce@collabora.com> From: Devarsh Thakkar In-Reply-To: <20230929-wave5_v13_media_master-v13-6-5ac60ccbf2ce@collabora.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,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 pete.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 (pete.vger.email [0.0.0.0]); Tue, 17 Oct 2023 06:40:06 -0700 (PDT) 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>; > + }; >