From 49a7282d76aa88ea15f291b937d0975d8451c4f1 Mon Sep 17 00:00:00 2001 From: Masahiro Yamada Date: Tue, 7 Jan 2020 18:19:23 +0900 Subject: [PATCH 1/2] ARM: dts: uniphier: add pinmux nodes for I2C ch5, ch6 The next generation SoC can connect on-board slave devices via I2C ch5 and ch6. Signed-off-by: Masahiro Yamada --- arch/arm/dts/uniphier-pinctrl.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/dts/uniphier-pinctrl.dtsi b/arch/arm/dts/uniphier-pinctrl.dtsi index 1fee5ffbfb..bfdfb764b2 100644 --- a/arch/arm/dts/uniphier-pinctrl.dtsi +++ b/arch/arm/dts/uniphier-pinctrl.dtsi @@ -106,6 +106,16 @@ function = "i2c4"; }; + pinctrl_i2c5: i2c5 { + groups = "i2c5"; + function = "i2c5"; + }; + + pinctrl_i2c6: i2c6 { + groups = "i2c6"; + function = "i2c6"; + }; + pinctrl_nand: nand { groups = "nand"; function = "nand"; From 7b1c1f95c81c7f7e85fcfce2bfbe0ebc52984120 Mon Sep 17 00:00:00 2001 From: Masahiro Yamada Date: Tue, 7 Jan 2020 18:47:26 +0900 Subject: [PATCH 2/2] uniphier_{v7, v8}_defconfig: enable SPI driver and sspi command Compile drivers/spi/uniphier_spi.c and cmd/spi.c Signed-off-by: Masahiro Yamada --- configs/uniphier_v7_defconfig | 4 ++++ configs/uniphier_v8_defconfig | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/configs/uniphier_v7_defconfig b/configs/uniphier_v7_defconfig index 112234df9f..3a9290b7e9 100644 --- a/configs/uniphier_v7_defconfig +++ b/configs/uniphier_v7_defconfig @@ -23,6 +23,7 @@ CONFIG_CMD_GPIO=y CONFIG_CMD_GPT=y CONFIG_CMD_I2C=y CONFIG_CMD_MMC=y +CONFIG_CMD_SPI=y CONFIG_CMD_USB=y CONFIG_CMD_TFTPPUT=y CONFIG_CMD_CACHE=y @@ -52,6 +53,9 @@ CONFIG_NAND_DENALI_SPARE_AREA_SKIP_BYTES=8 CONFIG_SPL_NAND_DENALI=y CONFIG_DM_ETH=y CONFIG_SNI_AVE=y +CONFIG_SPI=y +CONFIG_DM_SPI=y +CONFIG_UNIPHIER_SPI=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_DWC3=y diff --git a/configs/uniphier_v8_defconfig b/configs/uniphier_v8_defconfig index 5acb1437bc..b8f4a4ec6a 100644 --- a/configs/uniphier_v8_defconfig +++ b/configs/uniphier_v8_defconfig @@ -21,6 +21,7 @@ CONFIG_CMD_GPIO=y CONFIG_CMD_GPT=y CONFIG_CMD_I2C=y CONFIG_CMD_MMC=y +CONFIG_CMD_SPI=y CONFIG_CMD_USB=y CONFIG_CMD_TFTPPUT=y CONFIG_CMD_CACHE=y @@ -53,6 +54,9 @@ CONFIG_NAND_DENALI_SPARE_AREA_SKIP_BYTES=8 CONFIG_DM_ETH=y CONFIG_SNI_AVE=y CONFIG_PINCONF=y +CONFIG_SPI=y +CONFIG_DM_SPI=y +CONFIG_UNIPHIER_SPI=y CONFIG_SYSRESET=y CONFIG_SYSRESET_PSCI=y CONFIG_USB=y