From: Stefan Roese Date: Wed, 13 Mar 2019 06:47:15 +0100 Subject: [U-Boot] [PATCH 3/4] arm: socfpga: socrates: make rtc work In-Reply-To: <20190312210110.30910-4-simon.k.r.goldschmidt@gmail.com> References: <20190312210110.30910-1-simon.k.r.goldschmidt@gmail.com> <20190312210110.30910-4-simon.k.r.goldschmidt@gmail.com> Message-ID: <426f37a8-73b8-1d5c-d61c-af5b7e1771ae@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 12.03.19 22:01, Simon Goldschmidt wrote: > This patch makes the on-board RTC work on the socfpga_socrates board. > This rtc is present on the board, but it does not work (fails with a > timeout). > > This patch adds a weak pull-up on the I2C0-SCL pin connected to the m41t82 > RTC on this board. While the SDA line has a pull-up on the pcb, the pull-up > on the SCL line seems to be missing. To work around this, enable the > weak-pull-up feature on this pin. > > After applying this patch, the rtc timeout is gone and the 'date' command > can access the rtc chip. > > Signed-off-by: Simon Goldschmidt Reviewed-by: Stefan Roese Thanks, Stefan