]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
powerpc: t2080rdb: Enable RTC support
authorChris Packham <judge.packham@gmail.com>
Wed, 3 Mar 2021 01:09:45 +0000 (14:09 +1300)
committerPriyanka Jain <priyanka.jain@nxp.com>
Tue, 23 Mar 2021 12:36:07 +0000 (18:06 +0530)
The T2080RDB has a ds1339 on i2c0. Add this to the devicetree and enable
the relevant support in the configs.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
arch/powerpc/dts/t2080rdb.dts
configs/T2080RDB_NAND_defconfig
configs/T2080RDB_SDCARD_defconfig
configs/T2080RDB_SPIFLASH_defconfig
configs/T2080RDB_defconfig

index 34ec6a74cb1d0a8cb50c00cb94cc104f46002d04..74bbb20e2a1e3f62d9f74c6ec5519767b0b29099 100644 (file)
                spi-max-frequency = <10000000>; /* input clock */
        };
 };
+
+&i2c0 {
+       status = "okay";
+       rtc@68 {
+               compatible = "dallas,ds1339";
+               reg = <0x68>;
+       };
+};
index d7ccee2559291f20dff58fc147abc3425c9897c3..543d34e24988f33623665c7fecfc8a337ff37161 100644 (file)
@@ -77,6 +77,8 @@ CONFIG_DM_PCI=y
 CONFIG_DM_PCI_COMPAT=y
 CONFIG_PCIE_FSL=y
 CONFIG_SYS_QE_FMAN_FW_IN_NAND=y
+CONFIG_DM_RTC=y
+CONFIG_RTC_DS1307=y
 CONFIG_SYS_NS16550=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
index 99ea925df8f5ee54e1dc61f3dc06413b4bf27c00..d947846e6458e652756b0650e81bdf6394817d07 100644 (file)
@@ -74,6 +74,8 @@ CONFIG_DM_PCI=y
 CONFIG_DM_PCI_COMPAT=y
 CONFIG_PCIE_FSL=y
 CONFIG_SYS_QE_FMAN_FW_IN_MMC=y
+CONFIG_DM_RTC=y
+CONFIG_RTC_DS1307=y
 CONFIG_SYS_NS16550=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
index c820c2bf5aed9f7346deaca3f1ae9a398e6b6425..6f7b083bc623cb37b236d2775228028ef9535958 100644 (file)
@@ -76,6 +76,8 @@ CONFIG_DM_PCI=y
 CONFIG_DM_PCI_COMPAT=y
 CONFIG_PCIE_FSL=y
 CONFIG_SYS_QE_FMAN_FW_IN_SPIFLASH=y
+CONFIG_DM_RTC=y
+CONFIG_RTC_DS1307=y
 CONFIG_SYS_NS16550=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
index d20de349de7ca0cc000efb8cd0dbc7fffa94bb84..9dd01bbe50a5d20ba61e1744f1ab779ecec2281b 100644 (file)
@@ -61,6 +61,8 @@ CONFIG_DM_PCI=y
 CONFIG_DM_PCI_COMPAT=y
 CONFIG_PCIE_FSL=y
 CONFIG_SYS_QE_FMAN_FW_IN_NOR=y
+CONFIG_DM_RTC=y
+CONFIG_RTC_DS1307=y
 CONFIG_SYS_NS16550=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y