Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp2196858pja; Thu, 26 Mar 2020 11:12:04 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvPjrBmlHFB38xdTSyXgk5EnoXYMop7JtcC42zM32OFs3U2V4tM+wzWLCkybznd/66EOWR5 X-Received: by 2002:aca:4c1:: with SMTP id 184mr1144474oie.76.1585246324766; Thu, 26 Mar 2020 11:12:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585246324; cv=none; d=google.com; s=arc-20160816; b=KjFV99iWeDjkh300biHS7Ebm855bQGqGI3z09M/CaMG37hldpL2OrpZXhJg8p2hi2L iShYgotrTL01Rq2k8QN5OB5l240C68K2wEJ2yLekfIL2JijMhUwpgjZ8r9gy8T2VP5+F J9tCULvNoWCs7k7zWbiKUlJHbPmHQsLuJ6w79yB2IkUSDEPN7IM9soJmh80GVlTpjZw5 UmQr0Bn8DU+GGH2FJA9p0cwTbNPef3YwQQnJKEM4KenmVtxSY7QR1UYfPXWcxzYvKsRo kLwNjp36d62swqKJrvATZYwA8t9l0HXz0YjIDh6l84aIsa38JOvPI7pmg28EnyIy0yof 0ZcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=p3uCdd3lNgStEmVbRoGU3tYob5tHrXuUe3dGhywOrXc=; b=IEPCCXHblPPBsNvtM+rexRN4H6Vwd+OFtEqd78P5otU6FysPhVEfqBwIZfFX4l4R5I b2RfkQcEbUMnfWKFukMZOn1Dysf51hFAyTctJ4TAJkBkpSus8X+aXMhzp4GtQIegbpO8 GhCmEGKZd7xF8awfcApCh2uZRd1vEjUaS8NP++v3mSKtlTCCmbDxlM7aWbHAdFOMie88 9nzwWYZ77uU+lQK9xO233We9xmgZkin1uB6KiNbLZgd5ri3OzkDqab00X/qCFRqP8z8D 5LkRu6rPoCE+AVj272Kl+Kw3dIhvM9a1TZC0l3ZMDsorpkUIeBXNg4jJXxg7FYnQmuWv Ehmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=oxTllWop; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z107si1390524otb.292.2020.03.26.11.11.50; Thu, 26 Mar 2020 11:12:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=oxTllWop; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728417AbgCZSJx (ORCPT + 99 others); Thu, 26 Mar 2020 14:09:53 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:40438 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726267AbgCZSJx (ORCPT ); Thu, 26 Mar 2020 14:09:53 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 02QI9fkO005199; Thu, 26 Mar 2020 13:09:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1585246181; bh=p3uCdd3lNgStEmVbRoGU3tYob5tHrXuUe3dGhywOrXc=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=oxTllWopocVS+boJ3JwFLjfj7+B7KNkWnWw8YgaE1/SQv0c0QnjdnCkH705FazV7R TzUrv+kqFB8IHVRP6nI68IeE5MeJJd5ArtvJbBzzK862KXr7G1Wgeo25yevhkuoeQP UXyQy2H94/jn8WXIcWpg0S8Jz07hnbU0N1hAX+HQ= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 02QI9fj9094474 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 26 Mar 2020 13:09:41 -0500 Received: from DLEE102.ent.ti.com (157.170.170.32) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Thu, 26 Mar 2020 13:09:41 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Thu, 26 Mar 2020 13:09:41 -0500 Received: from [10.250.86.212] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 02QI9eb5072144; Thu, 26 Mar 2020 13:09:41 -0500 Subject: Re: [PATCH 3/7] dt-bindings: remoteproc: Add bindings for R5F subsystem on TI K3 SoCs To: Rob Herring CC: Bjorn Andersson , Mathieu Poirier , Lokesh Vutla , , , , References: <20200324201819.23095-1-s-anna@ti.com> <20200324201819.23095-4-s-anna@ti.com> <20200326162802.GA32328@bogus> From: Suman Anna Message-ID: <90bae05e-dd47-5b71-07a7-5c3efd929143@ti.com> Date: Thu, 26 Mar 2020 13:09:40 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20200326162802.GA32328@bogus> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, On 3/26/20 11:28 AM, Rob Herring wrote: > On Tue, 24 Mar 2020 15:18:15 -0500, Suman Anna wrote: >> The Texas Instruments K3 family of SoCs have one or more dual-core >> Arm Cortex R5F processor subsystems/clusters (R5FSS). The clusters >> can be split between multiple voltage domains as well. Add the device >> tree bindings document for these R5F subsystem devices. These R5F >> processors do not have an MMU, and so require fixed memory carveout >> regions matching the firmware image addresses. The nodes require more >> than one memory region, with the first memory region used for DMA >> allocations at runtime. The remaining memory regions are reserved >> and are used for the loading and running of the R5F remote processors. >> The R5F processors can also optionally use any internal on-chip SRAM >> memories either for executing code or using it as fast-access data. >> >> The added example illustrates the DT nodes for the single R5FSS device >> present on K3 AM65x family of SoCs. >> >> Signed-off-by: Suman Anna >> --- >> Hi Rob, >> >> The dt_bindings_check seems to throw couple of warnings around the >> usage of ranges because the tooling is adding the #address-cells >> and #size-cells of 1 by default, whereas our actual code uses 2. >> No issues are found with dtbs_check. >> >> regards >> Suman >> >> .../bindings/remoteproc/ti,k3-r5f-rproc.yaml | 338 ++++++++++++++++++ >> 1 file changed, 338 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/remoteproc/ti,k3-r5f-rproc.yaml >> > > My bot found errors running 'make dt_binding_check' on your patch: > > Documentation/devicetree/bindings/remoteproc/ti,k3-r5f-rproc.example.dts:23.13-20: Warning (ranges_format): /example-0/reserved-memory:ranges: empty "ranges" property but its #address-cells (2) differs from /example-0 (1) > Documentation/devicetree/bindings/remoteproc/ti,k3-r5f-rproc.example.dts:23.13-20: Warning (ranges_format): /example-0/reserved-memory:ranges: empty "ranges" property but its #size-cells (2) differs from /example-0 (1) > Documentation/devicetree/bindings/remoteproc/ti,k3-r5f-rproc.example.dts:54.13-56.72: Warning (ranges_format): /example-0/interconnect@100000:ranges: "ranges" property has invalid length (72 bytes) (parent #address-cells == 1, child #address-cells == 2, #size-cells == 2) I only saw these, because the generated example dts is using cell values of 1. I tried adding them using 2 in my example, but then it complains about duplicate properties. I do not know how to fix these though. Same with the K3 DSP bindings patches as well. > /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/remoteproc/ti,k3-r5f-rproc.example.dt.yaml: interconnect@100000: $nodename:0: 'interconnect@100000' does not match '^(bus|soc|axi|ahb|apb)(@[0-9a-f]+)?$' > /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/remoteproc/ti,k3-r5f-rproc.example.dt.yaml: interconnect@28380000: $nodename:0: 'interconnect@28380000' does not match '^(bus|soc|axi|ahb|apb)(@[0-9a-f]+)?$' > /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/remoteproc/ti,k3-r5f-rproc.example.dt.yaml: mcu-ram@41c00000: 'r5f-sram@0' does not match any of the regexes: '^([a-z]*-)?sram(-section)?@[a-f0-9]+$', 'pinctrl-[0-9]+' > /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/remoteproc/ti,k3-r5f-rproc.example.dt.yaml: mcu-ram@41c00000: $nodename:0: 'mcu-ram@41c00000' does not match '^sram(@.*)?' These node names are already upstream. Do I just update the example or the upstream dts also needs fixing? > > See https://patchwork.ozlabs.org/patch/1260966 > > If you already ran 'make dt_binding_check' and didn't see the above > error(s), then make sure dt-schema is up to date: > > pip3 install git+https://github.com/devicetree-org/dt-schema.git@master --upgrade Thanks, will upgrade my dt-schema. regards Suman