Skip to content

Commit

Permalink
Merge tag 'renesas-cleanup3-for-v3.12' of git://git.kernel.org/pub/sc…
Browse files Browse the repository at this point in the history
…m/linux/kernel/git/horms/renesas into next/renesas

From Simon Horman:
Third round of Renesas ARM based SoC cleanups for v3.12

* Remove global GPIO_NR definition from sh73a0 SoC
* Remove unnecessary nfsroot settings from bootargs of
  kzm9d and armadillo800eva
* Rename irq initialisation functions of r8a7779 SoC
  to make them consistent with other SoCs
* Simplify irq initialisation of r8a7740 SoC
* Add missing __initdata annotations to bockw board, and
  r8a7790 and r8a7779 SoCs
* Refactor time initialisation and remove shmobile_init_time.
  - This affects the following boards: kzm9g, marzen, ape6evm,
    armadillo800eva and bockw
  - This affects the following SoCs: r8a7790, r8a7779, r7a7740, r7a73a4
* Cleanup device registration code of r8a7778 SoC

* tag 'renesas-cleanup3-for-v3.12' of git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas: (45 commits)
  ARM: shmobile: sh73a0: Remove global GPIO_NR definition
  ARM: shmobile: kzm9d: remove nfsroot settings from bootargs
  ARM: shmobile: armadillo800eva: remove nfsroot settings from bootargs
  ARM: shmobile: r8a7779: move r8a7779_init_irq_xxx() to setup
  ARM: shmobile: r8a7740: move r8a7740_init_irq_of() to setup
  ARM: shmobile: bockw: add missing __initdata
  ARM: shmobile: r8a7790: add missing __initdata
  ARM: shmobile: r8a7779: add missing __initdata
  ARM: shmobile: Remove unused shmobile_init_time()
  ARM: shmobile: Use clocksource_of_init() on r8a7790
  ARM: shmobile: Use default ->init_time() on KZM9G DT ref
  ARM: shmobile: Use default ->init_time() on Marzen DT ref
  ARM: shmobile: Use default ->init_time() on APE6EVM DT ref
  ARM: shmobile: Use default ->init_time() on APE6EVM
  ARM: shmobile: Use default ->init_time() on Armadillo DT ref
  ARM: shmobile: Use default ->init_time() on Bockw DT ref
  ARM: shmobile: Use default ->init_time() on Bockw
  ARM: shmobile: Use default ->init_time() on r8a7779
  ARM: shmobile: Use default ->init_time() on r8a7778
  ARM: shmobile: Use default ->init_time() on r8a7740
  ...

Signed-off-by: Olof Johansson <olof@lixom.net>
  • Loading branch information
Olof Johansson committed Aug 28, 2013
2 parents f0a108b + 282b583 commit e707bb3
Show file tree
Hide file tree
Showing 49 changed files with 631 additions and 338 deletions.
4 changes: 4 additions & 0 deletions arch/arm/boot/dts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,16 @@ dtb-$(CONFIG_ARCH_SHMOBILE) += emev2-kzm9d.dtb \
emev2-kzm9d-reference.dtb \
r8a7740-armadillo800eva.dtb \
r8a7778-bockw.dtb \
r8a7778-bockw-reference.dtb \
r8a7740-armadillo800eva-reference.dtb \
r8a7779-marzen.dtb \
r8a7779-marzen-reference.dtb \
r8a7790-lager.dtb \
r8a7790-lager-reference.dtb \
sh73a0-kzm9g.dtb \
sh73a0-kzm9g-reference.dtb \
r8a73a4-ape6evm.dtb \
r8a73a4-ape6evm-reference.dtb \
sh7372-mackerel.dtb
dtb-$(CONFIG_ARCH_SOCFPGA) += socfpga_cyclone5.dtb \
socfpga_vt.dtb
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/emev2-kzm9d-reference.dts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
};

chosen {
bootargs = "console=ttyS1,115200n81 ignore_loglevel root=/dev/nfs ip=dhcp nfsroot=,rsize=4096,wsize=4096";
bootargs = "console=ttyS1,115200n81 ignore_loglevel root=/dev/nfs ip=dhcp";
};

