Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3177663rwb; Mon, 7 Aug 2023 09:17:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH1G4LOXY1pIrhosS81P1ls2HVstT57bea9byeEkRftC/cOj8dXzuVLCas06jFCHvN5fEEq X-Received: by 2002:ac2:4e97:0:b0:4fb:8987:734e with SMTP id o23-20020ac24e97000000b004fb8987734emr6001696lfr.68.1691425057881; Mon, 07 Aug 2023 09:17:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691425057; cv=none; d=google.com; s=arc-20160816; b=CmB91nPwMy9G5Hfi8+F2v07Ge4AiAmaDAkH+L05C4I5HcD/jYpPX81SNVUEZwE/9VX T10ta4cAjAUGQ0kewsdWoTzwwz0vqvm2getYknuh0ky400HurYzMh2uQS1dpdCphyeL5 fUjYDUpDmW6sYrz7rx8oXE5o3kvJz9CcX/hP3p5o/1ZKNwHNAgvCQ0VJlmjLf579Wa5i lIcFBOwVx16w37c5nMMMzryRkMjPbtaAqMylYHgbmhvcyEZVfgYXJI3/AYiBJ0dJsced A1GMSUaqz9YzJFySRkLnZvLijdp/J3rCIwkxYd7xSVCCPTcpwCzZ5tZ1auNARpnHUtBP keWg== 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=UKSrhcE5Bln8vQQGTHtL4QDZJ+tT1+92+NGnlfVJ2k0=; fh=4M1X1qgJx1glbRuonh1xoYj8yb0U0jPEaw21br9vk2k=; b=sCjQQX2b0CKui7FKyz7+pOyInNUNYOxhiDqaQOnmSQpdp6TIFePmtbdP//AMim91Nx bM8ACiVsckeGwEBmyNm5O1zW2MApb1utihYRF1i4UJox0eBTnc1ne/ngZAcShp3ArSb9 tMMAulPeWm7cSFm3FwuOADeQqlJe3yDfsI1wkq+RHiscSudbOxqxI9aTj8YOKDnI5Co0 EXr+NVlIuS6zHzTGRPOlRhc4DI9he7Jk2mIPK9voYAjfg1yoE53eyvYNu8wCD/Y3i/4A Df7PadrLFgXBTUp0wOO0BavBZVc5Y/cxmvzmlOGfcvjLi14Ea7IUfNM1UtLj8fQeABZX /Xbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O0bP2X7Y; 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 f17-20020aa7d851000000b005222c9def7bsi5439314eds.322.2023.08.07.09.17.13; Mon, 07 Aug 2023 09:17:37 -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=O0bP2X7Y; 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 S230288AbjHGOFg (ORCPT + 99 others); Mon, 7 Aug 2023 10:05:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233471AbjHGOFX (ORCPT ); Mon, 7 Aug 2023 10:05:23 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C39C32727 for ; Mon, 7 Aug 2023 07:04:44 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2b9dc1bff38so70771121fa.1 for ; Mon, 07 Aug 2023 07:04:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691417079; x=1692021879; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=UKSrhcE5Bln8vQQGTHtL4QDZJ+tT1+92+NGnlfVJ2k0=; b=O0bP2X7Yu58QOiyOA57b5a+g7b72bAfdkW0yXkeQQdZZQiVjurj73+CUZMsll5txeS Uac1l9skbh9f7pHv9667e5ZIwgY9Tg4r9edtmpPfv9Z7rXTsj3IrAgS0keiC/Jjg63vd 1BRYd79hMAYZBgQa5JUWPmS6/0A2jIMbv0zfcD/dzq5NkjgEU4RtH6GnHS4IZtwE86zH lECRrM3vB/iZgJ1+MwbnsVx1mVPeEyaDs2JPgxMG7D9UT7RAngjviNL7nfEljZbvWVrI REdj6p99L0cxiiE19jDuQ4BwXZwi7XILkIs6LOtl9BfbJ7mkCoNJ/XyT4hq0RyaBiNbj hF7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691417079; x=1692021879; h=content-transfer-encoding:in-reply-to: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=UKSrhcE5Bln8vQQGTHtL4QDZJ+tT1+92+NGnlfVJ2k0=; b=Wo6du6RWuv1Ei1wBHrQ3KDvBiOexjAKjJtx55fuiMvL/CiW7oD9aLRAwMFXErhS52y I8w5u7spiYhajkxUQweGTfEFA4uRDNY4V3kTA7rF3JP5mjUkz9ikwliWM+N+32Aw8TTV ak0RjQSUtnEWKb3Id18AxUb3YcTKUCfyi3q2GtV80IrZ4ytWKmMdQoU//bci2oAq//cm diPW11w1PvHoUdoa7vAXyoH/r5XyEA+BwGebZiyGSnqZzY66T9Y9h6ypMcLMVTe5hNZN W9jDjudwqP9Zg0RkSspOLRuATjiN5fiAekTvqh4dUUZeaCu57pVR8YrQ3riE16V8Nhwv HA1w== X-Gm-Message-State: AOJu0YxtXIPgTBH9hLqYY1/X4IKUubq32u9g6V4PoEBG3W3OhDNv4/jY Ffn3RWxfsB9FqS9gRzeRN7CSgQ== X-Received: by 2002:a2e:a0cb:0:b0:2b9:cce3:a126 with SMTP id f11-20020a2ea0cb000000b002b9cce3a126mr6405556ljm.21.1691417079270; Mon, 07 Aug 2023 07:04:39 -0700 (PDT) Received: from [192.168.1.20] ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id y8-20020a1709063a8800b0099316c56db9sm5158207ejd.127.2023.08.07.07.04.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Aug 2023 07:04:38 -0700 (PDT) Message-ID: Date: Mon, 7 Aug 2023 16:04:37 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: [PATCH 1/6] media: dt-bindings: Document SC8280XP/SM8350 Venus Content-Language: en-US To: Konrad Dybcio , 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: Krzysztof Kozlowski In-Reply-To: <659e30a7-80f7-4fd8-af58-45505213a2ef@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 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 Best regards, Krzysztof