Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2679223rwd; Wed, 17 May 2023 12:54:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6kVXpsYj2Ow0UeJsLGrfMeLEvXnQOuWGsExnnUiF1o/QxUOyvXFAWXKzM61MOZyeyda51/ X-Received: by 2002:a17:902:7295:b0:1a2:6257:36b9 with SMTP id d21-20020a170902729500b001a2625736b9mr40822634pll.31.1684353270066; Wed, 17 May 2023 12:54:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684353270; cv=none; d=google.com; s=arc-20160816; b=ZjVq8yC8h+2LwKJatHLal6k3QeuzJdID7zJR5ycleqnOpQbxpUTM+vkcUX4q83pNSa 54m3+qCvrk7aEAMLr4ArsxHpDRxFQUH+oR52OCVD+/G+d4PhXKBTRx1ng80v13F1n5sV 2VOgcTCy/DQlXWjrnf6I38skSR6quMwHm3DhgKRdNsL74NS73ABLuZGbaDCFRh85PXZy 8e05v4Hofg6HLEyxp81kDq97Na6seIEC/yfcKqQj0s75sx0m6o68d+uHhy8Bp93v5Q2g 4e4w+gLA9u37EBycMvlMbxsynETwJjcp7M/ONLWSaSEIuhsQqsDmi4E17IlnXVKdjmKL WmCg== 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=rYmCHe0UBx3C/dX8F6gPo606NtkPLb/fdOD1RWdJzkg=; b=xKQKbZkaSVU8oyfozaGxWGLcdX/dUrtorA53ZLclEzKVnhBLJgm7vo91Yc9yxUP1oh B/DuDFWTIW+ZBcQuC+pxuiCbsDycnsXByX/3LSSvIIwL178/9qsvYY/mNdlWW4CU6hom QhklLqqVDrRUzbprc278XvsEOVbWhgmH+vpFTbm3Sr8qn5sQOQOsBY6oidiUHtMBqalP I2kaU1ylfXaoCzYTg7UxUHeFiakbLmDx3K0Dfeffo/+/nzEdAJNrK75fB+OHQXWLmPwW 3lxlLTiOuCX2nFA4Xmyi8Hz2xUeOgY5hDkIqdRUaOeC5anhMZSFv67rm/AeVva83QBpD Fsfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bbeQg4UD; 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 h6-20020a170902f54600b001a96b56099fsi23098493plf.404.2023.05.17.12.54.15; Wed, 17 May 2023 12:54:30 -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=bbeQg4UD; 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 S229908AbjEQTim (ORCPT + 99 others); Wed, 17 May 2023 15:38:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229735AbjEQTij (ORCPT ); Wed, 17 May 2023 15:38:39 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5706BA5D7 for ; Wed, 17 May 2023 12:38:19 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-50bc5197d33so2214929a12.1 for ; Wed, 17 May 2023 12:38:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684352298; x=1686944298; 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=rYmCHe0UBx3C/dX8F6gPo606NtkPLb/fdOD1RWdJzkg=; b=bbeQg4UD9JQf6erRpGuPGkJefSXLT4EZPw4GEbdgBk0mXwtrOrR9bcUXhDi2lPmrN2 SY7yGEyaW4rOcHsYnmhfbfOIS6WJ1P72cT7qjNOpW9e9rc3FGcQFKOsbTXyqHZrtQ899 lqRpczEhCKHYqw4X4HXrLygrQOA/mDNmvSVqGhyLDEWHWAB/zQr8JeHGMe+cc++jTX3+ eSn13zJdh+MYPqS1jaJc+8KRvKuuUOk4u1xn97NQgP9w5RgbAMncMp8edZUiMeKMhSn8 2tX7xLkDwu4v49tQ/OTjPCt9qR94Xz6440yAu01sLictaBqTjYddsFD9G6rN0sIRFkMS RaSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684352298; x=1686944298; 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=rYmCHe0UBx3C/dX8F6gPo606NtkPLb/fdOD1RWdJzkg=; b=lmWdamq+NMHb/Rx5Tp+LaP18Kopbq0NaVTLlM/7LJQiEXGkjxmUk+R66NOvv3e1paa btaBqzjm7zNG/+ALvSE0xghCLI7vFGUnTEjLcT83f5TbV5WfbYLQjiHq8mJOkUVazIh+ WbIkcSVSuoLtKVvi+00eoMco3W0jHYX02ZiEn/1aYifBWu01+JAPdqN1kNDtKVU4BzIk RhLjDyIDyu4GfvyDB2mGxNHvB513k2vz+8Yo0Cz6ROGvuH+Mbz6pwejT5RWxxysIIk+R 9ugU70F3KSJBJClKmPXs9Fg3RaInTjkAh4Cv+IFiuKYmcF0g4dalT9gdnxZc+GKP+IAz SAvQ== X-Gm-Message-State: AC+VfDwaCcNxZtAScuI27rWqhOM0lAHCgeA18kIQbYDtL5xlQ0e+OYBv O99pqsf8YAy1NQddBNqnrT1CUA== X-Received: by 2002:a17:907:97d0:b0:96a:2210:add8 with SMTP id js16-20020a17090797d000b0096a2210add8mr25616124ejc.8.1684352297680; Wed, 17 May 2023 12:38:17 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:d7a:e7cc:21b3:c435? ([2a02:810d:15c0:828:d7a:e7cc:21b3:c435]) by smtp.gmail.com with ESMTPSA id h15-20020a1709067ccf00b0094f23480619sm12833636ejp.172.2023.05.17.12.38.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 May 2023 12:38:17 -0700 (PDT) Message-ID: Date: Wed, 17 May 2023 21:38:15 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 7/7] dt-bindings: Add bidings for mtk,apu-drm Content-Language: en-US To: Alexandre Bailon , airlied@gmail.com, daniel@ffwll.ch, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, sumit.semwal@linaro.org, christian.koenig@amd.com, jstephan@baylibre.com, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org, khilman@baylibre.com, nbelin@baylibre.com, bero@baylibre.com References: <20230517145237.295461-1-abailon@baylibre.com> <20230517145237.295461-8-abailon@baylibre.com> From: Krzysztof Kozlowski In-Reply-To: <20230517145237.295461-8-abailon@baylibre.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 17/05/2023 16:52, Alexandre Bailon wrote: > This adds the device tree bindings for the APU DRM driver. > > Signed-off-by: Alexandre Bailon > Reviewed-by: Julien Stephan There are so many errors in this patch... that for sure it was not tested. Reduced review, except what was already said: > --- > .../devicetree/bindings/gpu/mtk,apu-drm.yaml | 38 +++++++++++++++++++ > 1 file changed, 38 insertions(+) > create mode 100644 Documentation/devicetree/bindings/gpu/mtk,apu-drm.yaml > > diff --git a/Documentation/devicetree/bindings/gpu/mtk,apu-drm.yaml b/Documentation/devicetree/bindings/gpu/mtk,apu-drm.yaml > new file mode 100644 > index 000000000000..6f432d3ea478 > --- /dev/null > +++ b/Documentation/devicetree/bindings/gpu/mtk,apu-drm.yaml > @@ -0,0 +1,38 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/gpu/mediatek,apu-drm.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: AI Processor Unit DRM > + > +properties: > + compatible: > + const: mediatek,apu-drm drm is not hardware. Drop everywhere or explain the acronym. If you explain it like Linux explains, then: drm is not hardware. > + > + remoteproc: > + maxItems: 2 > + description: > + Handle to remoteproc devices controlling the APU Missing type/ref. Does not look like generic property, so missing vendor prefix. > + > + iova: > + maxItems: 1 > + description: > + Address and size of virtual memory that could used by the APU So it is a reg? > + > +required: > + - compatible > + - remoteproc > + - iova > + > +additionalProperties: false > + > +examples: > + - | > + apu@0 { Where is reg? @0 says you have it... > + compatible = "mediatek,apu-drm"; > + remoteproc = <&vpu0>, <&vpu1>; > + iova = <0 0x60000000 0 0x10000000>; Why would you store virtual address, not real, in DT? Let's say you have some randomization like KASLR. How is it going to work? Drop, it is not hardware property. Best regards, Krzysztof