lkml.org 
[lkml]   [2018]   [Nov]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/2] DT: marvell,mmp2: add more TWSI controllers
On Mon 2018-09-17 13:39:47, Lubomir Rintel wrote:
> I've gotten the base addresses, clocks and interrupts from an rusty and old
> out-of-tree driver. I haven't actually checked against the datasheet, since
> that one is reserved for the Marvell inner circle.
>
> Tested with an accelerometer on TWSI6 on an OLPC XO 1.75 machine.
>
> Cc: Eric Miao <eric.y.miao@gmail.com>
> Cc: Haojian Zhuang <haojian.zhuang@gmail.com>
> Cc: Rob Herring <robh+dt@kernel.org>
> Cc: Mark Rutland <mark.rutland@arm.com>
> Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>

Acked-by: Pavel Machek <pavel@ucw.cz>

> ---
> arch/arm/boot/dts/mmp2.dtsi | 49 +++++++++++++++++++++++++++++++++++++
> 1 file changed, 49 insertions(+)
>
> diff --git a/arch/arm/boot/dts/mmp2.dtsi b/arch/arm/boot/dts/mmp2.dtsi
> index 47e5b63339d1..2bd4e94501ce 100644
> --- a/arch/arm/boot/dts/mmp2.dtsi
> +++ b/arch/arm/boot/dts/mmp2.dtsi
> @@ -232,6 +232,55 @@
> status = "disabled";
> };
>
> + twsi3: i2c@d4032000 {
> + compatible = "mrvl,mmp-twsi";
> + reg = <0xd4032000 0x1000>;
> + interrupt-parent = <&intcmux17>;
> + interrupts = <1>;
> + clocks = <&soc_clocks MMP2_CLK_TWSI2>;
> + resets = <&soc_clocks MMP2_CLK_TWSI2>;
> + #address-cells = <1>;
> + #size-cells = <0>;
> + status = "disabled";
> + };
> +
> + twsi4: i2c@d4033000 {
> + compatible = "mrvl,mmp-twsi";
> + reg = <0xd4033000 0x1000>;
> + interrupt-parent = <&intcmux17>;
> + interrupts = <2>;
> + clocks = <&soc_clocks MMP2_CLK_TWSI3>;
> + resets = <&soc_clocks MMP2_CLK_TWSI3>;
> + #address-cells = <1>;
> + #size-cells = <0>;
> + status = "disabled";
> + };
> +
> +
> + twsi5: i2c@d4033800 {
> + compatible = "mrvl,mmp-twsi";
> + reg = <0xd4033800 0x1000>;
> + interrupt-parent = <&intcmux17>;
> + interrupts = <3>;
> + clocks = <&soc_clocks MMP2_CLK_TWSI4>;
> + resets = <&soc_clocks MMP2_CLK_TWSI4>;
> + #address-cells = <1>;
> + #size-cells = <0>;
> + status = "disabled";
> + };
> +
> + twsi6: i2c@d4034000 {
> + compatible = "mrvl,mmp-twsi";
> + reg = <0xd4034000 0x1000>;
> + interrupt-parent = <&intcmux17>;
> + interrupts = <4>;
> + clocks = <&soc_clocks MMP2_CLK_TWSI5>;
> + resets = <&soc_clocks MMP2_CLK_TWSI5>;
> + #address-cells = <1>;
> + #size-cells = <0>;
> + status = "disabled";
> + };
> +
> rtc: rtc@d4010000 {
> compatible = "mrvl,mmp-rtc";
> reg = <0xd4010000 0x1000>;

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2018-11-03 20:06    [W:0.089 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site