From: sergei.shtylyov@cogentembedded•com (Sergei Shtylyov)
To: linux-arm-kernel@lists•infradead.org
Subject: [PATCH v4 2/2] ARM: shmobile: lager: enable HS-USB
Date: Wed, 08 Oct 2014 23:55:59 +0400 [thread overview]
Message-ID: <2455064.TG6DqQLVoV@wasted.cogentembedded.com> (raw)
In-Reply-To: <1674850.BZpGW9kEud@wasted.cogentembedded.com>
From: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas•com>
Enable HS-USB device for the Lager board, defining the GPIO that the driver
should check when probing. Since this board doesn't have the OTG ID pin, we
assume that GP5_18 (USB0_PWEN) is an ID pin because it is 1 when the SW5 is
in position 2-3 (meaning USB function) and 0 in other positions.
Note that there will be pinctrl-related error messages if both internal PCI
and HS-USB drivers are enabled but they should be just ignored.
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas•com>
[Sergei: added pin node and prop, moved device node, fixed summary, supplemented
changelog]
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded•com>
---
Changes in version 4:
- fixed pin node name;
- moved pin node before USB0's one.
Changes in version 3:
- added pin function/group and the pinctrl-related prop;
- moved the HS-USB node to precede the USB PHY node;
- uppercased "arm" in the summary;
- supplemented changelog.
arch/arm/boot/dts/r8a7790-lager.dts | 12 ++++++++++++
1 file changed, 12 insertions(+)
Index: renesas/arch/arm/boot/dts/r8a7790-lager.dts
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7790-lager.dts
+++ renesas/arch/arm/boot/dts/r8a7790-lager.dts
@@ -221,6 +221,11 @@
renesas,function = "iic3";
};
+ hsusb_pins: hsusb {
+ renesas,groups = "usb0_ovc_vbus";
+ renesas,function = "usb0";
+ };
+
usb0_pins: usb0 {
renesas,groups = "usb0";
renesas,function = "usb0";
@@ -425,6 +430,13 @@
pinctrl-names = "default";
};
+&hsusb {
+ status = "okay";
+ pinctrl-0 = <&hsusb_pins>;
+ pinctrl-names = "default";
+ renesas,enable-gpio = <&gpio5 18 GPIO_ACTIVE_HIGH>;
+};
+
&usbphy {
status = "okay";
};
next prev parent reply other threads:[~2014-10-08 19:55 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-08 19:53 [PATCH v4 0/2] Add HS-USB device tree support for R8A7790/Lager board Sergei Shtylyov
2014-10-08 19:54 ` [PATCH v4 1/2] ARM: shmobile: r8a7790: add HS-USB device node Sergei Shtylyov
2014-10-08 19:55 ` Sergei Shtylyov [this message]
2014-10-24 5:09 ` [PATCH v4 0/2] Add HS-USB device tree support for R8A7790/Lager board Simon Horman
2014-10-24 5:22 ` Yoshihiro Shimoda
2015-09-16 23:53 ` [PATCH] ARM: shmobile: r8a7794: add HS-USB DT support Sergei Shtylyov
2015-10-05 3:02 ` Simon Horman
2015-10-14 19:35 ` [PATCH] ARM: shmobile: porter: " Sergei Shtylyov
2015-10-15 0:18 ` Simon Horman
2015-10-15 10:27 ` Sergei Shtylyov
2015-10-27 21:03 ` [PATCH] ARM: shmobile: porter: add CAN0 " Sergei Shtylyov
2015-10-27 22:41 ` Simon Horman
2015-10-27 22:56 ` Sergei Shtylyov
2015-12-24 22:45 ` [PATCH] ARM: shmobile: porter: add DU " Sergei Shtylyov
2015-12-28 5:29 ` Simon Horman
2015-12-28 14:35 ` Sergei Shtylyov
2015-12-28 21:43 ` Simon Horman
2016-01-12 23:06 ` [PATCH] ARM: shmobile: silk: " Sergei Shtylyov
2016-01-18 1:41 ` Simon Horman
2016-01-21 22:36 ` [PATCH] ARM: dts: porter: add sound support Sergei Shtylyov
2016-01-25 0:35 ` Kuninori Morimoto
2016-01-26 0:43 ` Simon Horman
2016-01-26 14:31 ` Sergei Shtylyov
2016-01-26 22:14 ` [PATCH] ARM: dts: porter: add MAX3355 support Sergei Shtylyov
2016-01-28 5:49 ` Yoshihiro Shimoda
2016-01-29 20:28 ` Sergei Shtylyov
2016-01-29 20:49 ` Sergei Shtylyov
2016-02-01 11:17 ` Yoshihiro Shimoda
2016-02-01 17:54 ` Sergei Shtylyov
2016-02-01 19:00 ` Sergei Shtylyov
2016-02-15 1:45 ` Simon Horman
2016-02-15 10:59 ` Sergei Shtylyov
2016-02-11 20:26 ` [PATCH] ARM: dts: silk: add sound support Sergei Shtylyov
2016-02-15 4:56 ` Kuninori Morimoto
2016-02-11 21:49 ` [PATCH] ARM: dts: porter: fix JP3 jumper description Sergei Shtylyov
2016-02-15 4:50 ` Kuninori Morimoto
2016-02-15 21:55 ` Simon Horman
2016-02-13 22:26 ` [PATCH] ARM: dts: porter: remove enable prop from HS-USB device node Sergei Shtylyov
2016-02-26 19:43 ` Sergei Shtylyov
2016-03-02 0:47 ` Simon Horman
2016-04-13 19:36 ` [PATCH] ARM: dts: silk: add DU pins Sergei Shtylyov
2016-06-17 20:53 ` Sergei Shtylyov
2016-06-20 8:35 ` Simon Horman
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=2455064.TG6DqQLVoV@wasted.cogentembedded.com \
--to=sergei.shtylyov@cogentembedded$(echo .)com \
--cc=linux-arm-kernel@lists$(echo .)infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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