From patchwork Mon Mar 30 23:51:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Nemirovsky X-Patchwork-Id: 244602 List-Id: U-Boot discussion From: alex.nemirovsky at cortina-access.com (Alex Nemirovsky) Date: Mon, 30 Mar 2020 16:51:18 -0700 Subject: [PATCH v4 0/8] Cortina Access Drivers Package 2 Message-ID: <1585612288-23669-1-git-send-email-alex.nemirovsky@cortina-access.com> This release adds the following drivers and integrates support into the Cortina Access Presidio Engineering Board: CAxxxx SoC eMMC/SD controller CAxxxx SoC I2C controller CAxxxx Soc LED controller CAxxxx SPI NAND and NOR controller Changes in v4: - Rename DT compatible name - Remove uneccessary if-statement to support 8-bit buswidth - Remove redundant error msg - Use symbolic constants in switch statement - Change DT compatiblity name to match change in driver's name - Remove unused io_ds and fifo_mode fields from DT - Utilize standard I2C macros from - Return ETIMEDOUT in funcs that can timeout - Return i2c_xfer_init() result to caller of i2c_read() if it fails within i2c_read() execution - Fix misc. style guide conformance issues - Use printf() to report i2c_xfer() runtime errors instead of debug() - remove unused macros - remove cortina prefix from macros - remove use BSS variable - further cleanup to meet code style guidelines - add additinal struct comments - rename DT blink rate symbol - rename DT blink rate symbol Changes in v3: - Fixup syntax issues related to checkpatch.pl cleanup Changes in v2: - Add I2C controller - Add LED controller - Add SPI NAND and NOR controller Alex Nemirovsky (3): board: presidio-asic: Add eMMC board support board: presidio-asic: Add I2C support board: presidio-asic: Add SPI NAND and NOR support Arthur Li (2): mmc: ca_dw_mmc: add DesignWare based DM support for CAxxxx SoCs i2c: i2c-cortina: added CAxxxx I2C support Jway Lin (2): led: led_cortina: Add CAxxx LED support board: presidio: add LED support Pengpeng Chen (1): spi: ca_sflash: Add CAxxxx SPI Flash Controller MAINTAINERS | 10 + arch/arm/dts/ca-presidio-engboard.dts | 43 +- board/cortina/presidio-asic/presidio.c | 16 +- configs/cortina_presidio-asic-emmc_defconfig | 38 ++ configs/cortina_presidio-asic-spi-nand_defconfig | 48 ++ configs/cortina_presidio-asic-spi-nor_defconfig | 59 +++ drivers/i2c/Kconfig | 7 + drivers/i2c/Makefile | 1 + drivers/i2c/i2c-cortina.c | 346 ++++++++++++++ drivers/i2c/i2c-cortina.h | 84 ++++ drivers/led/Kconfig | 8 + drivers/led/Makefile | 1 + drivers/led/led_cortina.c | 268 +++++++++++ drivers/mmc/Kconfig | 11 + drivers/mmc/Makefile | 1 + drivers/mmc/ca_dw_mmc.c | 171 +++++++ drivers/spi/Kconfig | 8 + drivers/spi/Makefile | 1 + drivers/spi/ca_sflash.c | 576 +++++++++++++++++++++++ 19 files changed, 1688 insertions(+), 9 deletions(-) create mode 100644 configs/cortina_presidio-asic-emmc_defconfig create mode 100644 configs/cortina_presidio-asic-spi-nand_defconfig create mode 100644 configs/cortina_presidio-asic-spi-nor_defconfig create mode 100644 drivers/i2c/i2c-cortina.c create mode 100644 drivers/i2c/i2c-cortina.h create mode 100644 drivers/led/led_cortina.c create mode 100644 drivers/mmc/ca_dw_mmc.c create mode 100644 drivers/spi/ca_sflash.c