From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] soft-i2c and i2c-gpio issues with at91
Date: Tue, 26 May 2015 06:30:04 +0200 [thread overview]
Message-ID: <5563F6CC.2080703@denx.de> (raw)
In-Reply-To: <CADjezmZmWQdKWd5Y_wNda1Xr4asndXbCVL7NTDuA8YyvoDNm5g@mail.gmail.com>
Hello Matt,
Am 22.05.2015 16:35, schrieb Matt Wood:
> Hi all, I am trying to get a bitbanged i2c port working with u-boot on an
> Atmel SAMA5D3 platform. I have added DT bindings to support the I2C
> drivers however when I try to select the bus on the u-boot command line I
> consistently get an error in gpio-uclass:
I am not sure, if DM is supported on this plattform yet, I added
Andreas Biesmann (AT91) and Simon Glass (DM) to Cc, maybe one of them
can help you here ...
bye,
Heiko
>
> _gpio_request_by_name_nodev: uclass_get_device_by_of_offset failed
>
> _gpio_request_by_name_nodev: Node 'soft-i2c at 1', property 'gpios', failed to
> request GPIO index 0: -19
>
> Each driver always fails at the get_dev_by_offset routine.
>
> I suspect some issue with the way the GPIO is defined or is not setup
> correctly. Has anyone seen this or have any advice on where to look?
>
> This is the relevant part of the device tree:
>
> aliases {
>
> i2c0 = "/soft-i2c at 1";
>
> };
>
>
> soft-i2c at 1 {
>
> #address-cells = <1>;
>
> #size-cells = <0>;
>
> /* compatible = "soft-i2c"; */
>
> compatible = "i2c-gpio";
>
> /* clock-frequency = <100000>; */
>
> /* pinctrl-names = "default";
>
> pinctrl-0 = <&pinctrl_soft_i2c>; */
>
> /* Define the proper GPIO pins */
>
>
> /*
>
>
> clock-pin = <&pioA 31 0>;
>
> data-pin = <&pioA 30 0>; */
>
> gpios = <&pioA 30 0 /* SDA */
>
> &pioA 31 0>; /* SCL */
>
>
> i2c-gpio,sda-open-drain;
>
> i2c-gpio,scl-open-drain;
>
> i2c-gpio,delay-us =<3>;
>
>
> };
>
> };
>
>
> Thanks, Matt.
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
next prev parent reply other threads:[~2015-05-26 4:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-22 14:35 [U-Boot] soft-i2c and i2c-gpio issues with at91 Matt Wood
2015-05-26 4:30 ` Heiko Schocher [this message]
2015-05-26 13:47 ` Simon Glass
2015-05-26 14:33 ` Matt Wood
2015-05-26 14:41 ` Simon Glass
2015-05-26 17:23 ` Matt Wood
2015-05-26 22:40 ` Simon Glass
2015-05-27 11:32 ` Przemyslaw Marczak
2015-05-27 19:21 ` Matt Wood
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=5563F6CC.2080703@denx.de \
--to=hs@denx.de \
--cc=u-boot@lists.denx.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