[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130613155240.GB3775@amd.pavel.ucw.cz>
Date: Thu, 13 Jun 2013 17:52:40 +0200
From: Pavel Machek <pavel@....cz>
To: Tony Lindgren <tony@...mide.com>
Cc: Aaro Koskinen <aaro.koskinen@....fi>, pali.rohar@...il.com,
kernel list <linux-kernel@...r.kernel.org>,
linux-arm-kernel <linux-arm-kernel@...ts.infradead.org>,
linux-omap@...r.kernel.org
Subject: Re: N900 device tree conversion: how to do first step
Hi!
> * Pavel Machek <pavel@....cz> [130613 07:34]:
> > On Thu 2013-06-13 07:10:01, Tony Lindgren wrote:
> > > * Pavel Machek <pavel@....cz> [130613 06:32]:
> > >
> > > > If I init spi manually (and some more hacks), it works in the
> > > > qemu. But I have not tested on real hw for a while.
> > >
> > > You should be able to initialize spi by adding the .dts entry,
> > > or is there something missing in drivers/spi/spi-omap2-mcspi.c?
> >
> > Not sure, I guess I'll find out soon. Do you have example dts that
> > uses drivers/spi/spi-omap2-mcspi.c? Grepping spi in dts/ was not too
> > successful.
>
> Hmm I think all we have is what's written in
> Documentation/devicetree/bindings/spi/omap-spi.txt and
> omap4-sdp.dts.
Ok, this was easier than expected.
Now, by chance, any idea what is DT equivalent of
omap3_mux_init(board_mux, OMAP_PACKAGE_CBB);
?
(Plus I'll still have to figure out why it works on emulator but not
on hw).
Thanks,
Pavel
diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts
index 10a880f..3918ae1 100644
--- a/arch/arm/boot/dts/omap3-n900.dts
+++ b/arch/arm/boot/dts/omap3-n900.dts
@@ -65,6 +65,14 @@
status = "disabled";
};
+&mcspi1 {
+ mipid@2 {
+ compatible = "acx565akm";
+ spi-max-frequency = <6000000>;
+ reg = <2>;
+ };
+};
+
/*
&usb_otg_hs {
interface-type = <0>;
diff --git a/arch/arm/mach-omap2/board-generic.c b/arch/arm/mach-omap2/board-generic.c
index 996ffc3..597ade9 100644
--- a/arch/arm/mach-omap2/board-generic.c
+++ b/arch/arm/mach-omap2/board-generic.c
@@ -130,9 +130,10 @@ void __init omap_generic_init(void)
regulator_use_dummy_regulator();
omap3_mux_init(board_mux, OMAP_PACKAGE_CBB);
-
+#if 0
spi_register_board_info(rx51_peripherals_spi_board_info,
ARRAY_SIZE(rx51_peripherals_spi_board_info));
+#endif
#else
rx51_video_init();
#endif
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists