Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp7834969rwn; Wed, 14 Sep 2022 05:20:22 -0700 (PDT) X-Google-Smtp-Source: AA6agR6m+8Sfupke+3XqcA7iQ1HoD1YAuWjRKJuLPbF+amznLEJ8zU7bA4GOpnWaUix4SbxupLQa X-Received: by 2002:a17:903:2cb:b0:171:4f0d:beb6 with SMTP id s11-20020a17090302cb00b001714f0dbeb6mr35764535plk.53.1663158021767; Wed, 14 Sep 2022 05:20:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663158021; cv=none; d=google.com; s=arc-20160816; b=qWQkRQq+t9domL37D9sMqXEFRoRIdSdQUtZvB5Al8Kwnnr+wlQYdHm5j6mJe1Znylm yEwPTB9goYoMN2HOrPGqS18q9RvEI4YnAR5KFQOUZ3rBI03jk9a+cyp9Wzio8CoW9130 inu8m8uBWUf7bZpzPi6SZExC0Wiejoqz4yoaAhbfbmyIfrC1+2fkJmCxwZ4qc8LzbGig Kem9C22Pnhenuem/T/CjKoo8lGgVS3Ug/UohaoHDz3eVCAy9m2EywN6DT5LOsXNUbhgS i5XUZVTRVB0FmS8dE2jto9NjnlNtQGBHyN6rAXS/Z3dRNNBU7/2cBV1gvQzvvYBArcDF yQeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=hMLOKeXHOSnfU4zqlH09bFkg9yKTy1Fq4MgQhLwV+DM=; b=AVtU0+FOwjNQlc+glyG9xELdU/2DJkkdOOrEwxQqnsFUVx/IQLYZTJEueHT7rwIbCZ bkXpKgjCpGD9oLOxB7QpgjnwscYYaYAlJ5p2rYDBsRoFE9LVyZN8FEDXa+ouNgrQcoWV mqfRDleAfcHpIZ7k79NYM6fek2JwANOCSf+bk27JZizc2dRZ49fIjUCetqyPLwguR728 9cwUGFekCDTIlLYr+wqrPa8wo2Z1x4purr0dKS8JXMJwKMSVg1150UuqNM8chS3yKjHh VFn6Tmrdtk+XhU4+QOb7zlc7T+5fAZHMYVpWAhXmU+/OB83208d+wfhh3gzWMH4+nt03 bpcA== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a3-20020a636603000000b0041bc27c45b9si5260316pgc.811.2022.09.14.05.20.06; Wed, 14 Sep 2022 05:20:21 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230043AbiINMIt (ORCPT + 99 others); Wed, 14 Sep 2022 08:08:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229952AbiINMIo (ORCPT ); Wed, 14 Sep 2022 08:08:44 -0400 Received: from mail-ot1-f46.google.com (mail-ot1-f46.google.com [209.85.210.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 536E17F26A; Wed, 14 Sep 2022 05:08:43 -0700 (PDT) Received: by mail-ot1-f46.google.com with SMTP id x23-20020a056830409700b00655c6dace73so7886297ott.11; Wed, 14 Sep 2022 05:08:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=hMLOKeXHOSnfU4zqlH09bFkg9yKTy1Fq4MgQhLwV+DM=; b=WqKPOl6rGbJkJDcmUZJKm9+cFsO7LUXmJzzIuABQtOGMH61PFFFE6DlEYv5XcyZurb P6ih1dm839xQss4jsNECSTSPLjfY66ziaAgWveGhr2r59MzK9oAUlis6efayvsrybFbL 1kORO6DN4zFFWAUMoq9TWm/iWyYw3pElSDmLGBM4SszCmo39CXNRkIyU+gPW5tCXOloC V6YpX0IY3pL7ig46D6oJbv9tGQn4UM8RdXuqqHRJzpc+rwhDM3+zKi08QN7s+0mwKpsD S5QrYU1BxPkKqFgLxb2m3lGOWu3w7Te37yyPn8In99e0PLNrHUPXbzHjNsKPN5baXsGD RQGQ== X-Gm-Message-State: ACgBeo3RF0fSJ34gdTAuMpZKTGEbcC/2BhMzccgXZf8ed4FTwUtkwSbu yG3/O354+F9TwmC4hDvwxA== X-Received: by 2002:a05:6830:6104:b0:654:fb1:faba with SMTP id ca4-20020a056830610400b006540fb1fabamr10605314otb.183.1663157322251; Wed, 14 Sep 2022 05:08:42 -0700 (PDT) Received: from robh.at.kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id m26-20020a0568301e7a00b006339b36127dsm7172351otr.3.2022.09.14.05.08.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Sep 2022 05:08:41 -0700 (PDT) Received: (nullmailer pid 1869045 invoked by uid 1000); Wed, 14 Sep 2022 12:08:40 -0000 Date: Wed, 14 Sep 2022 07:08:40 -0500 From: Rob Herring To: Mikko Perttunen Cc: Thierry Reding , David Airlie , Daniel Vetter , Krzysztof Kozlowski , Jonathan Hunter , devicetree@vger.kernel.org, Sameer Pujar , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Mikko Perttunen , linux-tegra@vger.kernel.org, Ashish Mhetre Subject: Re: [PATCH v2 3/8] dt-bindings: Add bindings for Tegra234 NVDEC Message-ID: <20220914120840.GA1837218-robh@kernel.org> References: <20220913131447.2877280-1-cyndis@kapsi.fi> <20220913131447.2877280-4-cyndis@kapsi.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220913131447.2877280-4-cyndis@kapsi.fi> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 Tue, Sep 13, 2022 at 04:14:41PM +0300, Mikko Perttunen wrote: > From: Mikko Perttunen > > Update NVDEC bindings for Tegra234. This new engine version only has > two memory clients, but now requires three clocks, and as a bigger > change the engine loads firmware from a secure carveout configured by > the bootloader. > > For the latter, we need to add a phandle to the memory controller > to query the location of this carveout, and several other properties > containing offsets into the firmware inside the carveout. These > properties are intended to be populated through a device tree overlay > configured at flashing time, so that the values correspond to the > flashed NVDEC firmware. > > As the binding was getting large with many conditional properties, > also split the Tegra234 version out into a separate file. > > Signed-off-by: Mikko Perttunen > --- > v2: > - Split out into separate file to avoid complexity with > conditionals etc. > --- > .../gpu/host1x/nvidia,tegra234-nvdec.yaml | 154 ++++++++++++++++++ > 1 file changed, 154 insertions(+) > create mode 100644 Documentation/devicetree/bindings/gpu/host1x/nvidia,tegra234-nvdec.yaml > > diff --git a/Documentation/devicetree/bindings/gpu/host1x/nvidia,tegra234-nvdec.yaml b/Documentation/devicetree/bindings/gpu/host1x/nvidia,tegra234-nvdec.yaml > new file mode 100644 > index 000000000000..eab0475ca983 > --- /dev/null > +++ b/Documentation/devicetree/bindings/gpu/host1x/nvidia,tegra234-nvdec.yaml > @@ -0,0 +1,154 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: "http://devicetree.org/schemas/gpu/host1x/nvidia,tegra234-nvdec.yaml#" > +$schema: "http://devicetree.org/meta-schemas/core.yaml#" > + > +title: Device tree binding for NVIDIA Tegra234 NVDEC > + > +description: | > + NVDEC is the hardware video decoder present on NVIDIA Tegra210 > + and newer chips. It is located on the Host1x bus and typically > + programmed through Host1x channels. > + > +maintainers: > + - Thierry Reding > + - Mikko Perttunen > + > +properties: > + $nodename: > + pattern: "^nvdec@[0-9a-f]*$" > + > + compatible: > + enum: > + - nvidia,tegra234-nvdec > + > + reg: > + maxItems: 1 > + > + clocks: > + maxItems: 3 > + > + clock-names: > + items: > + - const: nvdec > + - const: fuse > + - const: tsec_pka > + > + resets: > + maxItems: 1 > + > + reset-names: > + items: > + - const: nvdec > + > + power-domains: > + maxItems: 1 > + > + iommus: > + maxItems: 1 > + > + dma-coherent: true > + > + interconnects: > + items: > + - description: DMA read memory client > + - description: DMA write memory client > + > + interconnect-names: > + items: > + - const: dma-mem > + - const: write > + > + nvidia,memory-controller: > + $ref: /schemas/types.yaml#/definitions/phandle > + description: > + phandle to the memory controller for determining carveout information. > + > + nvidia,bl-manifest-offset: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + Offset to bootloader manifest from beginning of firmware. Typically set as > + part of a device tree overlay corresponding to flashed firmware. > + > + nvidia,bl-code-offset: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + Offset to bootloader code section from beginning of firmware. Typically set as > + part of a device tree overlay corresponding to flashed firmware. > + > + nvidia,bl-data-offset: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + Offset to bootloader data section from beginning of firmware. Typically set as > + part of a device tree overlay corresponding to flashed firmware. > + > + nvidia,os-manifest-offset: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + Offset to operating system manifest from beginning of firmware. Typically set as > + part of a device tree overlay corresponding to flashed firmware. > + > + nvidia,os-code-offset: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + Offset to operating system code section from beginning of firmware. Typically set as > + part of a device tree overlay corresponding to flashed firmware. > + > + nvidia,os-data-offset: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + Offset to operating system data section from beginning of firmware. Typically set as > + part of a device tree overlay corresponding to flashed firmware. I don't think DT is the place for describing your runtime loaded firmware layout. Rob