Hi All,
We are updating our platform from torizon linux 5.7.2 to torizon linux 7.3.0.(colibri-imx8x)
As a part of it have integrated the changes related to our platform into the compatible device-tree toradex_6.6-2.2.x-imx.
But after booting to the linux we got the below error.
dmesg | grep rtc
[ 3.073552] rtc-ds1307: probe of 2-006f failed with error -110
[ 13.360146] imx-drm display-subsystem: bound imx-dpu-crtc.0 (ops dpu_crtc_ops)
[ 13.364821] imx-drm display-subsystem: bound imx-dpu-crtc.1 (ops dpu_crtc_ops)
Please let us know any changes required in the device-tree.
In oder to enable RTC below changes has been made to the device tree file:imx8x-colibri-eval-v3.dtsi.
Note:Same changes were working previously with torizon linux 5.7.2
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/*
* Copyright 2019 Toradex
*/
#include <dt-bindings/input/linux-event-codes.h>
/ {
aliases {
rtc0 = &rtc_i2c;
rtc1 = &rtc;
};
/* fixed crystal dedicated to mcp25xx */
clk16m: clock-16mhz {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <16000000>;
};
};
/* Colibri Analogue Inputs */
&adc0 {
status = "okay";
};
/* Colibri PWM_A */
&adma_pwm {
status = "okay";
};
&colibri_gpio_keys {
status = "okay";
};
&extcon_usbc_det {
status = "okay";
};
//&i2c1 {
//status = "okay";
/* M41T0M6 real time clock on carrier board */
//rtc_i2c: rtc@68 {
// compatible = "st,m41t0";
// reg = <0x68>;
//};
//};
&i2c2 {
status = "okay";
/* M41T0M6 real time clock on carrier board */
// rtc_i2c: rtc@68 {
// compatible = "st,m41t0";
// reg = <0x68>;
// };
rtc_i2c: rtc@6F {
compatible = "microchip,mcp7940x";
reg = <0x6F>;
};
// rtc_i2c: rtc@68 {
// compatible = "dallas,ds1307","dallas,ds1340";
// reg = <0x68>;
// };
};
&iomuxc {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ext_io0>, <&pinctrl_hog0>, <&pinctrl_hog1>,
<&pinctrl_lpspi2_cs2>;
};
/* Colibri SPI */
&lpspi2 {
status = "okay";
mcp2515: can@0 {
compatible = "microchip,mcp2515";
reg = <0>;
interrupt-parent = <&lsio_gpio3>;
interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
pinctrl-0 = <&pinctrl_can_int>;
pinctrl-names = "default";
clocks = <&clk16m>;
spi-max-frequency = <10000000>;
};
};
/* Colibri UART_B */
&lpuart0 {
status = "okay";
};
/* Colibri UART_C */
&lpuart2 {
status = "okay";
};
/* Colibri PWM_B */
&lsio_pwm0 {
status = "okay";
};
/* Colibri PWM_C */
&lsio_pwm1 {
status = "okay";
};
/* Colibri PWM_D */
&lsio_pwm2 {
status = "okay";
};
/* Colibri UART_A */
&lpuart3 {
status = "okay";
};
/* Colibri FastEthernet */
&fec1 {
status = "okay";
};
/* USB PHY for usbotg3 */
&usb3_phy {
status = "okay";
};
&usbotg1 {
status = "okay";
};
&usbotg3 {
status = "okay";
};
&usbotg3_cdns3 {
status = "okay";
};
/* USB PHY for usbotg1 */
&usbphy1 {
status = "okay";
};
/* Colibri SD/MMC Card */
&usdhc2 {
status = "okay";
};