[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180525125257.29124-4-johan@kernel.org>
Date: Fri, 25 May 2018 14:52:57 +0200
From: Johan Hovold <johan@...nel.org>
To: Rob Herring <robh+dt@...nel.org>
Cc: Mark Rutland <mark.rutland@....com>,
Johan Hovold <johan@...nel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Ricardo Ribalda Delgado <ricardo.ribalda@...il.com>,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-usb@...r.kernel.org, linux-serial@...r.kernel.org
Subject: [RFC PATCH 3/3] dbg: ARM: dts: boneblack: add USB topology and serdev nodes
Add a hub device and two USB devices, of which one has a combined node.
Note that we need to represent the serial ports as well -- consider
devices with multiple ports per interface; which one should serdev
use? Sibling devices can also be described this way (e.g. gpio@0), and
would need to use the same address size.
Also note that serial ports have a standardised node name in ePAPR.
Not-signed-off-by: Johan Hovold <johan@...nel.org>
---
arch/arm/boot/dts/am335x-boneblack.dts | 57 ++++++++++++++++++++++++++
1 file changed, 57 insertions(+)
diff --git a/arch/arm/boot/dts/am335x-boneblack.dts b/arch/arm/boot/dts/am335x-boneblack.dts
index d154d3133c16..d5f4c78efa53 100644
--- a/arch/arm/boot/dts/am335x-boneblack.dts
+++ b/arch/arm/boot/dts/am335x-boneblack.dts
@@ -26,3 +26,60 @@
opp-supported-hw = <0x06 0x0100>;
};
};
+
+&usb1 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ dlink_hub: hub@1 {
+ compatible = "usb2101,8501";
+ reg = <1>;
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ ft232r: device@3 {
+ compatible = "usb403,6001";
+ reg = <3>;
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ serial@0 {
+ reg = <0>;
+
+ serdev {
+ compatible = "none,serdev-mockup";
+ };
+ };
+ };
+
+ mos7820: device@5 {
+ compatible = "usb9710,7840";
+ reg = <5>;
+
+ #address-cells = <2>;
+ #size-cells = <0>;
+
+ interface@0 {
+ compatible = "usbif9710,7840.config1.0";
+ reg = <0 1>;
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ serial@0 {
+ reg = <0>;
+
+ gnss {
+ compatible = "u-blox,neo-8";
+ };
+ };
+
+ serial@1 {
+ reg = <1>;
+ };
+ };
+ };
+ };
+};
--
2.17.0
Powered by blists - more mailing lists