armv8: ls1088a: The ls1088a platform supports the I2C driver model.
PATCH 1/5 armv8: ls1088a: The ls1088a platform supports the I2C driver model.
DM_I2C_COMPAT is a compatibility layer that allows using the non-DM I2C API when DM_I2C is used.When DM_I2C_COMPAT is not enabled for compilation, a compilation error will be generated. This patch solves the problem that the i2c-related api of the ls1088a platform does not support dm.
---
depends on:
- http://patchwork.ozlabs.org/project/uboot/list/?series=110856
- http://patchwork.ozlabs.org/project/uboot/list/?series=109459
arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 4 - board/freescale/ls1088a/ls1088a.c | 148 ++++++++++++++++++++++ include/configs/ls1088a_common.h | 3 - include/configs/ls1088ardb.h | 2 - 4 files changed, 148 insertions(+), 9 deletions(-)
arch/arm/cpu/armv8/fsl-layerscape/Kconfig +0 -4
@@ -154,10 +154,6 @@ config ARCH_LS1088A select ARCH_EARLY_INIT_R select BOARD_EARLY_INIT_F select SYS_I2C_MXC - select SYS_I2C_MXC_I2C1 - select SYS_I2C_MXC_I2C2 - select SYS_I2C_MXC_I2C3 - select SYS_I2C_MXC_I2C4 imply SCSI imply PANIC_HANG
board/freescale/ls1088a/ls1088a.c +148 -0
271 lines not on this page · raw message
include/configs/ls1088a_common.h +0 -3
@@ -66,9 +66,6 @@/* Size of malloc() pool */ #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 2048 * 1024) -/* I2C */ -#define CONFIG_SYS_I2C -/* Serial Port */ #define CONFIG_SYS_NS16550_SERIAL #define CONFIG_SYS_NS16550_REG_SIZE 1
include/configs/ls1088ardb.h +0 -2
@@ -269,9 +269,7 @@* RTC configuration */ #define RTC -#define CONFIG_RTC_PCF8563 1#define CONFIG_SYS_I2C_RTC_ADDR 0x51/* Channel 3*/ -#define CONFIG_CMD_DATE #endif /* EEPROM */
Signature · 1 line
2.17.1
PATCH 2/5 gpio: do not include <asm/arch/gpio.h> on ARCH_LS1088A
As no gpio.h is defined for this architecture, to avoid compilation failure, do not include <asm/arch/gpio.h> for arch ls1088a.
---
depends on:
- http://patchwork.ozlabs.org/project/uboot/list/?series=110856
- http://patchwork.ozlabs.org/project/uboot/list/?series=109459
arch/arm/include/asm/gpio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/include/asm/gpio.h +1 -1
@@ -1,7 +1,7 @@#if !defined(CONFIG_ARCH_UNIPHIER ) && !defined(CONFIG_ARCH_STI ) && \ !defined(CONFIG_ARCH_K3 ) && !defined(CONFIG_ARCH_BCM6858 ) && \ !defined(CONFIG_ARCH_BCM63158 ) && !defined(CONFIG_ARCH_ROCKCHIP ) && \ - !defined(CONFIG_ARCH_LX2160A ) + !defined(CONFIG_ARCH_LX2160A ) && !defined(CONFIG_ARCH_LS1088A )#include <asm/arch/gpio.h> #endif #include <asm-generic/gpio.h>
Signature · 1 line
2.17.1
PATCH 2/5 gpio: do not include <asm/arch/gpio.h> on ARCH_LS1088A
Quoted 11 lines
-----Original Message-----
From: Chuanhua Han <[email protected]>
Sent: Tuesday, June 11, 2019 9:55 AM
To: albert.u.boot at aribaud.net; Prabhakar Kushwaha <[email protected]>; Ashish Kumar <[email protected]>; Rajesh Bhagat <[email protected]>
Cc: u-boot at lists.denx.de; Chuanhua Han <[email protected]>
Subject: [PATCH 2/5] gpio: do not include <asm/arch/gpio.h> onARCH_LS1088A
Quoted 6 lines
As no
gpio.his defined for this architecture, to avoid compilation failure, do not include <asm/arch/gpio.h> for arch ls1088a.Signed-off-by Chuanhua Han <[email protected]>---
depends on:
This patch has been applied to fsl-qoriq master, awaiting upstream.
--pk
PATCH 3/5 configs: ls1088a: enable DM support for pcf2127 rtc
In reply to Chuanhua HanEnable related configs to support pcf2127 rtc DM feature for ls1088ardb board.
---
depends on:
- http://patchwork.ozlabs.org/project/uboot/list/?series=110856
- http://patchwork.ozlabs.org/project/uboot/list/?series=109459
configs/ls1088ardb_tfa_SECURE_BOOT_defconfig | 8 +++++++- configs/ls1088ardb_tfa_defconfig | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-)
configs/ls1088ardb_tfa_SECURE_BOOT_defconfig +7 -1
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_TARGET_LS1088ARDB=y +CONFIG_SYS_MALLOC_F_LEN=0x6000 CONFIG_SYS_TEXT_BASE=0x82000000 CONFIG_SECURE_BOOT=y CONFIG_QSPI_AHB_INIT=y
@@ -9,7 +10,6 @@ CONFIG_ARMV8_SEC_FIRMWARE_SUPPORT=y CONFIG_SEC_FIRMWARE_ARMV8_PSCI=y CONFIG_AHCI=y CONFIG_DISTRO_DEFAULTS=y -# CONFIG_SYS_MALLOC_F is not set CONFIG_FIT_VERBOSE=y CONFIG_OF_BOARD_SETUP=y CONFIG_OF_STDOUT_VIA_ALIAS=y
@@ -63,3 +63,9 @@ CONFIG_RSA=y CONFIG_SPL_RSA=y CONFIG_RSA_SOFTWARE_EXP=y CONFIG_EFI_LOADER_BOUNCE_BUFFER=y +CONFIG_DM_I2C=y +CONFIG_DM_RTC=y +CONFIG_DM_GPIO=y +CONFIG_RTC_PCF2127=y +CONFIG_I2C_MUX=y +CONFIG_I2C_MUX_PCA954x=y
configs/ls1088ardb_tfa_defconfig +7 -1
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_TARGET_LS1088ARDB=y +CONFIG_SYS_MALLOC_F_LEN=0x6000 CONFIG_SYS_TEXT_BASE=0x82000000 CONFIG_QSPI_AHB_INIT=y CONFIG_TFABOOT=y
@@ -8,7 +9,6 @@ CONFIG_ARMV8_SEC_FIRMWARE_SUPPORT=y CONFIG_SEC_FIRMWARE_ARMV8_PSCI=y CONFIG_AHCI=y CONFIG_DISTRO_DEFAULTS=y -# CONFIG_SYS_MALLOC_F is not set CONFIG_FIT_VERBOSE=y CONFIG_OF_BOARD_SETUP=y CONFIG_OF_STDOUT_VIA_ALIAS=y
@@ -61,3 +61,9 @@ CONFIG_USB_XHCI_DWC3=y CONFIG_USB_DWC3=y CONFIG_USB_GADGET=y CONFIG_EFI_LOADER_BOUNCE_BUFFER=y +CONFIG_DM_I2C=y +CONFIG_DM_RTC=y +CONFIG_DM_GPIO=y +CONFIG_RTC_PCF2127=y +CONFIG_I2C_MUX=y +CONFIG_I2C_MUX_PCA954x=y
Signature · 1 line
2.17.1
PATCH 4/5 armv8: dts: fsl-ls1088a: add I2C node support
In reply to Chuanhua HanOne ls1088a, there is four I2C controllers.
This patch is to add I2C node for ls1088a.
---
depends on:
- http://patchwork.ozlabs.org/project/uboot/list/?series=110856
- http://patchwork.ozlabs.org/project/uboot/list/?series=109459
arch/arm/dts/fsl-ls1088a.dtsi | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+)
arch/arm/dts/fsl-ls1088a.dtsi +32 -0
@@ -34,6 +34,38 @@ <1 10 0x8>; /* Hypervisor PPI, active-low */ }; + i2c0: i2c at 2000000 { + compatible = "fsl,vf610-i2c"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x0 0x2000000 0x0 0x10000>; + interrupts = <0 34 4>; + }; + + i2c1: i2c at 2010000 { + compatible = "fsl,vf610-i2c"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x0 0x2010000 0x0 0x10000>; + interrupts = <0 34 4>; + }; + + i2c2: i2c at 2020000 { + compatible = "fsl,vf610-i2c"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x0 0x2020000 0x0 0x10000>; + interrupts = <0 35 4>; + }; + + i2c3: i2c at 2030000 { + compatible = "fsl,vf610-i2c"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x0 0x2030000 0x0 0x10000>; + interrupts = <0 35 4>; + }; + serial0: serial at 21c0500 { device_type = "serial"; compatible = "fsl,ns16550", "ns16550a";
Signature · 1 line
2.17.1
PATCH 4/5 armv8: dts: fsl-ls1088a: add I2C node support
Quoted 10 lines
-----Original Message-----
From: Chuanhua Han <[email protected]>
Sent: Tuesday, June 11, 2019 9:55 AM
To: albert.u.boot at aribaud.net; Prabhakar Kushwaha <[email protected]>; Ashish Kumar <[email protected]>; Rajesh Bhagat <[email protected]>
Cc: u-boot at lists.denx.de; Chuanhua Han <[email protected]>
Subject: [PATCH 4/5] armv8: dts: fsl-ls1088a: add I2C node support
Quoted 6 lines
One ls1088a, there is four I2C controllers.
This patch is to add I2C node for ls1088a.Signed-off-by Chuanhua Han <[email protected]>---
depends on:
This patch has been applied to fsl-qoriq master, awaiting upstream.
--pk
PATCH 5/5 armv8: dts: ls1088ardb: Add slave nodes under the i2c0 controller
In reply to Chuanhua HanThis patch adds some slave nodes to support the i2c dm on the device side under the i2c0 controller.
---
depends on:
- http://patchwork.ozlabs.org/project/uboot/list/?series=110856
- http://patchwork.ozlabs.org/project/uboot/list/?series=109459
arch/arm/dts/fsl-ls1088a-rdb.dts | 40 ++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+)
arch/arm/dts/fsl-ls1088a-rdb.dts +40 -0
@@ -17,6 +17,46 @@ }; }; +&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 2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x2>; + + ina220 at 40 { + compatible = "ti,ina220"; + reg = <0x40>; + shunt-resistor = <1000>; + }; + }; + + i2c at 3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x3>; + + temp-sensor at 4c { + compatible = "adi,adt7461a"; + reg = <0x4c>; + }; + + rtc at 51 { + compatible = "pcf2127-rtc"; + reg = <0x51>; + }; + }; + }; +}; + &qspi { bus-num = <0>; status = "okay";
Signature · 1 line
2.17.1