Linux CAN drivers development
 help / color / mirror / Atom feed
From: petter@ka-long.de
To: mkl@pengutronix.de
Cc: linux-can@vger.kernel.org
Subject: Re: MCP2518FD : Failed to detect MCP2518FD (osc=0x00000000)
Date: Mon, 31 Jan 2022 13:44:28 +0100 (CET)	[thread overview]
Message-ID: <20220131124428.B17CE5B0007E@dd15738.kasserver.com> (raw)
In-Reply-To: <20220131095849.5iw4jgeexc3egnb6@pengutronix.de>

Hi,

DMA is disabled. CLK and MOSI are looking fine.

Very interessing, CSs are not asserted when loading driver (on old kernel it does), but I can measure "high" after HW initialisation.

Since I did not change the IOs between the old and new device tree assuming the "high" on CS also showing correct PAD / GPIO configuration there seems a problem asserting the CS.




cat /sys/kernel/debug/gpio looks good (gpio-3 and gpio-129)


gpiochip0: GPIOs 0-31, parent: platform/30200000.gpio, 30200000.gpio:
 gpio-3   (                    |spi1 CS1            ) out hi ACTIVE LOW
 gpio-5   (                    |regulator-vbus      ) out lo

gpiochip1: GPIOs 64-95, parent: platform/30220000.gpio, 30220000.gpio:
 gpio-67  (                    |spi3 CS0            ) out hi ACTIVE LOW

gpiochip2: GPIOs 96-127, parent: platform/30230000.gpio, 30230000.gpio:

gpiochip3: GPIOs 128-159, parent: platform/30240000.gpio, 30240000.gpio:
 gpio-128 (                    |cd                  ) in  hi IRQ ACTIVE LOW
 gpio-129 (                    |spi1 CS0            ) out hi ACTIVE LOW


BR
Niels

Marc Kleine-Budde schrieb am 31.01.2022 09:58 (GMT +00:00):

> On 31.01.2022 10:35:54, petter@ka-long.de wrote:
>> I have disabled DMAs in imx7s.dtsi for all ecspis and recompile the
>> device tree. Still get the same failure.
> 
> You can check if that really works by looking at the used DT:
> 
> $ dtc -I fs /proc/device-tree
> 
> Next step would be to get a scope and attach it to the MISO/MOSI/CLk/CS
> pins.
> 
> Marc
> 
> -- 
> Pengutronix e.K.                 | Marc Kleine-Budde           |
> Embedded Linux                   | https://www.pengutronix.de  |
> Vertretung West/Dortmund         | Phone: +49-231-2826-924     |
> Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-5555 |
> 

  reply	other threads:[~2022-01-31 12:44 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-31  8:33 MCP2518FD : Failed to detect MCP2518FD (osc=0x00000000) petter
2022-01-31  8:42 ` Marc Kleine-Budde
2022-01-31  9:35   ` petter
2022-01-31  9:58     ` Marc Kleine-Budde
2022-01-31 12:44       ` petter [this message]
2022-01-31 13:09         ` Marc Kleine-Budde
2022-01-31 14:15           ` petter
2022-01-31 15:17             ` Marc Kleine-Budde
2022-02-01  9:08               ` petter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220131124428.B17CE5B0007E@dd15738.kasserver.com \
    --to=petter@ka-long.de \
    --cc=linux-can@vger.kernel.org \
    --cc=mkl@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox