ARM: sun6i: Add the USB clocks to the DTSI
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 13 May 2014 15:44:16 +0000 (17:44 +0200)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 14 May 2014 12:30:00 +0000 (14:30 +0200)
The USB clocks of the A31 seems to be parented to the 24MHz oscillator, and
handle the clocks for the USB phys and OHCI devices.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
arch/arm/boot/dts/sun6i-a31.dtsi

index eec1afa..13aa56e 100644 (file)
                        clocks = <&osc24M>, <&pll6>;
                        clock-output-names = "spi3";
                };
+
+               usb_clk: clk@01c200cc {
+                       #clock-cells = <1>;
+                       #reset-cells = <1>;
+                       compatible = "allwinner,sun6i-a31-usb-clk";
+                       reg = <0x01c200cc 0x4>;
+                       clocks = <&osc24M>;
+                       clock-output-names = "usb_phy0", "usb_phy1", "usb_phy2",
+                                            "usb_ohci0", "usb_ohci1",
+                                            "usb_ohci2";
+               };
        };
 
        soc@01c00000 {