devicetree: Add TI-NSPIRE USB OTG support to device tree
authorDaniel Tang <dt.tangr@gmail.com>
Mon, 9 Feb 2015 08:41:57 +0000 (19:41 +1100)
committerArnd Bergmann <arnd@arndb.de>
Wed, 4 Mar 2015 22:44:17 +0000 (23:44 +0100)
Signed-off-by: Daniel Tang <dt.tangr@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/boot/dts/nspire-classic.dtsi
arch/arm/boot/dts/nspire-cx.dts
arch/arm/boot/dts/nspire.dtsi

index 9565199bce7a0986e3641d0c5e421a6cfefef12c..4907c5085d4bd3c4947b4be2ae7d65611e0d79f9 100644 (file)
        compatible = "lsi,nspire-classic-ahb-divider";
 };
 
+
+&vbus_reg {
+       gpio = <&gpio 5 0>;
+};
+
 / {
        memory {
                device_type = "memory";
index 375b924f60d80326833c13e7fbfa5f54c87d37aa..08e0b81b338527463623244d91798364e20905f7 100644 (file)
        0x0709001d      0x070a0033      >;
 };
 
+&vbus_reg {
+       gpio = <&gpio 2 0>;
+};
+
 / {
        model = "TI-NSPIRE CX";
        compatible = "ti,nspire-cx";
index a22ffe633b49b36a3f0d49a243ef7e04841f1af2..390c91aea16d479e1b7cc10b6a82a278d2732c8f 100644 (file)
                clocks = <&ahb_clk>;
        };
 
+       usb_phy: usb_phy {
+               compatible = "usb-nop-xceiv";
+       };
+
+       vbus_reg: vbus_reg {
+               compatible = "regulator-fixed";
+
+               regulator-name = "USB VBUS output";
+               regulator-type = "voltage";
+
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+       };
+
        ahb {
                compatible = "simple-bus";
                #address-cells = <1>;
                };
 
                usb0: usb@B0000000 {
+                       compatible = "lsi,zevio-usb";
                        reg = <0xB0000000 0x1000>;
                        interrupts = <8>;
+
+                       usb-phy = <&usb_phy>;
+                       vbus-supply = <&vbus_reg>;
                };
 
                usb1: usb@B4000000 {
                        ranges;
 
                        gpio: gpio@90000000 {
+                               compatible = "lsi,zevio-gpio";
                                reg = <0x90000000 0x1000>;
                                interrupts = <7>;
+                               gpio-controller;
+                               #gpio-cells = <2>;
                        };
 
                        fast_timer: timer@90010000 {