From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754545AbbIIOaz (ORCPT ); Wed, 9 Sep 2015 10:30:55 -0400 Received: from down.free-electrons.com ([37.187.137.238]:47078 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754395AbbIIOam (ORCPT ); Wed, 9 Sep 2015 10:30:42 -0400 Date: Wed, 9 Sep 2015 16:30:38 +0200 From: Maxime Ripard To: Olliver Schinagl Cc: dev@linux-sunxi.org, "linux-kernel@vger.kernel.org" , linux-arm-kernel , Hans de Goede , "Tsvetan Usunov, OLIMEX Ltd" Subject: Re: Almost certainly confirmed, sun7i-a20 does not support 8 bit mmc. Message-ID: <20150909143038.GE9885@lukather> References: <55F02E4B.70708@schinagl.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="84ND8YJRMFlzkrP4" Content-Disposition: inline In-Reply-To: <55F02E4B.70708@schinagl.nl> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --84ND8YJRMFlzkrP4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 09, 2015 at 03:04:11PM +0200, Olliver Schinagl wrote: > Hey all, >=20 > After experimenting with a Micron eMMC chip, I made some interesting find= s I > wanted to share with you all. >=20 > For a while now, some had hopes or guessed that the A20 could have support > for 8 bit wide bused on the SDC2. Reason for thinking this was, because t= he > sun7i uses the same IP as the sun5i which does support 8 bit wide eMMC. T= he > usermanual does mention 1/4/8 bit data buses and jedec 4.3 support of the > MMC spec. Unfortunately so far, it appears that the extra data pins have = not > been muxed out to the PC pads. >=20 > I used the following code to enable the extra pins on the A20: > mmc2_pins_a: mmc2@0 { > - allwinner,pins =3D "PC6", "PC7", "PC8", > - "PC9", "PC10", "PC11"; > + allwinner,pins =3D "PC6", "PC7", > + "PC8", "PC9", "PC10", > "PC11", > + "PC12", "PC13", "PC14", > "PC15"; >=20 > and > SUNXI_PIN(SUNXI_PINCTRL_PIN(C, 12), > SUNXI_FUNCTION(0x0, "gpio_in"), > SUNXI_FUNCTION(0x1, "gpio_out"), > - SUNXI_FUNCTION(0x2, "nand0")), /* NDQ4 */ > + SUNXI_FUNCTION(0x2, "nand0"), /* NDQ4 */ > + SUNXI_FUNCTION(0x3, "mmc2")), /* D4 */ > SUNXI_PIN(SUNXI_PINCTRL_PIN(C, 13), > SUNXI_FUNCTION(0x0, "gpio_in"), > SUNXI_FUNCTION(0x1, "gpio_out"), > - SUNXI_FUNCTION(0x2, "nand0")), /* NDQ5 */ > + SUNXI_FUNCTION(0x2, "nand0"), /* NDQ5 */ > + SUNXI_FUNCTION(0x3, "mmc2")), /* D5 */ > SUNXI_PIN(SUNXI_PINCTRL_PIN(C, 14), > SUNXI_FUNCTION(0x0, "gpio_in"), > SUNXI_FUNCTION(0x1, "gpio_out"), > - SUNXI_FUNCTION(0x2, "nand0")), /* NDQ6 */ > + SUNXI_FUNCTION(0x2, "nand0"), /* NDQ6 */ > + SUNXI_FUNCTION(0x3, "mmc2")), /* D6 */ > SUNXI_PIN(SUNXI_PINCTRL_PIN(C, 15), > SUNXI_FUNCTION(0x0, "gpio_in"), > SUNXI_FUNCTION(0x1, "gpio_out"), > - SUNXI_FUNCTION(0x2, "nand0")), /* NDQ7 */ > + SUNXI_FUNCTION(0x2, "nand0"), /* NDQ7 */ > + SUNXI_FUNCTION(0x3, "mmc2")), /* D7 */ Where did you get that info from ? Those pins have never been reported as having the mmc2 function, which would explain why it doesn't work. Maxime --=20 Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com --84ND8YJRMFlzkrP4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJV8EKOAAoJEBx+YmzsjxAgp1UP/1q/4C/1wlC/qrQGUfx7AFLM NyzIwJ6qM/xKYqIa1fMBp7+v3HFtPyWCSXUAEgSMSeialcfnIjCpTxa6qPOU8QQb ekYFjCtx/jYBOVkQlWIajUNgDXh0jq4/yDWZtQkK1/ZgMWHtlQZy5r7S+t77vX1u sG0psufHt0Ju6LxFYhgt59HbB50HbjftpdbPw+tqDGl5+3Mrqg1QzXXTzQkv9sX3 qx+QcZFx6gGgaBTCC+05VwJwH+iWx1kU3PfgR3QiuiNbBTzeJQ3SK8QeKGW8zREL gJ1osZqnqOtkC63y0RCaI/iZ+QUF/NtzreY2r6976z05KDGGxQpl1PUHqM9zCF1Y tEMYLARpXyKNZLp5sX9KXFGiZtFTRNvD19URZgZRUfTC9e4JlzDiiC+XkV1ieTH4 b5gB4RTtsNQDjmBVzfcn33L3uT9MC6U0rQYrt3NdhzRZsSvQQW32iYvDNrEqMbE3 gIP45ig65KXN61a7vXNCO7KBY1GHNltXIs+5mwgtxFUgW/Q+lWebxpr+2JWEi5Ve Jl1gKn8421qH+OQky9VtkAQjycezqvxKLESBMaYihH9i0sGPUyS+WPTGA0a0iga+ vBxtsO34dvKdCGtxgcQsbk6vh6TGynlLeLgDTwGtKgk2CMNr5i9PYybd25UWrAxO y9aeSAmuOiT35HwqX0jp =BYUP -----END PGP SIGNATURE----- --84ND8YJRMFlzkrP4--