Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3376456rwb; Mon, 7 Aug 2023 12:28:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF6ckMYSysgtXNGGDHxuCvt1MvbBGOeF+6wZM1+5UFrnHMl/ZFwyTKcUzwPuZpaT6oRFNe2 X-Received: by 2002:a05:6808:2218:b0:3a7:a00b:f725 with SMTP id bd24-20020a056808221800b003a7a00bf725mr4065439oib.47.1691436524009; Mon, 07 Aug 2023 12:28:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691436523; cv=none; d=google.com; s=arc-20160816; b=eaUA8amg1d/m0Ur69rvKpewQpWx0YOu3SlCWU6EPDt4QrCOYcht+Up137aU3cXkPUq Um8HQ3agNTY3M5G4AxdSWN4Oqgol8ZtTWL7Iw1hVBPUeMJLLIHjeBXPXCPiH3CSJMTOu D7oPfTiCBSbfJKzHrWsqn2ffUfMgJn5VlCgfXTxb2hF1q22X9C/jjqcjziLz5elaGm5o 8yWwDUNDw48b2uDgmiuGedY4MaJaM6HKknniO5H3eeGol7ew2bUA/PUmqI6fBI/960xT CHcRPpfiYGyc1a2e1WuSgFiJDRXOA4bTKR14TXD18/i293lhJy5hggXnGIW6TtKFIZCh GE3w== 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:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=38HrjyT6i/aVsxFHr+VbXIpwsezPIh0E2/80JReEaOQ=; fh=OJCzs2Xca2wB+lkEqefDoAuVIwYNBDgwIF1v7vqT5pI=; b=gJFAQjRGgzrAV8yk459XI26+b9hel7JCxio8pIj3ZhFQK/Hh+dU349djAtJrZNbTgo 54ClsW/nOd3i0798ZTIfm7wcYTGKgA7mLH8g40PbNY3VMPvWRgvLnBlXHS8tBoh09Z4C vRG4qN1r4Svk0mAH9nQz6fxCrnc5HRizKir2w0aqVG88lOJmfIVk0UUWHJVVwz00M9Xv Ac/ESHc7Oocb6LZsBDvulKOja9TC4kJj/SgGxfTOyqEpk5usjRP5tLntjyxVYGb2Vo9X nD5eCWQ7joEVDM3apTEVf0eBNyWHp1jtL5xJW/P6uRFpxSG0DuThX63fni1t2tZDZbWI Q5oQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="FV/xjsJl"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m30-20020a63711e000000b005486b0ebbafsi6063277pgc.626.2023.08.07.12.28.30; Mon, 07 Aug 2023 12:28:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="FV/xjsJl"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230127AbjHGSph (ORCPT + 99 others); Mon, 7 Aug 2023 14:45:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230256AbjHGSpg (ORCPT ); Mon, 7 Aug 2023 14:45:36 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 003321736 for ; Mon, 7 Aug 2023 11:45:33 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2b9bee2d320so75238041fa.1 for ; Mon, 07 Aug 2023 11:45:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691433932; x=1692038732; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=38HrjyT6i/aVsxFHr+VbXIpwsezPIh0E2/80JReEaOQ=; b=FV/xjsJlU2e1sSDD4mDGS/tWpf61bWICtkZTcByRo+NyPFnLiZ5BnJtPrzTk5/V9Lc KqAi6Ajk8+LW6wTfC3RlBljBSEpWsJY9OuWmYtJe5KvaaxaSre6rqSAP8KKhBymvMpAJ Nr6Or2Hn/3l/KEcbWxDRFugTD7uFIEvglLAEVPVX8jtI0ofq1veofYL32iQjWmmFPJBj +XcEEBpZpVeWsTSrxIoO5Ib2os75LR4Lb0TkoIxwk0i8WC3z85B79ZYiRMTTHK1vdhT3 BayP67zH7DoJn4iynV5vUhJwK2xOHHR5/VcHvp6inm1cFITq9lI/10v5fvmSlDf+HB0b 1B0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691433932; x=1692038732; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=38HrjyT6i/aVsxFHr+VbXIpwsezPIh0E2/80JReEaOQ=; b=Urax1zg6Ask+qnlrmn3/WHgPrmxIrwbXbepZxDWUeNuvelV/O08z0YBKQiuB2OSsCo jx3REAsqfFILdzJAAC+Yx0f5Fgin+8YcF5wP374SwHIrjmK2Xu9qLlIwReA+eqjWSBbE y/sBf+92FlWiSJ8kXyeh5k8OXYhM76/xAu3auYR4ALsx+k4ym7Ohr2BUlC0B+/a+xaiw h5z824PvW/A8Ff27Rrs/GHEalKjjXrNzX7gJog3bWAdESIY1Wqs3KJBGUcWcsYHGxCLs SGEMtxeHIkP+LbpCGqzEm5Q8fcccd3lonZre7QO2GHhqstuiC4jbjIxxqN207tWZuFUE 4Xcg== X-Gm-Message-State: AOJu0YxbHXxz+u0fL0WweTwztdrs9GtjLBNTnxSUkkLyOildyCGo0iVt cfg2DGAyQMNQz1j6eYG1SH258A== X-Received: by 2002:a2e:6a11:0:b0:2b5:7f93:b3b0 with SMTP id f17-20020a2e6a11000000b002b57f93b3b0mr7173204ljc.17.1691433931956; Mon, 07 Aug 2023 11:45:31 -0700 (PDT) Received: from [192.168.1.101] (abxi185.neoplus.adsl.tpnet.pl. [83.9.2.185]) by smtp.gmail.com with ESMTPSA id u19-20020a2e9b13000000b002b9f4841913sm1936258lji.1.2023.08.07.11.45.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Aug 2023 11:45:30 -0700 (PDT) Message-ID: <0feda32e-5430-4f35-b18a-7afce63a970c@linaro.org> Date: Mon, 7 Aug 2023 20:45:29 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/6] media: dt-bindings: Document SC8280XP/SM8350 Venus Content-Language: en-US To: Bryan O'Donoghue , Krzysztof Kozlowski , Stanimir Varbanov , Vikash Garodia , Andy Gross , Bjorn Andersson , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Marijn Suijten , Konrad Dybcio , linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230731-topic-8280_venus-v1-0-8c8bbe1983a5@linaro.org> <20230731-topic-8280_venus-v1-1-8c8bbe1983a5@linaro.org> <84ab9380-2fb2-76f9-2eb9-71d9202718cc@linaro.org> <659e30a7-80f7-4fd8-af58-45505213a2ef@linaro.org> <816359f7-ad4d-659f-db39-c971e1b1cd9a@linaro.org> From: Konrad Dybcio Aut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DLAXmW8v3gIDWyIcgYqb2v8QO2Mqx YMqL7UZxVLul4/JbllsQB8F/fNI8AfttmAQL9cwo6C8yDTXKdho920W4WUR9k8NT/OBqWSyk bGqMHex48FVZhexNPYOd58EY9/7mL5u0sJmo+jTeb4JBgIbFPJCFyng4HwbniWgQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: <816359f7-ad4d-659f-db39-c971e1b1cd9a@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7.08.2023 20:44, Bryan O'Donoghue wrote: > On 07/08/2023 16:02, Konrad Dybcio wrote: >> On 7.08.2023 16:04, Krzysztof Kozlowski wrote: >>> On 07/08/2023 14:41, Konrad Dybcio wrote: >>>> On 5.08.2023 21:29, Krzysztof Kozlowski wrote: >>>>> On 04/08/2023 22:09, Konrad Dybcio wrote: >>>>>> Both of these SoCs implement an IRIS2 block, with SC8280XP being able >>>>>> to clock it a bit higher. >>>>>> >>>>> >>>>> ... >>>>> >>>>>> + >>>>>> +  iommus: >>>>>> +    maxItems: 1 >>>>>> + >>>>>> +  video-decoder: >>>>>> +    type: object >>>>>> + >>>>>> +    properties: >>>>>> +      compatible: >>>>>> +        const: venus-decoder >>>>> >>>>> That's not how compatibles are constructed... missing vendor prefix, SoC >>>>> or IP block name. >>>>> >>>>>> + >>>>>> +    required: >>>>>> +      - compatible >>>>>> + >>>>>> +    additionalProperties: false >>>>> >>>>> Why do you need this child node? Child nodes without properties are >>>>> usually useless. >>>> For both comments: I aligned with what was there.. >>>> >>>> The driver abuses these compats to probe enc/dec submodules, even though >>>> every Venus implementation (to my knowledge) is implicitly enc/dec capable.. >>> >>> Holy crap, I see... >>> >>>> >>>> Perhaps a bigger clean-up is due. I guess I could just create the venc/vdec >>>> devices from the venus core probe and get rid of this fake stuff? >>> >>> Few devices (qcom,msm8996-venus.yaml, sdm660, sdm845) have clocks there, >>> so we actually could stay with these subnodes, just correct the >>> compatibles to a list with correct prefixes: >>> >>> qcom,sc8280xp-venus-decoder + qcom,venus-decoder >> Hm.. looks like pre-845-v2 (with the v2 being "v2 binding" and not >> "v2 chip" or "v2 hardware") these were used to look up clocks but >> then they were moved to the root node. >> >> I am not quite sure if it makes sense to distinguish e.g. >> sc8280xp-venus-decoder within sc8280xp-venus.. >> >> Perhaps deprecating the "8916 way" (clocks under subnodes), adding >> some boilerplate to look up clocks/pds in both places and converting >> everybody to the "7180 way" way of doing things (clocks under venus), >> and then getting rid of venus encoder/decoder completely (by calling >> device creation from venus probe) would be better. WDYT? >> >> Konrad > > As I understand it though, for some classes of venus hardware - earlier, it was possible to have two encoders or two decoders and it really didn't - perhaps still doesn't matter which order they are declared in. > > That's the logic behind having a compat string that assigns either encoder or decoder to one of the logical blocks. > > You can have any mixture of > - encoder > - decoder > > - encoder > - encoder > > - decoder > - decoder > > - decoder > - encoder > > - encoder > > - decoder > > I think it should *still* be the case - whether it is a practical reality or not, that any of those mapping can be selected and supported. That can be taken care of with match data. Konrad