Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3242228rwb; Mon, 7 Aug 2023 10:13:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFpQrUCm9ZNOshrunMouohMH2FK+QRSdY1RPIYDnr+7DUtSl0W7xhzDJAuiKTXxNq1USlau X-Received: by 2002:a05:6a00:134d:b0:65e:1d92:c0cc with SMTP id k13-20020a056a00134d00b0065e1d92c0ccmr9935714pfu.10.1691428404679; Mon, 07 Aug 2023 10:13:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691428404; cv=none; d=google.com; s=arc-20160816; b=dSlYcP47r7p/eAr9r79goZ2eNvDsPsCwf2CHhc1BQXWG7oEWbYRp1FAPyr96/HNscX dWb5sxD/odaltZiZdhL+lhaoHhhnJ2deDcw3NPUEiE9cPqYsy+hovEcs3EkVuKk6kmhJ 8vHXQ49wXDfyw6vVvZi35a/ksh4Ffdmsy4yXB4TjuPXUHX4XZEoObSL388Y8q9jF0vvM UviLK/OUpxUNwmaoQfItkuVurVJ/zoSbST5VADOxggzF51fQEqXMcB5fe2WJgtdg8Ir2 k292VpzYGsYVaPA5LLK1FFI0PP6PvAR69Rf07YDmT7ycuBMdWGxeMaxqMv7yQFoCBMMX jomw== 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=+nsJrZUa4VkqTGqcaTSNi/vYZDLgC/AzsBWnapgNPsA=; fh=4M1X1qgJx1glbRuonh1xoYj8yb0U0jPEaw21br9vk2k=; b=VrI/aYd7lwnTlJtttXoiq+ury1CCV3/Q09/mIxjub+mpMphVxtY6ACnL4GyDu7oRdM +WHWoKUBH2lAZ5gy1qX4pi07l8dc9KXomb4gsg9yYeIawJ5i0FGzhPP+uog0eZNLOz1h Hi3AsSStCCrA7Am+PVZgRMOpL/uld+AA+qgutgcHM0cJWISUoDjGUleWsKsDxeSckTnJ CejQmRAuODUolkwvOoMrstn1Qf59Fb3Q4g2eqUxVEqN6aiFyjRoUuQEuSaN/MB3909p6 Bn3PmW0T6UWeG+C/d2ZRPgzJkXe145HgOvl1sQvD35vgzpeLRFz7krYTuzY2mFbcZ+oO ozFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Nsw7w4sr; 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 s134-20020a632c8c000000b00563e080a7c9si5689032pgs.759.2023.08.07.10.13.12; Mon, 07 Aug 2023 10:13:24 -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=Nsw7w4sr; 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 S229743AbjHGPVi (ORCPT + 99 others); Mon, 7 Aug 2023 11:21:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229728AbjHGPVg (ORCPT ); Mon, 7 Aug 2023 11:21:36 -0400 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B55D10DE for ; Mon, 7 Aug 2023 08:21:34 -0700 (PDT) Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-317e14b0935so957376f8f.0 for ; Mon, 07 Aug 2023 08:21:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691421693; x=1692026493; 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=+nsJrZUa4VkqTGqcaTSNi/vYZDLgC/AzsBWnapgNPsA=; b=Nsw7w4sr6+BEI6GiS03rJCR+qP7FKXFucjKae0xybflt8CRyBmkvE/AK7Ih9GAwJ1d YwVj6sDRHm2S6kbyYSzEeYmxO7MOe2L+afG9Amhf0Bcx08O/S5m4N03QkI7Ku2guggME ZcuSP6qJxDsN3NPTD1qlO+coXiLPrJeFwqtKIbQUhLkTfPHjJqKQk7JlRqT9NMXJWO4y VwiESOBTJXc/rGae2+69lFgZHNIv3TTXb6j2G2LzRyUtV3Ae9URl/FS6GDmVyl6Ev+/F 4C/bCPUA1NyaAU2WtHIeKkuLW/1tTrQyoA0wdOvCv6ZZHrIZe/lzjCJYmI6++mQ8UaXE pCOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691421693; x=1692026493; 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=+nsJrZUa4VkqTGqcaTSNi/vYZDLgC/AzsBWnapgNPsA=; b=A7T0GNFs/5jJBO5eXPLhSMrqLvYHAW9V1258J7dl23Rc1PmKfaalg1WIjUFGxhRrbQ breJ0IvfZhReApc4vBDkQcfTJP5wKg2nJYYOeQ985fRMQsJyaDnEUDmWqnXYvMdKZOqy qN3hFbb3erR7w/BTGPDtTidor9J9EfTl3J3kdU6tj01EWvj+q9GVwDT4peKy/+6bi7Lp pddSgRtQSu3bo6HDaXZ6i5Pstt8zR4YLJLQL2uNbOCNafy2LMioWfAR/TYbybpXBzxOW rOuCV1zVZgXCm0Qis/UR5hHxAWKrEbrvv1DuUKqJfGmRQX+wARehGjL5QDOaDlzBfRVi gXwQ== X-Gm-Message-State: AOJu0Yxhg4tFX/+I+paLzzTmDbFOFxVj7zWwaHzTW3WVcabi1VbTNDvO C8YCHNAAXFbbBFhjr9VqeTIjwg== X-Received: by 2002:a5d:6ac5:0:b0:317:6570:afec with SMTP id u5-20020a5d6ac5000000b003176570afecmr5904245wrw.3.1691421692754; Mon, 07 Aug 2023 08:21:32 -0700 (PDT) Received: from [192.168.1.20] ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id t6-20020a5d6a46000000b003142e438e8csm10789411wrw.26.2023.08.07.08.21.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Aug 2023 08:21:32 -0700 (PDT) Message-ID: <7cf31e92-ea7d-80f6-9fab-a9c2886c96d1@linaro.org> Date: Mon, 7 Aug 2023 17:21:30 +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: 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=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 07/08/2023 17: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? Yes, this makes more sense. I think this is controlled by "legacy_binding" variable (see drivers/media/platform/qcom/venus/pm_helpers.c). Once all bindings are converted to new one (clocks in main/parent node), then we can drop the children and instantiate devices as MFD. Best regards, Krzysztof