From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Graf Date: Tue, 22 Jan 2019 17:37:48 +0100 Subject: [U-Boot] [PATCH 1/2] arm: sunxi: allwinner spi driver sun6i support In-Reply-To: <1f7a9085-9d61-a182-fef8-512d210983b7@suse.de> References: <20190105175216.7086-1-oskari@lemmela.net> <20190105175216.7086-2-oskari@lemmela.net> <5c396578-cc87-9bb2-a9c9-3641e30a7794@suse.de> <1f7a9085-9d61-a182-fef8-512d210983b7@suse.de> Message-ID: <215b3b07-9caf-24f2-9ef4-15b79d1576bd@suse.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: u-boot@lists.denx.de On 22.01.19 17:28, Alexander Graf wrote: >=20 >=20 > On 22.01.19 17:17, Oskari Lemmel=C3=A4 wrote: >> Hi, >> >> On 22.1.2019 16.54, Alexander Graf wrote: >>> >>> On 05.01.19 18:52, Oskari Lemmela wrote: >>>> Minimal changes to support sun6i based Allwinner SOCs >>>> Changes are based to SPL driver arch/arm/mach-sunxi/spl_spi_sunxi.c >>>> >>>> Signed-off-by: Oskari Lemmela >>> I just tried to see if this patch gives me "sf" access on a SoPine >>> system. Unfortunately, it seems as if the sun4i_spi driver doesn't even >>> get probed? >>> >>> How did you manage to actually make use of this driver? >>> >>> >>> Alex >> >> You need to add spi0 alias to dts and enable needed drivers to defconfig. >> You can take look from Jagan's patch [1]. >> >> I didn't include those changes as Maxime already commented [2] >> that Kconfig depends/defaults should be modified first. >=20 > I don't see any relation between the dts change and the Kconfig > dependency issues? >=20 > But thanks for the pointer, I'll give this patch a try. Ok, so I now get the SPI controller initialized, but it seems to only returns zeros when trying to access the SPI flash device. In other words, it doesn't work for me :). But maybe I'm missing all the other clk patches to actually get it working? Alex