Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Feb 2019 10:44:34 +0100
From:      Emmanuel Vadot <manu@bidouilliste.com>
To:        ticso@cicely.de
Cc:        Bernd Walter <ticso@cicely7.cicely.de>, freebsd-arm@freebsd.org
Subject:   Re: Problem with PCF8563 RTC on Raspberry
Message-ID:  <20190204104434.559c5ade316cc37a918520be@bidouilliste.com>
In-Reply-To: <20190204090854.GA41812@cicely7.cicely.de>
References:  <20190204090854.GA41812@cicely7.cicely.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 4 Feb 2019 10:08:54 +0100
Bernd Walter <ticso@cicely7.cicely.de> wrote:

> I'm trying to get the RTC on a Waveshare ARPI600 module running on a
> Raspberry Pi B.
> This is the Overlay I'm using:
> /dts-v1/;
> /plugin/;
> 
> &i2c0 {
> 	 status = "okay";
> 	  
> 	  rtc: rtc@51 {
> 		  compatible = "nxp,pcf8563";
> 		  reg = <0x51>;
> 	  };
> };
> 
> IICbus gets probed during boot:
> iicbus0: <OFW I2C bus> on iichb0
> iic0: <I2C generic I/O> on iicbus0
> iicbus0: <unknown card> at addr 0xa2
> 
> When I load the nxprtc moduele I get the following error:
> nxprtc0: <NXP PCF8563 RTC> at addr 0xa2 on iicbus0
> nxprtc0: cannot set up timer
> 
> I wonder if I miss something, e.g. setting GPIO.
> However, for spi0 no GPIO setup was required and the overlay looks
> quite similar.

 Looking at the code it means that the driver didn't managed to talked
to the chip via i2c, the start_timer function is the first time that
i2c transfer is happening.
 Could be either pinmux problems or frequency (default is 100khz so it
should work ok). 
 What pin are you using to connect to the module ?

 Also it seems that the overlay i2c-rtc.dtbo from the Rpi fundation
list this module but I'm unsure how to use this overlay. It is
installed via the rpi-firmware package.

> -- 
> B.Walter <bernd@bwct.de> http://www.bwct.de
> Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
> _______________________________________________
> freebsd-arm@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"


-- 
Emmanuel Vadot <manu@bidouilliste.com> <manu@freebsd.org>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190204104434.559c5ade316cc37a918520be>