* [U-Boot] [PATCH v3 1/2] configs: lx2160aqds: enable DM support for pcf2127 rtc
@ 2019-07-10 13:05 Chuanhua Han
2019-07-10 13:05 ` [U-Boot] [PATCH v3 2/2] armv8: lx2160aqds : Add pcf2127 node Chuanhua Han
0 siblings, 1 reply; 3+ messages in thread
From: Chuanhua Han @ 2019-07-10 13:05 UTC (permalink / raw)
To: u-boot
Enable related configs on all lx2160aqds boards to support pcf2127
rtc DM function.
Signed-off-by: Chuanhua Han <chuanhua.han@nxp.com>
---
depends on:
- https://patchwork.ozlabs.org/project/uboot/list/?series=117203
- https://patchwork.ozlabs.org/project/uboot/list/?series=114242
Changes in v3:
- Add configuration options for i2c dm to set default bus number Settings.
Changes in v2:
- Add dependency patch links.
configs/lx2160aqds_tfa_SECURE_BOOT_defconfig | 9 +++++++++
configs/lx2160aqds_tfa_defconfig | 9 +++++++++
2 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/configs/lx2160aqds_tfa_SECURE_BOOT_defconfig b/configs/lx2160aqds_tfa_SECURE_BOOT_defconfig
index a6a253f..949b00d 100644
--- a/configs/lx2160aqds_tfa_SECURE_BOOT_defconfig
+++ b/configs/lx2160aqds_tfa_SECURE_BOOT_defconfig
@@ -61,3 +61,12 @@ CONFIG_RSA=y
CONFIG_SPL_RSA=y
CONFIG_RSA_SOFTWARE_EXP=y
CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
+CONFIG_DM_I2C=y
+CONFIG_I2C_SET_DEFAULT_BUS_NUM=y
+CONFIG_I2C_DEFAULT_BUS_NUMBER=0
+CONFIG_DM_RTC=y
+CONFIG_DM_GPIO=y
+CONFIG_CMD_DATE=y
+CONFIG_RTC_PCF2127=y
+CONFIG_I2C_MUX=y
+CONFIG_I2C_MUX_PCA954x=y
diff --git a/configs/lx2160aqds_tfa_defconfig b/configs/lx2160aqds_tfa_defconfig
index d68b40d..395fc0b 100644
--- a/configs/lx2160aqds_tfa_defconfig
+++ b/configs/lx2160aqds_tfa_defconfig
@@ -57,3 +57,12 @@ CONFIG_DM_USB=y
CONFIG_USB_XHCI_HCD=y
CONFIG_USB_XHCI_DWC3=y
CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
+CONFIG_DM_I2C=y
+CONFIG_I2C_SET_DEFAULT_BUS_NUM=y
+CONFIG_I2C_DEFAULT_BUS_NUMBER=0
+CONFIG_DM_RTC=y
+CONFIG_DM_GPIO=y
+CONFIG_CMD_DATE=y
+CONFIG_RTC_PCF2127=y
+CONFIG_I2C_MUX=y
+CONFIG_I2C_MUX_PCA954x=y
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH v3 2/2] armv8: lx2160aqds : Add pcf2127 node
2019-07-10 13:05 [U-Boot] [PATCH v3 1/2] configs: lx2160aqds: enable DM support for pcf2127 rtc Chuanhua Han
@ 2019-07-10 13:05 ` Chuanhua Han
2019-08-22 8:33 ` Prabhakar Kushwaha
0 siblings, 1 reply; 3+ messages in thread
From: Chuanhua Han @ 2019-07-10 13:05 UTC (permalink / raw)
To: u-boot
This patch adds the pcf2127-rtc node under the i2c0->i2c-mux at 77->i2c at 3
for lx2160aqds boards.
Signed-off-by: Chuanhua Han <chuanhua.han@nxp.com>
---
depends on:
- https://patchwork.ozlabs.org/project/uboot/list/?series=117203
- https://patchwork.ozlabs.org/project/uboot/list/?series=114242
Changes in v3:
- No change.
Changes in v2:
- Add dependency patch links.
arch/arm/dts/fsl-lx2160a-qds.dts | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/arch/arm/dts/fsl-lx2160a-qds.dts b/arch/arm/dts/fsl-lx2160a-qds.dts
index 99836c4..34df0f5 100644
--- a/arch/arm/dts/fsl-lx2160a-qds.dts
+++ b/arch/arm/dts/fsl-lx2160a-qds.dts
@@ -23,6 +23,29 @@
status = "okay";
};
+&i2c0 {
+ status = "okay";
+ u-boot,dm-pre-reloc;
+
+ i2c-mux at 77 {
+ compatible = "nxp,pca9547";
+ reg = <0x77>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ i2c at 3 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ reg = <0x3>;
+
+ rtc at 51 {
+ compatible = "pcf2127-rtc";
+ reg = <0x51>;
+ };
+ };
+ };
+};
+
&sata0 {
status = "okay";
};
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH v3 2/2] armv8: lx2160aqds : Add pcf2127 node
2019-07-10 13:05 ` [U-Boot] [PATCH v3 2/2] armv8: lx2160aqds : Add pcf2127 node Chuanhua Han
@ 2019-08-22 8:33 ` Prabhakar Kushwaha
0 siblings, 0 replies; 3+ messages in thread
From: Prabhakar Kushwaha @ 2019-08-22 8:33 UTC (permalink / raw)
To: u-boot
> -----Original Message-----
> From: Chuanhua Han <chuanhua.han@nxp.com>
> Sent: Wednesday, July 10, 2019 6:35 PM
> To: Pankaj Bansal <pankaj.bansal@nxp.com>; albert.u.boot at aribaud.net;
> Udit Agarwal <udit.agarwal@nxp.com>; Prabhakar Kushwaha
> <prabhakar.kushwaha@nxp.com>
> Cc: u-boot at lists.denx.de; Chuanhua Han <chuanhua.han@nxp.com>
> Subject: [PATCH v3 2/2] armv8: lx2160aqds : Add pcf2127 node
>
> This patch adds the pcf2127-rtc node under the i2c0->i2c-mux at 77->i2c at 3
> for lx2160aqds boards.
>
> Signed-off-by: Chuanhua Han <chuanhua.han@nxp.com>
> ---
This patch has been applied to fsl-qoriq master, awaiting upstream.
--pk
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-08-22 8:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-10 13:05 [U-Boot] [PATCH v3 1/2] configs: lx2160aqds: enable DM support for pcf2127 rtc Chuanhua Han
2019-07-10 13:05 ` [U-Boot] [PATCH v3 2/2] armv8: lx2160aqds : Add pcf2127 node Chuanhua Han
2019-08-22 8:33 ` Prabhakar Kushwaha
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.