reg_1p8v: regulator@0 {
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/emev2-kzm9d.dts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
};

chosen {
bootargs = "console=ttyS1,115200n81 ignore_loglevel root=/dev/nfs ip=dhcp nfsroot=,rsize=4096,wsize=4096";
bootargs = "console=ttyS1,115200n81 ignore_loglevel root=/dev/nfs ip=dhcp";
};
};
6 changes: 6 additions & 0 deletions arch/arm/boot/dts/emev2.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@
<0xe0020000 0x0100>;
};

pmu {
compatible = "arm,cortex-a9-pmu";
interrupts = <0 120 4>,
<0 121 4>;
};

sti@e0180000 {
compatible = "renesas,em-sti";
reg = <0xe0180000 0x54>;
Expand Down
65 changes: 65 additions & 0 deletions arch/arm/boot/dts/r8a73a4-ape6evm-reference.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
/*
* Device Tree Source for the APE6EVM board
*
* Copyright (C) 2013 Renesas Solutions Corp.
*
* This file is licensed under the terms of the GNU General Public License
* version 2. This program is licensed "as is" without any warranty of any
* kind, whether express or implied.
*/

/dts-v1/;
/include/ "r8a73a4.dtsi"

/ {
model = "APE6EVM";
compatible = "renesas,ape6evm-reference", "renesas,r8a73a4";

chosen {
bootargs = "console=ttySC0,115200 ignore_loglevel rw";
};

memory@40000000 {
device_type = "memory";
reg = <0 0x40000000 0 0x40000000>;
};

lbsc {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <1>;
ranges = <0 0 0 0x80000000>;
};
};

&i2c5 {
vdd_dvfs: max8973@1b {
compatible = "maxim,max8973";
reg = <0x1b>;

regulator-min-microvolt = <935000>;
regulator-max-microvolt = <1200000>;
regulator-boot-on;
regulator-always-on;
};
};

&cpu0 {
cpu0-supply = <&vdd_dvfs>;
operating-points = <
/* kHz uV */
1950000 1115000
1462500 995000
>;
voltage-tolerance = <1>; /* 1% */
};

&pfc {
pinctrl-0 = <&scifa0_pins>;
pinctrl-names = "default";

scifa0_pins: scifa0 {
renesas,groups = "scifa0_data";
renesas,function = "scifa0";
};
};
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/r8a73a4-ape6evm.dts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
compatible = "renesas,ape6evm", "renesas,r8a73a4";

chosen {
bootargs = "console=ttySC0,115200 ignore_loglevel root=/dev/nfs ip=dhcp";
bootargs = "console=ttySC0,115200 ignore_loglevel root=/dev/nfs ip=dhcp rw";
};

memory@40000000 {
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/r8a7740-armadillo800eva-reference.dts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
compatible = "renesas,armadillo800eva-reference", "renesas,r8a7740";

chosen {
bootargs = "console=tty0 console=ttySC1,115200 earlyprintk=sh-sci.1,115200 ignore_loglevel root=/dev/nfs ip=dhcp nfsroot=,rsize=4096,wsize=4096 rw";
bootargs = "console=tty0 console=ttySC1,115200 earlyprintk=sh-sci.1,115200 ignore_loglevel root=/dev/nfs ip=dhcp rw";
};

memory {
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/r8a7740-armadillo800eva.dts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
compatible = "renesas,armadillo800eva";

chosen {
bootargs = "console=tty0 console=ttySC1,115200 earlyprintk=sh-sci.1,115200 ignore_loglevel root=/dev/nfs ip=dhcp nfsroot=,rsize=4096,wsize=4096 rw";
bootargs = "console=tty0 console=ttySC1,115200 earlyprintk=sh-sci.1,115200 ignore_loglevel root=/dev/nfs ip=dhcp rw";
};

memory {
Expand Down
12 changes: 12 additions & 0 deletions arch/arm/boot/dts/r8a7740.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@
<0xc2000000 0x1000>;
};

pmu {
compatible = "arm,cortex-a9-pmu";
interrupts = <0 83 4>;
};

/* irqpin0: IRQ0 - IRQ7 */
irqpin0: irqpin@e6900000 {
compatible = "renesas,intc-irqpin";
Expand Down Expand Up @@ -139,4 +144,11 @@
0 72 0x4
0 73 0x4>;
};

tpu: pwm@e6600000 {
compatible = "renesas,tpu-r8a7740", "renesas,tpu";
reg = <0xe6600000 0x100>;
status = "disabled";
#pwm-cells = <3>;
};
};
32 changes: 32 additions & 0 deletions arch/arm/boot/dts/r8a7778-bockw-reference.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* Reference Device Tree Source for the Bock-W board
*
* Copyright (C) 2013 Renesas Solutions Corp.
* Copyright (C) 2013 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
*
* based on r8a7779
*
* Copyright (C) 2013 Renesas Solutions Corp.
* Copyright (C) 2013 Simon Horman
*
* This file is licensed under the terms of the GNU General Public License
* version 2. This program is licensed "as is" without any warranty of any
* kind, whether express or implied.
*/

/dts-v1/;
/include/ "r8a7778.dtsi"

/ {
model = "bockw";
compatible = "renesas,bockw-reference", "renesas,r8a7778";

chosen {
bootargs = "console=ttySC0,115200 ignore_loglevel rw";
};

memory {
device_type = "memory";
reg = <0x60000000 0x10000000>;
};
};
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/r8a7778-bockw.dts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
compatible = "renesas,bockw", "renesas,r8a7778";

chosen {
bootargs = "console=ttySC0,115200 ignore_loglevel ip=dhcp root=/dev/nfs";
bootargs = "console=ttySC0,115200 ignore_loglevel ip=dhcp root=/dev/nfs rw";
};

memory {
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/r8a7779-marzen-reference.dts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
compatible = "renesas,marzen-reference", "renesas,r8a7779";

chosen {
bootargs = "console=ttySC2,115200 earlyprintk=sh-sci.2,115200 ignore_loglevel root=/dev/nfs ip=on";
bootargs = "console=ttySC2,115200 earlyprintk=sh-sci.2,115200 ignore_loglevel root=/dev/nfs ip=on rw";
};

memory {
Expand Down
27 changes: 27 additions & 0 deletions arch/arm/boot/dts/r8a7779-marzen.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* Device Tree Source for the Marzen board
*
* Copyright (C) 2013 Renesas Solutions Corp.
* Copyright (C) 2013 Simon Horman
*
* This file is licensed under the terms of the GNU General Public License
* version 2. This program is licensed "as is" without any warranty of any
* kind, whether express or implied.
*/

/dts-v1/;
/include/ "r8a7779.dtsi"

/ {
model = "marzen";
compatible = "renesas,marzen", "renesas,r8a7779";

chosen {
bootargs = "console=ttySC2,115200 earlyprintk=sh-sci.2,115200 ignore_loglevel root=/dev/nfs ip=on";
};

memory {
device_type = "memory";
reg = <0x60000000 0x40000000>;
};
};
45 changes: 45 additions & 0 deletions arch/arm/boot/dts/r8a7790-lager-reference.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/*
* Device Tree Source for the Lager board
*
* Copyright (C) 2013 Renesas Solutions Corp.
*
* This file is licensed under the terms of the GNU General Public License
* version 2. This program is licensed "as is" without any warranty of any
* kind, whether express or implied.
*/

/dts-v1/;
/include/ "r8a7790.dtsi"
#include <dt-bindings/gpio/gpio.h>

/ {
model = "Lager";
compatible = "renesas,lager-reference", "renesas,r8a7790";

chosen {
bootargs = "console=ttySC6,115200 ignore_loglevel rw";
};

memory@40000000 {
device_type = "memory";
reg = <0 0x40000000 0 0x80000000>;
};

lbsc {
#address-cells = <1>;
#size-cells = <1>;
};

leds {
compatible = "gpio-leds";
led6 {
gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>;
};
led7 {
gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>;
};
led8 {
gpios = <&gpio5 17 GPIO_ACTIVE_HIGH>;
};
};
};
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/r8a7790-lager.dts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
compatible = "renesas,lager", "renesas,r8a7790";

chosen {
bootargs = "console=ttySC6,115200 ignore_loglevel";
bootargs = "console=ttySC6,115200 ignore_loglevel rw root=/dev/nfs ip=dhcp";
};

memory@40000000 {
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
};

chosen {
bootargs = "console=tty0 console=ttySC4,115200 root=/dev/nfs ip=dhcp ignore_loglevel earlyprintk=sh-sci.4,115200";
bootargs = "console=tty0 console=ttySC4,115200 root=/dev/nfs ip=dhcp ignore_loglevel earlyprintk=sh-sci.4,115200 rw";
};

memory {
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/sh73a0-kzm9g.dts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
compatible = "renesas,kzm9g", "renesas,sh73a0";

chosen {
bootargs = "console=tty0 console=ttySC4,115200 root=/dev/nfs ip=dhcp ignore_loglevel earlyprintk=sh-sci.4,115200";
bootargs = "console=tty0 console=ttySC4,115200 root=/dev/nfs ip=dhcp ignore_loglevel earlyprintk=sh-sci.4,115200 rw";
};

memory {
Expand Down
6 changes: 6 additions & 0 deletions arch/arm/boot/dts/sh73a0.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@
<0xf0000100 0x100>;
};

pmu {
compatible = "arm,cortex-a9-pmu";
interrupts = <0 55 4>,
<0 56 4>;
};

irqpin0: irqpin@e6900000 {
compatible = "renesas,intc-irqpin";
#interrupt-cells = <2>;
Expand Down
37 changes: 37 additions & 0 deletions arch/arm/mach-shmobile/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,17 @@ config MACH_APE6EVM
depends on ARCH_R8A73A4
select USE_OF

config MACH_APE6EVM_REFERENCE
bool "APE6EVM board - Reference Device Tree Implementation"
depends on ARCH_R8A73A4
select USE_OF
---help---
Use reference implementation of APE6EVM board support
which makes a greater use of device tree at the expense
of not supporting a number of devices.

This is intended to aid developers

config MACH_MACKEREL
bool "mackerel board"
depends on ARCH_SH7372
Expand Down Expand Up @@ -113,11 +124,26 @@ config MACH_BOCKW
select RENESAS_INTC_IRQPIN
select USE_OF

config MACH_BOCKW_REFERENCE
bool "BOCK-W - Reference Device Tree Implementation"
depends on ARCH_R8A7778
select ARCH_REQUIRE_GPIOLIB
select RENESAS_INTC_IRQPIN
select REGULATOR_FIXED_VOLTAGE if REGULATOR
select USE_OF
---help---
Use reference implementation of BockW board support
which makes use of device tree at the expense
of not supporting a number of devices.

This is intended to aid developers

config MACH_MARZEN
bool "MARZEN board"
depends on ARCH_R8A7779
select ARCH_REQUIRE_GPIOLIB
select REGULATOR_FIXED_VOLTAGE if REGULATOR
select USE_OF

config MACH_MARZEN_REFERENCE
bool "MARZEN board - Reference Device Tree Implementation"
Expand All @@ -137,6 +163,17 @@ config MACH_LAGER
depends on ARCH_R8A7790
select USE_OF

config MACH_LAGER_REFERENCE
bool "Lager board - Reference Device Tree Implementation"
depends on ARCH_R8A7790
select USE_OF
---help---
Use reference implementation of Lager board support
which makes use of device tree at the expense
of not supporting a number of devices.

This is intended to aid developers

config MACH_KZM9D
bool "KZM9D board"
depends on ARCH_EMEV2
Expand Down
Loading

0 comments on commit e707bb3

Please sign in to comment.