Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1727894
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Baolin Wang <baolin.wang@linaro.org> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/2] dt-bindings: spi: Add Spreadtrum ADI controller documentation |
| Date | Thu, 07 Sep 2017 05:30:01 +0200 |
| Message-ID | <umVFT-2AG-1@gated-at.bofh.it> (permalink) |
| References | <umBQR-5RB-7@gated-at.bofh.it> <umJY6-3cf-15@gated-at.bofh.it> |
| X-Original-To | Mark Brown <broonie@kernel.org> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=RFK4wZgp3lnUuqBW2j5U0E27cooQHYThr5OHmTtLyEI=; b=Ddj6P0jghxlGAk8u6BxGK+ZgQqKX7nk2ZXQsKI2hbekKoVggpuC0g/pGcVosQaRGaM 3sO6+PxKIxSoGqcAs77b2JMmLJXKHSIpFyUp6BDO8eHPbYuQGUxbYDHCA5tlW0ow1xSY w6p9KME7FBYGSE++AbMXhOKu0r6okLAjUqOTM= |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=RFK4wZgp3lnUuqBW2j5U0E27cooQHYThr5OHmTtLyEI=; b=bKpE7urlYIuGf0cObgm+RbuBn/FaT+FU3/zz3ddzFQrDRIp9peJa11wvGW7ioUjtSq YGmm1fmmfzns1OdUOaK1GzbRtvfYoLrWf+yjbaevDoFEJFxgi1RCQoZlylNahDUW9td5 f5ghJg8GFJl7CkUsPZZ/CiiBCWfZQgMO7MeapZhLJqsaQOd3UXPuqaevirvXw9ktlPaY vEjXZTm67ZqfXfqvJLxY6v5juKD3cCdJusdXj2uIbDY1Q8mhuSKH8uKoVUV8fu+kaScK XGNc1ekP7J2DR5MYnTc7aSe/kg/NyRT99z09gfiJo0aawekfYJeN7VtGVg63ZjkfR7AO Odow== |
| X-Gm-Message-State | AHPjjUhTkr/SR/dC4bHKhnqcQg+McEun4/WdLMkEAtLmNlYPulNRBckN c6MIFBVEcMm5jgGxPhXeyFDdEP5rC9aONzcPUw== |
| X-Google-SMTP-Source | ADKCNb7KL60kC4aKC7S6zl0qujiE0OyVzP6x2OQsHKfYryu0AZZK6ZxZvxvu50AMZTC4b3q4+HB2gJpF+OyElQzY6YQ= |
| X-Received | by 10.202.102.144 with SMTP id m16mr1412697oik.194.1504754945563; Wed, 06 Sep 2017 20:29:05 -0700 (PDT) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset="UTF-8" |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 44 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Baolin Wang <baolin.wang@spreadtrum.com>, Rob Herring <robh+dt@kernel.org>, Mark Rutland <mark.rutland@arm.com>, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, LKML <linux-kernel@vger.kernel.org> |
| X-Original-Date | Thu, 7 Sep 2017 11:29:05 +0800 |
| X-Original-Message-ID | <CAMz4ku+hKaemHQdVtNEbCf0J_9CjqKouSygAaQsqf+hBzGd-mg@mail.gmail.com> |
| X-Original-References | <ccbb0641fa123021249c7a51cbe2dcd975c41f39.1504677110.git.baolin.wang@spreadtrum.com> <20170906145900.yesyfyruv5wd3wxj@sirena.co.uk> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1727894 |
Show key headers only | View raw
Hi Mark, On 6 September 2017 at 22:59, Mark Brown <broonie@kernel.org> wrote: > On Wed, Sep 06, 2017 at 02:10:43PM +0800, Baolin Wang wrote: > >> +- hwlocks: Reference to a phandle of a hwlock provider node. >> +- hwlock-names: Reference to hwlock name strings defined in the same order >> + as the hwlocks. > > What are these hwlocks protecting, and what names are expected? I made one explanation in above sentence, I assume it is not clear. Since we have multi-subsystems will use ADI to access analog chip, when one system is reading/writing data by ADI, which should be under one hardware spinlock protection to prevent other systems from reading/writing data by ADI at the same time, or two parallel routine of setting ADI registers will get incorrect results. The hwspinlock name should be "adi", and I will make it clear in next version. > >> +Optional properties: >> +- sprd,hw-channels: Specify the hardware channel number and mapped address >> + for hardware channel accessing. > > What do these mean and how are the numbers and how will the binding be > interpreted? I also gave one explanation in above sentence, is it not clear? I try again. ADI controller has 50 channels including 2 software read/write channels and 48 hardware channels to access analog chip. For 2 software read/write channels, which means we should set ADI registers to access analog chip. But For hardware channels, we can just mapped one analog chip address to one hardware channel, then user can access analog chip by hardware channel without setting ADI registers. For this "sprd,hw-channels" property, the first value specifies the channel id, and the second value specifies the address which is mapped into analog chip space. -- Baolin.wang Best Regards
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/2] dt-bindings: spi: Add Spreadtrum ADI controller documentation Baolin Wang <baolin.wang@spreadtrum.com> - 2017-09-06 08:20 +0200
Re: [PATCH 1/2] dt-bindings: spi: Add Spreadtrum ADI controller documentation Mark Brown <broonie@kernel.org> - 2017-09-06 17:00 +0200
Re: [PATCH 1/2] dt-bindings: spi: Add Spreadtrum ADI controller documentation Baolin Wang <baolin.wang@linaro.org> - 2017-09-07 05:30 +0200
Re: [PATCH 1/2] dt-bindings: spi: Add Spreadtrum ADI controller documentation Mark Brown <broonie@kernel.org> - 2017-09-07 12:00 +0200
Re: [PATCH 1/2] dt-bindings: spi: Add Spreadtrum ADI controller documentation Baolin Wang <baolin.wang@linaro.org> - 2017-09-07 13:10 +0200
Re: [PATCH 1/2] dt-bindings: spi: Add Spreadtrum ADI controller documentation Mark Brown <broonie@kernel.org> - 2017-09-07 13:50 +0200
Re: [PATCH 1/2] dt-bindings: spi: Add Spreadtrum ADI controller documentation Baolin Wang <baolin.wang@linaro.org> - 2017-09-08 04:00 +0200
csiph-web