sunxi: various changes - fix mmc, sata, usb (partially) on CubieTruck - fix hstimer...
authorZoltan Herpai <wigyori@uid0.hu>
Thu, 20 Mar 2014 21:40:07 +0000 (21:40 +0000)
committerZoltan Herpai <wigyori@uid0.hu>
Thu, 20 Mar 2014 21:40:07 +0000 (21:40 +0000)
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
Signed-off-by: Zalan Blenessy <zalan.blenessy@gmail.com>
SVN-Revision: 39971

target/linux/sunxi/patches-3.13/146-3-dt-sun7i-a20-add-hstimer.patch
target/linux/sunxi/patches-3.13/164-2-dt-sun7i-add-ahci.patch
target/linux/sunxi/patches-3.13/173-3-dt-sun7i-add-mmc.patch
target/linux/sunxi/patches-3.13/184-5-dt-sun7i-add-ehci-cubietruck.patch [new file with mode: 0644]

index dea8e6b0ae5ba622dc36f8dba5f9940e6f1c5ef5..dc9ce4f9e9c7f2d604c5fb86d02782a3c497e6bf 100644 (file)
@@ -31,10 +31,10 @@ Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
 +              hstimer@01c60000 {
 +                      compatible = "allwinner,sun7i-a20-hstimer";
 +                      reg = <0x01c60000 0x1000>;
-+                      interrupts = <0 81 1>,
-+                                   <0 82 1>,
-+                                   <0 83 1>,
-+                                   <0 84 1>;
++                      interrupts = <0 81 4>,
++                                   <0 82 4>,
++                                   <0 83 4>,
++                                   <0 84 4>;
 +                      clocks = <&ahb_gates 28>;
 +              };
 +
index d43dab8dc8894a4a2544401ac9f181d701dac9e4..5a31f926c3b72482efb919c94eb4600e19a3f8a2 100644 (file)
@@ -70,7 +70,7 @@ index 025ce52..403bd2e 100644
                        led_pins_cubietruck: led_pins@0 {
                                allwinner,pins = "PH7", "PH11", "PH20", "PH21";
                                allwinner,function = "gpio_out";
-@@ -90,4 +103,9 @@
+@@ -90,4 +103,10 @@
                        gpios = <&pio 7 7 0>;
                };
        };
@@ -78,6 +78,7 @@ index 025ce52..403bd2e 100644
 +      reg_ahci_5v: ahci-5v {
 +              pinctrl-0 = <&ahci_pwr_pin_cubietruck>;
 +              gpio = <&pio 7 12 0>;
++              status = "okay";
 +      };
  };
 diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts b/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
index 3fb2c6f0e77feeca27d1d5cd76585e87ab151338..e983863f7e01d0ed74f5431125e0eab3cbde119d 100644 (file)
@@ -76,6 +76,25 @@ index d5c6799..d4e2355 100644
                        led_pins_olinuxino: led_pins@0 {
                                allwinner,pins = "PH2";
                                allwinner,function = "gpio_out";
+diff --git a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
+index cb25d3c..66bb3ef 100644
+--- a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
++++ b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
+@@ -20,6 +20,14 @@
+       compatible = "cubietech,cubietruck", "allwinner,sun7i-a20";
+
+       soc@01c00000 {
++              mmc0: mmc@01c0f000 {
++                      pinctrl-names = "default", "default";
++                      pinctrl-0 = <&mmc0_pins_a>;
++                      pinctrl-1 = <&mmc0_cd_pin_reference_design>;
++                      cd-gpios = <&pio 7 1 0>; /* PH1 */
++                      status = "okay";
++              };
++
+               ahci: sata@01c18000 {
+                       target-supply = <&reg_ahci_5v>;
+                       status = "okay";
 diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi
 index 3385994..3bc6ac5 100644
 --- a/arch/arm/boot/dts/sun7i-a20.dtsi
diff --git a/target/linux/sunxi/patches-3.13/184-5-dt-sun7i-add-ehci-cubietruck.patch b/target/linux/sunxi/patches-3.13/184-5-dt-sun7i-add-ehci-cubietruck.patch
new file mode 100644 (file)
index 0000000..7912f20
--- /dev/null
@@ -0,0 +1,39 @@
+diff -ruN old/arch/arm/boot/dts/sun7i-a20-cubietruck.dts new/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
+--- old/arch/arm/boot/dts/sun7i-a20-cubietruck.dts     2014-03-18 10:08:24.000000000 +0100
++++ new/arch/arm/boot/dts/sun7i-a20-cubietruck.dts     2014-03-18 10:27:25.142067751 +0100
+@@ -14,12 +14,35 @@
+ /dts-v1/;
+ /include/ "sun7i-a20.dtsi"
+ /include/ "sunxi-ahci-reg.dtsi"
++/include/ "sun4i-a10-usb-vbus-reg.dtsi"
+ / {
+       model = "Cubietech Cubietruck";
+       compatible = "cubietech,cubietruck", "allwinner,sun7i-a20";
+       soc@01c00000 {
++              usbphy: phy@01c13400 {
++                      usb1_vbus-supply = <&reg_usb1_vbus>;
++                      usb2_vbus-supply = <&reg_usb2_vbus>;
++                      status = "okay";
++              };
++
++              ehci0: usb@01c14000 {
++                      status = "okay";
++              };
++
++              ohci0: usb@01c14400 {
++                      status = "okay";
++              };
++
++              ehci1: usb@01c1c000 {
++                      status = "okay";
++              };
++
++              ohci1: usb@01c1c400 {
++                      status = "okay";
++              };
++
+               mmc0: mmc@01c0f000 {
+                       pinctrl-names = "default", "default";
+                       pinctrl-0 = <&mmc0_pins_a>;