From: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
To: Hauke Mehrtens <hauke-5/S+JYg5SzeELgA04lAiVw@public.gmane.org>
Cc: Ralf Baechle <ralf-6z/3iImG2C8G8FEW9MqTrA@public.gmane.org>,
Linux-MIPS <linux-mips-6z/3iImG2C8G8FEW9MqTrA@public.gmane.org>,
"linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org"
<linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>,
LINUX-WATCHDOG
<linux-watchdog-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Martin Blumenstingl
<martin.blumenstingl-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>,
John Crispin <john-Pj+rj9U5foFAfugRpC6u6w@public.gmane.org>,
"linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"hauke.mehrtens"
<hauke.mehrtens-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
Andy Shevchenko
<andy.shevchenko-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
Philipp Zabel <p.zabel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>,
Kishon Vijay Abraham I <kishon-l0cyMroinI0@public.gmane.org>
Subject: Re: [PATCH v7 14/16] phy: Add an USB PHY driver for the Lantiq SoCs using the RCU module
Date: Fri, 7 Jul 2017 15:11:24 -0500 [thread overview]
Message-ID: <CAL_JsqKSixi3v8qmEFXQpYWi8C2USx5znahmCH14-8sBe+W3ig@mail.gmail.com> (raw)
In-Reply-To: <534b3592-2803-ac95-ad60-3cf5d1252413-5/S+JYg5SzeELgA04lAiVw@public.gmane.org>
On Fri, Jul 7, 2017 at 1:49 PM, Hauke Mehrtens <hauke-5/S+JYg5SzeELgA04lAiVw@public.gmane.org> wrote:
>
>
> On 07/07/2017 04:23 PM, Rob Herring wrote:
>> On Mon, Jul 03, 2017 at 12:40:49AM +0200, Hauke Mehrtens wrote:
>>> This driver starts the DWC2 core(s) built into the XWAY SoCs and provides
>>> the PHY interfaces for each core. The phy instances can be passed to the
>>> dwc2 driver, which already supports the generic phy interface.
>>>
>>> Signed-off-by: Hauke Mehrtens <hauke-5/S+JYg5SzeELgA04lAiVw@public.gmane.org>
>>> Cc: Kishon Vijay Abraham I <kishon-l0cyMroinI0@public.gmane.org>
>>> ---
>>> .../bindings/phy/phy-lantiq-rcu-usb2.txt | 42 ++++
>>> arch/mips/lantiq/xway/sysctrl.c | 24 +-
>>> drivers/phy/Kconfig | 8 +
>>> drivers/phy/Makefile | 1 +
>>> drivers/phy/phy-lantiq-rcu-usb2.c | 275 +++++++++++++++++++++
>>> 5 files changed, 338 insertions(+), 12 deletions(-)
>>> create mode 100644 Documentation/devicetree/bindings/phy/phy-lantiq-rcu-usb2.txt
>>> create mode 100644 drivers/phy/phy-lantiq-rcu-usb2.c
>>>
>>> diff --git a/Documentation/devicetree/bindings/phy/phy-lantiq-rcu-usb2.txt b/Documentation/devicetree/bindings/phy/phy-lantiq-rcu-usb2.txt
>>> new file mode 100644
>>> index 000000000000..c538baa2ba54
>>> --- /dev/null
>>> +++ b/Documentation/devicetree/bindings/phy/phy-lantiq-rcu-usb2.txt
>>> @@ -0,0 +1,42 @@
>>> +Lantiq XWAY SoC RCU USB 1.1/2.0 PHY binding
>>> +===========================================
>>> +
>>> +This binding describes the USB PHY hardware provided by the RCU module on the
>>> +Lantiq XWAY SoCs.
>>> +
>>> +This driver has to be a sub node of the Lantiq RCU block.
>>> +
>>> +-------------------------------------------------------------------------------
>>> +Required properties (controller (parent) node):
>>> +- compatible : Should be one of
>>> + "lantiq,ase-usb2-phy"
>>> + "lantiq,danube-usb2-phy"
>>> + "lantiq,xrx100-usb2-phy"
>>> + "lantiq,xrx200-usb2-phy"
>>> + "lantiq,xrx300-usb2-phy"
>>> +- offset-phy : Offset of the USB PHY configuration register
>>> +- offset-ana : Offset of the USB Analog configuration register
>>
>> These are not needed with the reg property used instead.
>
> Hi Rob,
>
> These register are also used by completely different drivers, the
> hardware engineers used some bits of these registers for completely
> different purposes, some bits are used for DSL instead of USB PHY. When
> I io map them, they can only be access through this driver.
>
> Should I get the register from the reg property and access them though
> regmap or how should I make sure also other drivers can access the other
> bits.
Yes, just read the reg property like you would for the offset properties.
Rob
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2017-07-07 20:11 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-02 22:40 [PATCH v7 00/16] MIPS: lantiq: handle RCU register by separate drivers Hauke Mehrtens
[not found] ` <20170702224051.15109-1-hauke-5/S+JYg5SzeELgA04lAiVw@public.gmane.org>
2017-07-02 22:40 ` [PATCH v7 01/16] MIPS: lantiq: Use of_platform_default_populate instead of __dt_register_buses Hauke Mehrtens
2017-07-02 22:40 ` [PATCH v7 02/16] mtd: lantiq-flash: drop check of boot select Hauke Mehrtens
2017-07-02 22:40 ` [PATCH v7 03/16] mtd: spi-falcon: " Hauke Mehrtens
2017-07-02 22:40 ` [PATCH v7 04/16] watchdog: lantiq: access boot cause register through regmap Hauke Mehrtens
2017-07-02 22:40 ` [PATCH v7 05/16] watchdog: lantiq: add device tree binding documentation Hauke Mehrtens
[not found] ` <20170702224051.15109-6-hauke-5/S+JYg5SzeELgA04lAiVw@public.gmane.org>
2017-07-07 14:08 ` Rob Herring
2017-07-07 19:01 ` Hauke Mehrtens
[not found] ` <704b3b8b-3f33-3d51-82d7-a9515fc39742-5/S+JYg5SzeELgA04lAiVw@public.gmane.org>
2017-07-07 20:18 ` Rob Herring
2017-07-02 22:40 ` [PATCH v7 06/16] MIPS: lantiq: Enable MFD_SYSCON to be able to use it for the RCU MFD Hauke Mehrtens
2017-07-02 22:40 ` [PATCH v7 07/16] Documentation: DT: MIPS: lantiq: Add docs for the RCU bindings Hauke Mehrtens
[not found] ` <20170702224051.15109-8-hauke-5/S+JYg5SzeELgA04lAiVw@public.gmane.org>
2017-07-07 14:10 ` Rob Herring
2017-07-02 22:40 ` [PATCH v7 08/16] MIPS: lantiq: Convert the fpi bus driver to a platform_driver Hauke Mehrtens
[not found] ` <20170702224051.15109-9-hauke-5/S+JYg5SzeELgA04lAiVw@public.gmane.org>
2017-07-03 7:45 ` Andy Shevchenko
2017-07-07 14:11 ` Rob Herring
2017-07-02 22:40 ` [PATCH v7 09/16] MIPS: lantiq: remove ltq_reset_cause() and ltq_boot_select() Hauke Mehrtens
2017-07-02 22:40 ` [PATCH v7 10/16] reset: Add a reset controller driver for the Lantiq XWAY based SoCs Hauke Mehrtens
[not found] ` <20170702224051.15109-11-hauke-5/S+JYg5SzeELgA04lAiVw@public.gmane.org>
2017-07-03 7:51 ` Andy Shevchenko
[not found] ` <CAHp75VexwnVsb-ojXaZDN7QPVRKUeP-R=5C+j5ZSkE37Dtyp1Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-07-03 21:30 ` Hauke Mehrtens
[not found] ` <e1160f30-eeff-3db2-884c-9cd4af35a37d-5/S+JYg5SzeELgA04lAiVw@public.gmane.org>
2017-07-04 8:30 ` Philipp Zabel
2017-07-07 14:17 ` Rob Herring
2017-07-07 14:16 ` Rob Herring
2017-07-02 22:40 ` [PATCH v7 11/16] MIPS: lantiq: remove old reset controller implementation Hauke Mehrtens
2017-07-02 22:40 ` [PATCH v7 12/16] MIPS: lantiq: Add a GPHY driver which uses the RCU syscon-mfd Hauke Mehrtens
2017-07-02 22:40 ` [PATCH v7 13/16] MIPS: lantiq: remove old GPHY loader code Hauke Mehrtens
2017-07-02 22:40 ` [PATCH v7 14/16] phy: Add an USB PHY driver for the Lantiq SoCs using the RCU module Hauke Mehrtens
[not found] ` <20170702224051.15109-15-hauke-5/S+JYg5SzeELgA04lAiVw@public.gmane.org>
2017-07-07 14:23 ` Rob Herring
2017-07-07 18:49 ` Hauke Mehrtens
[not found] ` <534b3592-2803-ac95-ad60-3cf5d1252413-5/S+JYg5SzeELgA04lAiVw@public.gmane.org>
2017-07-07 20:11 ` Rob Herring [this message]
2017-07-11 6:38 ` Kishon Vijay Abraham I
[not found] ` <30adb3f5-50b5-35e3-685f-9fe0fa8c31f8-l0cyMroinI0@public.gmane.org>
2017-07-11 21:16 ` Hauke Mehrtens
2017-07-02 22:40 ` [PATCH v7 15/16] MIPS: lantiq: remove old USB PHY initialisation Hauke Mehrtens
2017-07-02 22:40 ` [PATCH v7 16/16] MIPS: lantiq: Remove the arch/mips/lantiq/xway/reset.c implementation Hauke Mehrtens
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=CAL_JsqKSixi3v8qmEFXQpYWi8C2USx5znahmCH14-8sBe+W3ig@mail.gmail.com \
--to=robh-dgejt+ai2ygdnm+yrofe0a@public.gmane.org \
--cc=andy.shevchenko-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=hauke-5/S+JYg5SzeELgA04lAiVw@public.gmane.org \
--cc=hauke.mehrtens-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
--cc=john-Pj+rj9U5foFAfugRpC6u6w@public.gmane.org \
--cc=kishon-l0cyMroinI0@public.gmane.org \
--cc=linux-mips-6z/3iImG2C8G8FEW9MqTrA@public.gmane.org \
--cc=linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-watchdog-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=martin.blumenstingl-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org \
--cc=p.zabel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org \
--cc=ralf-6z/3iImG2C8G8FEW9MqTrA@public.gmane.org \
/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;
as well as URLs for NNTP newsgroup(s).