diff options
author | Antony Pavlov <antonynpavlov@gmail.com> | 2014-07-29 01:15:21 +0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-07-29 15:07:35 +0200 |
commit | f1fb740ed64a45c62e7888682150411abea0d2e3 (patch) | |
tree | afa7b804c67101b685fe5c4736eb6eaa76527e7d /arch/arm/dts/digic4.dtsi | |
parent | 420ca0be029d66124b82ce51f180f552f7c3593a (diff) | |
download | barebox-f1fb740ed64a45c62e7888682150411abea0d2e3.tar.gz barebox-f1fb740ed64a45c62e7888682150411abea0d2e3.tar.xz |
ARM: add very initial support for Canon DIGIC chips
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/dts/digic4.dtsi')
-rw-r--r-- | arch/arm/dts/digic4.dtsi | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/arch/arm/dts/digic4.dtsi b/arch/arm/dts/digic4.dtsi new file mode 100644 index 0000000000..21b004d4a2 --- /dev/null +++ b/arch/arm/dts/digic4.dtsi @@ -0,0 +1,42 @@ +/include/ "skeleton.dtsi" + +/ { + compatible = "canon,digic4"; + + timer0: timer@c0210000 { + compatible = "canon,digic-timer"; + reg = <0xc0210000 0x1c>; + status = "disabled"; + }; + + timer1: timer@c0210100 { + compatible = "canon,digic-timer"; + reg = <0xc0210100 0x1c>; + status = "disabled"; + }; + + timer2: timer@c0210200 { + compatible = "canon,digic-timer"; + reg = <0xc0210200 0x1c>; + status = "disabled"; + }; + + /* + * I don't know real max GPIO number but this page + * http://magiclantern.wikia.com/wiki/Register_Map#GPIO_Ports + * says about 93 pins on 5DMkIII. + * Assume that DIGIC4 has at least 96 pins. + * So resource size is 96 * 4 = 0x180. + */ + gpio: gpio { + compatible = "canon,digic-gpio"; + reg = <0xc0220000 0x180>; + #gpio-cells = <2>; + gpio-controller; + }; + + uart: uart { + compatible = "canon,digic-uart"; + reg = <0xc0800000 0x1c>; + }; +}; |