diff options
| author | Olof Johansson <olof@lixom.net> | 2014-05-21 17:26:44 -0400 |
|---|---|---|
| committer | Olof Johansson <olof@lixom.net> | 2014-05-21 17:26:44 -0400 |
| commit | bcafdb4fe8651d97463e0b720878f745dfb4c3f6 (patch) | |
| tree | 5ed04ebb4f406964ba0620c9bbbf0e2837918752 | |
| parent | 82711e7b46d80a6fd946166bd012b052d53b8ff4 (diff) | |
| parent | 5ba55fa81aee9493928c245f142a0bfe9f32d02f (diff) | |
Merge tag 'renesas-dt-scif-for-v3.16' of git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas into next/boards
Merge "Renesas ARM Based SoC dt-scif Updates for v3.16" from Simon Horman:
r8a7791 (R-Car M2) based Koelsch board and
r8a7790 (R-Car H1) based Lager board
* Enable SCIF0 and SCIF1 serial ports in DT
* tag 'renesas-dt-scif-for-v3.16' of git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas:
ARM: shmobile: koelsch: Enable SCIF0 and SCIF1 serial ports in DT
ARM: shmobile: lager: Enable SCIF0 and SCIF1 serial ports in DT
Signed-off-by: Olof Johansson <olof@lixom.net>
| -rw-r--r-- | arch/arm/boot/dts/r8a7790-lager.dts | 21 | ||||
| -rw-r--r-- | arch/arm/boot/dts/r8a7791-koelsch.dts | 21 | ||||
| -rw-r--r-- | arch/arm/mach-shmobile/board-koelsch-reference.c | 15 | ||||
| -rw-r--r-- | arch/arm/mach-shmobile/board-lager-reference.c | 10 | ||||
| -rw-r--r-- | arch/arm/mach-shmobile/setup-r8a7790.c | 10 | ||||
| -rw-r--r-- | arch/arm/mach-shmobile/setup-r8a7791.c | 10 |
6 files changed, 50 insertions, 37 deletions
diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index d01048ab3e77..f5e548735d7a 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts | |||
| @@ -17,6 +17,11 @@ | |||
| 17 | model = "Lager"; | 17 | model = "Lager"; |
| 18 | compatible = "renesas,lager", "renesas,r8a7790"; | 18 | compatible = "renesas,lager", "renesas,r8a7790"; |
| 19 | 19 | ||
| 20 | aliases { | ||
| 21 | serial6 = &scif0; | ||
| 22 | serial7 = &scif1; | ||
| 23 | }; | ||
| 24 | |||
| 20 | chosen { | 25 | chosen { |
| 21 | bootargs = "console=ttySC6,115200 ignore_loglevel rw root=/dev/nfs ip=dhcp"; | 26 | bootargs = "console=ttySC6,115200 ignore_loglevel rw root=/dev/nfs ip=dhcp"; |
| 22 | }; | 27 | }; |
| @@ -112,7 +117,7 @@ | |||
| 112 | }; | 117 | }; |
| 113 | 118 | ||
| 114 | &pfc { | 119 | &pfc { |
| 115 | pinctrl-0 = <&du_pins &scif0_pins &scif1_pins>; | 120 | pinctrl-0 = <&du_pins>; |
| 116 | pinctrl-names = "default"; | 121 | pinctrl-names = "default"; |
| 117 | 122 | ||
| 118 | du_pins: du { | 123 | du_pins: du { |
| @@ -221,6 +226,20 @@ | |||
| 221 | }; | 226 | }; |
| 222 | }; | 227 | }; |
| 223 | 228 | ||
| 229 | &scif0 { | ||
| 230 | pinctrl-0 = <&scif0_pins>; | ||
| 231 | pinctrl-names = "default"; | ||
| 232 | |||
| 233 | status = "okay"; | ||
| 234 | }; | ||
| 235 | |||
| 236 | &scif1 { | ||
| 237 | pinctrl-0 = <&scif1_pins>; | ||
| 238 | pinctrl-names = "default"; | ||
| 239 | |||
| 240 | status = "okay"; | ||
| 241 | }; | ||
| 242 | |||
| 224 | &sdhi0 { | 243 | &sdhi0 { |
| 225 | pinctrl-0 = <&sdhi0_pins>; | 244 | pinctrl-0 = <&sdhi0_pins>; |
| 226 | pinctrl-names = "default"; | 245 | pinctrl-names = "default"; |
diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts index de1b6977c69a..277385dfe99a 100644 --- a/arch/arm/boot/dts/r8a7791-koelsch.dts +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts | |||
| @@ -18,6 +18,11 @@ | |||
| 18 | model = "Koelsch"; | 18 | model = "Koelsch"; |
| 19 | compatible = "renesas,koelsch", "renesas,r8a7791"; | 19 | compatible = "renesas,koelsch", "renesas,r8a7791"; |
| 20 | 20 | ||
| 21 | aliases { | ||
| 22 | serial6 = &scif0; | ||
| 23 | serial7 = &scif1; | ||
| 24 | }; | ||
| 25 | |||
| 21 | chosen { | 26 | chosen { |
| 22 | bootargs = "console=ttySC6,115200 ignore_loglevel rw root=/dev/nfs ip=dhcp"; | 27 | bootargs = "console=ttySC6,115200 ignore_loglevel rw root=/dev/nfs ip=dhcp"; |
| 23 | }; | 28 | }; |
| @@ -196,7 +201,7 @@ | |||
| 196 | }; | 201 | }; |
| 197 | 202 | ||
| 198 | &pfc { | 203 | &pfc { |
| 199 | pinctrl-0 = <&du_pins &scif0_pins &scif1_pins>; | 204 | pinctrl-0 = <&du_pins>; |
| 200 | pinctrl-names = "default"; | 205 | pinctrl-names = "default"; |
| 201 | 206 | ||
| 202 | i2c2_pins: i2c { | 207 | i2c2_pins: i2c { |
| @@ -269,6 +274,20 @@ | |||
| 269 | status = "okay"; | 274 | status = "okay"; |
| 270 | }; | 275 | }; |
| 271 | 276 | ||
| 277 | &scif0 { | ||
| 278 | pinctrl-0 = <&scif0_pins>; | ||
| 279 | pinctrl-names = "default"; | ||
| 280 | |||
| 281 | status = "okay"; | ||
| 282 | }; | ||
| 283 | |||
| 284 | &scif1 { | ||
| 285 | pinctrl-0 = <&scif1_pins>; | ||
| 286 | pinctrl-names = "default"; | ||
| 287 | |||
| 288 | status = "okay"; | ||
| 289 | }; | ||
| 290 | |||
| 272 | &sdhi0 { | 291 | &sdhi0 { |
| 273 | pinctrl-0 = <&sdhi0_pins>; | 292 | pinctrl-0 = <&sdhi0_pins>; |
| 274 | pinctrl-names = "default"; | 293 | pinctrl-names = "default"; |
diff --git a/arch/arm/mach-shmobile/board-koelsch-reference.c b/arch/arm/mach-shmobile/board-koelsch-reference.c index bd9093221f76..0b0ce5a92548 100644 --- a/arch/arm/mach-shmobile/board-koelsch-reference.c +++ b/arch/arm/mach-shmobile/board-koelsch-reference.c | |||
| @@ -87,21 +87,6 @@ static void __init koelsch_add_du_device(void) | |||
| 87 | */ | 87 | */ |
| 88 | static const struct clk_name clk_names[] __initconst = { | 88 | static const struct clk_name clk_names[] __initconst = { |
| 89 | { "cmt0", "fck", "sh-cmt-48-gen2.0" }, | 89 | { "cmt0", "fck", "sh-cmt-48-gen2.0" }, |
| 90 | { "scifa0", NULL, "sh-sci.0" }, | ||
| 91 | { "scifa1", NULL, "sh-sci.1" }, | ||
| 92 | { "scifb0", NULL, "sh-sci.2" }, | ||
| 93 | { "scifb1", NULL, "sh-sci.3" }, | ||
| 94 | { "scifb2", NULL, "sh-sci.4" }, | ||
| 95 | { "scifa2", NULL, "sh-sci.5" }, | ||
| 96 | { "scif0", NULL, "sh-sci.6" }, | ||
| 97 | { "scif1", NULL, "sh-sci.7" }, | ||
| 98 | { "scif2", NULL, "sh-sci.8" }, | ||
| 99 | { "scif3", NULL, "sh-sci.9" }, | ||
| 100 | { "scif4", NULL, "sh-sci.10" }, | ||
| 101 | { "scif5", NULL, "sh-sci.11" }, | ||
| 102 | { "scifa3", NULL, "sh-sci.12" }, | ||
| 103 | { "scifa4", NULL, "sh-sci.13" }, | ||
| 104 | { "scifa5", NULL, "sh-sci.14" }, | ||
| 105 | { "du0", "du.0", "rcar-du-r8a7791" }, | 90 | { "du0", "du.0", "rcar-du-r8a7791" }, |
| 106 | { "du1", "du.1", "rcar-du-r8a7791" }, | 91 | { "du1", "du.1", "rcar-du-r8a7791" }, |
| 107 | { "lvds0", "lvds.0", "rcar-du-r8a7791" }, | 92 | { "lvds0", "lvds.0", "rcar-du-r8a7791" }, |
diff --git a/arch/arm/mach-shmobile/board-lager-reference.c b/arch/arm/mach-shmobile/board-lager-reference.c index 1bca2748aa7c..749832e3f33c 100644 --- a/arch/arm/mach-shmobile/board-lager-reference.c +++ b/arch/arm/mach-shmobile/board-lager-reference.c | |||
| @@ -91,16 +91,6 @@ static void __init lager_add_du_device(void) | |||
| 91 | */ | 91 | */ |
| 92 | static const struct clk_name clk_names[] __initconst = { | 92 | static const struct clk_name clk_names[] __initconst = { |
| 93 | { "cmt0", "fck", "sh-cmt-48-gen2.0" }, | 93 | { "cmt0", "fck", "sh-cmt-48-gen2.0" }, |
| 94 | { "scifa0", NULL, "sh-sci.0" }, | ||
| 95 | { "scifa1", NULL, "sh-sci.1" }, | ||
| 96 | { "scifb0", NULL, "sh-sci.2" }, | ||
| 97 | { "scifb1", NULL, "sh-sci.3" }, | ||
| 98 | { "scifb2", NULL, "sh-sci.4" }, | ||
| 99 | { "scifa2", NULL, "sh-sci.5" }, | ||
| 100 | { "scif0", NULL, "sh-sci.6" }, | ||
| 101 | { "scif1", NULL, "sh-sci.7" }, | ||
| 102 | { "hscif0", NULL, "sh-sci.8" }, | ||
| 103 | { "hscif1", NULL, "sh-sci.9" }, | ||
| 104 | { "du0", "du.0", "rcar-du-r8a7790" }, | 94 | { "du0", "du.0", "rcar-du-r8a7790" }, |
| 105 | { "du1", "du.1", "rcar-du-r8a7790" }, | 95 | { "du1", "du.1", "rcar-du-r8a7790" }, |
| 106 | { "du2", "du.2", "rcar-du-r8a7790" }, | 96 | { "du2", "du.2", "rcar-du-r8a7790" }, |
diff --git a/arch/arm/mach-shmobile/setup-r8a7790.c b/arch/arm/mach-shmobile/setup-r8a7790.c index 87327f353d1b..5fc9b1762a33 100644 --- a/arch/arm/mach-shmobile/setup-r8a7790.c +++ b/arch/arm/mach-shmobile/setup-r8a7790.c | |||
| @@ -287,6 +287,11 @@ static struct resource cmt0_resources[] = { | |||
| 287 | 287 | ||
| 288 | void __init r8a7790_add_dt_devices(void) | 288 | void __init r8a7790_add_dt_devices(void) |
| 289 | { | 289 | { |
| 290 | r8a7790_register_cmt(0); | ||
| 291 | } | ||
| 292 | |||
| 293 | void __init r8a7790_add_standard_devices(void) | ||
| 294 | { | ||
| 290 | r8a7790_register_scif(0); | 295 | r8a7790_register_scif(0); |
| 291 | r8a7790_register_scif(1); | 296 | r8a7790_register_scif(1); |
| 292 | r8a7790_register_scif(2); | 297 | r8a7790_register_scif(2); |
| @@ -297,11 +302,6 @@ void __init r8a7790_add_dt_devices(void) | |||
| 297 | r8a7790_register_scif(7); | 302 | r8a7790_register_scif(7); |
| 298 | r8a7790_register_scif(8); | 303 | r8a7790_register_scif(8); |
| 299 | r8a7790_register_scif(9); | 304 | r8a7790_register_scif(9); |
| 300 | r8a7790_register_cmt(0); | ||
| 301 | } | ||
| 302 | |||
| 303 | void __init r8a7790_add_standard_devices(void) | ||
| 304 | { | ||
| 305 | r8a7790_add_dt_devices(); | 305 | r8a7790_add_dt_devices(); |
| 306 | r8a7790_register_irqc(0); | 306 | r8a7790_register_irqc(0); |
| 307 | r8a7790_register_thermal(); | 307 | r8a7790_register_thermal(); |
diff --git a/arch/arm/mach-shmobile/setup-r8a7791.c b/arch/arm/mach-shmobile/setup-r8a7791.c index 561653d639d7..b3f42b5b1724 100644 --- a/arch/arm/mach-shmobile/setup-r8a7791.c +++ b/arch/arm/mach-shmobile/setup-r8a7791.c | |||
| @@ -182,6 +182,11 @@ static const struct resource thermal_resources[] __initconst = { | |||
| 182 | 182 | ||
| 183 | void __init r8a7791_add_dt_devices(void) | 183 | void __init r8a7791_add_dt_devices(void) |
| 184 | { | 184 | { |
| 185 | r8a7791_register_cmt(0); | ||
| 186 | } | ||
| 187 | |||
| 188 | void __init r8a7791_add_standard_devices(void) | ||
| 189 | { | ||
| 185 | r8a7791_register_scif(0); | 190 | r8a7791_register_scif(0); |
| 186 | r8a7791_register_scif(1); | 191 | r8a7791_register_scif(1); |
| 187 | r8a7791_register_scif(2); | 192 | r8a7791_register_scif(2); |
| @@ -197,11 +202,6 @@ void __init r8a7791_add_dt_devices(void) | |||
| 197 | r8a7791_register_scif(12); | 202 | r8a7791_register_scif(12); |
| 198 | r8a7791_register_scif(13); | 203 | r8a7791_register_scif(13); |
| 199 | r8a7791_register_scif(14); | 204 | r8a7791_register_scif(14); |
| 200 | r8a7791_register_cmt(0); | ||
| 201 | } | ||
| 202 | |||
| 203 | void __init r8a7791_add_standard_devices(void) | ||
| 204 | { | ||
| 205 | r8a7791_add_dt_devices(); | 205 | r8a7791_add_dt_devices(); |
| 206 | r8a7791_register_irqc(0); | 206 | r8a7791_register_irqc(0); |
| 207 | r8a7791_register_thermal(); | 207 | r8a7791_register_thermal(); |
