* [PATCH 1/3] ARM: tegra: jetson-tk1: adapt internal DT paths to changed upstream DT
@ 2017-03-19 16:31 Lucas Stach
2017-03-19 16:31 ` [PATCH 2/3] ARM: tegra124: use old XUSB binding Lucas Stach
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Lucas Stach @ 2017-03-19 16:31 UTC (permalink / raw)
To: barebox
The upstream DT changed the node names, so the barebox internal
references didn't work anymore.
Signed-off-by: Lucas Stach <dev@lynxeye.de>
---
arch/arm/dts/tegra124-jetson-tk1.dts | 2 +-
arch/arm/dts/tegra124.dtsi | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/arch/arm/dts/tegra124-jetson-tk1.dts b/arch/arm/dts/tegra124-jetson-tk1.dts
index 26f405c..e1974db 100644
--- a/arch/arm/dts/tegra124-jetson-tk1.dts
+++ b/arch/arm/dts/tegra124-jetson-tk1.dts
@@ -12,6 +12,6 @@
};
/* eMMC */
- emmc: sdhci@0,700b0600 {
+ emmc: sdhci@700b0600 {
};
};
diff --git a/arch/arm/dts/tegra124.dtsi b/arch/arm/dts/tegra124.dtsi
index 9276f2f..8af3a58 100644
--- a/arch/arm/dts/tegra124.dtsi
+++ b/arch/arm/dts/tegra124.dtsi
@@ -1,8 +1,8 @@
/ {
aliases {
- mmc0 = "/sdhci@0,700b0000/";
- mmc1 = "/sdhci@0,700b0200/";
- mmc2 = "/sdhci@0,700b0400/";
- mmc3 = "/sdhci@0,700b0600/";
+ mmc0 = "/sdhci@700b0000/";
+ mmc1 = "/sdhci@700b0200/";
+ mmc2 = "/sdhci@700b0400/";
+ mmc3 = "/sdhci@700b0600/";
};
};
--
2.9.3
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 2/3] ARM: tegra124: use old XUSB binding
2017-03-19 16:31 [PATCH 1/3] ARM: tegra: jetson-tk1: adapt internal DT paths to changed upstream DT Lucas Stach
@ 2017-03-19 16:31 ` Lucas Stach
2017-03-19 16:31 ` [PATCH 3/3] ARM: tegra: jetson-tk1: use phandle for stdout path Lucas Stach
2017-03-20 7:30 ` [PATCH 1/3] ARM: tegra: jetson-tk1: adapt internal DT paths to changed upstream DT Sascha Hauer
2 siblings, 0 replies; 4+ messages in thread
From: Lucas Stach @ 2017-03-19 16:31 UTC (permalink / raw)
To: barebox
The XUSB binding was changed upstream, to allow for more flexibility
needed to support USB3. The barebox driver has not been adapted to
this change. Add back the old DT properties in the Barebox internal
DT to keep the existing PCIe functionality working.
Signed-off-by: Lucas Stach <dev@lynxeye.de>
---
arch/arm/dts/tegra124.dtsi | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/arch/arm/dts/tegra124.dtsi b/arch/arm/dts/tegra124.dtsi
index 8af3a58..ce618db 100644
--- a/arch/arm/dts/tegra124.dtsi
+++ b/arch/arm/dts/tegra124.dtsi
@@ -1,3 +1,5 @@
+#include <dt-bindings/pinctrl/pinctrl-tegra-xusb.h>
+
/ {
aliases {
mmc0 = "/sdhci@700b0000/";
@@ -5,4 +7,36 @@
mmc2 = "/sdhci@700b0400/";
mmc3 = "/sdhci@700b0600/";
};
+
+ pcie-controller@01003000 {
+ phys = <&padctl TEGRA_XUSB_PADCTL_PCIE>;
+ phy-names = "pcie";
+ };
+
+ padctl@7009f000 {
+ pinctrl-0 = <&padctl_default>;
+ pinctrl-names = "default";
+ #phy-cells = <1>;
+
+ padctl_default: pinmux {
+ usb3 {
+ nvidia,lanes = "pcie-0", "pcie-1";
+ nvidia,function = "usb3";
+ nvidia,iddq = <0>;
+ };
+
+ pcie {
+ nvidia,lanes = "pcie-2", "pcie-3",
+ "pcie-4";
+ nvidia,function = "pcie";
+ nvidia,iddq = <0>;
+ };
+
+ sata {
+ nvidia,lanes = "sata-0";
+ nvidia,function = "sata";
+ nvidia,iddq = <0>;
+ };
+ };
+ };
};
--
2.9.3
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 3/3] ARM: tegra: jetson-tk1: use phandle for stdout path
2017-03-19 16:31 [PATCH 1/3] ARM: tegra: jetson-tk1: adapt internal DT paths to changed upstream DT Lucas Stach
2017-03-19 16:31 ` [PATCH 2/3] ARM: tegra124: use old XUSB binding Lucas Stach
@ 2017-03-19 16:31 ` Lucas Stach
2017-03-20 7:30 ` [PATCH 1/3] ARM: tegra: jetson-tk1: adapt internal DT paths to changed upstream DT Sascha Hauer
2 siblings, 0 replies; 4+ messages in thread
From: Lucas Stach @ 2017-03-19 16:31 UTC (permalink / raw)
To: barebox
Now that the UARTs have phandles in the upstream DT, we can
make use of them in Barebox.
Signed-off-by: Lucas Stach <dev@lynxeye.de>
---
arch/arm/dts/tegra124-jetson-tk1.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/dts/tegra124-jetson-tk1.dts b/arch/arm/dts/tegra124-jetson-tk1.dts
index e1974db..00ae58f 100644
--- a/arch/arm/dts/tegra124-jetson-tk1.dts
+++ b/arch/arm/dts/tegra124-jetson-tk1.dts
@@ -3,7 +3,7 @@
/ {
chosen {
- stdout-path = "/serial@0,70006300/";
+ stdout-path = &uartd;
environment@0 {
compatible = "barebox,environment";
--
2.9.3
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/3] ARM: tegra: jetson-tk1: adapt internal DT paths to changed upstream DT
2017-03-19 16:31 [PATCH 1/3] ARM: tegra: jetson-tk1: adapt internal DT paths to changed upstream DT Lucas Stach
2017-03-19 16:31 ` [PATCH 2/3] ARM: tegra124: use old XUSB binding Lucas Stach
2017-03-19 16:31 ` [PATCH 3/3] ARM: tegra: jetson-tk1: use phandle for stdout path Lucas Stach
@ 2017-03-20 7:30 ` Sascha Hauer
2 siblings, 0 replies; 4+ messages in thread
From: Sascha Hauer @ 2017-03-20 7:30 UTC (permalink / raw)
To: Lucas Stach; +Cc: barebox
On Sun, Mar 19, 2017 at 05:31:49PM +0100, Lucas Stach wrote:
> The upstream DT changed the node names, so the barebox internal
> references didn't work anymore.
>
> Signed-off-by: Lucas Stach <dev@lynxeye.de>
> ---
> arch/arm/dts/tegra124-jetson-tk1.dts | 2 +-
> arch/arm/dts/tegra124.dtsi | 8 ++++----
> 2 files changed, 5 insertions(+), 5 deletions(-)
Applied. thanks
Sascha
>
> diff --git a/arch/arm/dts/tegra124-jetson-tk1.dts b/arch/arm/dts/tegra124-jetson-tk1.dts
> index 26f405c..e1974db 100644
> --- a/arch/arm/dts/tegra124-jetson-tk1.dts
> +++ b/arch/arm/dts/tegra124-jetson-tk1.dts
> @@ -12,6 +12,6 @@
> };
>
> /* eMMC */
> - emmc: sdhci@0,700b0600 {
> + emmc: sdhci@700b0600 {
> };
> };
> diff --git a/arch/arm/dts/tegra124.dtsi b/arch/arm/dts/tegra124.dtsi
> index 9276f2f..8af3a58 100644
> --- a/arch/arm/dts/tegra124.dtsi
> +++ b/arch/arm/dts/tegra124.dtsi
> @@ -1,8 +1,8 @@
> / {
> aliases {
> - mmc0 = "/sdhci@0,700b0000/";
> - mmc1 = "/sdhci@0,700b0200/";
> - mmc2 = "/sdhci@0,700b0400/";
> - mmc3 = "/sdhci@0,700b0600/";
> + mmc0 = "/sdhci@700b0000/";
> + mmc1 = "/sdhci@700b0200/";
> + mmc2 = "/sdhci@700b0400/";
> + mmc3 = "/sdhci@700b0600/";
> };
> };
> --
> 2.9.3
>
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-03-20 7:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-19 16:31 [PATCH 1/3] ARM: tegra: jetson-tk1: adapt internal DT paths to changed upstream DT Lucas Stach
2017-03-19 16:31 ` [PATCH 2/3] ARM: tegra124: use old XUSB binding Lucas Stach
2017-03-19 16:31 ` [PATCH 3/3] ARM: tegra: jetson-tk1: use phandle for stdout path Lucas Stach
2017-03-20 7:30 ` [PATCH 1/3] ARM: tegra: jetson-tk1: adapt internal DT paths to changed upstream DT Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox