]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: mach-shmobile: r8a7779: Minimal setup using DT
authorSimon Horman <horms+renesas@verge.net.au>
Wed, 21 Nov 2012 13:00:15 +0000 (22:00 +0900)
committerSimon Horman <horms+renesas@verge.net.au>
Tue, 19 Feb 2013 01:05:31 +0000 (10:05 +0900)
commit7727f9d191f22f924c60fed7c03f716e5d925b80
tree056d6375b51c9b090e70b0e13e89a90340691726
parent618f81d46e70540ed52a804c462ae2d1e302b372
ARM: mach-shmobile: r8a7779: Minimal setup using DT

Allow a minimal setup of the r8a7779 SoC using a flattened device tree.
In particular, configure the i2c and ethernet controllers using a
flattened device tree.

SCI serial controller and TMU clock source, whose drivers do not yet
support configuration using a flattened device tree, are still configured
using C code in order to allow booting of a board with this SoC.

The ethernet controller also requires a regulator which is a board property.
A sample snippet DT for the marzen board is as follows:

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

/ {
fixedregulator3v3: fixedregulator@0 {
compatible = "regulator-fixed";
regulator-name = "fixed-3.3V";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-boot-on;
regulator-always-on;
};
};

&lan0 {
vddvario-supply = <&fixedregulator3v3>;
vdd33a-supply = <&fixedregulator3v3>;
};

Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/boot/dts/r8a7779.dtsi
arch/arm/mach-shmobile/include/mach/common.h
arch/arm/mach-shmobile/setup-r8a7779.c