Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp831840ybh; Wed, 22 Jul 2020 14:38:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBt5ylC4rBbZDdAtvlIpU+k/mHcNYjLohRdQ3RaIr7BlvRwif7QKwH5c1prSZeEirjCVZz X-Received: by 2002:a17:906:4015:: with SMTP id v21mr1420444ejj.63.1595453920250; Wed, 22 Jul 2020 14:38:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595453920; cv=none; d=google.com; s=arc-20160816; b=HtgZQ2zEZT1gaKv/YMcleEPvZDAm5EuWlNikY2qoVAklfS9evNxUqKHvBmtLRc6gcZ 4MKygdGeFcvg4hLZ1pyENg9EmYEbEL3sujV+MS+S922O6jaR8DSajDGAnyc1Ag6q17w4 fMyJu4jobLoN5CgdUdzBE8nEt4pCNSSiTvEMl2uWxWebhVULYTteqRI4qF0W2NxXV/rx L1GZnya38QZnoOhSO1L4teFwt8C3zgqS71LQW4U8qOeHd4zUBmTXJk0li7t/Sm3V6hll C87mvR0H4N1hNCfN6La7UVO1J9OZ92711HijKIzW2/Gv6+08qY8vpym1/BL5X5feaQIW cXqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=mWgYgasEBFnUWZrjUIWCT1ojhoXmHViVids8XouBfF0=; b=qhwLvt9JbnzDG7vIT4+eViagHc/p/8zuJ4vfy4z6uWrdoM654wqZlBDvTFxNGEwPrY 6NApg0XxunBV9RLA9pjhK0w6jgnqlkL/u+NaWZimNwaMG2jRfImGX9C5DtI8JQQDRbk0 aik9ud7l9srqtA4hd+oYQVfNtXapfp0f5t4c5BRfjQ1qgMXxEu2l/84mAk3xuktPOyE8 aJ8rbvHpGoOTnrYYxtk9BjjOfRC5qjExHXib8cXxlpKVzCIIrIA1mpvCLCd1BQb95yiL Q//JHh2nT/snHPwA/9AZZJjzz3tMsPsPVaxeamV+WX1RGFR0lD2xdw5ejC3exFx8Rywq CgfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b="uKnp0/oM"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r12si740127ejs.370.2020.07.22.14.38.15; Wed, 22 Jul 2020 14:38:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b="uKnp0/oM"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726907AbgGVVh5 (ORCPT + 99 others); Wed, 22 Jul 2020 17:37:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726525AbgGVVh5 (ORCPT ); Wed, 22 Jul 2020 17:37:57 -0400 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A36A7C0619E2 for ; Wed, 22 Jul 2020 14:37:56 -0700 (PDT) Received: by mail-ej1-x642.google.com with SMTP id a1so3925707ejg.12 for ; Wed, 22 Jul 2020 14:37:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vanguardiasur-com-ar.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mWgYgasEBFnUWZrjUIWCT1ojhoXmHViVids8XouBfF0=; b=uKnp0/oMCDGRjqyDy2WeNxgylKXxzNzln91iOTWtrAY0VYBVVVUWR1a2EfiAWWtVI8 v1OTjF2EtY//278Z3fijbZK10+VYbawKLLic1Tmqqx4KjxoOOVVxqRVCATg3fSsUwyIb t7ofZ237jokeyQS0kvVe8ttokaX/ENSuFdaBLzoFq0ffHLbb1Qt50lRhVoVuQTy/RAfw gCstJ/1HvSf9HXfW2bRdIF9IdfjCNoOIysvFfD+ErbnSJBQsyzBiiqspHylw1B902uUn kP/G0c5UmM8v3kwz48wUIXJOFO84/LWDmMOkdm81g5MlCllVjOUoJ0nt+189Woji0qUu ZbOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mWgYgasEBFnUWZrjUIWCT1ojhoXmHViVids8XouBfF0=; b=NvaL1rsmvjfFgPPRGL/QKwFhbTPpJYaGiapj6H407yteCrgccoBo/MltZsLr1+fgOX 8Top7nl6KQr0G9mLRcBlsTFDZvpQBm/QbHk0jLr1ZGuhStYGh/i0YYCTKZzbp7bQAbs4 ZOsYVvtlcSZm4A5xBu6QcW0z0FYCi5mfePMuJc+0OCFDE/mXNViu8tEejXL6OjgxY1aQ 3e7W+an79dj5CsqjMHKvfrxbmGmgUhy1chVcdbpUlxRIgePc+OTbRtrU0Z0kvy1eW5gk Q1oCbqOoLb6Xj1RGn+NiBmEU8+jbpVdqLPel8E9Czs/z6aORQuaEX9zC9z79QMBJCpdp idRA== X-Gm-Message-State: AOAM533dPyuHivGHsIf6lzW6XQaPSQJotc2K6ExM8lMaY2eC60ASxB9a 41WFWGOWMrZJ0/nYhepshemJ0ExvtdBd/xM8c7zaVQ== X-Received: by 2002:a17:907:10d4:: with SMTP id rv20mr1497544ejb.413.1595453875110; Wed, 22 Jul 2020 14:37:55 -0700 (PDT) MIME-Version: 1.0 References: <20200713060842.471356-1-acourbot@chromium.org> <20200713060842.471356-3-acourbot@chromium.org> In-Reply-To: <20200713060842.471356-3-acourbot@chromium.org> From: Ezequiel Garcia Date: Wed, 22 Jul 2020 18:37:43 -0300 Message-ID: Subject: Re: [PATCH v3 02/16] dt-bindings: media: mtk-vcodec: document SCP node To: Alexandre Courbot Cc: Tiffany Lin , Andrew-CT Chen , Hans Verkuil , Yunfei Dong , Maoguang Meng , linux-media , "moderated list:ARM/Mediatek SoC support" , devicetree , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 13 Jul 2020 at 03:09, Alexandre Courbot wrote: > > The mediatek codecs can use either the VPU or the SCP as their interface > to firmware. Reflect this in the DT bindings. > > Signed-off-by: Alexandre Courbot > Acked-by: Tiffany Lin > --- > Documentation/devicetree/bindings/media/mediatek-vcodec.txt | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/media/mediatek-vcodec.txt b/Documentation/devicetree/bindings/media/mediatek-vcodec.txt > index b6b5dde6abd8..7aef0a4fe207 100644 > --- a/Documentation/devicetree/bindings/media/mediatek-vcodec.txt > +++ b/Documentation/devicetree/bindings/media/mediatek-vcodec.txt > @@ -19,7 +19,9 @@ Required properties: > - iommus : should point to the respective IOMMU block with master port as > argument, see Documentation/devicetree/bindings/iommu/mediatek,iommu.txt > for details. > -- mediatek,vpu : the node of video processor unit > +One of the two following nodes: > +- mediatek,vpu : the node of the video processor unit, if using VPU. > +- mediatek,scp : the noode of the SCP unit, if using SCP. > This interface doesn't enforce the fact only one of the two should be present, but not both (which is the case, right?). I hope I'm not bikeshedding here, but from an interface POV, would it be cleaner to just have a single mediatek,coprocessor property, and then use of_device_is_compatible to distinguish VPU from SCP type? Moreover, I'd argue you don't need a dt-binding change and should just keep the current mediatek-vpu property, and then rely on of_device_is_compatible. Regards, Ezequiel > > Example: > -- > 2.27.0.383.g050319c2ae-goog >