Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4910213iob; Mon, 9 May 2022 04:40:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnFRU3dJ2bK5FrEhdqJZX+fduA54gbpN6wE0aYBihg5Tu3jb5vY9gyTyd0qUZVT/jMMrKi X-Received: by 2002:a17:902:70c9:b0:15f:a78:fd15 with SMTP id l9-20020a17090270c900b0015f0a78fd15mr6431580plt.12.1652096430313; Mon, 09 May 2022 04:40:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652096430; cv=none; d=google.com; s=arc-20160816; b=lEgps+5niIckRUv1DeDmVTj3N8J1xx4yKQ24b2uFSC65/OruLQDyorii4mcKl3PHDA dSH2NTW75d0ujfSVT/grQB9pKTQ92bw3Sc8eLLtyRXZ/PgZWvJgzCubKp1B4vz+T9gto p1yjR14y8GEmOslCxHU63StcNneBVHcvws2bcUU8ig1HZ7CeoviCHluGVlN5uawfQL0h u86Qwob39GhbWH6vyHoa7c5rywzV46XbDtnVayk0HidTv34Bjcunu+KpvnTkgc1CV7vh e0Ok9GCtAfvQCy36X53wLkwjo1WuIcn6Gbw9u0HKPmKcSotfYMcdWlMvom84vHtTD0gm lFAQ== 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=0Tzmc8wnZSs3kaLgnggedsJSFk2LO/Nmg9rBj5r4ux8=; b=mj06Fu2lNRrQzG3O4ZNpkDezoxQz/AWRxRBfvzvXBrWDZqpTjDFFK0euWMXBlzlXjP NvIQVk1AddZ4eoUmsCHrsZtlh4KzbKujl0qhUtD+2zHWp5ZJSEhPWzmGK3Kih2tOzTQs 9oxNzK+BT+/3irVPq5S/q33N6qnBsD2TRQ2H2FVHKc1De4UmkNYWHeVfL4jxd4OfdWVw zBFPyK9J7ZAnDijSdiAs4cfEl/mUIPUJqL4LcQIzy7b5KvJe1wt139ZKUcFfega2spMN ZD5VFC3rBjMJj7Jldfkd4su+xwd3GTfMVQt/Mr3rjKW9wpMG3pUG9QM5pT+NjYPSVLfc b5iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WGMooZUa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id g1-20020a636b01000000b003ab6168869esi13671703pgc.696.2022.05.09.04.40.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 04:40:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WGMooZUa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 07D0120D577; Mon, 9 May 2022 03:46:07 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231364AbiEIKtw (ORCPT + 99 others); Mon, 9 May 2022 06:49:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231285AbiEIKsv (ORCPT ); Mon, 9 May 2022 06:48:51 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 484F5239DB6 for ; Mon, 9 May 2022 03:42:48 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id j6so25924470ejc.13 for ; Mon, 09 May 2022 03:42:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=0Tzmc8wnZSs3kaLgnggedsJSFk2LO/Nmg9rBj5r4ux8=; b=WGMooZUa6j8KkU69lShmqD1ymL72xwWNXs3nodalP0erTsGOvMWwwYlpvkfH88kCxT 0E8YX1Y8qiBuf+/rBk0+GJSTXF4omE/91WD5LJkr+PvXlkfHyQsDlxfi0okhln9IpJqD KrAZFM6qgMNFC0njfHmHs9zDX1UdTGXpgkhojXf4lsgtIc6vSsp851y0Jm+QuhQ0Wmi9 Rw4mtHZsbsDJ15qVnpdTJUMfDa9Fv2M2CD3A5zcyze3Ld1rxH+U6YqggkNOytsjeUp4L QiWxMaXka+DZ6JYAWG3tn5oudbxE7kOyJyTVgROVW9mhNxBOnZCxjVyoNPVQOrHSiCJM Khgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=0Tzmc8wnZSs3kaLgnggedsJSFk2LO/Nmg9rBj5r4ux8=; b=2azJ4AE8qIwzBtLXZZYDCPgkELyVVjd0sXtEIhTuDyWw2XzMIDT3Nb51yzd8O/A3Vt Lndjdt1p7Or+Voe03P/tzuY4l0/Tw+Q4+n3cqEdedIFx2oiT5ZEOTrRXBN/VkyFa99C5 eZBl0eV8/y3h5Y8zBxrAdUxFjtxnS5wC5yddJUzjTM2Uiz9d5TnMaGV6FFk2rqoX4RYA SGUtAkxKaeYuBDYBAwFlCeygrvStzzutm47Hr5hrCe3m33vSJCyc6yntjnhniR/V5JLx aQY183Jn13eZaj4IJuDECNbHhwDBl5hgADlpNT3pYxsx6Igr/zotRgGR+Xs9HF+8LQW8 6o6A== X-Gm-Message-State: AOAM530ijkNeoN7tS/3SDNVzjcrWbRV8yIIuJG+fEnw92znk+4S6Q1og t6mSnXaX75h4zggSHTJLlQFg2A== X-Received: by 2002:a17:906:7315:b0:6f4:c84f:9eab with SMTP id di21-20020a170906731500b006f4c84f9eabmr13171153ejc.759.1652092895893; Mon, 09 May 2022 03:41:35 -0700 (PDT) Received: from [192.168.0.243] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id z22-20020a50f156000000b0042617ba63c3sm6137747edl.77.2022.05.09.03.41.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 09 May 2022 03:41:35 -0700 (PDT) Message-ID: Date: Mon, 9 May 2022 12:41:34 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH v2 1/3] dt-bindings: media: rockchip-vpu: Add RK3568 VEPU compatible Content-Language: en-US To: Nicolas Frattaroli , Ezequiel Garcia , Philipp Zabel , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Heiko Stuebner Cc: Ezequiel Garcia , linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20220508202544.501981-1-frattaroli.nicolas@gmail.com> <20220508202544.501981-2-frattaroli.nicolas@gmail.com> <422bf3bc-7787-97dd-6ab4-7570e5ce2ed8@linaro.org> <3594222.Ivq9XVSPaC@archbook> From: Krzysztof Kozlowski In-Reply-To: <3594222.Ivq9XVSPaC@archbook> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE 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 09/05/2022 11:24, Nicolas Frattaroli wrote: > On Montag, 9. Mai 2022 09:25:23 CEST Krzysztof Kozlowski wrote: >> On 08/05/2022 22:25, Nicolas Frattaroli wrote: >>> The RK3568 and RK3566 have a Hantro VPU node solely dedicated to >>> encoding. This patch adds a compatible for it, and also allows >>> the bindings to only come with a vepu interrupt. >>> >>> Signed-off-by: Nicolas Frattaroli >>> --- >>> Documentation/devicetree/bindings/media/rockchip-vpu.yaml | 2 ++ >>> 1 file changed, 2 insertions(+) >>> >>> diff --git a/Documentation/devicetree/bindings/media/rockchip-vpu.yaml b/Documentation/devicetree/bindings/media/rockchip-vpu.yaml >>> index bacb60a34989..4045f107ca4e 100644 >>> --- a/Documentation/devicetree/bindings/media/rockchip-vpu.yaml >>> +++ b/Documentation/devicetree/bindings/media/rockchip-vpu.yaml >>> @@ -22,6 +22,7 @@ properties: >>> - rockchip,rk3288-vpu >>> - rockchip,rk3328-vpu >>> - rockchip,rk3399-vpu >>> + - rockchip,rk3568-vepu >>> - rockchip,px30-vpu >>> - items: >>> - const: rockchip,rk3188-vpu >>> @@ -40,6 +41,7 @@ properties: >>> interrupt-names: >>> oneOf: >>> - const: vdpu >>> + - const: vepu >> >> This should be enum (for both lines above) and you should add >> allOf:if:then with a constraints which variant can have which interrupts. >> >> >> Best regards, >> Krzysztof >> > > So something like this? > > interrupt-names: > oneOf: > - enum: > - vdpu > - vepu > - items: > - const: vepu > - const: vdpu Yes > > What's the difference between a list of consts and an enum here? > I'm not very familiar with dt-schema, my apologies. The effect is the same, just oneOf is a bit more complicated way to describe it. > > Also, since I don't know which of the other variants can have > the encoding interrupt and this wasn't brought up until now, I think > my solution will be to have a check for -vepu in the compatible and in > that case require that only the vepu interrupt is present, if that's > alright with you. If you meant by adding a "if" case for only rockchip,rk3568-vepu, it's ok. Best regards, Krzysztof