Commit 4ddb1c29 authored by Viresh Kumar's avatar Viresh Kumar Committed by Linus Walleij

ARM: SPEAr: Add plgpio node in device tree dtsi files

This patch adds plgpio nodes in SPEAr DT files.
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent f4f8e563
...@@ -181,6 +181,10 @@ gpio1: gpio@e0680000 { ...@@ -181,6 +181,10 @@ gpio1: gpio@e0680000 {
status = "okay"; status = "okay";
}; };
gpio@d8400000 {
status = "okay";
};
i2c0: i2c@e0280000 { i2c0: i2c@e0280000 {
status = "okay"; status = "okay";
}; };
......
...@@ -70,6 +70,12 @@ gmac4: eth@5c700000 { ...@@ -70,6 +70,12 @@ gmac4: eth@5c700000 {
status = "disabled"; status = "disabled";
}; };
pinmux: pinmux@e0700000 {
compatible = "st,spear1310-pinmux";
reg = <0xe0700000 0x1000>;
#gpio-range-cells = <2>;
};
spi1: spi@5d400000 { spi1: spi@5d400000 {
compatible = "arm,pl022", "arm,primecell"; compatible = "arm,pl022", "arm,primecell";
reg = <0x5d400000 0x1000>; reg = <0x5d400000 0x1000>;
...@@ -179,6 +185,27 @@ serial@5cc00000 { ...@@ -179,6 +185,27 @@ serial@5cc00000 {
thermal@e07008c4 { thermal@e07008c4 {
st,thermal-flags = <0x7000>; st,thermal-flags = <0x7000>;
}; };
gpiopinctrl: gpio@d8400000 {
compatible = "st,spear-plgpio";
reg = <0xd8400000 0x1000>;
interrupts = <0 100 0x4>;
#interrupt-cells = <1>;
interrupt-controller;
gpio-controller;
#gpio-cells = <2>;
gpio-ranges = <&pinmux 0 246>;
status = "disabled";
st-plgpio,ngpio = <246>;
st-plgpio,enb-reg = <0xd0>;
st-plgpio,wdata-reg = <0x90>;
st-plgpio,dir-reg = <0xb0>;
st-plgpio,ie-reg = <0x30>;
st-plgpio,rdata-reg = <0x70>;
st-plgpio,mis-reg = <0x10>;
st-plgpio,eit-reg = <0x50>;
};
}; };
}; };
}; };
...@@ -193,6 +193,10 @@ gpio1: gpio@e0680000 { ...@@ -193,6 +193,10 @@ gpio1: gpio@e0680000 {
status = "okay"; status = "okay";
}; };
gpio@e2800000 {
status = "okay";
};
i2c0: i2c@e0280000 { i2c0: i2c@e0280000 {
status = "okay"; status = "okay";
}; };
......
...@@ -24,6 +24,12 @@ ahci@b1000000 { ...@@ -24,6 +24,12 @@ ahci@b1000000 {
status = "disabled"; status = "disabled";
}; };
pinmux: pinmux@e0700000 {
compatible = "st,spear1340-pinmux";
reg = <0xe0700000 0x1000>;
#gpio-range-cells = <2>;
};
spi1: spi@5d400000 { spi1: spi@5d400000 {
compatible = "arm,pl022", "arm,primecell"; compatible = "arm,pl022", "arm,primecell";
reg = <0x5d400000 0x1000>; reg = <0x5d400000 0x1000>;
...@@ -51,6 +57,26 @@ serial@b4100000 { ...@@ -51,6 +57,26 @@ serial@b4100000 {
thermal@e07008c4 { thermal@e07008c4 {
st,thermal-flags = <0x2a00>; st,thermal-flags = <0x2a00>;
}; };
gpiopinctrl: gpio@e2800000 {
compatible = "st,spear-plgpio";
reg = <0xe2800000 0x1000>;
interrupts = <0 107 0x4>;
#interrupt-cells = <1>;
interrupt-controller;
gpio-controller;
#gpio-cells = <2>;
gpio-ranges = <&pinmux 0 252>;
status = "disabled";
st-plgpio,ngpio = <250>;
st-plgpio,wdata-reg = <0x40>;
st-plgpio,dir-reg = <0x00>;
st-plgpio,ie-reg = <0x80>;
st-plgpio,rdata-reg = <0x20>;
st-plgpio,mis-reg = <0xa0>;
st-plgpio,eit-reg = <0x60>;
};
}; };
}; };
}; };
...@@ -22,9 +22,10 @@ ahb { ...@@ -22,9 +22,10 @@ ahb {
0xb0000000 0xb0000000 0x10000000 0xb0000000 0xb0000000 0x10000000
0xd0000000 0xd0000000 0x30000000>; 0xd0000000 0xd0000000 0x30000000>;
pinmux@b4000000 { pinmux: pinmux@b4000000 {
compatible = "st,spear310-pinmux"; compatible = "st,spear310-pinmux";
reg = <0xb4000000 0x1000>; reg = <0xb4000000 0x1000>;
#gpio-range-cells = <2>;
}; };
fsmc: flash@44000000 { fsmc: flash@44000000 {
...@@ -75,6 +76,25 @@ serial@b2200000 { ...@@ -75,6 +76,25 @@ serial@b2200000 {
reg = <0xb2200000 0x1000>; reg = <0xb2200000 0x1000>;
status = "disabled"; status = "disabled";
}; };
gpiopinctrl: gpio@b4000000 {
compatible = "st,spear-plgpio";
reg = <0xb4000000 0x1000>;
#interrupt-cells = <1>;
interrupt-controller;
gpio-controller;
#gpio-cells = <2>;
gpio-ranges = <&pinmux 0 102>;
status = "disabled";
st-plgpio,ngpio = <102>;
st-plgpio,enb-reg = <0x10>;
st-plgpio,wdata-reg = <0x20>;
st-plgpio,dir-reg = <0x30>;
st-plgpio,ie-reg = <0x50>;
st-plgpio,rdata-reg = <0x40>;
st-plgpio,mis-reg = <0x60>;
};
}; };
}; };
}; };
...@@ -164,6 +164,10 @@ gpio0: gpio@fc980000 { ...@@ -164,6 +164,10 @@ gpio0: gpio@fc980000 {
status = "okay"; status = "okay";
}; };
gpio@b3000000 {
status = "okay";
};
i2c0: i2c@d0180000 { i2c0: i2c@d0180000 {
status = "okay"; status = "okay";
}; };
......
...@@ -21,9 +21,10 @@ ahb { ...@@ -21,9 +21,10 @@ ahb {
ranges = <0x40000000 0x40000000 0x80000000 ranges = <0x40000000 0x40000000 0x80000000
0xd0000000 0xd0000000 0x30000000>; 0xd0000000 0xd0000000 0x30000000>;
pinmux@b3000000 { pinmux: pinmux@b3000000 {
compatible = "st,spear320-pinmux"; compatible = "st,spear320-pinmux";
reg = <0xb3000000 0x1000>; reg = <0xb3000000 0x1000>;
#gpio-range-cells = <2>;
}; };
clcd@90000000 { clcd@90000000 {
...@@ -90,6 +91,26 @@ serial@a4000000 { ...@@ -90,6 +91,26 @@ serial@a4000000 {
reg = <0xa4000000 0x1000>; reg = <0xa4000000 0x1000>;
status = "disabled"; status = "disabled";
}; };
gpiopinctrl: gpio@b3000000 {
compatible = "st,spear-plgpio";
reg = <0xb3000000 0x1000>;
#interrupt-cells = <1>;
interrupt-controller;
gpio-controller;
#gpio-cells = <2>;
gpio-ranges = <&pinmux 0 102>;
status = "disabled";
st-plgpio,ngpio = <102>;
st-plgpio,enb-reg = <0x24>;
st-plgpio,wdata-reg = <0x34>;
st-plgpio,dir-reg = <0x44>;
st-plgpio,ie-reg = <0x64>;
st-plgpio,rdata-reg = <0x54>;
st-plgpio,mis-reg = <0x84>;
st-plgpio,eit-reg = <0x94>;
};
}; };
}; };
}; };
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