From: Suman Anna <s-anna@ti.com>
To: Rob Herring <robh@kernel.org>
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>,
Ohad Ben-Cohen <ohad@wizery.com>,
Mark Rutland <mark.rutland@arm.com>, <devicetree@vger.kernel.org>,
<linux-remoteproc@vger.kernel.org>, Sekhar Nori <nsekhar@ti.com>,
Robert Tivy <rtivy@ti.com>,
<linux-arm-kernel@lists.infradead.org>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 3/4] Documentation: dt: Add bindings for Davinci DSP processors
Date: Wed, 31 May 2017 14:53:32 -0500 [thread overview]
Message-ID: <993f3035-cf3a-40bf-44af-24e5f98d76bf@ti.com> (raw)
In-Reply-To: <20170531192211.xszanmzvj34ohblk@rob-hp-laptop>
Hi Rob,
On 05/31/2017 02:22 PM, Rob Herring wrote:
> On Fri, May 26, 2017 at 03:21:39PM -0500, Suman Anna wrote:
>> Add the device tree bindings document for the DSP processor
>> subsystem devices on TI Davinci DA8xx/OMAP-L13x SoCs.
>
> "dt-bindings: remoteproc: ..." for the subject.
Ok, will fix this on v2
>
>>
>> Signed-off-by: Suman Anna <s-anna@ti.com>
>> ---
>> .../bindings/remoteproc/ti,davinci-rproc.txt | 92 ++++++++++++++++++++++
>> 1 file changed, 92 insertions(+)
>> create mode 100644 Documentation/devicetree/bindings/remoteproc/ti,davinci-rproc.txt
>>
>> diff --git a/Documentation/devicetree/bindings/remoteproc/ti,davinci-rproc.txt b/Documentation/devicetree/bindings/remoteproc/ti,davinci-rproc.txt
>> new file mode 100644
>> index 000000000000..e53572e22002
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/remoteproc/ti,davinci-rproc.txt
>> @@ -0,0 +1,92 @@
>> +TI Davinci DSP devices
>> +=======================
>> +
>> +Binding status: Unstable - Subject to changes for DT clocks and resets
>
> Sorry, understandable if you didn't have documentation, but you work for
> TI, figure out what the clocks and resets are.
Well, what I meant here is that the clocks and resets do not have a DT
representation yet on these SoCs. And when they do have a DT
representation, I would need to add the additional _required_ clocks and
resets properties, hence the marking.
>
>> +
>> +The TI Davinci family of SoCs usually contains a TI DSP Core sub-system that
>> +is used to offload some of the processor-intensive tasks or algorithms, for
>> +achieving various system level goals.
>> +
>> +The processor cores in the sub-system usually contain additional sub-modules
>> +like L1 and/or L2 caches/SRAMs, an Interrupt Controller, an external memory
>> +controller, a dedicated local power/sleep controller etc. The DSP processor
>> +core used in Davinci SoCs is usually a C674x DSP CPU.
>
> I'm wondering if your compatible string is specific enough with this
> statement.
We always have integration aspects around these IPs into different SoCs,
so the compatible is following the SoC name. Also note that the C674x is
just the DSP core - one part of the DSP subsystem.
>
>> +
>> +DSP Device Node:
>> +================
>> +Each DSP Core sub-system is represented as a single DT node.
>> +
>> +Required properties:
>> +--------------------
>> +The following are the mandatory properties:
>> +
>> +- compatible: Should be one of the following,
>> + "ti,da850-dsp" for DSPs on OMAP-L138 SoCs
>> +
>> +- reg: Should contain an entry for each value in 'reg-names'.
>> + Each entry should have the memory region's start address
>> + and the size of the region, the representation matching
>> + the parent node's '#address-cells' and '#size-cells' values.
>> +
>> +- reg-names: Should contain strings with the following names, each
>> + representing a specific internal memory region or a
>> + specific register space,
>> + "l2sram", "l1pram", "l1dram", "host1cfg", "chipsig_base"
>> +
>> +- interrupts: Should contain the interrupt number used to receive the
>> + interrupts from the DSP. The value should follow the
>> + interrupt-specifier format as dictated by the
>> + 'interrupt-parent' node.
>> +
>> +- memory-region: phandle to the reserved memory node to be associated
>> + with the remoteproc device. The reserved memory node
>> + can be a CMA memory node, and should be defined as
>> + per the bindings in
>> + Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt
>> +
>> +Optional properties:
>> +--------------------
>> +- interrupt-parent: phandle to the interrupt controller node. This property
>> + is needed if the device node hierarchy doesn't have an
>> + interrupt controller.
>> +
>> +
>> +Example:
>> +--------
>> +
>> + /* DA850 DTS file */
>
> Don't show the dts split in examples.
>
>> + {
>> + dsp: dsp@11800000 {
>> + compatible = "ti,da850-dsp";
>> + reg = <0x11800000 0x40000>,
>> + <0x11e00000 0x8000>,
>> + <0x11f00000 0x8000>,
>> + <0x01c14044 0x4>,
>> + <0x01c14174 0x8>;
>> + reg-names = "l2sram", "l1pram", "l1dram", "host1cfg",
>> + "chipsig";
>> + interrupt-parent = <&intc>;
>> + interrupts = <28>;
>> + status = "disabled";
>
> Don't show status in examples.
>
>> + };
>> +
>> + };
>> +
>> + /* OMAP-L138 LCDK Board file */
>> + reserved-memory {
>> + #address-cells = <1>;
>> + #size-cells = <1>;
>> + ranges;
>> +
>> + dsp_cma_pool: dsp_cma@c3000000 {
>
> cma is a linuxism. dsp-memory@...
OK will fix up all these comments as well.
regards
Suman
>
>> + compatible = "shared-dma-pool";
>> + reg = <0xc3000000 0x1000000>;
>> + reusable;
>> + status = "okay";
>> + };
>> + };
>> +
>> + &dsp {
>> + status = "okay";
>> + memory-region = <&dsp_cma_pool>;
>> + };
>> --
>> 2.12.0
>>
next prev parent reply other threads:[~2017-05-31 19:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-26 20:21 [PATCH 0/4] Add DT support for davinci remoteproc driver Suman Anna
2017-05-26 20:21 ` [PATCH 1/4] remoteproc/davinci: Switch to platform_get_resource_byname() Suman Anna
2017-05-26 20:21 ` [PATCH 2/4] remoteproc/davinci: add support to parse internal memories Suman Anna
2017-05-26 20:21 ` [PATCH 3/4] Documentation: dt: Add bindings for Davinci DSP processors Suman Anna
2017-05-31 19:22 ` Rob Herring
2017-05-31 19:53 ` Suman Anna [this message]
2017-05-26 20:21 ` [PATCH 4/4] remoteproc/davinci: Add device tree support for OMAP-L138 DSP Suman Anna
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=993f3035-cf3a-40bf-44af-24e5f98d76bf@ti.com \
--to=s-anna@ti.com \
--cc=bjorn.andersson@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-remoteproc@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=nsekhar@ti.com \
--cc=ohad@wizery.com \
--cc=robh@kernel.org \
--cc=rtivy@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®