Commit 5896a4d8 authored by Linus Walleij's avatar Linus Walleij

ARM: dts: gemini: Switch to using macros

The macros for reset and clock lines were merged during the merge
window, this switches the Gemini to use these macros rather than
numerical defines.
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 5771a8c0
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
/include/ "skeleton.dtsi" /include/ "skeleton.dtsi"
#include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/clock/cortina,gemini-clock.h>
#include <dt-bindings/reset/cortina,gemini-reset.h>
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
/ { / {
...@@ -45,15 +47,15 @@ watchdog@41000000 { ...@@ -45,15 +47,15 @@ watchdog@41000000 {
compatible = "cortina,gemini-watchdog"; compatible = "cortina,gemini-watchdog";
reg = <0x41000000 0x1000>; reg = <0x41000000 0x1000>;
interrupts = <3 IRQ_TYPE_LEVEL_HIGH>; interrupts = <3 IRQ_TYPE_LEVEL_HIGH>;
resets = <&syscon 23>; resets = <&syscon GEMINI_RESET_WDOG>;
clocks = <&syscon 2>; clocks = <&syscon GEMINI_CLK_APB>;
}; };
uart0: serial@42000000 { uart0: serial@42000000 {
compatible = "ns16550a"; compatible = "ns16550a";
reg = <0x42000000 0x100>; reg = <0x42000000 0x100>;
resets = <&syscon 18>; resets = <&syscon GEMINI_RESET_UART>;
clocks = <&syscon 6>; clocks = <&syscon GEMINI_CLK_UART>;
interrupts = <18 IRQ_TYPE_LEVEL_HIGH>; interrupts = <18 IRQ_TYPE_LEVEL_HIGH>;
reg-shift = <2>; reg-shift = <2>;
}; };
...@@ -65,9 +67,9 @@ timer@43000000 { ...@@ -65,9 +67,9 @@ timer@43000000 {
interrupts = <14 IRQ_TYPE_EDGE_FALLING>, /* Timer 1 */ interrupts = <14 IRQ_TYPE_EDGE_FALLING>, /* Timer 1 */
<15 IRQ_TYPE_EDGE_FALLING>, /* Timer 2 */ <15 IRQ_TYPE_EDGE_FALLING>, /* Timer 2 */
<16 IRQ_TYPE_EDGE_FALLING>; /* Timer 3 */ <16 IRQ_TYPE_EDGE_FALLING>; /* Timer 3 */
resets = <&syscon 17>; resets = <&syscon GEMINI_RESET_TIMER>;
/* APB clock or RTC clock */ /* APB clock or RTC clock */
clocks = <&syscon 2>, <&syscon 0>; clocks = <&syscon GEMINI_CLK_APB>, <&syscon GEMINI_CLK_RTC>;
clock-names = "PCLK", "EXTCLK"; clock-names = "PCLK", "EXTCLK";
syscon = <&syscon>; syscon = <&syscon>;
}; };
...@@ -76,19 +78,19 @@ rtc@45000000 { ...@@ -76,19 +78,19 @@ rtc@45000000 {
compatible = "cortina,gemini-rtc"; compatible = "cortina,gemini-rtc";
reg = <0x45000000 0x100>; reg = <0x45000000 0x100>;
interrupts = <17 IRQ_TYPE_LEVEL_HIGH>; interrupts = <17 IRQ_TYPE_LEVEL_HIGH>;
resets = <&syscon 16>; resets = <&syscon GEMINI_RESET_RTC>;
clocks = <&syscon 2>, <&syscon 0>; clocks = <&syscon GEMINI_CLK_APB>, <&syscon GEMINI_CLK_RTC>;
clock-names = "PCLK", "EXTCLK"; clock-names = "PCLK", "EXTCLK";
}; };
sata: sata@46000000 { sata: sata@46000000 {
compatible = "cortina,gemini-sata-bridge"; compatible = "cortina,gemini-sata-bridge";
reg = <0x46000000 0x100>; reg = <0x46000000 0x100>;
resets = <&syscon 26>, resets = <&syscon GEMINI_RESET_SATA0>,
<&syscon 27>; <&syscon GEMINI_RESET_SATA1>;
reset-names = "sata0", "sata1"; reset-names = "sata0", "sata1";
clocks = <&syscon 10>, clocks = <&syscon GEMINI_CLK_GATE_SATA0>,
<&syscon 11>; <&syscon GEMINI_CLK_GATE_SATA1>;
clock-names = "SATA0_PCLK", "SATA1_PCLK"; clock-names = "SATA0_PCLK", "SATA1_PCLK";
syscon = <&syscon>; syscon = <&syscon>;
status = "disabled"; status = "disabled";
...@@ -97,7 +99,7 @@ sata: sata@46000000 { ...@@ -97,7 +99,7 @@ sata: sata@46000000 {
intcon: interrupt-controller@48000000 { intcon: interrupt-controller@48000000 {
compatible = "faraday,ftintc010"; compatible = "faraday,ftintc010";
reg = <0x48000000 0x1000>; reg = <0x48000000 0x1000>;
resets = <&syscon 14>; resets = <&syscon GEMINI_RESET_INTCON0>;
interrupt-controller; interrupt-controller;
#interrupt-cells = <2>; #interrupt-cells = <2>;
}; };
...@@ -112,8 +114,8 @@ gpio0: gpio@4d000000 { ...@@ -112,8 +114,8 @@ gpio0: gpio@4d000000 {
compatible = "cortina,gemini-gpio", "faraday,ftgpio010"; compatible = "cortina,gemini-gpio", "faraday,ftgpio010";
reg = <0x4d000000 0x100>; reg = <0x4d000000 0x100>;
interrupts = <22 IRQ_TYPE_LEVEL_HIGH>; interrupts = <22 IRQ_TYPE_LEVEL_HIGH>;
resets = <&syscon 20>; resets = <&syscon GEMINI_RESET_GPIO0>;
clocks = <&syscon 2>; clocks = <&syscon GEMINI_CLK_APB>;
gpio-controller; gpio-controller;
#gpio-cells = <2>; #gpio-cells = <2>;
interrupt-controller; interrupt-controller;
...@@ -124,8 +126,8 @@ gpio1: gpio@4e000000 { ...@@ -124,8 +126,8 @@ gpio1: gpio@4e000000 {
compatible = "cortina,gemini-gpio", "faraday,ftgpio010"; compatible = "cortina,gemini-gpio", "faraday,ftgpio010";
reg = <0x4e000000 0x100>; reg = <0x4e000000 0x100>;
interrupts = <23 IRQ_TYPE_LEVEL_HIGH>; interrupts = <23 IRQ_TYPE_LEVEL_HIGH>;
resets = <&syscon 21>; resets = <&syscon GEMINI_RESET_GPIO1>;
clocks = <&syscon 2>; clocks = <&syscon GEMINI_CLK_APB>;
gpio-controller; gpio-controller;
#gpio-cells = <2>; #gpio-cells = <2>;
interrupt-controller; interrupt-controller;
...@@ -136,8 +138,8 @@ gpio2: gpio@4f000000 { ...@@ -136,8 +138,8 @@ gpio2: gpio@4f000000 {
compatible = "cortina,gemini-gpio", "faraday,ftgpio010"; compatible = "cortina,gemini-gpio", "faraday,ftgpio010";
reg = <0x4f000000 0x100>; reg = <0x4f000000 0x100>;
interrupts = <24 IRQ_TYPE_LEVEL_HIGH>; interrupts = <24 IRQ_TYPE_LEVEL_HIGH>;
resets = <&syscon 22>; resets = <&syscon GEMINI_RESET_GPIO2>;
clocks = <&syscon 2>; clocks = <&syscon GEMINI_CLK_APB>;
gpio-controller; gpio-controller;
#gpio-cells = <2>; #gpio-cells = <2>;
interrupt-controller; interrupt-controller;
...@@ -151,8 +153,8 @@ pci@50000000 { ...@@ -151,8 +153,8 @@ pci@50000000 {
* to configure the host bridge. * to configure the host bridge.
*/ */
reg = <0x50000000 0x100>; reg = <0x50000000 0x100>;
resets = <&syscon 7>; resets = <&syscon GEMINI_RESET_PCI>;
clocks = <&syscon 15>, <&syscon 4>; clocks = <&syscon GEMINI_CLK_GATE_PCI>, <&syscon GEMINI_CLK_PCI>;
clock-names = "PCLK", "PCICLK"; clock-names = "PCLK", "PCICLK";
#address-cells = <3>; #address-cells = <3>;
#size-cells = <2>; #size-cells = <2>;
...@@ -193,8 +195,8 @@ ata@63000000 { ...@@ -193,8 +195,8 @@ ata@63000000 {
compatible = "cortina,gemini-pata", "faraday,ftide010"; compatible = "cortina,gemini-pata", "faraday,ftide010";
reg = <0x63000000 0x1000>; reg = <0x63000000 0x1000>;
interrupts = <4 IRQ_TYPE_EDGE_RISING>; interrupts = <4 IRQ_TYPE_EDGE_RISING>;
resets = <&syscon 2>; resets = <&syscon GEMINI_RESET_IDE>;
clocks = <&syscon 14>; clocks = <&syscon GEMINI_CLK_GATE_IDE>;
clock-names = "PCLK"; clock-names = "PCLK";
sata = <&sata>; sata = <&sata>;
status = "disabled"; status = "disabled";
...@@ -204,8 +206,8 @@ ata@63400000 { ...@@ -204,8 +206,8 @@ ata@63400000 {
compatible = "cortina,gemini-pata", "faraday,ftide010"; compatible = "cortina,gemini-pata", "faraday,ftide010";
reg = <0x63400000 0x1000>; reg = <0x63400000 0x1000>;
interrupts = <5 IRQ_TYPE_EDGE_RISING>; interrupts = <5 IRQ_TYPE_EDGE_RISING>;
resets = <&syscon 2>; resets = <&syscon GEMINI_RESET_IDE>;
clocks = <&syscon 14>; clocks = <&syscon GEMINI_CLK_GATE_IDE>;
clock-names = "PCLK"; clock-names = "PCLK";
sata = <&sata>; sata = <&sata>;
status = "disabled"; status = "disabled";
...@@ -217,8 +219,8 @@ dma-controller@67000000 { ...@@ -217,8 +219,8 @@ dma-controller@67000000 {
arm,primecell-periphid = <0x0003b080>; arm,primecell-periphid = <0x0003b080>;
reg = <0x67000000 0x1000>; reg = <0x67000000 0x1000>;
interrupts = <9 IRQ_TYPE_EDGE_RISING>; interrupts = <9 IRQ_TYPE_EDGE_RISING>;
resets = <&syscon 10>; resets = <&syscon GEMINI_RESET_DMAC>;
clocks = <&syscon 1>; clocks = <&syscon GEMINI_CLK_AHB>;
clock-names = "apb_pclk"; clock-names = "apb_pclk";
/* Bus interface AHB1 (AHB0) is totally tilted */ /* Bus interface AHB1 (AHB0) is totally tilted */
lli-bus-interface-ahb2; lli-bus-interface-ahb2;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment