From: sunil at amarulasolutions.com <sunil@amarulasolutions.com>
To: u-boot@lists.denx.de
Subject: [PATCH 2/5] roc-pc-rk3399: Enable I2C in SPL for add-on board detection
Date: Fri, 22 May 2020 23:33:25 +0530 [thread overview]
Message-ID: <1590170608-12229-3-git-send-email-sunil@amarulasolutions.com> (raw)
In-Reply-To: <1590170608-12229-1-git-send-email-sunil@amarulasolutions.com>
From: Suniel Mahesh <sunil@amarulasolutions.com>
This patch enables I2C in SPL for any add-on board detection
at run time.
Signed-off-by: Suniel Mahesh <sunil@amarulasolutions.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
arch/arm/dts/rk3399-roc-pc-u-boot.dtsi | 13 +++++++++++++
configs/roc-pc-rk3399_defconfig | 5 ++++-
2 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/arch/arm/dts/rk3399-roc-pc-u-boot.dtsi b/arch/arm/dts/rk3399-roc-pc-u-boot.dtsi
index 141dd0b..6de30d4 100644
--- a/arch/arm/dts/rk3399-roc-pc-u-boot.dtsi
+++ b/arch/arm/dts/rk3399-roc-pc-u-boot.dtsi
@@ -56,3 +56,16 @@
&vcc_sdio {
regulator-always-on;
};
+
+&pcfg_pull_none_12ma {
+ u-boot,dm-pre-reloc;
+};
+
+&i2c2 {
+ u-boot,dm-pre-reloc;
+ status= "okay";
+};
+
+&i2c2_xfer {
+ u-boot,dm-pre-reloc;
+};
diff --git a/configs/roc-pc-rk3399_defconfig b/configs/roc-pc-rk3399_defconfig
index 76e76c1..4d1a077 100644
--- a/configs/roc-pc-rk3399_defconfig
+++ b/configs/roc-pc-rk3399_defconfig
@@ -13,19 +13,22 @@ CONFIG_DISPLAY_BOARDINFO_LATE=y
# CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
CONFIG_SPL_STACK_R=y
CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x10000
+CONFIG_SPL_I2C_SUPPORT=y
CONFIG_TPL=y
CONFIG_TPL_GPIO_SUPPORT=y
CONFIG_CMD_BOOTZ=y
CONFIG_CMD_GPT=y
+CONFIG_CMD_I2C=y
CONFIG_CMD_MMC=y
CONFIG_CMD_USB=y
# CONFIG_CMD_SETEXPR is not set
CONFIG_CMD_TIME=y
CONFIG_SPL_OF_CONTROL=y
CONFIG_DEFAULT_DEVICE_TREE="rk3399-roc-pc"
-CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
+CONFIG_OF_SPL_REMOVE_PROPS="clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
CONFIG_ENV_IS_IN_MMC=y
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
+CONFIG_SPL_DM_SEQ_ALIAS=y
CONFIG_ROCKCHIP_GPIO=y
CONFIG_SYS_I2C_ROCKCHIP=y
CONFIG_MISC=y
--
2.7.4
next prev parent reply other threads:[~2020-05-22 18:03 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-22 18:03 [PATCH 0/5] Enable I2C in SPL, support runtime detection of add-on board sunil at amarulasolutions.com
2020-05-22 18:03 ` [PATCH 1/5] rockchip: spl: Move board_early_init_f after cpu timer sunil at amarulasolutions.com
2020-05-22 18:03 ` sunil at amarulasolutions.com [this message]
2020-05-22 18:03 ` [PATCH 3/5] roc-pc-rk3399: Add support for add-on board run-time detection sunil at amarulasolutions.com
2020-05-22 18:03 ` [PATCH 4/5] rk3399: drop ROC-RK3399-PC Mezzanine board sunil at amarulasolutions.com
2020-05-22 18:12 ` Jagan Teki
2020-05-22 18:03 ` [PATCH 5/5] roc-pc-rk3399: Enable PCIe/M.2, NVMe sunil at amarulasolutions.com
2020-05-22 18:13 ` Jagan Teki
2020-05-23 2:07 ` [PATCH 0/5] Enable I2C in SPL, support runtime detection of add-on board Chen-Yu Tsai
2020-05-29 9:54 ` Kever Yang
2020-05-29 11:06 ` Jagan Teki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1590170608-12229-3-git-send-email-sunil@amarulasolutions.com \
--to=sunil@amarulasolutions.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox