Skip to content

Commit

Permalink
Merge tag 'renesas-for-linus' of git://git.kernel.org/pub/scm/linux/k…
Browse files Browse the repository at this point in the history
…ernel/git/arm/arm-soc

Pull ARM Renesas SoC cleanup, refactoring and more SMP support from Kevin Hilman:
 "Lots of cleanup and refactoring and some SMP additions for Renesas
  platforms.  Due to some inter-dependencies with other arm-soc
  branches, this Renesas stuff was separated out for sending after the
  other branches were merged.

  Highlights:
   - remove unused board support and cleanup of unused headers
   - refactoring of init and device registration
   - simplify IRQ initialization"

* tag 'renesas-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (68 commits)
  ARM: shmobile: Per-CPU SMP boot / sleep code for SCU SoCs
  ARM: shmobile: Introduce per-CPU SMP boot / sleep code
  ARM: shmobile: Use shared SCU CPU Hotplug code on r8a7779
  ARM: shmobile: Use shared SCU CPU Hotplug code on sh73a0
  ARM: shmobile: Add shared SCU CPU Hotplug code
  ARM: shmobile: Use shared SCU SMP boot code on emev2
  ARM: shmobile: Use shared SCU SMP boot code on r8a7779
  ARM: shmobile: Use shared SCU SMP boot code on sh73a0
  ARM: shmobile: Introduce shared SCU SMP boot code
  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
  ...
  • Loading branch information
Linus Torvalds committed Sep 9, 2013
2 parents a35c632 + 2547503 commit fa91515
Show file tree
Hide file tree
Showing 62 changed files with 856 additions and 1,900 deletions.
4 changes: 4 additions & 0 deletions arch/arm/boot/dts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,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_SHMOBILE_MULTI) += emev2-kzm9d-reference.dtb
dtb-$(CONFIG_ARCH_SOCFPGA) += socfpga_cyclone5.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 @@ -17,7 +17,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 @@ -147,4 +152,11 @@
gpio-controller;
#gpio-cells = <2>;
};

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 @@ -18,7 +18,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>;
};
};
8 changes: 4 additions & 4 deletions arch/arm/boot/dts/r8a7779.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
sense-bitfield-width = <2>;
};

i2c0: i2c@0xffc70000 {
i2c0: i2c@ffc70000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "renesas,rmobile-iic";
Expand All @@ -158,7 +158,7 @@
interrupts = <0 79 0x4>;
};

i2c1: i2c@0xffc71000 {
i2c1: i2c@ffc71000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "renesas,rmobile-iic";
Expand All @@ -167,7 +167,7 @@
interrupts = <0 82 0x4>;
};

i2c2: i2c@0xffc72000 {
i2c2: i2c@ffc72000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "renesas,rmobile-iic";
Expand All @@ -176,7 +176,7 @@
interrupts = <0 80 0x4>;
};

i2c3: i2c@0xffc73000 {
i2c3: i2c@ffc73000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "renesas,rmobile-iic";
Expand Down
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 @@ -33,7 +33,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
Loading

0 comments on commit fa91515

Please sign in to comment.