Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3334773rwb; Mon, 7 Aug 2023 11:45:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG7Re3nKNgJR7DAHvjEoRZmV1ZUqSsVCzVrvlXGEO1y7F8sOq/Ol0IXJRDBiuTr2Ul8P0pc X-Received: by 2002:a05:6a00:180c:b0:66f:7076:a5b4 with SMTP id y12-20020a056a00180c00b0066f7076a5b4mr7953407pfa.7.1691433931354; Mon, 07 Aug 2023 11:45:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691433931; cv=none; d=google.com; s=arc-20160816; b=W6LFDI6YCPPXL8a5WQUAv+1A47fjI4/PHOw9naNc/OKitp9fmc0XBv9FDF3xFMCJVV kbBKY2ELbfjKQCcwvwa+bdL6oqd5AGCXvtKqyOnx/fSoF/Fwk+XgNkRkcbS9R/iUf2Vc e+NwNzSQ9aHUb7ThIwwzBMcnSVfgvTy56Bo+wE46PcYoKwxI+du+pIodXJa5EMtEAA0J rRgPF+MYRcAZwHOiPtskVKIlTRtAY/4S64rc3rdZy4W5f901VPuzR68j7oSFGkm4Mb4y +3cjUAEfYE876wf+HR8rgbIioXzV6JABhewXwGF2Gp/V00tH2QkO5bmfwPh9ypRY31uE KGYw== 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=k7Lgg7kjrbEt45qFR8K/nxw0x7tFUualnc3Ld3Cm0jg=; fh=2AqlWQ1BCWg4VE4/CpQwSv8lXATOaBGIap293dHV66g=; b=Dgxr1fHmLRZxfaJErMINpbqh0HQOlywOTkNMSE+37jsEXlPy4HdDLSJM5ajqgzvj/z yL2nLG8scoKRU5fNmKsNkRyOPh/XIH3irqrFSr5uWmZEP794feoTtdWnhgpVyyo4IjKQ Y+XZBgD7gGH5g2WTQWm04t9ThPN9MZBwbkqN148ELNOAZrBfhuDtqzZm6BUiX+LbkqKU h7JcauBymhTgErelr5SdU7VpynDEfs0stGerzC+qOYixV12jACiwPPaXAEH1LIvbJ1fQ qZD2pX5pFylYhbsQiiG7oPao5PFom/w0flUmDNXgNwuDmLB7wVR94jH5jT7zfv37YSW+ wHrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BT4SIJJV; 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 cj24-20020a056a00299800b006871a42e1e5si6112458pfb.50.2023.08.07.11.45.19; Mon, 07 Aug 2023 11:45:31 -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=BT4SIJJV; 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 S229628AbjHGPCa (ORCPT + 99 others); Mon, 7 Aug 2023 11:02:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229689AbjHGPC3 (ORCPT ); Mon, 7 Aug 2023 11:02:29 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89F8410CC for ; Mon, 7 Aug 2023 08:02:27 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-4fe1344b707so7218205e87.1 for ; Mon, 07 Aug 2023 08:02:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691420546; x=1692025346; 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=k7Lgg7kjrbEt45qFR8K/nxw0x7tFUualnc3Ld3Cm0jg=; b=BT4SIJJV6GJIPCL23DUMJMBHHtMnQznH+vfM05AG7WxxWsN/Ht/OQr7Fvi933rw+rK SA/zJ8kzhiCxmTMkw+VOx0E5+/kTIsUvCACkPgVGcL8YQT1DAtlgcBKv7mb/hRFDHlOy sKJwqAUb9PUHDYw6AI0J2mO84tD+glmY5OdvcKm2YtNf8+07iqdg4e6Tuhl0xrCh/QKN vIjCjeU39tM+EsxSHakayFoNbfGdAphhdE5zWovrXUMv/oLh5Hdki1f4BYRuZ/8XV6sy 7jWTlqV6sQ3m3Ikwlq3jH7C+l0AbL0mf2rfUgh6d695CKy+tjTXE5c0PMTPJOB8bwU+/ Qdmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691420546; x=1692025346; 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=k7Lgg7kjrbEt45qFR8K/nxw0x7tFUualnc3Ld3Cm0jg=; b=A7l6vB4zayLqo0VkcaF8aVRZxuyXO2D6GCgTkYT8mHLXT7scdikCV+a1ttaztk6VHe lvoMyibkKAJ20eKK69i5JK+0t37b9JBK+jvxuGAWwChbGJLhCfWvxUPBsHVWGVuSkPDK mhb1gFkD764I+BU1EvV6Aay0xFmZ86J2CFbkK36ctJHh5nrrvKAQMwezmxhpHlhWAZnB plhkis0v2ZQYr54SSBFdWvfLvo8kvxEfLnw1CJm+fqoMFwMYOSSTboFfboumGIPhxMjV nCTKJIeaOFeLPkgqYyPqkLQkNJ3zKZPa/CM62TtR1IiGPv2Kc2BFUzOLwMWAGo7jwQJ1 LFkg== X-Gm-Message-State: AOJu0Yz68nVG1v+zR04pSnWREuWECgKQ3TE79JycBw2/4ReYCwqYGpes WXIqkDXmCu5TLdvgPX44ZEyG/g== X-Received: by 2002:a05:6512:2348:b0:4fb:73ce:8e7d with SMTP id p8-20020a056512234800b004fb73ce8e7dmr7154064lfu.15.1691420545659; Mon, 07 Aug 2023 08:02:25 -0700 (PDT) Received: from [192.168.1.101] (abxi185.neoplus.adsl.tpnet.pl. [83.9.2.185]) by smtp.gmail.com with ESMTPSA id f23-20020ac25337000000b004fbb1f7352csm1514948lfh.72.2023.08.07.08.02.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Aug 2023 08:02:25 -0700 (PDT) Message-ID: Date: Mon, 7 Aug 2023 17:02:23 +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: Krzysztof Kozlowski , Stanimir Varbanov , Vikash Garodia , Bryan O'Donoghue , 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> From: Konrad Dybcio Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhxdTBWrwA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fNI8AfttmAQL9cwo6C8yDTXKdho920W4WUR9k8NT/OBqWSyk bGqMHex48FVZhexNPYOd58EY9/7mL5u0sJmo+jTeb4JBgIbFPJCFyng4HwbniWgQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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_BLOCKED, 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 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