From patchwork Thu Mar 26 22:20:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "tomcwarren3959 at gmail.com" X-Patchwork-Id: 244351 List-Id: U-Boot discussion From: tomcwarren3959 at gmail.com (tomcwarren3959 at gmail.com) Date: Thu, 26 Mar 2020 15:20:43 -0700 Subject: [PATCH 1/3] ARM: tegra: p2771-0000: enable PIE relocation In-Reply-To: <1585261245-1740-1-git-send-email-tomcwarren3959@gmail.com> References: <1585261245-1740-1-git-send-email-tomcwarren3959@gmail.com> Message-ID: <1585261245-1740-2-git-send-email-tomcwarren3959@gmail.com> From: Vishruth U-Boot is configured to build as position independent executable. Enable relocation of RELA section required to work with different load addresses. Signed-off-by: Vishruth Signed-off-by: Tom Warren Tested-by: Peter Robinson --- configs/p2771-0000-000_defconfig | 1 + configs/p2771-0000-500_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/p2771-0000-000_defconfig b/configs/p2771-0000-000_defconfig index 06f12e2..e347a77 100644 --- a/configs/p2771-0000-000_defconfig +++ b/configs/p2771-0000-000_defconfig @@ -36,3 +36,4 @@ CONFIG_TEGRA186_POWER_DOMAIN=y CONFIG_SYS_NS16550=y CONFIG_USB=y CONFIG_DM_USB=y +CONFIG_POSITION_INDEPENDENT=y diff --git a/configs/p2771-0000-500_defconfig b/configs/p2771-0000-500_defconfig index 1a14a92..0803b26 100644 --- a/configs/p2771-0000-500_defconfig +++ b/configs/p2771-0000-500_defconfig @@ -36,3 +36,4 @@ CONFIG_TEGRA186_POWER_DOMAIN=y CONFIG_SYS_NS16550=y CONFIG_USB=y CONFIG_DM_USB=y +CONFIG_POSITION_INDEPENDENT=y From patchwork Thu Mar 26 22:20:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "tomcwarren3959 at gmail.com" X-Patchwork-Id: 244352 List-Id: U-Boot discussion From: tomcwarren3959 at gmail.com (tomcwarren3959 at gmail.com) Date: Thu, 26 Mar 2020 15:20:44 -0700 Subject: [PATCH 2/3] fdt: Fix 'system' command In-Reply-To: <1585261245-1740-1-git-send-email-tomcwarren3959@gmail.com> References: <1585261245-1740-1-git-send-email-tomcwarren3959@gmail.com> Message-ID: <1585261245-1740-3-git-send-email-tomcwarren3959@gmail.com> From: Tom Warren 'fdt systemsetup' wasn't working, due to the fact that the 'set' command was being parsed in do_fdt() by only testing for the leading 's' instead of "se", which kept the "sys" test further down from executing. Changed to test for "se" instead, now 'fdt systemsetup' works (to test the ft_system_setup proc w/o having to boot a kernel). Signed-off-by: Tom Warren --- cmd/fdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/fdt.c b/cmd/fdt.c index 25a6ed4..36cc726 100644 --- a/cmd/fdt.c +++ b/cmd/fdt.c @@ -286,7 +286,7 @@ static int do_fdt(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) /* * Set the value of a property in the working_fdt. */ - } else if (argv[1][0] == 's') { + } else if (strncmp(argv[1], "se", 2) == 0) { char *pathp; /* path */ char *prop; /* property */ int nodeoffset; /* node offset from libfdt */ From patchwork Thu Mar 26 22:20:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "tomcwarren3959 at gmail.com" X-Patchwork-Id: 244353 List-Id: U-Boot discussion From: tomcwarren3959 at gmail.com (tomcwarren3959 at gmail.com) Date: Thu, 26 Mar 2020 15:20:45 -0700 Subject: [PATCH 3/3] ARM: tegra: p2371-2180: add I2C nodes to DT In-Reply-To: <1585261245-1740-1-git-send-email-tomcwarren3959@gmail.com> References: <1585261245-1740-1-git-send-email-tomcwarren3959@gmail.com> Message-ID: <1585261245-1740-4-git-send-email-tomcwarren3959@gmail.com> From: Stephen Warren This adds to the DT the I2C controllers that connect to the board ID EEPROM, camera board EEPROM, etc. With this change, you can now probe all I2C devices on a TX1 board. Signed-off-by: Tom Warren --- arch/arm/dts/tegra210-p2371-2180.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/dts/tegra210-p2371-2180.dts b/arch/arm/dts/tegra210-p2371-2180.dts index c2f497c..d982b5f 100644 --- a/arch/arm/dts/tegra210-p2371-2180.dts +++ b/arch/arm/dts/tegra210-p2371-2180.dts @@ -12,6 +12,9 @@ aliases { i2c0 = "/i2c at 7000d000"; + i2c2 = "/i2c at 7000c400"; + i2c3 = "/i2c at 7000c500"; + i2c5 = "/i2c at 546c0c00"; mmc0 = "/sdhci at 700b0600"; mmc1 = "/sdhci at 700b0000"; usb0 = "/usb at 7d000000"; @@ -33,6 +36,11 @@ }; }; + i2c at 546c0c00 { + status = "okay"; + clock-frequency = <400000>; + }; + padctl at 7009f000 { pinctrl-0 = <&padctl_default>; pinctrl-names = "default"; @@ -85,6 +93,16 @@ non-removable; }; + i2c at 7000c400 { + status = "okay"; + clock-frequency = <400000>; + }; + + i2c at 7000c500 { + status = "okay"; + clock-frequency = <400000>; + }; + i2c at 7000d000 { status = "okay"; clock-frequency = <400000>;