-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'sunxi/soc2' into next/soc
From Maxime Ripard: Here is a pull request to add the support for Allwinner A10 SoCs. * sunxi/soc2: ARM: sunxi: Add sunxi restart function via onchip watchdog ARM: sunxi: Add sun4i and cubieboard support ARM: sunxi: Add earlyprintk support for UART0 (sun4i) ARM: sunxi: Restructure sunxi dts/dtsi files Signed-off-by: Olof Johansson <olof@lixom.net>
- Loading branch information
Showing
9 changed files
with
186 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Allwinner sunXi Watchdog timer | ||
|
||
Required properties: | ||
|
||
- compatible : should be "allwinner,sunxi-wdt" | ||
- reg : Specifies base physical address and size of the registers. | ||
|
||
Example: | ||
|
||
wdt: watchdog@01c20c90 { | ||
compatible = "allwinner,sunxi-wdt"; | ||
reg = <0x01c20c90 0x10>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* Copyright 2012 Stefan Roese | ||
* Stefan Roese <sr@denx.de> | ||
* | ||
* The code contained herein is licensed under the GNU General Public | ||
* License. You may obtain a copy of the GNU General Public License | ||
* Version 2 or later at the following locations: | ||
* | ||
* http://www.opensource.org/licenses/gpl-license.html | ||
* http://www.gnu.org/copyleft/gpl.html | ||
*/ | ||
|
||
/dts-v1/; | ||
/include/ "sun4i.dtsi" | ||
|
||
/ { | ||
model = "Cubietech Cubieboard"; | ||
compatible = "cubietech,cubieboard", "allwinner,sun4i"; | ||
|
||
aliases { | ||
serial0 = &uart0; | ||
serial1 = &uart1; | ||
}; | ||
|
||
chosen { | ||
bootargs = "earlyprintk console=ttyS0,115200"; | ||
}; | ||
|
||
soc { | ||
uart0: uart@01c28000 { | ||
status = "okay"; | ||
}; | ||
|
||
uart1: uart@01c28400 { | ||
status = "okay"; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
/* | ||
* Copyright 2012 Maxime Ripard | ||
* | ||
* Maxime Ripard <maxime.ripard@free-electrons.com> | ||
* | ||
* The code contained herein is licensed under the GNU General Public | ||
* License. You may obtain a copy of the GNU General Public License | ||
* Version 2 or later at the following locations: | ||
* | ||
* http://www.opensource.org/licenses/gpl-license.html | ||
* http://www.gnu.org/copyleft/gpl.html | ||
*/ | ||
|
||
/include/ "skeleton.dtsi" | ||
|
||
/ { | ||
interrupt-parent = <&intc>; | ||
|
||
cpus { | ||
cpu@0 { | ||
compatible = "arm,cortex-a8"; | ||
}; | ||
}; | ||
|
||
clocks { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
osc: oscillator { | ||
#clock-cells = <0>; | ||
compatible = "fixed-clock"; | ||
clock-frequency = <24000000>; | ||
}; | ||
}; | ||
|
||
soc { | ||
compatible = "simple-bus"; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
reg = <0x01c20000 0x300000>; | ||
ranges; | ||
|
||
timer@01c20c00 { | ||
compatible = "allwinner,sunxi-timer"; | ||
reg = <0x01c20c00 0x90>; | ||
interrupts = <22>; | ||
clocks = <&osc>; | ||
}; | ||
|
||
wdt: watchdog@01c20c90 { | ||
compatible = "allwinner,sunxi-wdt"; | ||
reg = <0x01c20c90 0x10>; | ||
}; | ||
|
||
intc: interrupt-controller@01c20400 { | ||
compatible = "allwinner,sunxi-ic"; | ||
reg = <0x01c20400 0x400>; | ||
interrupt-controller; | ||
#interrupt-cells = <1>; | ||
}; | ||
|
||
uart0: uart@01c28000 { | ||
compatible = "ns8250"; | ||
reg = <0x01c28000 0x400>; | ||
interrupts = <1>; | ||
reg-shift = <2>; | ||
clock-frequency = <24000000>; | ||
status = "disabled"; | ||
}; | ||
|
||
uart1: uart@01c28400 { | ||
compatible = "ns8250"; | ||
reg = <0x01c28400 0x400>; | ||
interrupts = <2>; | ||
reg-shift = <2>; | ||
clock-frequency = <24000000>; | ||
status = "disabled"; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters