* [PATCH 1/2] ARM: dts: imx6: phycore: make use of upstream dts
@ 2019-09-11 14:56 Marco Felsch
2019-09-11 14:56 ` [PATCH 2/2] ARM: dts: imx6: phycore: use spdx license identifier Marco Felsch
2019-09-20 14:12 ` [PATCH 1/2] ARM: dts: imx6: phycore: make use of upstream dts Marco Felsch
0 siblings, 2 replies; 6+ messages in thread
From: Marco Felsch @ 2019-09-11 14:56 UTC (permalink / raw)
To: barebox; +Cc: d.schultz, s.christ, j.remmet, s.riedmueller
Since a quite time we can use the upstream Phytec mira devicetree's and
the phycore dtsi to reduce code duplication and possible unwanted
divergences. I've converted all boards devicetree's to use the upstream
mira devicetree's except the:
- imx6dl-phytec-phycore-som-emmc.dts
- imx6dl-phytec-phycore-som-lc-emmc.dts
- imx6dl-phytec-phycore-som-lc-nand.dts
boards because those variants are not upstream available yet.
This commit also removes mixtures between barebox phycore SoM dtsi and
barebox board devicetree's within the imx6qdl-phytec-phycore-som.dtsi.
This SoM dtsi contained muxing options which are only valid in
combination with the mira baseboard.
Now all barebox dts(i) files contain only the necessary things or
divergences from upstream e.g. the compatible wasn't exactly the same.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
---
.../dts/imx6dl-phytec-phycore-som-emmc.dts | 12 +-
.../dts/imx6dl-phytec-phycore-som-lc-emmc.dts | 12 +-
.../dts/imx6dl-phytec-phycore-som-lc-nand.dts | 6 +-
.../dts/imx6dl-phytec-phycore-som-nand.dts | 31 +--
.../arm/dts/imx6q-phytec-phycore-som-emmc.dts | 39 +--
.../arm/dts/imx6q-phytec-phycore-som-nand.dts | 39 +--
arch/arm/dts/imx6qdl-phytec-phycore-som.dtsi | 261 ++----------------
.../dts/imx6qp-phytec-phycore-som-nand.dts | 38 +--
8 files changed, 49 insertions(+), 389 deletions(-)
diff --git a/arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts b/arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts
index 21cbb5f944..d9a40599c7 100644
--- a/arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts
+++ b/arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts
@@ -13,6 +13,8 @@
/dts-v1/;
#include <arm/imx6dl.dtsi>
+#include <arm/imx6qdl-phytec-phycore-som.dtsi>
+#include <arm/imx6qdl-phytec-mira.dtsi>
#include "imx6dl.dtsi"
#include "imx6qdl-phytec-phycore-som.dtsi"
#include "imx6qdl-phytec-state.dtsi"
@@ -22,14 +24,6 @@
compatible = "phytec,imx6dl-pcm058-emmc", "fsl,imx6dl";
};
-&ecspi1 {
- status = "okay";
-};
-
-&eeprom {
- status = "okay";
-};
-
ðphy {
max-speed = <1000>;
};
@@ -38,7 +32,7 @@
status = "okay";
};
-&flash {
+&m25p80 {
status = "okay";
};
diff --git a/arch/arm/dts/imx6dl-phytec-phycore-som-lc-emmc.dts b/arch/arm/dts/imx6dl-phytec-phycore-som-lc-emmc.dts
index b8efb95ee0..516df5ff5a 100644
--- a/arch/arm/dts/imx6dl-phytec-phycore-som-lc-emmc.dts
+++ b/arch/arm/dts/imx6dl-phytec-phycore-som-lc-emmc.dts
@@ -7,6 +7,8 @@
/dts-v1/;
#include <arm/imx6dl.dtsi>
+#include <arm/imx6qdl-phytec-phycore-som.dtsi>
+#include <arm/imx6qdl-phytec-mira.dtsi>
#include "imx6dl.dtsi"
#include "imx6qdl-phytec-phycore-som.dtsi"
#include "imx6qdl-phytec-state.dtsi"
@@ -16,14 +18,6 @@
compatible = "phytec,imx6dl-pcm058-emmc", "fsl,imx6dl";
};
-&ecspi1 {
- status = "okay";
-};
-
-&eeprom {
- status = "okay";
-};
-
ðphy {
max-speed = <100>;
};
@@ -32,7 +26,7 @@
status = "okay";
};
-&flash {
+&m25p80 {
status = "okay";
};
diff --git a/arch/arm/dts/imx6dl-phytec-phycore-som-lc-nand.dts b/arch/arm/dts/imx6dl-phytec-phycore-som-lc-nand.dts
index 4d38d1698a..ab13d6b77b 100644
--- a/arch/arm/dts/imx6dl-phytec-phycore-som-lc-nand.dts
+++ b/arch/arm/dts/imx6dl-phytec-phycore-som-lc-nand.dts
@@ -7,6 +7,8 @@
/dts-v1/;
#include <arm/imx6dl.dtsi>
+#include <arm/imx6qdl-phytec-phycore-som.dtsi>
+#include <arm/imx6qdl-phytec-mira.dtsi>
#include "imx6dl.dtsi"
#include "imx6qdl-phytec-phycore-som.dtsi"
#include "imx6qdl-phytec-state.dtsi"
@@ -16,10 +18,6 @@
compatible = "phytec,imx6dl-pcm058-nand", "fsl,imx6dl";
};
-&eeprom {
- status = "okay";
-};
-
ðphy {
max-speed = <100>;
};
diff --git a/arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts b/arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts
index 3ad3723d28..db4d930b29 100644
--- a/arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts
+++ b/arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts
@@ -9,45 +9,22 @@
* http://www.gnu.org/copyleft/gpl.html
*/
-/dts-v1/;
-
-#include <arm/imx6dl.dtsi>
+#include <arm/imx6dl-phytec-mira-rdk-nand.dts>
#include "imx6dl.dtsi"
#include "imx6qdl-phytec-phycore-som.dtsi"
#include "imx6qdl-phytec-state.dtsi"
/ {
- model = "Phytec phyCORE-i.MX6 Duallite/SOLO with NAND";
- compatible = "phytec,imx6dl-pcm058-nand", "fsl,imx6dl";
-};
-
-&eeprom {
- status = "okay";
+ compatible = "phytec,imx6dl-pbac06-nand", "phytec,imx6dl-pbac06",
+ "phytec,imx6dl-pcm058-nand", "phytec,imx6qdl-pcm058",
+ "fsl,imx6dl";
};
ðphy {
max-speed = <1000>;
};
-&fec {
- status = "okay";
-};
-
-&gpmi {
- status = "okay";
-};
-
-&usbh1 {
- status = "okay";
-};
-
-&usbotg {
- status = "okay";
-};
-
&usdhc1 {
- status = "okay";
-
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
diff --git a/arch/arm/dts/imx6q-phytec-phycore-som-emmc.dts b/arch/arm/dts/imx6q-phytec-phycore-som-emmc.dts
index 7a86d5b94d..55dc1f91f7 100644
--- a/arch/arm/dts/imx6q-phytec-phycore-som-emmc.dts
+++ b/arch/arm/dts/imx6q-phytec-phycore-som-emmc.dts
@@ -9,49 +9,22 @@
* http://www.gnu.org/copyleft/gpl.html
*/
-/dts-v1/;
-
-#include <arm/imx6q.dtsi>
+#include <arm/imx6q-phytec-mira-rdk-emmc.dts>
#include "imx6q.dtsi"
#include "imx6qdl-phytec-phycore-som.dtsi"
#include "imx6qdl-phytec-state.dtsi"
/ {
- model = "Phytec phyCORE-i.MX6 Quad with eMMC";
- compatible = "phytec,imx6q-pcm058-emmc", "fsl,imx6q";
-};
-
-&ecspi1 {
- status = "okay";
-};
-
-&eeprom {
- status = "okay";
+ compatible = "phytec,imx6q-pbac06-emmc", "phytec,imx6q-pbac06",
+ "phytec,imx6q-pcm058-emmc", "phytec,imx6qdl-pcm058",
+ "fsl,imx6q";
};
ðphy {
max-speed = <1000>;
};
-&fec {
- status = "okay";
-};
-
-&flash {
- status = "okay";
-};
-
-&usbh1 {
- status = "okay";
-};
-
-&usbotg {
- status = "okay";
-};
-
&usdhc1 {
- status = "okay";
-
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
@@ -68,7 +41,3 @@
};
};
};
-
-&usdhc4 {
- status = "okay";
-};
diff --git a/arch/arm/dts/imx6q-phytec-phycore-som-nand.dts b/arch/arm/dts/imx6q-phytec-phycore-som-nand.dts
index 96d1de224c..56812c2473 100644
--- a/arch/arm/dts/imx6q-phytec-phycore-som-nand.dts
+++ b/arch/arm/dts/imx6q-phytec-phycore-som-nand.dts
@@ -9,54 +9,23 @@
* http://www.gnu.org/copyleft/gpl.html
*/
-/dts-v1/;
-
-#include <arm/imx6q.dtsi>
+#include <arm/imx6q-phytec-mira-rdk-nand.dts>
#include "imx6q.dtsi"
#include "imx6qdl-phytec-phycore-som.dtsi"
#include "imx6qdl-phytec-state.dtsi"
/ {
- model = "Phytec phyCORE-i.MX6 Quad with NAND";
- compatible = "phytec,imx6q-pcm058-nand", "fsl,imx6q";
-
-};
-
-&ecspi1 {
- status = "okay";
-};
+ compatible = "phytec,imx6q-pbac06-nand", "phytec,imx6q-pbac06",
+ "phytec,imx6q-pcm058-nand", "phytec,imx6qdl-pcm058",
+ "fsl,imx6q";
-&eeprom {
- status = "okay";
};
ðphy {
max-speed = <1000>;
};
-&fec {
- status = "okay";
-};
-
-&flash {
- status = "okay";
-};
-
-&gpmi {
- status = "okay";
-};
-
-&usbh1 {
- status = "okay";
-};
-
-&usbotg {
- status = "okay";
-};
-
&usdhc1 {
- status = "okay";
-
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
diff --git a/arch/arm/dts/imx6qdl-phytec-phycore-som.dtsi b/arch/arm/dts/imx6qdl-phytec-phycore-som.dtsi
index 1d39368165..e17304c42b 100644
--- a/arch/arm/dts/imx6qdl-phytec-phycore-som.dtsi
+++ b/arch/arm/dts/imx6qdl-phytec-phycore-som.dtsi
@@ -13,8 +13,6 @@
/ {
chosen {
- stdout-path = &uart2;
-
environment-sd1 {
compatible = "barebox,environment";
device-path = &usdhc1, "partname:barebox-environment";
@@ -35,102 +33,51 @@
environment-spinor {
compatible = "barebox,environment";
- device-path = &flash, "partname:barebox-environment";
+ device-path = &m25p80, "partname:barebox-environment";
status = "disabled";
};
};
- reg_usbh1_vbus: regulator-usbh1 {
- compatible = "regulator-fixed";
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_usbh1_vbus>;
- regulator-name = "usbh1_vbus";
- regulator-min-microvolt = <5000000>;
- regulator-max-microvolt = <5000000>;
- gpio = <&gpio2 18 GPIO_ACTIVE_HIGH>;
- enable-active-high;
- };
-
- reg_usbotg_vbus: regulator-usbotg {
- compatible = "regulator-fixed";
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_usbotg_vbus>;
- regulator-name = "usbotg_vbus";
- regulator-min-microvolt = <5000000>;
- regulator-max-microvolt = <5000000>;
- gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>;
- enable-active-high;
+ /* Let the bootloader set the real size */
+ memory@10000000 {
+ device_type = "memory";
+ reg = <0x0 0x0>;
};
};
-&ecspi1 {
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_ecspi1>;
- fsl,spi-num-chipselects = <1>;
- cs-gpios = <&gpio3 19 0>;
- status = "disabled";
-
- flash: flash@0 {
- compatible = "jedec,spi-nor";
- spi-max-frequency = <20000000>;
- reg = <0>;
- status = "disabled";
-
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
+&m25p80 {
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
- partition@0 {
- label = "barebox";
- reg = <0x0 0x100000>;
- };
+ partition@0 {
+ label = "barebox";
+ reg = <0x0 0x100000>;
+ };
- partition@100000 {
- label = "barebox-environment";
- reg = <0x100000 0x20000>;
- };
+ partition@100000 {
+ label = "barebox-environment";
+ reg = <0x100000 0x20000>;
+ };
- partition@120000 {
- label = "oftree";
- reg = <0x120000 0x20000>;
- };
+ partition@120000 {
+ label = "oftree";
+ reg = <0x120000 0x20000>;
+ };
- partition@140000 {
- label = "kernel";
- reg = <0x140000 0x0>;
- };
+ partition@140000 {
+ label = "kernel";
+ reg = <0x140000 0x0>;
};
};
};
&fec {
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_enet>;
- phy-handle = <ðphy>;
- phy-mode = "rgmii";
- phy-reset-gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
phy-reset-duration = <10>; /* in msecs */
- status = "disabled";
-
- mdio {
- #address-cells = <1>;
- #size-cells = <0>;
-
- ethphy: ethernet-phy@3 {
- reg = <3>;
- txc-skew-ps = <1680>;
- rxc-skew-ps = <1860>;
- };
- };
};
&gpmi {
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_gpmi_nand>;
- nand-on-flash-bbt;
- status = "disabled";
-
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
@@ -154,11 +101,6 @@
};
&i2c3 {
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_i2c3>;
- clock-frequency = <400000>;
- status = "okay";
-
eeprom: eeprom@50 {
status = "disabled";
compatible = "24c32";
@@ -166,170 +108,17 @@
};
pmic@58 {
- compatible = "dlg,da9062";
- reg = <0x58>;
- status = "okay";
-
watchdog-priority = <500>;
restart-priority = <500>;
reset-source-priority = <500>;
};
};
-&iomuxc {
- pinctrl_ecspi1: ecspi1grp {
- fsl,pins = <
- MX6QDL_PAD_EIM_D16__ECSPI1_SCLK 0x100b1
- MX6QDL_PAD_EIM_D17__ECSPI1_MISO 0x100b1
- MX6QDL_PAD_EIM_D18__ECSPI1_MOSI 0x100b1
- MX6QDL_PAD_EIM_D19__GPIO3_IO19 0x80000000
- >;
- };
-
- pinctrl_enet: enetgrp {
- fsl,pins = <
- MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x1b0b0
- MX6QDL_PAD_ENET_MDC__ENET_MDC 0x1b0b0
- MX6QDL_PAD_RGMII_TXC__RGMII_TXC 0x1b0b0
- MX6QDL_PAD_RGMII_TD0__RGMII_TD0 0x1b0b0
- MX6QDL_PAD_RGMII_TD1__RGMII_TD1 0x1b0b0
- MX6QDL_PAD_RGMII_TD2__RGMII_TD2 0x1b0b0
- MX6QDL_PAD_RGMII_TD3__RGMII_TD3 0x1b0b0
- MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL 0x1b0b0
- MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK 0x1b0b0
- MX6QDL_PAD_RGMII_RXC__RGMII_RXC 0x1b0b0
- MX6QDL_PAD_RGMII_RD0__RGMII_RD0 0x1b0b0
- MX6QDL_PAD_RGMII_RD1__RGMII_RD1 0x1b0b0
- MX6QDL_PAD_RGMII_RD2__RGMII_RD2 0x1b0b0
- MX6QDL_PAD_RGMII_RD3__RGMII_RD3 0x1b0b0
- MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL 0x1b0b0
- MX6QDL_PAD_ENET_TX_EN__ENET_TX_EN 0x1b0b0
- MX6QDL_PAD_SD2_DAT1__GPIO1_IO14 0x80000000
- >;
- };
-
- pinctrl_gpmi_nand: gpmigrp {
- fsl,pins = <
- MX6QDL_PAD_NANDF_CLE__NAND_CLE 0xb0b1
- MX6QDL_PAD_NANDF_ALE__NAND_ALE 0xb0b1
- MX6QDL_PAD_NANDF_WP_B__NAND_WP_B 0xb0b1
- MX6QDL_PAD_NANDF_RB0__NAND_READY_B 0xb000
- MX6QDL_PAD_NANDF_CS0__NAND_CE0_B 0xb0b1
- MX6QDL_PAD_NANDF_CS1__NAND_CE1_B 0xb0b1
- MX6QDL_PAD_NANDF_CS2__NAND_CE2_B 0xb0b1
- MX6QDL_PAD_NANDF_CS3__NAND_CE3_B 0xb0b1
- MX6QDL_PAD_SD4_CMD__NAND_RE_B 0xb0b1
- MX6QDL_PAD_SD4_CLK__NAND_WE_B 0xb0b1
- MX6QDL_PAD_NANDF_D0__NAND_DATA00 0xb0b1
- MX6QDL_PAD_NANDF_D1__NAND_DATA01 0xb0b1
- MX6QDL_PAD_NANDF_D2__NAND_DATA02 0xb0b1
- MX6QDL_PAD_NANDF_D3__NAND_DATA03 0xb0b1
- MX6QDL_PAD_NANDF_D4__NAND_DATA04 0xb0b1
- MX6QDL_PAD_NANDF_D5__NAND_DATA05 0xb0b1
- MX6QDL_PAD_NANDF_D6__NAND_DATA06 0xb0b1
- MX6QDL_PAD_NANDF_D7__NAND_DATA07 0xb0b1
- MX6QDL_PAD_SD4_DAT0__NAND_DQS 0x00b1
- >;
- };
-
- pinctrl_i2c3: i2c3grp {
- fsl,pins = <
- MX6QDL_PAD_GPIO_6__I2C3_SDA 0x4001b8b1
- MX6QDL_PAD_GPIO_5__I2C3_SCL 0x4001b8b1
- >;
- };
-
- pinctrl_uart2: uart2grp {
- fsl,pins = <
- MX6QDL_PAD_EIM_D26__UART2_TX_DATA 0x1b0b1
- MX6QDL_PAD_EIM_D27__UART2_RX_DATA 0x1b0b1
- >;
- };
-
- pinctrl_usbh1_vbus: usbh1vbusgrp {
- fsl,pins = <
- MX6QDL_PAD_EIM_A20__GPIO2_IO18 0xb0b1
- >;
- };
-
- pinctrl_usbotg: usbotggrp {
- fsl,pins = <
- MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059
- >;
- };
-
- pinctrl_usbotg_vbus: usbotgvbusgrp {
- fsl,pins = <
- MX6QDL_PAD_EIM_A19__GPIO2_IO19 0xb0b1
- >;
- };
-
- pinctrl_usdhc1: usdhc1grp {
- fsl,pins = <
- MX6QDL_PAD_SD1_CMD__SD1_CMD 0x170f9
- MX6QDL_PAD_SD1_CLK__SD1_CLK 0x100f9
- MX6QDL_PAD_SD1_DAT0__SD1_DATA0 0x170f9
- MX6QDL_PAD_SD1_DAT1__SD1_DATA1 0x170f9
- MX6QDL_PAD_SD1_DAT2__SD1_DATA2 0x170f9
- MX6QDL_PAD_SD1_DAT3__SD1_DATA3 0x170f9
- MX6QDL_PAD_EIM_BCLK__GPIO6_IO31 0x80000000 /* CD */
- >;
- };
-
- pinctrl_usdhc4: usdhc4grp {
- fsl,pins = <
- MX6QDL_PAD_SD4_CMD__SD4_CMD 0x17059
- MX6QDL_PAD_SD4_CLK__SD4_CLK 0x10059
- MX6QDL_PAD_SD4_DAT0__SD4_DATA0 0x17059
- MX6QDL_PAD_SD4_DAT1__SD4_DATA1 0x17059
- MX6QDL_PAD_SD4_DAT2__SD4_DATA2 0x17059
- MX6QDL_PAD_SD4_DAT3__SD4_DATA3 0x17059
- MX6QDL_PAD_SD4_DAT4__SD4_DATA4 0x17059
- MX6QDL_PAD_SD4_DAT5__SD4_DATA5 0x17059
- MX6QDL_PAD_SD4_DAT6__SD4_DATA6 0x17059
- MX6QDL_PAD_SD4_DAT7__SD4_DATA7 0x17059
- >;
- };
-};
-
&ocotp {
barebox,provide-mac-address = <&fec 0x620>;
};
-&uart2 {
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_uart2>;
- status = "okay";
-};
-
-&usbh1 {
- vbus-supply = <®_usbh1_vbus>;
- disable-over-current;
- status = "disabled";
-};
-
-&usbotg {
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_usbotg>;
- vbus-supply = <®_usbotg_vbus>;
- disable-over-current;
- status = "disabled";
-};
-
-&usdhc1 {
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_usdhc1>;
- cd-gpios = <&gpio6 31 0>;
- status = "disabled";
-};
-
&usdhc4 {
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_usdhc4>;
- bus-width = <8>;
- non-removable;
- status = "disabled";
-
#address-cells = <1>;
#size-cells = <1>;
diff --git a/arch/arm/dts/imx6qp-phytec-phycore-som-nand.dts b/arch/arm/dts/imx6qp-phytec-phycore-som-nand.dts
index 437457ce75..06def935b0 100644
--- a/arch/arm/dts/imx6qp-phytec-phycore-som-nand.dts
+++ b/arch/arm/dts/imx6qp-phytec-phycore-som-nand.dts
@@ -10,50 +10,20 @@
* http://www.gnu.org/copyleft/gpl.html
*/
-/dts-v1/;
-#include <arm/imx6qp.dtsi>
+#include <arm/imx6qp-phytec-mira-rdk-nand.dts>
#include "imx6qdl-phytec-phycore-som.dtsi"
/ {
- model = "Phytec phyCORE-i.MX6 Quad with NAND";
- compatible = "phytec,imx6qp-pcm058-nand", "fsl,imx6qp";
-};
-
-&ecspi1 {
- status = "okay";
-};
-
-&eeprom {
- status = "okay";
+ compatible = "phytec,imx6qp-pbac06-nand", "phytec,imx6qp-pbac06",
+ "phytec,imx6qp-pcm058-nand", "phytec,imx6qdl-pcm058",
+ "fsl,imx6qp";
};
ðphy {
max-speed = <1000>;
};
-&fec {
- status = "okay";
-};
-
-&flash {
- status = "okay";
-};
-
-&gpmi {
- status = "okay";
-};
-
-&usbh1 {
- status = "okay";
-};
-
-&usbotg {
- status = "okay";
-};
-
&usdhc1 {
- status = "okay";
-
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
--
2.20.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 2/2] ARM: dts: imx6: phycore: use spdx license identifier
2019-09-11 14:56 [PATCH 1/2] ARM: dts: imx6: phycore: make use of upstream dts Marco Felsch
@ 2019-09-11 14:56 ` Marco Felsch
2019-09-20 14:12 ` [PATCH 1/2] ARM: dts: imx6: phycore: make use of upstream dts Marco Felsch
1 sibling, 0 replies; 6+ messages in thread
From: Marco Felsch @ 2019-09-11 14:56 UTC (permalink / raw)
To: barebox; +Cc: d.schultz, s.christ, j.remmet, s.riedmueller
Use Identifier to reduce lines and make it parsable for license clearing
tools.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
---
arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts | 8 +-------
arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts | 8 +-------
arch/arm/dts/imx6q-phytec-phycore-som-emmc.dts | 8 +-------
arch/arm/dts/imx6q-phytec-phycore-som-nand.dts | 8 +-------
arch/arm/dts/imx6qp-phytec-phycore-som-nand.dts | 8 +-------
5 files changed, 5 insertions(+), 35 deletions(-)
diff --git a/arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts b/arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts
index d9a40599c7..fd4fc35dac 100644
--- a/arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts
+++ b/arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts
@@ -1,13 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright (C) 2015 PHYTEC Messtechnik GmbH,
* Author: Stefan Christ <s.christ@phytec.de>
- *
- * The code contained herein is licensed under the GNU General Public
- * License. You may obtain a copy of the GNU General Public License
- * Version 2 or later at the following locations:
- *
- * http://www.opensource.org/licenses/gpl-license.html
- * http://www.gnu.org/copyleft/gpl.html
*/
/dts-v1/;
diff --git a/arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts b/arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts
index db4d930b29..5e9e491c54 100644
--- a/arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts
+++ b/arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts
@@ -1,12 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright 2015 Christian Hemp, Phytec Messtechnik GmbH
- *
- * The code contained herein is licensed under the GNU General Public
- * License. You may obtain a copy of the GNU General Public License
- * Version 2 or later at the following locations:
- *
- * http://www.opensource.org/licenses/gpl-license.html
- * http://www.gnu.org/copyleft/gpl.html
*/
#include <arm/imx6dl-phytec-mira-rdk-nand.dts>
diff --git a/arch/arm/dts/imx6q-phytec-phycore-som-emmc.dts b/arch/arm/dts/imx6q-phytec-phycore-som-emmc.dts
index 55dc1f91f7..4af8e2543f 100644
--- a/arch/arm/dts/imx6q-phytec-phycore-som-emmc.dts
+++ b/arch/arm/dts/imx6q-phytec-phycore-som-emmc.dts
@@ -1,12 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright 2015 Christian Hemp, Phytec Messtechnik GmbH
- *
- * The code contained herein is licensed under the GNU General Public
- * License. You may obtain a copy of the GNU General Public License
- * Version 2 or later at the following locations:
- *
- * http://www.opensource.org/licenses/gpl-license.html
- * http://www.gnu.org/copyleft/gpl.html
*/
#include <arm/imx6q-phytec-mira-rdk-emmc.dts>
diff --git a/arch/arm/dts/imx6q-phytec-phycore-som-nand.dts b/arch/arm/dts/imx6q-phytec-phycore-som-nand.dts
index 56812c2473..f42613a52e 100644
--- a/arch/arm/dts/imx6q-phytec-phycore-som-nand.dts
+++ b/arch/arm/dts/imx6q-phytec-phycore-som-nand.dts
@@ -1,12 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright 2015 Christian Hemp, Phytec Messtechnik GmbH
- *
- * The code contained herein is licensed under the GNU General Public
- * License. You may obtain a copy of the GNU General Public License
- * Version 2 or later at the following locations:
- *
- * http://www.opensource.org/licenses/gpl-license.html
- * http://www.gnu.org/copyleft/gpl.html
*/
#include <arm/imx6q-phytec-mira-rdk-nand.dts>
diff --git a/arch/arm/dts/imx6qp-phytec-phycore-som-nand.dts b/arch/arm/dts/imx6qp-phytec-phycore-som-nand.dts
index 06def935b0..5626d6109b 100644
--- a/arch/arm/dts/imx6qp-phytec-phycore-som-nand.dts
+++ b/arch/arm/dts/imx6qp-phytec-phycore-som-nand.dts
@@ -1,13 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright (C) 2016 Phytec Messtechnik GmbH
* Author: Christian Hemp <c.hemp@phytec.de>
- *
- * The code contained herein is licensed under the GNU General Public
- * License. You may obtain a copy of the GNU General Public License
- * Version 2 or later at the following locations:
- *
- * http://www.opensource.org/licenses/gpl-license.html
- * http://www.gnu.org/copyleft/gpl.html
*/
#include <arm/imx6qp-phytec-mira-rdk-nand.dts>
--
2.20.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] ARM: dts: imx6: phycore: make use of upstream dts
2019-09-11 14:56 [PATCH 1/2] ARM: dts: imx6: phycore: make use of upstream dts Marco Felsch
2019-09-11 14:56 ` [PATCH 2/2] ARM: dts: imx6: phycore: use spdx license identifier Marco Felsch
@ 2019-09-20 14:12 ` Marco Felsch
2019-09-23 8:31 ` Stefan Riedmüller
1 sibling, 1 reply; 6+ messages in thread
From: Marco Felsch @ 2019-09-20 14:12 UTC (permalink / raw)
To: barebox; +Cc: s.christ, d.schultz, s.riedmueller, j.remmet
Hi,
@phytec
Please can you test those changes because I don't have all these boards.
Regards,
Marco
On 19-09-11 16:56, Marco Felsch wrote:
> Since a quite time we can use the upstream Phytec mira devicetree's and
> the phycore dtsi to reduce code duplication and possible unwanted
> divergences. I've converted all boards devicetree's to use the upstream
> mira devicetree's except the:
> - imx6dl-phytec-phycore-som-emmc.dts
> - imx6dl-phytec-phycore-som-lc-emmc.dts
> - imx6dl-phytec-phycore-som-lc-nand.dts
> boards because those variants are not upstream available yet.
>
> This commit also removes mixtures between barebox phycore SoM dtsi and
> barebox board devicetree's within the imx6qdl-phytec-phycore-som.dtsi.
> This SoM dtsi contained muxing options which are only valid in
> combination with the mira baseboard.
>
> Now all barebox dts(i) files contain only the necessary things or
> divergences from upstream e.g. the compatible wasn't exactly the same.
>
> Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
> ---
> .../dts/imx6dl-phytec-phycore-som-emmc.dts | 12 +-
> .../dts/imx6dl-phytec-phycore-som-lc-emmc.dts | 12 +-
> .../dts/imx6dl-phytec-phycore-som-lc-nand.dts | 6 +-
> .../dts/imx6dl-phytec-phycore-som-nand.dts | 31 +--
> .../arm/dts/imx6q-phytec-phycore-som-emmc.dts | 39 +--
> .../arm/dts/imx6q-phytec-phycore-som-nand.dts | 39 +--
> arch/arm/dts/imx6qdl-phytec-phycore-som.dtsi | 261 ++----------------
> .../dts/imx6qp-phytec-phycore-som-nand.dts | 38 +--
> 8 files changed, 49 insertions(+), 389 deletions(-)
>
> diff --git a/arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts b/arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts
> index 21cbb5f944..d9a40599c7 100644
> --- a/arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts
> +++ b/arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts
> @@ -13,6 +13,8 @@
> /dts-v1/;
>
> #include <arm/imx6dl.dtsi>
> +#include <arm/imx6qdl-phytec-phycore-som.dtsi>
> +#include <arm/imx6qdl-phytec-mira.dtsi>
> #include "imx6dl.dtsi"
> #include "imx6qdl-phytec-phycore-som.dtsi"
> #include "imx6qdl-phytec-state.dtsi"
> @@ -22,14 +24,6 @@
> compatible = "phytec,imx6dl-pcm058-emmc", "fsl,imx6dl";
> };
>
> -&ecspi1 {
> - status = "okay";
> -};
> -
> -&eeprom {
> - status = "okay";
> -};
> -
> ðphy {
> max-speed = <1000>;
> };
> @@ -38,7 +32,7 @@
> status = "okay";
> };
>
> -&flash {
> +&m25p80 {
> status = "okay";
> };
>
> diff --git a/arch/arm/dts/imx6dl-phytec-phycore-som-lc-emmc.dts b/arch/arm/dts/imx6dl-phytec-phycore-som-lc-emmc.dts
> index b8efb95ee0..516df5ff5a 100644
> --- a/arch/arm/dts/imx6dl-phytec-phycore-som-lc-emmc.dts
> +++ b/arch/arm/dts/imx6dl-phytec-phycore-som-lc-emmc.dts
> @@ -7,6 +7,8 @@
> /dts-v1/;
>
> #include <arm/imx6dl.dtsi>
> +#include <arm/imx6qdl-phytec-phycore-som.dtsi>
> +#include <arm/imx6qdl-phytec-mira.dtsi>
> #include "imx6dl.dtsi"
> #include "imx6qdl-phytec-phycore-som.dtsi"
> #include "imx6qdl-phytec-state.dtsi"
> @@ -16,14 +18,6 @@
> compatible = "phytec,imx6dl-pcm058-emmc", "fsl,imx6dl";
> };
>
> -&ecspi1 {
> - status = "okay";
> -};
> -
> -&eeprom {
> - status = "okay";
> -};
> -
> ðphy {
> max-speed = <100>;
> };
> @@ -32,7 +26,7 @@
> status = "okay";
> };
>
> -&flash {
> +&m25p80 {
> status = "okay";
> };
>
> diff --git a/arch/arm/dts/imx6dl-phytec-phycore-som-lc-nand.dts b/arch/arm/dts/imx6dl-phytec-phycore-som-lc-nand.dts
> index 4d38d1698a..ab13d6b77b 100644
> --- a/arch/arm/dts/imx6dl-phytec-phycore-som-lc-nand.dts
> +++ b/arch/arm/dts/imx6dl-phytec-phycore-som-lc-nand.dts
> @@ -7,6 +7,8 @@
> /dts-v1/;
>
> #include <arm/imx6dl.dtsi>
> +#include <arm/imx6qdl-phytec-phycore-som.dtsi>
> +#include <arm/imx6qdl-phytec-mira.dtsi>
> #include "imx6dl.dtsi"
> #include "imx6qdl-phytec-phycore-som.dtsi"
> #include "imx6qdl-phytec-state.dtsi"
> @@ -16,10 +18,6 @@
> compatible = "phytec,imx6dl-pcm058-nand", "fsl,imx6dl";
> };
>
> -&eeprom {
> - status = "okay";
> -};
> -
> ðphy {
> max-speed = <100>;
> };
> diff --git a/arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts b/arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts
> index 3ad3723d28..db4d930b29 100644
> --- a/arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts
> +++ b/arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts
> @@ -9,45 +9,22 @@
> * http://www.gnu.org/copyleft/gpl.html
> */
>
> -/dts-v1/;
> -
> -#include <arm/imx6dl.dtsi>
> +#include <arm/imx6dl-phytec-mira-rdk-nand.dts>
> #include "imx6dl.dtsi"
> #include "imx6qdl-phytec-phycore-som.dtsi"
> #include "imx6qdl-phytec-state.dtsi"
>
> / {
> - model = "Phytec phyCORE-i.MX6 Duallite/SOLO with NAND";
> - compatible = "phytec,imx6dl-pcm058-nand", "fsl,imx6dl";
> -};
> -
> -&eeprom {
> - status = "okay";
> + compatible = "phytec,imx6dl-pbac06-nand", "phytec,imx6dl-pbac06",
> + "phytec,imx6dl-pcm058-nand", "phytec,imx6qdl-pcm058",
> + "fsl,imx6dl";
> };
>
> ðphy {
> max-speed = <1000>;
> };
>
> -&fec {
> - status = "okay";
> -};
> -
> -&gpmi {
> - status = "okay";
> -};
> -
> -&usbh1 {
> - status = "okay";
> -};
> -
> -&usbotg {
> - status = "okay";
> -};
> -
> &usdhc1 {
> - status = "okay";
> -
> partitions {
> compatible = "fixed-partitions";
> #address-cells = <1>;
> diff --git a/arch/arm/dts/imx6q-phytec-phycore-som-emmc.dts b/arch/arm/dts/imx6q-phytec-phycore-som-emmc.dts
> index 7a86d5b94d..55dc1f91f7 100644
> --- a/arch/arm/dts/imx6q-phytec-phycore-som-emmc.dts
> +++ b/arch/arm/dts/imx6q-phytec-phycore-som-emmc.dts
> @@ -9,49 +9,22 @@
> * http://www.gnu.org/copyleft/gpl.html
> */
>
> -/dts-v1/;
> -
> -#include <arm/imx6q.dtsi>
> +#include <arm/imx6q-phytec-mira-rdk-emmc.dts>
> #include "imx6q.dtsi"
> #include "imx6qdl-phytec-phycore-som.dtsi"
> #include "imx6qdl-phytec-state.dtsi"
>
> / {
> - model = "Phytec phyCORE-i.MX6 Quad with eMMC";
> - compatible = "phytec,imx6q-pcm058-emmc", "fsl,imx6q";
> -};
> -
> -&ecspi1 {
> - status = "okay";
> -};
> -
> -&eeprom {
> - status = "okay";
> + compatible = "phytec,imx6q-pbac06-emmc", "phytec,imx6q-pbac06",
> + "phytec,imx6q-pcm058-emmc", "phytec,imx6qdl-pcm058",
> + "fsl,imx6q";
> };
>
> ðphy {
> max-speed = <1000>;
> };
>
> -&fec {
> - status = "okay";
> -};
> -
> -&flash {
> - status = "okay";
> -};
> -
> -&usbh1 {
> - status = "okay";
> -};
> -
> -&usbotg {
> - status = "okay";
> -};
> -
> &usdhc1 {
> - status = "okay";
> -
> partitions {
> compatible = "fixed-partitions";
> #address-cells = <1>;
> @@ -68,7 +41,3 @@
> };
> };
> };
> -
> -&usdhc4 {
> - status = "okay";
> -};
> diff --git a/arch/arm/dts/imx6q-phytec-phycore-som-nand.dts b/arch/arm/dts/imx6q-phytec-phycore-som-nand.dts
> index 96d1de224c..56812c2473 100644
> --- a/arch/arm/dts/imx6q-phytec-phycore-som-nand.dts
> +++ b/arch/arm/dts/imx6q-phytec-phycore-som-nand.dts
> @@ -9,54 +9,23 @@
> * http://www.gnu.org/copyleft/gpl.html
> */
>
> -/dts-v1/;
> -
> -#include <arm/imx6q.dtsi>
> +#include <arm/imx6q-phytec-mira-rdk-nand.dts>
> #include "imx6q.dtsi"
> #include "imx6qdl-phytec-phycore-som.dtsi"
> #include "imx6qdl-phytec-state.dtsi"
>
> / {
> - model = "Phytec phyCORE-i.MX6 Quad with NAND";
> - compatible = "phytec,imx6q-pcm058-nand", "fsl,imx6q";
> -
> -};
> -
> -&ecspi1 {
> - status = "okay";
> -};
> + compatible = "phytec,imx6q-pbac06-nand", "phytec,imx6q-pbac06",
> + "phytec,imx6q-pcm058-nand", "phytec,imx6qdl-pcm058",
> + "fsl,imx6q";
>
> -&eeprom {
> - status = "okay";
> };
>
> ðphy {
> max-speed = <1000>;
> };
>
> -&fec {
> - status = "okay";
> -};
> -
> -&flash {
> - status = "okay";
> -};
> -
> -&gpmi {
> - status = "okay";
> -};
> -
> -&usbh1 {
> - status = "okay";
> -};
> -
> -&usbotg {
> - status = "okay";
> -};
> -
> &usdhc1 {
> - status = "okay";
> -
> partitions {
> compatible = "fixed-partitions";
> #address-cells = <1>;
> diff --git a/arch/arm/dts/imx6qdl-phytec-phycore-som.dtsi b/arch/arm/dts/imx6qdl-phytec-phycore-som.dtsi
> index 1d39368165..e17304c42b 100644
> --- a/arch/arm/dts/imx6qdl-phytec-phycore-som.dtsi
> +++ b/arch/arm/dts/imx6qdl-phytec-phycore-som.dtsi
> @@ -13,8 +13,6 @@
>
> / {
> chosen {
> - stdout-path = &uart2;
> -
> environment-sd1 {
> compatible = "barebox,environment";
> device-path = &usdhc1, "partname:barebox-environment";
> @@ -35,102 +33,51 @@
>
> environment-spinor {
> compatible = "barebox,environment";
> - device-path = &flash, "partname:barebox-environment";
> + device-path = &m25p80, "partname:barebox-environment";
> status = "disabled";
> };
> };
>
> - reg_usbh1_vbus: regulator-usbh1 {
> - compatible = "regulator-fixed";
> - pinctrl-names = "default";
> - pinctrl-0 = <&pinctrl_usbh1_vbus>;
> - regulator-name = "usbh1_vbus";
> - regulator-min-microvolt = <5000000>;
> - regulator-max-microvolt = <5000000>;
> - gpio = <&gpio2 18 GPIO_ACTIVE_HIGH>;
> - enable-active-high;
> - };
> -
> - reg_usbotg_vbus: regulator-usbotg {
> - compatible = "regulator-fixed";
> - pinctrl-names = "default";
> - pinctrl-0 = <&pinctrl_usbotg_vbus>;
> - regulator-name = "usbotg_vbus";
> - regulator-min-microvolt = <5000000>;
> - regulator-max-microvolt = <5000000>;
> - gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>;
> - enable-active-high;
> + /* Let the bootloader set the real size */
> + memory@10000000 {
> + device_type = "memory";
> + reg = <0x0 0x0>;
> };
> };
>
> -&ecspi1 {
> - pinctrl-names = "default";
> - pinctrl-0 = <&pinctrl_ecspi1>;
> - fsl,spi-num-chipselects = <1>;
> - cs-gpios = <&gpio3 19 0>;
> - status = "disabled";
> -
> - flash: flash@0 {
> - compatible = "jedec,spi-nor";
> - spi-max-frequency = <20000000>;
> - reg = <0>;
> - status = "disabled";
> -
> - partitions {
> - compatible = "fixed-partitions";
> - #address-cells = <1>;
> - #size-cells = <1>;
> +&m25p80 {
> + partitions {
> + compatible = "fixed-partitions";
> + #address-cells = <1>;
> + #size-cells = <1>;
>
> - partition@0 {
> - label = "barebox";
> - reg = <0x0 0x100000>;
> - };
> + partition@0 {
> + label = "barebox";
> + reg = <0x0 0x100000>;
> + };
>
> - partition@100000 {
> - label = "barebox-environment";
> - reg = <0x100000 0x20000>;
> - };
> + partition@100000 {
> + label = "barebox-environment";
> + reg = <0x100000 0x20000>;
> + };
>
> - partition@120000 {
> - label = "oftree";
> - reg = <0x120000 0x20000>;
> - };
> + partition@120000 {
> + label = "oftree";
> + reg = <0x120000 0x20000>;
> + };
>
> - partition@140000 {
> - label = "kernel";
> - reg = <0x140000 0x0>;
> - };
> + partition@140000 {
> + label = "kernel";
> + reg = <0x140000 0x0>;
> };
> };
> };
>
> &fec {
> - pinctrl-names = "default";
> - pinctrl-0 = <&pinctrl_enet>;
> - phy-handle = <ðphy>;
> - phy-mode = "rgmii";
> - phy-reset-gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
> phy-reset-duration = <10>; /* in msecs */
> - status = "disabled";
> -
> - mdio {
> - #address-cells = <1>;
> - #size-cells = <0>;
> -
> - ethphy: ethernet-phy@3 {
> - reg = <3>;
> - txc-skew-ps = <1680>;
> - rxc-skew-ps = <1860>;
> - };
> - };
> };
>
> &gpmi {
> - pinctrl-names = "default";
> - pinctrl-0 = <&pinctrl_gpmi_nand>;
> - nand-on-flash-bbt;
> - status = "disabled";
> -
> partitions {
> compatible = "fixed-partitions";
> #address-cells = <1>;
> @@ -154,11 +101,6 @@
> };
>
> &i2c3 {
> - pinctrl-names = "default";
> - pinctrl-0 = <&pinctrl_i2c3>;
> - clock-frequency = <400000>;
> - status = "okay";
> -
> eeprom: eeprom@50 {
> status = "disabled";
> compatible = "24c32";
> @@ -166,170 +108,17 @@
> };
>
> pmic@58 {
> - compatible = "dlg,da9062";
> - reg = <0x58>;
> - status = "okay";
> -
> watchdog-priority = <500>;
> restart-priority = <500>;
> reset-source-priority = <500>;
> };
> };
>
> -&iomuxc {
> - pinctrl_ecspi1: ecspi1grp {
> - fsl,pins = <
> - MX6QDL_PAD_EIM_D16__ECSPI1_SCLK 0x100b1
> - MX6QDL_PAD_EIM_D17__ECSPI1_MISO 0x100b1
> - MX6QDL_PAD_EIM_D18__ECSPI1_MOSI 0x100b1
> - MX6QDL_PAD_EIM_D19__GPIO3_IO19 0x80000000
> - >;
> - };
> -
> - pinctrl_enet: enetgrp {
> - fsl,pins = <
> - MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x1b0b0
> - MX6QDL_PAD_ENET_MDC__ENET_MDC 0x1b0b0
> - MX6QDL_PAD_RGMII_TXC__RGMII_TXC 0x1b0b0
> - MX6QDL_PAD_RGMII_TD0__RGMII_TD0 0x1b0b0
> - MX6QDL_PAD_RGMII_TD1__RGMII_TD1 0x1b0b0
> - MX6QDL_PAD_RGMII_TD2__RGMII_TD2 0x1b0b0
> - MX6QDL_PAD_RGMII_TD3__RGMII_TD3 0x1b0b0
> - MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL 0x1b0b0
> - MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK 0x1b0b0
> - MX6QDL_PAD_RGMII_RXC__RGMII_RXC 0x1b0b0
> - MX6QDL_PAD_RGMII_RD0__RGMII_RD0 0x1b0b0
> - MX6QDL_PAD_RGMII_RD1__RGMII_RD1 0x1b0b0
> - MX6QDL_PAD_RGMII_RD2__RGMII_RD2 0x1b0b0
> - MX6QDL_PAD_RGMII_RD3__RGMII_RD3 0x1b0b0
> - MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL 0x1b0b0
> - MX6QDL_PAD_ENET_TX_EN__ENET_TX_EN 0x1b0b0
> - MX6QDL_PAD_SD2_DAT1__GPIO1_IO14 0x80000000
> - >;
> - };
> -
> - pinctrl_gpmi_nand: gpmigrp {
> - fsl,pins = <
> - MX6QDL_PAD_NANDF_CLE__NAND_CLE 0xb0b1
> - MX6QDL_PAD_NANDF_ALE__NAND_ALE 0xb0b1
> - MX6QDL_PAD_NANDF_WP_B__NAND_WP_B 0xb0b1
> - MX6QDL_PAD_NANDF_RB0__NAND_READY_B 0xb000
> - MX6QDL_PAD_NANDF_CS0__NAND_CE0_B 0xb0b1
> - MX6QDL_PAD_NANDF_CS1__NAND_CE1_B 0xb0b1
> - MX6QDL_PAD_NANDF_CS2__NAND_CE2_B 0xb0b1
> - MX6QDL_PAD_NANDF_CS3__NAND_CE3_B 0xb0b1
> - MX6QDL_PAD_SD4_CMD__NAND_RE_B 0xb0b1
> - MX6QDL_PAD_SD4_CLK__NAND_WE_B 0xb0b1
> - MX6QDL_PAD_NANDF_D0__NAND_DATA00 0xb0b1
> - MX6QDL_PAD_NANDF_D1__NAND_DATA01 0xb0b1
> - MX6QDL_PAD_NANDF_D2__NAND_DATA02 0xb0b1
> - MX6QDL_PAD_NANDF_D3__NAND_DATA03 0xb0b1
> - MX6QDL_PAD_NANDF_D4__NAND_DATA04 0xb0b1
> - MX6QDL_PAD_NANDF_D5__NAND_DATA05 0xb0b1
> - MX6QDL_PAD_NANDF_D6__NAND_DATA06 0xb0b1
> - MX6QDL_PAD_NANDF_D7__NAND_DATA07 0xb0b1
> - MX6QDL_PAD_SD4_DAT0__NAND_DQS 0x00b1
> - >;
> - };
> -
> - pinctrl_i2c3: i2c3grp {
> - fsl,pins = <
> - MX6QDL_PAD_GPIO_6__I2C3_SDA 0x4001b8b1
> - MX6QDL_PAD_GPIO_5__I2C3_SCL 0x4001b8b1
> - >;
> - };
> -
> - pinctrl_uart2: uart2grp {
> - fsl,pins = <
> - MX6QDL_PAD_EIM_D26__UART2_TX_DATA 0x1b0b1
> - MX6QDL_PAD_EIM_D27__UART2_RX_DATA 0x1b0b1
> - >;
> - };
> -
> - pinctrl_usbh1_vbus: usbh1vbusgrp {
> - fsl,pins = <
> - MX6QDL_PAD_EIM_A20__GPIO2_IO18 0xb0b1
> - >;
> - };
> -
> - pinctrl_usbotg: usbotggrp {
> - fsl,pins = <
> - MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059
> - >;
> - };
> -
> - pinctrl_usbotg_vbus: usbotgvbusgrp {
> - fsl,pins = <
> - MX6QDL_PAD_EIM_A19__GPIO2_IO19 0xb0b1
> - >;
> - };
> -
> - pinctrl_usdhc1: usdhc1grp {
> - fsl,pins = <
> - MX6QDL_PAD_SD1_CMD__SD1_CMD 0x170f9
> - MX6QDL_PAD_SD1_CLK__SD1_CLK 0x100f9
> - MX6QDL_PAD_SD1_DAT0__SD1_DATA0 0x170f9
> - MX6QDL_PAD_SD1_DAT1__SD1_DATA1 0x170f9
> - MX6QDL_PAD_SD1_DAT2__SD1_DATA2 0x170f9
> - MX6QDL_PAD_SD1_DAT3__SD1_DATA3 0x170f9
> - MX6QDL_PAD_EIM_BCLK__GPIO6_IO31 0x80000000 /* CD */
> - >;
> - };
> -
> - pinctrl_usdhc4: usdhc4grp {
> - fsl,pins = <
> - MX6QDL_PAD_SD4_CMD__SD4_CMD 0x17059
> - MX6QDL_PAD_SD4_CLK__SD4_CLK 0x10059
> - MX6QDL_PAD_SD4_DAT0__SD4_DATA0 0x17059
> - MX6QDL_PAD_SD4_DAT1__SD4_DATA1 0x17059
> - MX6QDL_PAD_SD4_DAT2__SD4_DATA2 0x17059
> - MX6QDL_PAD_SD4_DAT3__SD4_DATA3 0x17059
> - MX6QDL_PAD_SD4_DAT4__SD4_DATA4 0x17059
> - MX6QDL_PAD_SD4_DAT5__SD4_DATA5 0x17059
> - MX6QDL_PAD_SD4_DAT6__SD4_DATA6 0x17059
> - MX6QDL_PAD_SD4_DAT7__SD4_DATA7 0x17059
> - >;
> - };
> -};
> -
> &ocotp {
> barebox,provide-mac-address = <&fec 0x620>;
> };
>
> -&uart2 {
> - pinctrl-names = "default";
> - pinctrl-0 = <&pinctrl_uart2>;
> - status = "okay";
> -};
> -
> -&usbh1 {
> - vbus-supply = <®_usbh1_vbus>;
> - disable-over-current;
> - status = "disabled";
> -};
> -
> -&usbotg {
> - pinctrl-names = "default";
> - pinctrl-0 = <&pinctrl_usbotg>;
> - vbus-supply = <®_usbotg_vbus>;
> - disable-over-current;
> - status = "disabled";
> -};
> -
> -&usdhc1 {
> - pinctrl-names = "default";
> - pinctrl-0 = <&pinctrl_usdhc1>;
> - cd-gpios = <&gpio6 31 0>;
> - status = "disabled";
> -};
> -
> &usdhc4 {
> - pinctrl-names = "default";
> - pinctrl-0 = <&pinctrl_usdhc4>;
> - bus-width = <8>;
> - non-removable;
> - status = "disabled";
> -
> #address-cells = <1>;
> #size-cells = <1>;
>
> diff --git a/arch/arm/dts/imx6qp-phytec-phycore-som-nand.dts b/arch/arm/dts/imx6qp-phytec-phycore-som-nand.dts
> index 437457ce75..06def935b0 100644
> --- a/arch/arm/dts/imx6qp-phytec-phycore-som-nand.dts
> +++ b/arch/arm/dts/imx6qp-phytec-phycore-som-nand.dts
> @@ -10,50 +10,20 @@
> * http://www.gnu.org/copyleft/gpl.html
> */
>
> -/dts-v1/;
> -#include <arm/imx6qp.dtsi>
> +#include <arm/imx6qp-phytec-mira-rdk-nand.dts>
> #include "imx6qdl-phytec-phycore-som.dtsi"
>
> / {
> - model = "Phytec phyCORE-i.MX6 Quad with NAND";
> - compatible = "phytec,imx6qp-pcm058-nand", "fsl,imx6qp";
> -};
> -
> -&ecspi1 {
> - status = "okay";
> -};
> -
> -&eeprom {
> - status = "okay";
> + compatible = "phytec,imx6qp-pbac06-nand", "phytec,imx6qp-pbac06",
> + "phytec,imx6qp-pcm058-nand", "phytec,imx6qdl-pcm058",
> + "fsl,imx6qp";
> };
>
> ðphy {
> max-speed = <1000>;
> };
>
> -&fec {
> - status = "okay";
> -};
> -
> -&flash {
> - status = "okay";
> -};
> -
> -&gpmi {
> - status = "okay";
> -};
> -
> -&usbh1 {
> - status = "okay";
> -};
> -
> -&usbotg {
> - status = "okay";
> -};
> -
> &usdhc1 {
> - status = "okay";
> -
> partitions {
> compatible = "fixed-partitions";
> #address-cells = <1>;
> --
> 2.20.1
>
>
> _______________________________________________
> 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] 6+ messages in thread
* Re: [PATCH 1/2] ARM: dts: imx6: phycore: make use of upstream dts
2019-09-20 14:12 ` [PATCH 1/2] ARM: dts: imx6: phycore: make use of upstream dts Marco Felsch
@ 2019-09-23 8:31 ` Stefan Riedmüller
2019-09-23 11:40 ` Marco Felsch
0 siblings, 1 reply; 6+ messages in thread
From: Stefan Riedmüller @ 2019-09-23 8:31 UTC (permalink / raw)
To: Marco Felsch; +Cc: barebox, s.christ, d.schultz, j.remmet
Hi Marco,
Usually we would like to keep the features supported in the barebox to a
minimum set that is mostly supported by the SOM itself and thus is mostly
base board independent.
My suggestion would be to just use the upstream phycore devicetree. Would
that be ok with you? Of course that means some features like e.g. USB need
to be duplicated but that should be overseeable.
I can send a new patch if you like but I would need to find some free time
to do it.
Regards,
Stefan
On 20.09.19 16:12, Marco Felsch wrote:
> Hi,
>
> @phytec
>
> Please can you test those changes because I don't have all these boards.
>
> Regards,
> Marco
>
> On 19-09-11 16:56, Marco Felsch wrote:
>> Since a quite time we can use the upstream Phytec mira devicetree's and
>> the phycore dtsi to reduce code duplication and possible unwanted
>> divergences. I've converted all boards devicetree's to use the upstream
>> mira devicetree's except the:
>> - imx6dl-phytec-phycore-som-emmc.dts
>> - imx6dl-phytec-phycore-som-lc-emmc.dts
>> - imx6dl-phytec-phycore-som-lc-nand.dts
>> boards because those variants are not upstream available yet.
>>
>> This commit also removes mixtures between barebox phycore SoM dtsi and
>> barebox board devicetree's within the imx6qdl-phytec-phycore-som.dtsi.
>> This SoM dtsi contained muxing options which are only valid in
>> combination with the mira baseboard.
>>
>> Now all barebox dts(i) files contain only the necessary things or
>> divergences from upstream e.g. the compatible wasn't exactly the same.
>>
>> Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
>> ---
>> .../dts/imx6dl-phytec-phycore-som-emmc.dts | 12 +-
>> .../dts/imx6dl-phytec-phycore-som-lc-emmc.dts | 12 +-
>> .../dts/imx6dl-phytec-phycore-som-lc-nand.dts | 6 +-
>> .../dts/imx6dl-phytec-phycore-som-nand.dts | 31 +--
>> .../arm/dts/imx6q-phytec-phycore-som-emmc.dts | 39 +--
>> .../arm/dts/imx6q-phytec-phycore-som-nand.dts | 39 +--
>> arch/arm/dts/imx6qdl-phytec-phycore-som.dtsi | 261 ++----------------
>> .../dts/imx6qp-phytec-phycore-som-nand.dts | 38 +--
>> 8 files changed, 49 insertions(+), 389 deletions(-)
>>
>> diff --git a/arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts b/arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts
>> index 21cbb5f944..d9a40599c7 100644
>> --- a/arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts
>> +++ b/arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts
>> @@ -13,6 +13,8 @@
>> /dts-v1/;
>>
>> #include <arm/imx6dl.dtsi>
>> +#include <arm/imx6qdl-phytec-phycore-som.dtsi>
>> +#include <arm/imx6qdl-phytec-mira.dtsi>
>> #include "imx6dl.dtsi"
>> #include "imx6qdl-phytec-phycore-som.dtsi"
>> #include "imx6qdl-phytec-state.dtsi"
>> @@ -22,14 +24,6 @@
>> compatible = "phytec,imx6dl-pcm058-emmc", "fsl,imx6dl";
>> };
>>
>> -&ecspi1 {
>> - status = "okay";
>> -};
>> -
>> -&eeprom {
>> - status = "okay";
>> -};
>> -
>> ðphy {
>> max-speed = <1000>;
>> };
>> @@ -38,7 +32,7 @@
>> status = "okay";
>> };
>>
>> -&flash {
>> +&m25p80 {
>> status = "okay";
>> };
>>
>> diff --git a/arch/arm/dts/imx6dl-phytec-phycore-som-lc-emmc.dts b/arch/arm/dts/imx6dl-phytec-phycore-som-lc-emmc.dts
>> index b8efb95ee0..516df5ff5a 100644
>> --- a/arch/arm/dts/imx6dl-phytec-phycore-som-lc-emmc.dts
>> +++ b/arch/arm/dts/imx6dl-phytec-phycore-som-lc-emmc.dts
>> @@ -7,6 +7,8 @@
>> /dts-v1/;
>>
>> #include <arm/imx6dl.dtsi>
>> +#include <arm/imx6qdl-phytec-phycore-som.dtsi>
>> +#include <arm/imx6qdl-phytec-mira.dtsi>
>> #include "imx6dl.dtsi"
>> #include "imx6qdl-phytec-phycore-som.dtsi"
>> #include "imx6qdl-phytec-state.dtsi"
>> @@ -16,14 +18,6 @@
>> compatible = "phytec,imx6dl-pcm058-emmc", "fsl,imx6dl";
>> };
>>
>> -&ecspi1 {
>> - status = "okay";
>> -};
>> -
>> -&eeprom {
>> - status = "okay";
>> -};
>> -
>> ðphy {
>> max-speed = <100>;
>> };
>> @@ -32,7 +26,7 @@
>> status = "okay";
>> };
>>
>> -&flash {
>> +&m25p80 {
>> status = "okay";
>> };
>>
>> diff --git a/arch/arm/dts/imx6dl-phytec-phycore-som-lc-nand.dts b/arch/arm/dts/imx6dl-phytec-phycore-som-lc-nand.dts
>> index 4d38d1698a..ab13d6b77b 100644
>> --- a/arch/arm/dts/imx6dl-phytec-phycore-som-lc-nand.dts
>> +++ b/arch/arm/dts/imx6dl-phytec-phycore-som-lc-nand.dts
>> @@ -7,6 +7,8 @@
>> /dts-v1/;
>>
>> #include <arm/imx6dl.dtsi>
>> +#include <arm/imx6qdl-phytec-phycore-som.dtsi>
>> +#include <arm/imx6qdl-phytec-mira.dtsi>
>> #include "imx6dl.dtsi"
>> #include "imx6qdl-phytec-phycore-som.dtsi"
>> #include "imx6qdl-phytec-state.dtsi"
>> @@ -16,10 +18,6 @@
>> compatible = "phytec,imx6dl-pcm058-nand", "fsl,imx6dl";
>> };
>>
>> -&eeprom {
>> - status = "okay";
>> -};
>> -
>> ðphy {
>> max-speed = <100>;
>> };
>> diff --git a/arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts b/arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts
>> index 3ad3723d28..db4d930b29 100644
>> --- a/arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts
>> +++ b/arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts
>> @@ -9,45 +9,22 @@
>> * http://www.gnu.org/copyleft/gpl.html
>> */
>>
>> -/dts-v1/;
>> -
>> -#include <arm/imx6dl.dtsi>
>> +#include <arm/imx6dl-phytec-mira-rdk-nand.dts>
>> #include "imx6dl.dtsi"
>> #include "imx6qdl-phytec-phycore-som.dtsi"
>> #include "imx6qdl-phytec-state.dtsi"
>>
>> / {
>> - model = "Phytec phyCORE-i.MX6 Duallite/SOLO with NAND";
>> - compatible = "phytec,imx6dl-pcm058-nand", "fsl,imx6dl";
>> -};
>> -
>> -&eeprom {
>> - status = "okay";
>> + compatible = "phytec,imx6dl-pbac06-nand", "phytec,imx6dl-pbac06",
>> + "phytec,imx6dl-pcm058-nand", "phytec,imx6qdl-pcm058",
>> + "fsl,imx6dl";
>> };
>>
>> ðphy {
>> max-speed = <1000>;
>> };
>>
>> -&fec {
>> - status = "okay";
>> -};
>> -
>> -&gpmi {
>> - status = "okay";
>> -};
>> -
>> -&usbh1 {
>> - status = "okay";
>> -};
>> -
>> -&usbotg {
>> - status = "okay";
>> -};
>> -
>> &usdhc1 {
>> - status = "okay";
>> -
>> partitions {
>> compatible = "fixed-partitions";
>> #address-cells = <1>;
>> diff --git a/arch/arm/dts/imx6q-phytec-phycore-som-emmc.dts b/arch/arm/dts/imx6q-phytec-phycore-som-emmc.dts
>> index 7a86d5b94d..55dc1f91f7 100644
>> --- a/arch/arm/dts/imx6q-phytec-phycore-som-emmc.dts
>> +++ b/arch/arm/dts/imx6q-phytec-phycore-som-emmc.dts
>> @@ -9,49 +9,22 @@
>> * http://www.gnu.org/copyleft/gpl.html
>> */
>>
>> -/dts-v1/;
>> -
>> -#include <arm/imx6q.dtsi>
>> +#include <arm/imx6q-phytec-mira-rdk-emmc.dts>
>> #include "imx6q.dtsi"
>> #include "imx6qdl-phytec-phycore-som.dtsi"
>> #include "imx6qdl-phytec-state.dtsi"
>>
>> / {
>> - model = "Phytec phyCORE-i.MX6 Quad with eMMC";
>> - compatible = "phytec,imx6q-pcm058-emmc", "fsl,imx6q";
>> -};
>> -
>> -&ecspi1 {
>> - status = "okay";
>> -};
>> -
>> -&eeprom {
>> - status = "okay";
>> + compatible = "phytec,imx6q-pbac06-emmc", "phytec,imx6q-pbac06",
>> + "phytec,imx6q-pcm058-emmc", "phytec,imx6qdl-pcm058",
>> + "fsl,imx6q";
>> };
>>
>> ðphy {
>> max-speed = <1000>;
>> };
>>
>> -&fec {
>> - status = "okay";
>> -};
>> -
>> -&flash {
>> - status = "okay";
>> -};
>> -
>> -&usbh1 {
>> - status = "okay";
>> -};
>> -
>> -&usbotg {
>> - status = "okay";
>> -};
>> -
>> &usdhc1 {
>> - status = "okay";
>> -
>> partitions {
>> compatible = "fixed-partitions";
>> #address-cells = <1>;
>> @@ -68,7 +41,3 @@
>> };
>> };
>> };
>> -
>> -&usdhc4 {
>> - status = "okay";
>> -};
>> diff --git a/arch/arm/dts/imx6q-phytec-phycore-som-nand.dts b/arch/arm/dts/imx6q-phytec-phycore-som-nand.dts
>> index 96d1de224c..56812c2473 100644
>> --- a/arch/arm/dts/imx6q-phytec-phycore-som-nand.dts
>> +++ b/arch/arm/dts/imx6q-phytec-phycore-som-nand.dts
>> @@ -9,54 +9,23 @@
>> * http://www.gnu.org/copyleft/gpl.html
>> */
>>
>> -/dts-v1/;
>> -
>> -#include <arm/imx6q.dtsi>
>> +#include <arm/imx6q-phytec-mira-rdk-nand.dts>
>> #include "imx6q.dtsi"
>> #include "imx6qdl-phytec-phycore-som.dtsi"
>> #include "imx6qdl-phytec-state.dtsi"
>>
>> / {
>> - model = "Phytec phyCORE-i.MX6 Quad with NAND";
>> - compatible = "phytec,imx6q-pcm058-nand", "fsl,imx6q";
>> -
>> -};
>> -
>> -&ecspi1 {
>> - status = "okay";
>> -};
>> + compatible = "phytec,imx6q-pbac06-nand", "phytec,imx6q-pbac06",
>> + "phytec,imx6q-pcm058-nand", "phytec,imx6qdl-pcm058",
>> + "fsl,imx6q";
>>
>> -&eeprom {
>> - status = "okay";
>> };
>>
>> ðphy {
>> max-speed = <1000>;
>> };
>>
>> -&fec {
>> - status = "okay";
>> -};
>> -
>> -&flash {
>> - status = "okay";
>> -};
>> -
>> -&gpmi {
>> - status = "okay";
>> -};
>> -
>> -&usbh1 {
>> - status = "okay";
>> -};
>> -
>> -&usbotg {
>> - status = "okay";
>> -};
>> -
>> &usdhc1 {
>> - status = "okay";
>> -
>> partitions {
>> compatible = "fixed-partitions";
>> #address-cells = <1>;
>> diff --git a/arch/arm/dts/imx6qdl-phytec-phycore-som.dtsi b/arch/arm/dts/imx6qdl-phytec-phycore-som.dtsi
>> index 1d39368165..e17304c42b 100644
>> --- a/arch/arm/dts/imx6qdl-phytec-phycore-som.dtsi
>> +++ b/arch/arm/dts/imx6qdl-phytec-phycore-som.dtsi
>> @@ -13,8 +13,6 @@
>>
>> / {
>> chosen {
>> - stdout-path = &uart2;
>> -
>> environment-sd1 {
>> compatible = "barebox,environment";
>> device-path = &usdhc1, "partname:barebox-environment";
>> @@ -35,102 +33,51 @@
>>
>> environment-spinor {
>> compatible = "barebox,environment";
>> - device-path = &flash, "partname:barebox-environment";
>> + device-path = &m25p80, "partname:barebox-environment";
>> status = "disabled";
>> };
>> };
>>
>> - reg_usbh1_vbus: regulator-usbh1 {
>> - compatible = "regulator-fixed";
>> - pinctrl-names = "default";
>> - pinctrl-0 = <&pinctrl_usbh1_vbus>;
>> - regulator-name = "usbh1_vbus";
>> - regulator-min-microvolt = <5000000>;
>> - regulator-max-microvolt = <5000000>;
>> - gpio = <&gpio2 18 GPIO_ACTIVE_HIGH>;
>> - enable-active-high;
>> - };
>> -
>> - reg_usbotg_vbus: regulator-usbotg {
>> - compatible = "regulator-fixed";
>> - pinctrl-names = "default";
>> - pinctrl-0 = <&pinctrl_usbotg_vbus>;
>> - regulator-name = "usbotg_vbus";
>> - regulator-min-microvolt = <5000000>;
>> - regulator-max-microvolt = <5000000>;
>> - gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>;
>> - enable-active-high;
>> + /* Let the bootloader set the real size */
>> + memory@10000000 {
>> + device_type = "memory";
>> + reg = <0x0 0x0>;
>> };
>> };
>>
>> -&ecspi1 {
>> - pinctrl-names = "default";
>> - pinctrl-0 = <&pinctrl_ecspi1>;
>> - fsl,spi-num-chipselects = <1>;
>> - cs-gpios = <&gpio3 19 0>;
>> - status = "disabled";
>> -
>> - flash: flash@0 {
>> - compatible = "jedec,spi-nor";
>> - spi-max-frequency = <20000000>;
>> - reg = <0>;
>> - status = "disabled";
>> -
>> - partitions {
>> - compatible = "fixed-partitions";
>> - #address-cells = <1>;
>> - #size-cells = <1>;
>> +&m25p80 {
>> + partitions {
>> + compatible = "fixed-partitions";
>> + #address-cells = <1>;
>> + #size-cells = <1>;
>>
>> - partition@0 {
>> - label = "barebox";
>> - reg = <0x0 0x100000>;
>> - };
>> + partition@0 {
>> + label = "barebox";
>> + reg = <0x0 0x100000>;
>> + };
>>
>> - partition@100000 {
>> - label = "barebox-environment";
>> - reg = <0x100000 0x20000>;
>> - };
>> + partition@100000 {
>> + label = "barebox-environment";
>> + reg = <0x100000 0x20000>;
>> + };
>>
>> - partition@120000 {
>> - label = "oftree";
>> - reg = <0x120000 0x20000>;
>> - };
>> + partition@120000 {
>> + label = "oftree";
>> + reg = <0x120000 0x20000>;
>> + };
>>
>> - partition@140000 {
>> - label = "kernel";
>> - reg = <0x140000 0x0>;
>> - };
>> + partition@140000 {
>> + label = "kernel";
>> + reg = <0x140000 0x0>;
>> };
>> };
>> };
>>
>> &fec {
>> - pinctrl-names = "default";
>> - pinctrl-0 = <&pinctrl_enet>;
>> - phy-handle = <ðphy>;
>> - phy-mode = "rgmii";
>> - phy-reset-gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
>> phy-reset-duration = <10>; /* in msecs */
>> - status = "disabled";
>> -
>> - mdio {
>> - #address-cells = <1>;
>> - #size-cells = <0>;
>> -
>> - ethphy: ethernet-phy@3 {
>> - reg = <3>;
>> - txc-skew-ps = <1680>;
>> - rxc-skew-ps = <1860>;
>> - };
>> - };
>> };
>>
>> &gpmi {
>> - pinctrl-names = "default";
>> - pinctrl-0 = <&pinctrl_gpmi_nand>;
>> - nand-on-flash-bbt;
>> - status = "disabled";
>> -
>> partitions {
>> compatible = "fixed-partitions";
>> #address-cells = <1>;
>> @@ -154,11 +101,6 @@
>> };
>>
>> &i2c3 {
>> - pinctrl-names = "default";
>> - pinctrl-0 = <&pinctrl_i2c3>;
>> - clock-frequency = <400000>;
>> - status = "okay";
>> -
>> eeprom: eeprom@50 {
>> status = "disabled";
>> compatible = "24c32";
>> @@ -166,170 +108,17 @@
>> };
>>
>> pmic@58 {
>> - compatible = "dlg,da9062";
>> - reg = <0x58>;
>> - status = "okay";
>> -
>> watchdog-priority = <500>;
>> restart-priority = <500>;
>> reset-source-priority = <500>;
>> };
>> };
>>
>> -&iomuxc {
>> - pinctrl_ecspi1: ecspi1grp {
>> - fsl,pins = <
>> - MX6QDL_PAD_EIM_D16__ECSPI1_SCLK 0x100b1
>> - MX6QDL_PAD_EIM_D17__ECSPI1_MISO 0x100b1
>> - MX6QDL_PAD_EIM_D18__ECSPI1_MOSI 0x100b1
>> - MX6QDL_PAD_EIM_D19__GPIO3_IO19 0x80000000
>> - >;
>> - };
>> -
>> - pinctrl_enet: enetgrp {
>> - fsl,pins = <
>> - MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x1b0b0
>> - MX6QDL_PAD_ENET_MDC__ENET_MDC 0x1b0b0
>> - MX6QDL_PAD_RGMII_TXC__RGMII_TXC 0x1b0b0
>> - MX6QDL_PAD_RGMII_TD0__RGMII_TD0 0x1b0b0
>> - MX6QDL_PAD_RGMII_TD1__RGMII_TD1 0x1b0b0
>> - MX6QDL_PAD_RGMII_TD2__RGMII_TD2 0x1b0b0
>> - MX6QDL_PAD_RGMII_TD3__RGMII_TD3 0x1b0b0
>> - MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL 0x1b0b0
>> - MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK 0x1b0b0
>> - MX6QDL_PAD_RGMII_RXC__RGMII_RXC 0x1b0b0
>> - MX6QDL_PAD_RGMII_RD0__RGMII_RD0 0x1b0b0
>> - MX6QDL_PAD_RGMII_RD1__RGMII_RD1 0x1b0b0
>> - MX6QDL_PAD_RGMII_RD2__RGMII_RD2 0x1b0b0
>> - MX6QDL_PAD_RGMII_RD3__RGMII_RD3 0x1b0b0
>> - MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL 0x1b0b0
>> - MX6QDL_PAD_ENET_TX_EN__ENET_TX_EN 0x1b0b0
>> - MX6QDL_PAD_SD2_DAT1__GPIO1_IO14 0x80000000
>> - >;
>> - };
>> -
>> - pinctrl_gpmi_nand: gpmigrp {
>> - fsl,pins = <
>> - MX6QDL_PAD_NANDF_CLE__NAND_CLE 0xb0b1
>> - MX6QDL_PAD_NANDF_ALE__NAND_ALE 0xb0b1
>> - MX6QDL_PAD_NANDF_WP_B__NAND_WP_B 0xb0b1
>> - MX6QDL_PAD_NANDF_RB0__NAND_READY_B 0xb000
>> - MX6QDL_PAD_NANDF_CS0__NAND_CE0_B 0xb0b1
>> - MX6QDL_PAD_NANDF_CS1__NAND_CE1_B 0xb0b1
>> - MX6QDL_PAD_NANDF_CS2__NAND_CE2_B 0xb0b1
>> - MX6QDL_PAD_NANDF_CS3__NAND_CE3_B 0xb0b1
>> - MX6QDL_PAD_SD4_CMD__NAND_RE_B 0xb0b1
>> - MX6QDL_PAD_SD4_CLK__NAND_WE_B 0xb0b1
>> - MX6QDL_PAD_NANDF_D0__NAND_DATA00 0xb0b1
>> - MX6QDL_PAD_NANDF_D1__NAND_DATA01 0xb0b1
>> - MX6QDL_PAD_NANDF_D2__NAND_DATA02 0xb0b1
>> - MX6QDL_PAD_NANDF_D3__NAND_DATA03 0xb0b1
>> - MX6QDL_PAD_NANDF_D4__NAND_DATA04 0xb0b1
>> - MX6QDL_PAD_NANDF_D5__NAND_DATA05 0xb0b1
>> - MX6QDL_PAD_NANDF_D6__NAND_DATA06 0xb0b1
>> - MX6QDL_PAD_NANDF_D7__NAND_DATA07 0xb0b1
>> - MX6QDL_PAD_SD4_DAT0__NAND_DQS 0x00b1
>> - >;
>> - };
>> -
>> - pinctrl_i2c3: i2c3grp {
>> - fsl,pins = <
>> - MX6QDL_PAD_GPIO_6__I2C3_SDA 0x4001b8b1
>> - MX6QDL_PAD_GPIO_5__I2C3_SCL 0x4001b8b1
>> - >;
>> - };
>> -
>> - pinctrl_uart2: uart2grp {
>> - fsl,pins = <
>> - MX6QDL_PAD_EIM_D26__UART2_TX_DATA 0x1b0b1
>> - MX6QDL_PAD_EIM_D27__UART2_RX_DATA 0x1b0b1
>> - >;
>> - };
>> -
>> - pinctrl_usbh1_vbus: usbh1vbusgrp {
>> - fsl,pins = <
>> - MX6QDL_PAD_EIM_A20__GPIO2_IO18 0xb0b1
>> - >;
>> - };
>> -
>> - pinctrl_usbotg: usbotggrp {
>> - fsl,pins = <
>> - MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059
>> - >;
>> - };
>> -
>> - pinctrl_usbotg_vbus: usbotgvbusgrp {
>> - fsl,pins = <
>> - MX6QDL_PAD_EIM_A19__GPIO2_IO19 0xb0b1
>> - >;
>> - };
>> -
>> - pinctrl_usdhc1: usdhc1grp {
>> - fsl,pins = <
>> - MX6QDL_PAD_SD1_CMD__SD1_CMD 0x170f9
>> - MX6QDL_PAD_SD1_CLK__SD1_CLK 0x100f9
>> - MX6QDL_PAD_SD1_DAT0__SD1_DATA0 0x170f9
>> - MX6QDL_PAD_SD1_DAT1__SD1_DATA1 0x170f9
>> - MX6QDL_PAD_SD1_DAT2__SD1_DATA2 0x170f9
>> - MX6QDL_PAD_SD1_DAT3__SD1_DATA3 0x170f9
>> - MX6QDL_PAD_EIM_BCLK__GPIO6_IO31 0x80000000 /* CD */
>> - >;
>> - };
>> -
>> - pinctrl_usdhc4: usdhc4grp {
>> - fsl,pins = <
>> - MX6QDL_PAD_SD4_CMD__SD4_CMD 0x17059
>> - MX6QDL_PAD_SD4_CLK__SD4_CLK 0x10059
>> - MX6QDL_PAD_SD4_DAT0__SD4_DATA0 0x17059
>> - MX6QDL_PAD_SD4_DAT1__SD4_DATA1 0x17059
>> - MX6QDL_PAD_SD4_DAT2__SD4_DATA2 0x17059
>> - MX6QDL_PAD_SD4_DAT3__SD4_DATA3 0x17059
>> - MX6QDL_PAD_SD4_DAT4__SD4_DATA4 0x17059
>> - MX6QDL_PAD_SD4_DAT5__SD4_DATA5 0x17059
>> - MX6QDL_PAD_SD4_DAT6__SD4_DATA6 0x17059
>> - MX6QDL_PAD_SD4_DAT7__SD4_DATA7 0x17059
>> - >;
>> - };
>> -};
>> -
>> &ocotp {
>> barebox,provide-mac-address = <&fec 0x620>;
>> };
>>
>> -&uart2 {
>> - pinctrl-names = "default";
>> - pinctrl-0 = <&pinctrl_uart2>;
>> - status = "okay";
>> -};
>> -
>> -&usbh1 {
>> - vbus-supply = <®_usbh1_vbus>;
>> - disable-over-current;
>> - status = "disabled";
>> -};
>> -
>> -&usbotg {
>> - pinctrl-names = "default";
>> - pinctrl-0 = <&pinctrl_usbotg>;
>> - vbus-supply = <®_usbotg_vbus>;
>> - disable-over-current;
>> - status = "disabled";
>> -};
>> -
>> -&usdhc1 {
>> - pinctrl-names = "default";
>> - pinctrl-0 = <&pinctrl_usdhc1>;
>> - cd-gpios = <&gpio6 31 0>;
>> - status = "disabled";
>> -};
>> -
>> &usdhc4 {
>> - pinctrl-names = "default";
>> - pinctrl-0 = <&pinctrl_usdhc4>;
>> - bus-width = <8>;
>> - non-removable;
>> - status = "disabled";
>> -
>> #address-cells = <1>;
>> #size-cells = <1>;
>>
>> diff --git a/arch/arm/dts/imx6qp-phytec-phycore-som-nand.dts b/arch/arm/dts/imx6qp-phytec-phycore-som-nand.dts
>> index 437457ce75..06def935b0 100644
>> --- a/arch/arm/dts/imx6qp-phytec-phycore-som-nand.dts
>> +++ b/arch/arm/dts/imx6qp-phytec-phycore-som-nand.dts
>> @@ -10,50 +10,20 @@
>> * http://www.gnu.org/copyleft/gpl.html
>> */
>>
>> -/dts-v1/;
>> -#include <arm/imx6qp.dtsi>
>> +#include <arm/imx6qp-phytec-mira-rdk-nand.dts>
>> #include "imx6qdl-phytec-phycore-som.dtsi"
>>
>> / {
>> - model = "Phytec phyCORE-i.MX6 Quad with NAND";
>> - compatible = "phytec,imx6qp-pcm058-nand", "fsl,imx6qp";
>> -};
>> -
>> -&ecspi1 {
>> - status = "okay";
>> -};
>> -
>> -&eeprom {
>> - status = "okay";
>> + compatible = "phytec,imx6qp-pbac06-nand", "phytec,imx6qp-pbac06",
>> + "phytec,imx6qp-pcm058-nand", "phytec,imx6qdl-pcm058",
>> + "fsl,imx6qp";
>> };
>>
>> ðphy {
>> max-speed = <1000>;
>> };
>>
>> -&fec {
>> - status = "okay";
>> -};
>> -
>> -&flash {
>> - status = "okay";
>> -};
>> -
>> -&gpmi {
>> - status = "okay";
>> -};
>> -
>> -&usbh1 {
>> - status = "okay";
>> -};
>> -
>> -&usbotg {
>> - status = "okay";
>> -};
>> -
>> &usdhc1 {
>> - status = "okay";
>> -
>> partitions {
>> compatible = "fixed-partitions";
>> #address-cells = <1>;
>> --
>> 2.20.1
>>
>>
>> _______________________________________________
>> barebox mailing list
>> barebox@lists.infradead.org
>> http://lists.infradead.org/mailman/listinfo/barebox
>>
>
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] ARM: dts: imx6: phycore: make use of upstream dts
2019-09-23 8:31 ` Stefan Riedmüller
@ 2019-09-23 11:40 ` Marco Felsch
2019-09-24 13:30 ` Stefan Riedmüller
0 siblings, 1 reply; 6+ messages in thread
From: Marco Felsch @ 2019-09-23 11:40 UTC (permalink / raw)
To: Stefan Riedmüller; +Cc: d.schultz, barebox, s.christ, j.remmet
Hi Stefan,
On 19-09-23 10:31, Stefan Riedmüller wrote:
> Hi Marco,
>
> Usually we would like to keep the features supported in the barebox to a
> minimum set that is mostly supported by the SOM itself and thus is mostly
> base board independent.
Yes, I understand that but the barebox SoM dtsi had also muxing options
which made only sense with the mira board.
> My suggestion would be to just use the upstream phycore devicetree. Would
> that be ok with you? Of course that means some features like e.g. USB need
> to be duplicated but that should be overseeable.
I was also thinking about just use the upstream phycore dtsi but than I
saw that the barebox dtsi is adding mira board specific code. The
upstream devicetree's are a bit cleaner. Can you identify possible
mistakes I made? I tought the changes I made don't affect barebox in a
negative way. Maybe there are new devices but barebox will ignore them
if you didn't enable the driver support for it.
Regards,
Marco
> I can send a new patch if you like but I would need to find some free time
> to do it.
>
> Regards,
> Stefan
>
>
> On 20.09.19 16:12, Marco Felsch wrote:
> > Hi,
> >
> > @phytec
> >
> > Please can you test those changes because I don't have all these boards.
> >
> > Regards,
> > Marco
> >
> > On 19-09-11 16:56, Marco Felsch wrote:
> > > Since a quite time we can use the upstream Phytec mira devicetree's and
> > > the phycore dtsi to reduce code duplication and possible unwanted
> > > divergences. I've converted all boards devicetree's to use the upstream
> > > mira devicetree's except the:
> > > - imx6dl-phytec-phycore-som-emmc.dts
> > > - imx6dl-phytec-phycore-som-lc-emmc.dts
> > > - imx6dl-phytec-phycore-som-lc-nand.dts
> > > boards because those variants are not upstream available yet.
> > >
> > > This commit also removes mixtures between barebox phycore SoM dtsi and
> > > barebox board devicetree's within the imx6qdl-phytec-phycore-som.dtsi.
> > > This SoM dtsi contained muxing options which are only valid in
> > > combination with the mira baseboard.
> > >
> > > Now all barebox dts(i) files contain only the necessary things or
> > > divergences from upstream e.g. the compatible wasn't exactly the same.
> > >
> > > Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
> > > ---
> > > .../dts/imx6dl-phytec-phycore-som-emmc.dts | 12 +-
> > > .../dts/imx6dl-phytec-phycore-som-lc-emmc.dts | 12 +-
> > > .../dts/imx6dl-phytec-phycore-som-lc-nand.dts | 6 +-
> > > .../dts/imx6dl-phytec-phycore-som-nand.dts | 31 +--
> > > .../arm/dts/imx6q-phytec-phycore-som-emmc.dts | 39 +--
> > > .../arm/dts/imx6q-phytec-phycore-som-nand.dts | 39 +--
> > > arch/arm/dts/imx6qdl-phytec-phycore-som.dtsi | 261 ++----------------
> > > .../dts/imx6qp-phytec-phycore-som-nand.dts | 38 +--
> > > 8 files changed, 49 insertions(+), 389 deletions(-)
> > >
> > > diff --git a/arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts b/arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts
> > > index 21cbb5f944..d9a40599c7 100644
> > > --- a/arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts
> > > +++ b/arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts
> > > @@ -13,6 +13,8 @@
> > > /dts-v1/;
> > > #include <arm/imx6dl.dtsi>
> > > +#include <arm/imx6qdl-phytec-phycore-som.dtsi>
> > > +#include <arm/imx6qdl-phytec-mira.dtsi>
> > > #include "imx6dl.dtsi"
> > > #include "imx6qdl-phytec-phycore-som.dtsi"
> > > #include "imx6qdl-phytec-state.dtsi"
> > > @@ -22,14 +24,6 @@
> > > compatible = "phytec,imx6dl-pcm058-emmc", "fsl,imx6dl";
> > > };
> > > -&ecspi1 {
> > > - status = "okay";
> > > -};
> > > -
> > > -&eeprom {
> > > - status = "okay";
> > > -};
> > > -
> > > ðphy {
> > > max-speed = <1000>;
> > > };
> > > @@ -38,7 +32,7 @@
> > > status = "okay";
> > > };
> > > -&flash {
> > > +&m25p80 {
> > > status = "okay";
> > > };
> > > diff --git a/arch/arm/dts/imx6dl-phytec-phycore-som-lc-emmc.dts b/arch/arm/dts/imx6dl-phytec-phycore-som-lc-emmc.dts
> > > index b8efb95ee0..516df5ff5a 100644
> > > --- a/arch/arm/dts/imx6dl-phytec-phycore-som-lc-emmc.dts
> > > +++ b/arch/arm/dts/imx6dl-phytec-phycore-som-lc-emmc.dts
> > > @@ -7,6 +7,8 @@
> > > /dts-v1/;
> > > #include <arm/imx6dl.dtsi>
> > > +#include <arm/imx6qdl-phytec-phycore-som.dtsi>
> > > +#include <arm/imx6qdl-phytec-mira.dtsi>
> > > #include "imx6dl.dtsi"
> > > #include "imx6qdl-phytec-phycore-som.dtsi"
> > > #include "imx6qdl-phytec-state.dtsi"
> > > @@ -16,14 +18,6 @@
> > > compatible = "phytec,imx6dl-pcm058-emmc", "fsl,imx6dl";
> > > };
> > > -&ecspi1 {
> > > - status = "okay";
> > > -};
> > > -
> > > -&eeprom {
> > > - status = "okay";
> > > -};
> > > -
> > > ðphy {
> > > max-speed = <100>;
> > > };
> > > @@ -32,7 +26,7 @@
> > > status = "okay";
> > > };
> > > -&flash {
> > > +&m25p80 {
> > > status = "okay";
> > > };
> > > diff --git a/arch/arm/dts/imx6dl-phytec-phycore-som-lc-nand.dts b/arch/arm/dts/imx6dl-phytec-phycore-som-lc-nand.dts
> > > index 4d38d1698a..ab13d6b77b 100644
> > > --- a/arch/arm/dts/imx6dl-phytec-phycore-som-lc-nand.dts
> > > +++ b/arch/arm/dts/imx6dl-phytec-phycore-som-lc-nand.dts
> > > @@ -7,6 +7,8 @@
> > > /dts-v1/;
> > > #include <arm/imx6dl.dtsi>
> > > +#include <arm/imx6qdl-phytec-phycore-som.dtsi>
> > > +#include <arm/imx6qdl-phytec-mira.dtsi>
> > > #include "imx6dl.dtsi"
> > > #include "imx6qdl-phytec-phycore-som.dtsi"
> > > #include "imx6qdl-phytec-state.dtsi"
> > > @@ -16,10 +18,6 @@
> > > compatible = "phytec,imx6dl-pcm058-nand", "fsl,imx6dl";
> > > };
> > > -&eeprom {
> > > - status = "okay";
> > > -};
> > > -
> > > ðphy {
> > > max-speed = <100>;
> > > };
> > > diff --git a/arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts b/arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts
> > > index 3ad3723d28..db4d930b29 100644
> > > --- a/arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts
> > > +++ b/arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts
> > > @@ -9,45 +9,22 @@
> > > * http://www.gnu.org/copyleft/gpl.html
> > > */
> > > -/dts-v1/;
> > > -
> > > -#include <arm/imx6dl.dtsi>
> > > +#include <arm/imx6dl-phytec-mira-rdk-nand.dts>
> > > #include "imx6dl.dtsi"
> > > #include "imx6qdl-phytec-phycore-som.dtsi"
> > > #include "imx6qdl-phytec-state.dtsi"
> > > / {
> > > - model = "Phytec phyCORE-i.MX6 Duallite/SOLO with NAND";
> > > - compatible = "phytec,imx6dl-pcm058-nand", "fsl,imx6dl";
> > > -};
> > > -
> > > -&eeprom {
> > > - status = "okay";
> > > + compatible = "phytec,imx6dl-pbac06-nand", "phytec,imx6dl-pbac06",
> > > + "phytec,imx6dl-pcm058-nand", "phytec,imx6qdl-pcm058",
> > > + "fsl,imx6dl";
> > > };
> > > ðphy {
> > > max-speed = <1000>;
> > > };
> > > -&fec {
> > > - status = "okay";
> > > -};
> > > -
> > > -&gpmi {
> > > - status = "okay";
> > > -};
> > > -
> > > -&usbh1 {
> > > - status = "okay";
> > > -};
> > > -
> > > -&usbotg {
> > > - status = "okay";
> > > -};
> > > -
> > > &usdhc1 {
> > > - status = "okay";
> > > -
> > > partitions {
> > > compatible = "fixed-partitions";
> > > #address-cells = <1>;
> > > diff --git a/arch/arm/dts/imx6q-phytec-phycore-som-emmc.dts b/arch/arm/dts/imx6q-phytec-phycore-som-emmc.dts
> > > index 7a86d5b94d..55dc1f91f7 100644
> > > --- a/arch/arm/dts/imx6q-phytec-phycore-som-emmc.dts
> > > +++ b/arch/arm/dts/imx6q-phytec-phycore-som-emmc.dts
> > > @@ -9,49 +9,22 @@
> > > * http://www.gnu.org/copyleft/gpl.html
> > > */
> > > -/dts-v1/;
> > > -
> > > -#include <arm/imx6q.dtsi>
> > > +#include <arm/imx6q-phytec-mira-rdk-emmc.dts>
> > > #include "imx6q.dtsi"
> > > #include "imx6qdl-phytec-phycore-som.dtsi"
> > > #include "imx6qdl-phytec-state.dtsi"
> > > / {
> > > - model = "Phytec phyCORE-i.MX6 Quad with eMMC";
> > > - compatible = "phytec,imx6q-pcm058-emmc", "fsl,imx6q";
> > > -};
> > > -
> > > -&ecspi1 {
> > > - status = "okay";
> > > -};
> > > -
> > > -&eeprom {
> > > - status = "okay";
> > > + compatible = "phytec,imx6q-pbac06-emmc", "phytec,imx6q-pbac06",
> > > + "phytec,imx6q-pcm058-emmc", "phytec,imx6qdl-pcm058",
> > > + "fsl,imx6q";
> > > };
> > > ðphy {
> > > max-speed = <1000>;
> > > };
> > > -&fec {
> > > - status = "okay";
> > > -};
> > > -
> > > -&flash {
> > > - status = "okay";
> > > -};
> > > -
> > > -&usbh1 {
> > > - status = "okay";
> > > -};
> > > -
> > > -&usbotg {
> > > - status = "okay";
> > > -};
> > > -
> > > &usdhc1 {
> > > - status = "okay";
> > > -
> > > partitions {
> > > compatible = "fixed-partitions";
> > > #address-cells = <1>;
> > > @@ -68,7 +41,3 @@
> > > };
> > > };
> > > };
> > > -
> > > -&usdhc4 {
> > > - status = "okay";
> > > -};
> > > diff --git a/arch/arm/dts/imx6q-phytec-phycore-som-nand.dts b/arch/arm/dts/imx6q-phytec-phycore-som-nand.dts
> > > index 96d1de224c..56812c2473 100644
> > > --- a/arch/arm/dts/imx6q-phytec-phycore-som-nand.dts
> > > +++ b/arch/arm/dts/imx6q-phytec-phycore-som-nand.dts
> > > @@ -9,54 +9,23 @@
> > > * http://www.gnu.org/copyleft/gpl.html
> > > */
> > > -/dts-v1/;
> > > -
> > > -#include <arm/imx6q.dtsi>
> > > +#include <arm/imx6q-phytec-mira-rdk-nand.dts>
> > > #include "imx6q.dtsi"
> > > #include "imx6qdl-phytec-phycore-som.dtsi"
> > > #include "imx6qdl-phytec-state.dtsi"
> > > / {
> > > - model = "Phytec phyCORE-i.MX6 Quad with NAND";
> > > - compatible = "phytec,imx6q-pcm058-nand", "fsl,imx6q";
> > > -
> > > -};
> > > -
> > > -&ecspi1 {
> > > - status = "okay";
> > > -};
> > > + compatible = "phytec,imx6q-pbac06-nand", "phytec,imx6q-pbac06",
> > > + "phytec,imx6q-pcm058-nand", "phytec,imx6qdl-pcm058",
> > > + "fsl,imx6q";
> > > -&eeprom {
> > > - status = "okay";
> > > };
> > > ðphy {
> > > max-speed = <1000>;
> > > };
> > > -&fec {
> > > - status = "okay";
> > > -};
> > > -
> > > -&flash {
> > > - status = "okay";
> > > -};
> > > -
> > > -&gpmi {
> > > - status = "okay";
> > > -};
> > > -
> > > -&usbh1 {
> > > - status = "okay";
> > > -};
> > > -
> > > -&usbotg {
> > > - status = "okay";
> > > -};
> > > -
> > > &usdhc1 {
> > > - status = "okay";
> > > -
> > > partitions {
> > > compatible = "fixed-partitions";
> > > #address-cells = <1>;
> > > diff --git a/arch/arm/dts/imx6qdl-phytec-phycore-som.dtsi b/arch/arm/dts/imx6qdl-phytec-phycore-som.dtsi
> > > index 1d39368165..e17304c42b 100644
> > > --- a/arch/arm/dts/imx6qdl-phytec-phycore-som.dtsi
> > > +++ b/arch/arm/dts/imx6qdl-phytec-phycore-som.dtsi
> > > @@ -13,8 +13,6 @@
> > > / {
> > > chosen {
> > > - stdout-path = &uart2;
> > > -
> > > environment-sd1 {
> > > compatible = "barebox,environment";
> > > device-path = &usdhc1, "partname:barebox-environment";
> > > @@ -35,102 +33,51 @@
> > > environment-spinor {
> > > compatible = "barebox,environment";
> > > - device-path = &flash, "partname:barebox-environment";
> > > + device-path = &m25p80, "partname:barebox-environment";
> > > status = "disabled";
> > > };
> > > };
> > > - reg_usbh1_vbus: regulator-usbh1 {
> > > - compatible = "regulator-fixed";
> > > - pinctrl-names = "default";
> > > - pinctrl-0 = <&pinctrl_usbh1_vbus>;
> > > - regulator-name = "usbh1_vbus";
> > > - regulator-min-microvolt = <5000000>;
> > > - regulator-max-microvolt = <5000000>;
> > > - gpio = <&gpio2 18 GPIO_ACTIVE_HIGH>;
> > > - enable-active-high;
> > > - };
> > > -
> > > - reg_usbotg_vbus: regulator-usbotg {
> > > - compatible = "regulator-fixed";
> > > - pinctrl-names = "default";
> > > - pinctrl-0 = <&pinctrl_usbotg_vbus>;
> > > - regulator-name = "usbotg_vbus";
> > > - regulator-min-microvolt = <5000000>;
> > > - regulator-max-microvolt = <5000000>;
> > > - gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>;
> > > - enable-active-high;
> > > + /* Let the bootloader set the real size */
> > > + memory@10000000 {
> > > + device_type = "memory";
> > > + reg = <0x0 0x0>;
> > > };
> > > };
> > > -&ecspi1 {
> > > - pinctrl-names = "default";
> > > - pinctrl-0 = <&pinctrl_ecspi1>;
> > > - fsl,spi-num-chipselects = <1>;
> > > - cs-gpios = <&gpio3 19 0>;
> > > - status = "disabled";
> > > -
> > > - flash: flash@0 {
> > > - compatible = "jedec,spi-nor";
> > > - spi-max-frequency = <20000000>;
> > > - reg = <0>;
> > > - status = "disabled";
> > > -
> > > - partitions {
> > > - compatible = "fixed-partitions";
> > > - #address-cells = <1>;
> > > - #size-cells = <1>;
> > > +&m25p80 {
> > > + partitions {
> > > + compatible = "fixed-partitions";
> > > + #address-cells = <1>;
> > > + #size-cells = <1>;
> > > - partition@0 {
> > > - label = "barebox";
> > > - reg = <0x0 0x100000>;
> > > - };
> > > + partition@0 {
> > > + label = "barebox";
> > > + reg = <0x0 0x100000>;
> > > + };
> > > - partition@100000 {
> > > - label = "barebox-environment";
> > > - reg = <0x100000 0x20000>;
> > > - };
> > > + partition@100000 {
> > > + label = "barebox-environment";
> > > + reg = <0x100000 0x20000>;
> > > + };
> > > - partition@120000 {
> > > - label = "oftree";
> > > - reg = <0x120000 0x20000>;
> > > - };
> > > + partition@120000 {
> > > + label = "oftree";
> > > + reg = <0x120000 0x20000>;
> > > + };
> > > - partition@140000 {
> > > - label = "kernel";
> > > - reg = <0x140000 0x0>;
> > > - };
> > > + partition@140000 {
> > > + label = "kernel";
> > > + reg = <0x140000 0x0>;
> > > };
> > > };
> > > };
> > > &fec {
> > > - pinctrl-names = "default";
> > > - pinctrl-0 = <&pinctrl_enet>;
> > > - phy-handle = <ðphy>;
> > > - phy-mode = "rgmii";
> > > - phy-reset-gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
> > > phy-reset-duration = <10>; /* in msecs */
> > > - status = "disabled";
> > > -
> > > - mdio {
> > > - #address-cells = <1>;
> > > - #size-cells = <0>;
> > > -
> > > - ethphy: ethernet-phy@3 {
> > > - reg = <3>;
> > > - txc-skew-ps = <1680>;
> > > - rxc-skew-ps = <1860>;
> > > - };
> > > - };
> > > };
> > > &gpmi {
> > > - pinctrl-names = "default";
> > > - pinctrl-0 = <&pinctrl_gpmi_nand>;
> > > - nand-on-flash-bbt;
> > > - status = "disabled";
> > > -
> > > partitions {
> > > compatible = "fixed-partitions";
> > > #address-cells = <1>;
> > > @@ -154,11 +101,6 @@
> > > };
> > > &i2c3 {
> > > - pinctrl-names = "default";
> > > - pinctrl-0 = <&pinctrl_i2c3>;
> > > - clock-frequency = <400000>;
> > > - status = "okay";
> > > -
> > > eeprom: eeprom@50 {
> > > status = "disabled";
> > > compatible = "24c32";
> > > @@ -166,170 +108,17 @@
> > > };
> > > pmic@58 {
> > > - compatible = "dlg,da9062";
> > > - reg = <0x58>;
> > > - status = "okay";
> > > -
> > > watchdog-priority = <500>;
> > > restart-priority = <500>;
> > > reset-source-priority = <500>;
> > > };
> > > };
> > > -&iomuxc {
> > > - pinctrl_ecspi1: ecspi1grp {
> > > - fsl,pins = <
> > > - MX6QDL_PAD_EIM_D16__ECSPI1_SCLK 0x100b1
> > > - MX6QDL_PAD_EIM_D17__ECSPI1_MISO 0x100b1
> > > - MX6QDL_PAD_EIM_D18__ECSPI1_MOSI 0x100b1
> > > - MX6QDL_PAD_EIM_D19__GPIO3_IO19 0x80000000
> > > - >;
> > > - };
> > > -
> > > - pinctrl_enet: enetgrp {
> > > - fsl,pins = <
> > > - MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x1b0b0
> > > - MX6QDL_PAD_ENET_MDC__ENET_MDC 0x1b0b0
> > > - MX6QDL_PAD_RGMII_TXC__RGMII_TXC 0x1b0b0
> > > - MX6QDL_PAD_RGMII_TD0__RGMII_TD0 0x1b0b0
> > > - MX6QDL_PAD_RGMII_TD1__RGMII_TD1 0x1b0b0
> > > - MX6QDL_PAD_RGMII_TD2__RGMII_TD2 0x1b0b0
> > > - MX6QDL_PAD_RGMII_TD3__RGMII_TD3 0x1b0b0
> > > - MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL 0x1b0b0
> > > - MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK 0x1b0b0
> > > - MX6QDL_PAD_RGMII_RXC__RGMII_RXC 0x1b0b0
> > > - MX6QDL_PAD_RGMII_RD0__RGMII_RD0 0x1b0b0
> > > - MX6QDL_PAD_RGMII_RD1__RGMII_RD1 0x1b0b0
> > > - MX6QDL_PAD_RGMII_RD2__RGMII_RD2 0x1b0b0
> > > - MX6QDL_PAD_RGMII_RD3__RGMII_RD3 0x1b0b0
> > > - MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL 0x1b0b0
> > > - MX6QDL_PAD_ENET_TX_EN__ENET_TX_EN 0x1b0b0
> > > - MX6QDL_PAD_SD2_DAT1__GPIO1_IO14 0x80000000
> > > - >;
> > > - };
> > > -
> > > - pinctrl_gpmi_nand: gpmigrp {
> > > - fsl,pins = <
> > > - MX6QDL_PAD_NANDF_CLE__NAND_CLE 0xb0b1
> > > - MX6QDL_PAD_NANDF_ALE__NAND_ALE 0xb0b1
> > > - MX6QDL_PAD_NANDF_WP_B__NAND_WP_B 0xb0b1
> > > - MX6QDL_PAD_NANDF_RB0__NAND_READY_B 0xb000
> > > - MX6QDL_PAD_NANDF_CS0__NAND_CE0_B 0xb0b1
> > > - MX6QDL_PAD_NANDF_CS1__NAND_CE1_B 0xb0b1
> > > - MX6QDL_PAD_NANDF_CS2__NAND_CE2_B 0xb0b1
> > > - MX6QDL_PAD_NANDF_CS3__NAND_CE3_B 0xb0b1
> > > - MX6QDL_PAD_SD4_CMD__NAND_RE_B 0xb0b1
> > > - MX6QDL_PAD_SD4_CLK__NAND_WE_B 0xb0b1
> > > - MX6QDL_PAD_NANDF_D0__NAND_DATA00 0xb0b1
> > > - MX6QDL_PAD_NANDF_D1__NAND_DATA01 0xb0b1
> > > - MX6QDL_PAD_NANDF_D2__NAND_DATA02 0xb0b1
> > > - MX6QDL_PAD_NANDF_D3__NAND_DATA03 0xb0b1
> > > - MX6QDL_PAD_NANDF_D4__NAND_DATA04 0xb0b1
> > > - MX6QDL_PAD_NANDF_D5__NAND_DATA05 0xb0b1
> > > - MX6QDL_PAD_NANDF_D6__NAND_DATA06 0xb0b1
> > > - MX6QDL_PAD_NANDF_D7__NAND_DATA07 0xb0b1
> > > - MX6QDL_PAD_SD4_DAT0__NAND_DQS 0x00b1
> > > - >;
> > > - };
> > > -
> > > - pinctrl_i2c3: i2c3grp {
> > > - fsl,pins = <
> > > - MX6QDL_PAD_GPIO_6__I2C3_SDA 0x4001b8b1
> > > - MX6QDL_PAD_GPIO_5__I2C3_SCL 0x4001b8b1
> > > - >;
> > > - };
> > > -
> > > - pinctrl_uart2: uart2grp {
> > > - fsl,pins = <
> > > - MX6QDL_PAD_EIM_D26__UART2_TX_DATA 0x1b0b1
> > > - MX6QDL_PAD_EIM_D27__UART2_RX_DATA 0x1b0b1
> > > - >;
> > > - };
> > > -
> > > - pinctrl_usbh1_vbus: usbh1vbusgrp {
> > > - fsl,pins = <
> > > - MX6QDL_PAD_EIM_A20__GPIO2_IO18 0xb0b1
> > > - >;
> > > - };
> > > -
> > > - pinctrl_usbotg: usbotggrp {
> > > - fsl,pins = <
> > > - MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059
> > > - >;
> > > - };
> > > -
> > > - pinctrl_usbotg_vbus: usbotgvbusgrp {
> > > - fsl,pins = <
> > > - MX6QDL_PAD_EIM_A19__GPIO2_IO19 0xb0b1
> > > - >;
> > > - };
> > > -
> > > - pinctrl_usdhc1: usdhc1grp {
> > > - fsl,pins = <
> > > - MX6QDL_PAD_SD1_CMD__SD1_CMD 0x170f9
> > > - MX6QDL_PAD_SD1_CLK__SD1_CLK 0x100f9
> > > - MX6QDL_PAD_SD1_DAT0__SD1_DATA0 0x170f9
> > > - MX6QDL_PAD_SD1_DAT1__SD1_DATA1 0x170f9
> > > - MX6QDL_PAD_SD1_DAT2__SD1_DATA2 0x170f9
> > > - MX6QDL_PAD_SD1_DAT3__SD1_DATA3 0x170f9
> > > - MX6QDL_PAD_EIM_BCLK__GPIO6_IO31 0x80000000 /* CD */
> > > - >;
> > > - };
> > > -
> > > - pinctrl_usdhc4: usdhc4grp {
> > > - fsl,pins = <
> > > - MX6QDL_PAD_SD4_CMD__SD4_CMD 0x17059
> > > - MX6QDL_PAD_SD4_CLK__SD4_CLK 0x10059
> > > - MX6QDL_PAD_SD4_DAT0__SD4_DATA0 0x17059
> > > - MX6QDL_PAD_SD4_DAT1__SD4_DATA1 0x17059
> > > - MX6QDL_PAD_SD4_DAT2__SD4_DATA2 0x17059
> > > - MX6QDL_PAD_SD4_DAT3__SD4_DATA3 0x17059
> > > - MX6QDL_PAD_SD4_DAT4__SD4_DATA4 0x17059
> > > - MX6QDL_PAD_SD4_DAT5__SD4_DATA5 0x17059
> > > - MX6QDL_PAD_SD4_DAT6__SD4_DATA6 0x17059
> > > - MX6QDL_PAD_SD4_DAT7__SD4_DATA7 0x17059
> > > - >;
> > > - };
> > > -};
> > > -
> > > &ocotp {
> > > barebox,provide-mac-address = <&fec 0x620>;
> > > };
> > > -&uart2 {
> > > - pinctrl-names = "default";
> > > - pinctrl-0 = <&pinctrl_uart2>;
> > > - status = "okay";
> > > -};
> > > -
> > > -&usbh1 {
> > > - vbus-supply = <®_usbh1_vbus>;
> > > - disable-over-current;
> > > - status = "disabled";
> > > -};
> > > -
> > > -&usbotg {
> > > - pinctrl-names = "default";
> > > - pinctrl-0 = <&pinctrl_usbotg>;
> > > - vbus-supply = <®_usbotg_vbus>;
> > > - disable-over-current;
> > > - status = "disabled";
> > > -};
> > > -
> > > -&usdhc1 {
> > > - pinctrl-names = "default";
> > > - pinctrl-0 = <&pinctrl_usdhc1>;
> > > - cd-gpios = <&gpio6 31 0>;
> > > - status = "disabled";
> > > -};
> > > -
> > > &usdhc4 {
> > > - pinctrl-names = "default";
> > > - pinctrl-0 = <&pinctrl_usdhc4>;
> > > - bus-width = <8>;
> > > - non-removable;
> > > - status = "disabled";
> > > -
> > > #address-cells = <1>;
> > > #size-cells = <1>;
> > > diff --git a/arch/arm/dts/imx6qp-phytec-phycore-som-nand.dts b/arch/arm/dts/imx6qp-phytec-phycore-som-nand.dts
> > > index 437457ce75..06def935b0 100644
> > > --- a/arch/arm/dts/imx6qp-phytec-phycore-som-nand.dts
> > > +++ b/arch/arm/dts/imx6qp-phytec-phycore-som-nand.dts
> > > @@ -10,50 +10,20 @@
> > > * http://www.gnu.org/copyleft/gpl.html
> > > */
> > > -/dts-v1/;
> > > -#include <arm/imx6qp.dtsi>
> > > +#include <arm/imx6qp-phytec-mira-rdk-nand.dts>
> > > #include "imx6qdl-phytec-phycore-som.dtsi"
> > > / {
> > > - model = "Phytec phyCORE-i.MX6 Quad with NAND";
> > > - compatible = "phytec,imx6qp-pcm058-nand", "fsl,imx6qp";
> > > -};
> > > -
> > > -&ecspi1 {
> > > - status = "okay";
> > > -};
> > > -
> > > -&eeprom {
> > > - status = "okay";
> > > + compatible = "phytec,imx6qp-pbac06-nand", "phytec,imx6qp-pbac06",
> > > + "phytec,imx6qp-pcm058-nand", "phytec,imx6qdl-pcm058",
> > > + "fsl,imx6qp";
> > > };
> > > ðphy {
> > > max-speed = <1000>;
> > > };
> > > -&fec {
> > > - status = "okay";
> > > -};
> > > -
> > > -&flash {
> > > - status = "okay";
> > > -};
> > > -
> > > -&gpmi {
> > > - status = "okay";
> > > -};
> > > -
> > > -&usbh1 {
> > > - status = "okay";
> > > -};
> > > -
> > > -&usbotg {
> > > - status = "okay";
> > > -};
> > > -
> > > &usdhc1 {
> > > - status = "okay";
> > > -
> > > partitions {
> > > compatible = "fixed-partitions";
> > > #address-cells = <1>;
> > > --
> > > 2.20.1
> > >
> > >
> > > _______________________________________________
> > > barebox mailing list
> > > barebox@lists.infradead.org
> > > http://lists.infradead.org/mailman/listinfo/barebox
> > >
> >
>
> _______________________________________________
> 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] 6+ messages in thread
* Re: [PATCH 1/2] ARM: dts: imx6: phycore: make use of upstream dts
2019-09-23 11:40 ` Marco Felsch
@ 2019-09-24 13:30 ` Stefan Riedmüller
0 siblings, 0 replies; 6+ messages in thread
From: Stefan Riedmüller @ 2019-09-24 13:30 UTC (permalink / raw)
To: Marco Felsch; +Cc: d.schultz, barebox, s.christ, j.remmet
Hi Marco,
On 23.09.19 13:40, Marco Felsch wrote:
> Hi Stefan,
>
> On 19-09-23 10:31, Stefan Riedmüller wrote:
>> Hi Marco,
>>
>> Usually we would like to keep the features supported in the barebox to a
>> minimum set that is mostly supported by the SOM itself and thus is mostly
>> base board independent.
>
> Yes, I understand that but the barebox SoM dtsi had also muxing options
> which made only sense with the mira board.
>
>> My suggestion would be to just use the upstream phycore devicetree. Would
>> that be ok with you? Of course that means some features like e.g. USB need
>> to be duplicated but that should be overseeable.
>
> I was also thinking about just use the upstream phycore dtsi but than I
> saw that the barebox dtsi is adding mira board specific code. The
> upstream devicetree's are a bit cleaner. Can you identify possible
> mistakes I made? I tought the changes I made don't affect barebox in a
> negative way. Maybe there are new devices but barebox will ignore them
> if you didn't enable the driver support for it.
We added options for the SD card interface and USB interfaces which are in
fact part of the Mira but are also often used in the same configuration with
other boards. These options just give us more flexibility for boot scenarios
and changes that might be necessary for other boards are kept to a minimum.
It is not about mistakes you made, it is just that we would like to keep the
barebox representing the SOM and not the baseboard. That is why using only
the phycore upstream devicetree and adding the the SD interface and USB is
our favorite solution
Regards,
Stefan
>
> Regards,
> Marco
>
>> I can send a new patch if you like but I would need to find some free time
>> to do it.
>>
>> Regards,
>> Stefan
>>
>>
>> On 20.09.19 16:12, Marco Felsch wrote:
>>> Hi,
>>>
>>> @phytec
>>>
>>> Please can you test those changes because I don't have all these boards.
>>>
>>> Regards,
>>> Marco
>>>
>>> On 19-09-11 16:56, Marco Felsch wrote:
>>>> Since a quite time we can use the upstream Phytec mira devicetree's and
>>>> the phycore dtsi to reduce code duplication and possible unwanted
>>>> divergences. I've converted all boards devicetree's to use the upstream
>>>> mira devicetree's except the:
>>>> - imx6dl-phytec-phycore-som-emmc.dts
>>>> - imx6dl-phytec-phycore-som-lc-emmc.dts
>>>> - imx6dl-phytec-phycore-som-lc-nand.dts
>>>> boards because those variants are not upstream available yet.
>>>>
>>>> This commit also removes mixtures between barebox phycore SoM dtsi and
>>>> barebox board devicetree's within the imx6qdl-phytec-phycore-som.dtsi.
>>>> This SoM dtsi contained muxing options which are only valid in
>>>> combination with the mira baseboard.
>>>>
>>>> Now all barebox dts(i) files contain only the necessary things or
>>>> divergences from upstream e.g. the compatible wasn't exactly the same.
>>>>
>>>> Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
>>>> ---
>>>> .../dts/imx6dl-phytec-phycore-som-emmc.dts | 12 +-
>>>> .../dts/imx6dl-phytec-phycore-som-lc-emmc.dts | 12 +-
>>>> .../dts/imx6dl-phytec-phycore-som-lc-nand.dts | 6 +-
>>>> .../dts/imx6dl-phytec-phycore-som-nand.dts | 31 +--
>>>> .../arm/dts/imx6q-phytec-phycore-som-emmc.dts | 39 +--
>>>> .../arm/dts/imx6q-phytec-phycore-som-nand.dts | 39 +--
>>>> arch/arm/dts/imx6qdl-phytec-phycore-som.dtsi | 261 ++----------------
>>>> .../dts/imx6qp-phytec-phycore-som-nand.dts | 38 +--
>>>> 8 files changed, 49 insertions(+), 389 deletions(-)
>>>>
>>>> diff --git a/arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts b/arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts
>>>> index 21cbb5f944..d9a40599c7 100644
>>>> --- a/arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts
>>>> +++ b/arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts
>>>> @@ -13,6 +13,8 @@
>>>> /dts-v1/;
>>>> #include <arm/imx6dl.dtsi>
>>>> +#include <arm/imx6qdl-phytec-phycore-som.dtsi>
>>>> +#include <arm/imx6qdl-phytec-mira.dtsi>
>>>> #include "imx6dl.dtsi"
>>>> #include "imx6qdl-phytec-phycore-som.dtsi"
>>>> #include "imx6qdl-phytec-state.dtsi"
>>>> @@ -22,14 +24,6 @@
>>>> compatible = "phytec,imx6dl-pcm058-emmc", "fsl,imx6dl";
>>>> };
>>>> -&ecspi1 {
>>>> - status = "okay";
>>>> -};
>>>> -
>>>> -&eeprom {
>>>> - status = "okay";
>>>> -};
>>>> -
>>>> ðphy {
>>>> max-speed = <1000>;
>>>> };
>>>> @@ -38,7 +32,7 @@
>>>> status = "okay";
>>>> };
>>>> -&flash {
>>>> +&m25p80 {
>>>> status = "okay";
>>>> };
>>>> diff --git a/arch/arm/dts/imx6dl-phytec-phycore-som-lc-emmc.dts b/arch/arm/dts/imx6dl-phytec-phycore-som-lc-emmc.dts
>>>> index b8efb95ee0..516df5ff5a 100644
>>>> --- a/arch/arm/dts/imx6dl-phytec-phycore-som-lc-emmc.dts
>>>> +++ b/arch/arm/dts/imx6dl-phytec-phycore-som-lc-emmc.dts
>>>> @@ -7,6 +7,8 @@
>>>> /dts-v1/;
>>>> #include <arm/imx6dl.dtsi>
>>>> +#include <arm/imx6qdl-phytec-phycore-som.dtsi>
>>>> +#include <arm/imx6qdl-phytec-mira.dtsi>
>>>> #include "imx6dl.dtsi"
>>>> #include "imx6qdl-phytec-phycore-som.dtsi"
>>>> #include "imx6qdl-phytec-state.dtsi"
>>>> @@ -16,14 +18,6 @@
>>>> compatible = "phytec,imx6dl-pcm058-emmc", "fsl,imx6dl";
>>>> };
>>>> -&ecspi1 {
>>>> - status = "okay";
>>>> -};
>>>> -
>>>> -&eeprom {
>>>> - status = "okay";
>>>> -};
>>>> -
>>>> ðphy {
>>>> max-speed = <100>;
>>>> };
>>>> @@ -32,7 +26,7 @@
>>>> status = "okay";
>>>> };
>>>> -&flash {
>>>> +&m25p80 {
>>>> status = "okay";
>>>> };
>>>> diff --git a/arch/arm/dts/imx6dl-phytec-phycore-som-lc-nand.dts b/arch/arm/dts/imx6dl-phytec-phycore-som-lc-nand.dts
>>>> index 4d38d1698a..ab13d6b77b 100644
>>>> --- a/arch/arm/dts/imx6dl-phytec-phycore-som-lc-nand.dts
>>>> +++ b/arch/arm/dts/imx6dl-phytec-phycore-som-lc-nand.dts
>>>> @@ -7,6 +7,8 @@
>>>> /dts-v1/;
>>>> #include <arm/imx6dl.dtsi>
>>>> +#include <arm/imx6qdl-phytec-phycore-som.dtsi>
>>>> +#include <arm/imx6qdl-phytec-mira.dtsi>
>>>> #include "imx6dl.dtsi"
>>>> #include "imx6qdl-phytec-phycore-som.dtsi"
>>>> #include "imx6qdl-phytec-state.dtsi"
>>>> @@ -16,10 +18,6 @@
>>>> compatible = "phytec,imx6dl-pcm058-nand", "fsl,imx6dl";
>>>> };
>>>> -&eeprom {
>>>> - status = "okay";
>>>> -};
>>>> -
>>>> ðphy {
>>>> max-speed = <100>;
>>>> };
>>>> diff --git a/arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts b/arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts
>>>> index 3ad3723d28..db4d930b29 100644
>>>> --- a/arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts
>>>> +++ b/arch/arm/dts/imx6dl-phytec-phycore-som-nand.dts
>>>> @@ -9,45 +9,22 @@
>>>> * http://www.gnu.org/copyleft/gpl.html
>>>> */
>>>> -/dts-v1/;
>>>> -
>>>> -#include <arm/imx6dl.dtsi>
>>>> +#include <arm/imx6dl-phytec-mira-rdk-nand.dts>
>>>> #include "imx6dl.dtsi"
>>>> #include "imx6qdl-phytec-phycore-som.dtsi"
>>>> #include "imx6qdl-phytec-state.dtsi"
>>>> / {
>>>> - model = "Phytec phyCORE-i.MX6 Duallite/SOLO with NAND";
>>>> - compatible = "phytec,imx6dl-pcm058-nand", "fsl,imx6dl";
>>>> -};
>>>> -
>>>> -&eeprom {
>>>> - status = "okay";
>>>> + compatible = "phytec,imx6dl-pbac06-nand", "phytec,imx6dl-pbac06",
>>>> + "phytec,imx6dl-pcm058-nand", "phytec,imx6qdl-pcm058",
>>>> + "fsl,imx6dl";
>>>> };
>>>> ðphy {
>>>> max-speed = <1000>;
>>>> };
>>>> -&fec {
>>>> - status = "okay";
>>>> -};
>>>> -
>>>> -&gpmi {
>>>> - status = "okay";
>>>> -};
>>>> -
>>>> -&usbh1 {
>>>> - status = "okay";
>>>> -};
>>>> -
>>>> -&usbotg {
>>>> - status = "okay";
>>>> -};
>>>> -
>>>> &usdhc1 {
>>>> - status = "okay";
>>>> -
>>>> partitions {
>>>> compatible = "fixed-partitions";
>>>> #address-cells = <1>;
>>>> diff --git a/arch/arm/dts/imx6q-phytec-phycore-som-emmc.dts b/arch/arm/dts/imx6q-phytec-phycore-som-emmc.dts
>>>> index 7a86d5b94d..55dc1f91f7 100644
>>>> --- a/arch/arm/dts/imx6q-phytec-phycore-som-emmc.dts
>>>> +++ b/arch/arm/dts/imx6q-phytec-phycore-som-emmc.dts
>>>> @@ -9,49 +9,22 @@
>>>> * http://www.gnu.org/copyleft/gpl.html
>>>> */
>>>> -/dts-v1/;
>>>> -
>>>> -#include <arm/imx6q.dtsi>
>>>> +#include <arm/imx6q-phytec-mira-rdk-emmc.dts>
>>>> #include "imx6q.dtsi"
>>>> #include "imx6qdl-phytec-phycore-som.dtsi"
>>>> #include "imx6qdl-phytec-state.dtsi"
>>>> / {
>>>> - model = "Phytec phyCORE-i.MX6 Quad with eMMC";
>>>> - compatible = "phytec,imx6q-pcm058-emmc", "fsl,imx6q";
>>>> -};
>>>> -
>>>> -&ecspi1 {
>>>> - status = "okay";
>>>> -};
>>>> -
>>>> -&eeprom {
>>>> - status = "okay";
>>>> + compatible = "phytec,imx6q-pbac06-emmc", "phytec,imx6q-pbac06",
>>>> + "phytec,imx6q-pcm058-emmc", "phytec,imx6qdl-pcm058",
>>>> + "fsl,imx6q";
>>>> };
>>>> ðphy {
>>>> max-speed = <1000>;
>>>> };
>>>> -&fec {
>>>> - status = "okay";
>>>> -};
>>>> -
>>>> -&flash {
>>>> - status = "okay";
>>>> -};
>>>> -
>>>> -&usbh1 {
>>>> - status = "okay";
>>>> -};
>>>> -
>>>> -&usbotg {
>>>> - status = "okay";
>>>> -};
>>>> -
>>>> &usdhc1 {
>>>> - status = "okay";
>>>> -
>>>> partitions {
>>>> compatible = "fixed-partitions";
>>>> #address-cells = <1>;
>>>> @@ -68,7 +41,3 @@
>>>> };
>>>> };
>>>> };
>>>> -
>>>> -&usdhc4 {
>>>> - status = "okay";
>>>> -};
>>>> diff --git a/arch/arm/dts/imx6q-phytec-phycore-som-nand.dts b/arch/arm/dts/imx6q-phytec-phycore-som-nand.dts
>>>> index 96d1de224c..56812c2473 100644
>>>> --- a/arch/arm/dts/imx6q-phytec-phycore-som-nand.dts
>>>> +++ b/arch/arm/dts/imx6q-phytec-phycore-som-nand.dts
>>>> @@ -9,54 +9,23 @@
>>>> * http://www.gnu.org/copyleft/gpl.html
>>>> */
>>>> -/dts-v1/;
>>>> -
>>>> -#include <arm/imx6q.dtsi>
>>>> +#include <arm/imx6q-phytec-mira-rdk-nand.dts>
>>>> #include "imx6q.dtsi"
>>>> #include "imx6qdl-phytec-phycore-som.dtsi"
>>>> #include "imx6qdl-phytec-state.dtsi"
>>>> / {
>>>> - model = "Phytec phyCORE-i.MX6 Quad with NAND";
>>>> - compatible = "phytec,imx6q-pcm058-nand", "fsl,imx6q";
>>>> -
>>>> -};
>>>> -
>>>> -&ecspi1 {
>>>> - status = "okay";
>>>> -};
>>>> + compatible = "phytec,imx6q-pbac06-nand", "phytec,imx6q-pbac06",
>>>> + "phytec,imx6q-pcm058-nand", "phytec,imx6qdl-pcm058",
>>>> + "fsl,imx6q";
>>>> -&eeprom {
>>>> - status = "okay";
>>>> };
>>>> ðphy {
>>>> max-speed = <1000>;
>>>> };
>>>> -&fec {
>>>> - status = "okay";
>>>> -};
>>>> -
>>>> -&flash {
>>>> - status = "okay";
>>>> -};
>>>> -
>>>> -&gpmi {
>>>> - status = "okay";
>>>> -};
>>>> -
>>>> -&usbh1 {
>>>> - status = "okay";
>>>> -};
>>>> -
>>>> -&usbotg {
>>>> - status = "okay";
>>>> -};
>>>> -
>>>> &usdhc1 {
>>>> - status = "okay";
>>>> -
>>>> partitions {
>>>> compatible = "fixed-partitions";
>>>> #address-cells = <1>;
>>>> diff --git a/arch/arm/dts/imx6qdl-phytec-phycore-som.dtsi b/arch/arm/dts/imx6qdl-phytec-phycore-som.dtsi
>>>> index 1d39368165..e17304c42b 100644
>>>> --- a/arch/arm/dts/imx6qdl-phytec-phycore-som.dtsi
>>>> +++ b/arch/arm/dts/imx6qdl-phytec-phycore-som.dtsi
>>>> @@ -13,8 +13,6 @@
>>>> / {
>>>> chosen {
>>>> - stdout-path = &uart2;
>>>> -
>>>> environment-sd1 {
>>>> compatible = "barebox,environment";
>>>> device-path = &usdhc1, "partname:barebox-environment";
>>>> @@ -35,102 +33,51 @@
>>>> environment-spinor {
>>>> compatible = "barebox,environment";
>>>> - device-path = &flash, "partname:barebox-environment";
>>>> + device-path = &m25p80, "partname:barebox-environment";
>>>> status = "disabled";
>>>> };
>>>> };
>>>> - reg_usbh1_vbus: regulator-usbh1 {
>>>> - compatible = "regulator-fixed";
>>>> - pinctrl-names = "default";
>>>> - pinctrl-0 = <&pinctrl_usbh1_vbus>;
>>>> - regulator-name = "usbh1_vbus";
>>>> - regulator-min-microvolt = <5000000>;
>>>> - regulator-max-microvolt = <5000000>;
>>>> - gpio = <&gpio2 18 GPIO_ACTIVE_HIGH>;
>>>> - enable-active-high;
>>>> - };
>>>> -
>>>> - reg_usbotg_vbus: regulator-usbotg {
>>>> - compatible = "regulator-fixed";
>>>> - pinctrl-names = "default";
>>>> - pinctrl-0 = <&pinctrl_usbotg_vbus>;
>>>> - regulator-name = "usbotg_vbus";
>>>> - regulator-min-microvolt = <5000000>;
>>>> - regulator-max-microvolt = <5000000>;
>>>> - gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>;
>>>> - enable-active-high;
>>>> + /* Let the bootloader set the real size */
>>>> + memory@10000000 {
>>>> + device_type = "memory";
>>>> + reg = <0x0 0x0>;
>>>> };
>>>> };
>>>> -&ecspi1 {
>>>> - pinctrl-names = "default";
>>>> - pinctrl-0 = <&pinctrl_ecspi1>;
>>>> - fsl,spi-num-chipselects = <1>;
>>>> - cs-gpios = <&gpio3 19 0>;
>>>> - status = "disabled";
>>>> -
>>>> - flash: flash@0 {
>>>> - compatible = "jedec,spi-nor";
>>>> - spi-max-frequency = <20000000>;
>>>> - reg = <0>;
>>>> - status = "disabled";
>>>> -
>>>> - partitions {
>>>> - compatible = "fixed-partitions";
>>>> - #address-cells = <1>;
>>>> - #size-cells = <1>;
>>>> +&m25p80 {
>>>> + partitions {
>>>> + compatible = "fixed-partitions";
>>>> + #address-cells = <1>;
>>>> + #size-cells = <1>;
>>>> - partition@0 {
>>>> - label = "barebox";
>>>> - reg = <0x0 0x100000>;
>>>> - };
>>>> + partition@0 {
>>>> + label = "barebox";
>>>> + reg = <0x0 0x100000>;
>>>> + };
>>>> - partition@100000 {
>>>> - label = "barebox-environment";
>>>> - reg = <0x100000 0x20000>;
>>>> - };
>>>> + partition@100000 {
>>>> + label = "barebox-environment";
>>>> + reg = <0x100000 0x20000>;
>>>> + };
>>>> - partition@120000 {
>>>> - label = "oftree";
>>>> - reg = <0x120000 0x20000>;
>>>> - };
>>>> + partition@120000 {
>>>> + label = "oftree";
>>>> + reg = <0x120000 0x20000>;
>>>> + };
>>>> - partition@140000 {
>>>> - label = "kernel";
>>>> - reg = <0x140000 0x0>;
>>>> - };
>>>> + partition@140000 {
>>>> + label = "kernel";
>>>> + reg = <0x140000 0x0>;
>>>> };
>>>> };
>>>> };
>>>> &fec {
>>>> - pinctrl-names = "default";
>>>> - pinctrl-0 = <&pinctrl_enet>;
>>>> - phy-handle = <ðphy>;
>>>> - phy-mode = "rgmii";
>>>> - phy-reset-gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
>>>> phy-reset-duration = <10>; /* in msecs */
>>>> - status = "disabled";
>>>> -
>>>> - mdio {
>>>> - #address-cells = <1>;
>>>> - #size-cells = <0>;
>>>> -
>>>> - ethphy: ethernet-phy@3 {
>>>> - reg = <3>;
>>>> - txc-skew-ps = <1680>;
>>>> - rxc-skew-ps = <1860>;
>>>> - };
>>>> - };
>>>> };
>>>> &gpmi {
>>>> - pinctrl-names = "default";
>>>> - pinctrl-0 = <&pinctrl_gpmi_nand>;
>>>> - nand-on-flash-bbt;
>>>> - status = "disabled";
>>>> -
>>>> partitions {
>>>> compatible = "fixed-partitions";
>>>> #address-cells = <1>;
>>>> @@ -154,11 +101,6 @@
>>>> };
>>>> &i2c3 {
>>>> - pinctrl-names = "default";
>>>> - pinctrl-0 = <&pinctrl_i2c3>;
>>>> - clock-frequency = <400000>;
>>>> - status = "okay";
>>>> -
>>>> eeprom: eeprom@50 {
>>>> status = "disabled";
>>>> compatible = "24c32";
>>>> @@ -166,170 +108,17 @@
>>>> };
>>>> pmic@58 {
>>>> - compatible = "dlg,da9062";
>>>> - reg = <0x58>;
>>>> - status = "okay";
>>>> -
>>>> watchdog-priority = <500>;
>>>> restart-priority = <500>;
>>>> reset-source-priority = <500>;
>>>> };
>>>> };
>>>> -&iomuxc {
>>>> - pinctrl_ecspi1: ecspi1grp {
>>>> - fsl,pins = <
>>>> - MX6QDL_PAD_EIM_D16__ECSPI1_SCLK 0x100b1
>>>> - MX6QDL_PAD_EIM_D17__ECSPI1_MISO 0x100b1
>>>> - MX6QDL_PAD_EIM_D18__ECSPI1_MOSI 0x100b1
>>>> - MX6QDL_PAD_EIM_D19__GPIO3_IO19 0x80000000
>>>> - >;
>>>> - };
>>>> -
>>>> - pinctrl_enet: enetgrp {
>>>> - fsl,pins = <
>>>> - MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x1b0b0
>>>> - MX6QDL_PAD_ENET_MDC__ENET_MDC 0x1b0b0
>>>> - MX6QDL_PAD_RGMII_TXC__RGMII_TXC 0x1b0b0
>>>> - MX6QDL_PAD_RGMII_TD0__RGMII_TD0 0x1b0b0
>>>> - MX6QDL_PAD_RGMII_TD1__RGMII_TD1 0x1b0b0
>>>> - MX6QDL_PAD_RGMII_TD2__RGMII_TD2 0x1b0b0
>>>> - MX6QDL_PAD_RGMII_TD3__RGMII_TD3 0x1b0b0
>>>> - MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL 0x1b0b0
>>>> - MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK 0x1b0b0
>>>> - MX6QDL_PAD_RGMII_RXC__RGMII_RXC 0x1b0b0
>>>> - MX6QDL_PAD_RGMII_RD0__RGMII_RD0 0x1b0b0
>>>> - MX6QDL_PAD_RGMII_RD1__RGMII_RD1 0x1b0b0
>>>> - MX6QDL_PAD_RGMII_RD2__RGMII_RD2 0x1b0b0
>>>> - MX6QDL_PAD_RGMII_RD3__RGMII_RD3 0x1b0b0
>>>> - MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL 0x1b0b0
>>>> - MX6QDL_PAD_ENET_TX_EN__ENET_TX_EN 0x1b0b0
>>>> - MX6QDL_PAD_SD2_DAT1__GPIO1_IO14 0x80000000
>>>> - >;
>>>> - };
>>>> -
>>>> - pinctrl_gpmi_nand: gpmigrp {
>>>> - fsl,pins = <
>>>> - MX6QDL_PAD_NANDF_CLE__NAND_CLE 0xb0b1
>>>> - MX6QDL_PAD_NANDF_ALE__NAND_ALE 0xb0b1
>>>> - MX6QDL_PAD_NANDF_WP_B__NAND_WP_B 0xb0b1
>>>> - MX6QDL_PAD_NANDF_RB0__NAND_READY_B 0xb000
>>>> - MX6QDL_PAD_NANDF_CS0__NAND_CE0_B 0xb0b1
>>>> - MX6QDL_PAD_NANDF_CS1__NAND_CE1_B 0xb0b1
>>>> - MX6QDL_PAD_NANDF_CS2__NAND_CE2_B 0xb0b1
>>>> - MX6QDL_PAD_NANDF_CS3__NAND_CE3_B 0xb0b1
>>>> - MX6QDL_PAD_SD4_CMD__NAND_RE_B 0xb0b1
>>>> - MX6QDL_PAD_SD4_CLK__NAND_WE_B 0xb0b1
>>>> - MX6QDL_PAD_NANDF_D0__NAND_DATA00 0xb0b1
>>>> - MX6QDL_PAD_NANDF_D1__NAND_DATA01 0xb0b1
>>>> - MX6QDL_PAD_NANDF_D2__NAND_DATA02 0xb0b1
>>>> - MX6QDL_PAD_NANDF_D3__NAND_DATA03 0xb0b1
>>>> - MX6QDL_PAD_NANDF_D4__NAND_DATA04 0xb0b1
>>>> - MX6QDL_PAD_NANDF_D5__NAND_DATA05 0xb0b1
>>>> - MX6QDL_PAD_NANDF_D6__NAND_DATA06 0xb0b1
>>>> - MX6QDL_PAD_NANDF_D7__NAND_DATA07 0xb0b1
>>>> - MX6QDL_PAD_SD4_DAT0__NAND_DQS 0x00b1
>>>> - >;
>>>> - };
>>>> -
>>>> - pinctrl_i2c3: i2c3grp {
>>>> - fsl,pins = <
>>>> - MX6QDL_PAD_GPIO_6__I2C3_SDA 0x4001b8b1
>>>> - MX6QDL_PAD_GPIO_5__I2C3_SCL 0x4001b8b1
>>>> - >;
>>>> - };
>>>> -
>>>> - pinctrl_uart2: uart2grp {
>>>> - fsl,pins = <
>>>> - MX6QDL_PAD_EIM_D26__UART2_TX_DATA 0x1b0b1
>>>> - MX6QDL_PAD_EIM_D27__UART2_RX_DATA 0x1b0b1
>>>> - >;
>>>> - };
>>>> -
>>>> - pinctrl_usbh1_vbus: usbh1vbusgrp {
>>>> - fsl,pins = <
>>>> - MX6QDL_PAD_EIM_A20__GPIO2_IO18 0xb0b1
>>>> - >;
>>>> - };
>>>> -
>>>> - pinctrl_usbotg: usbotggrp {
>>>> - fsl,pins = <
>>>> - MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059
>>>> - >;
>>>> - };
>>>> -
>>>> - pinctrl_usbotg_vbus: usbotgvbusgrp {
>>>> - fsl,pins = <
>>>> - MX6QDL_PAD_EIM_A19__GPIO2_IO19 0xb0b1
>>>> - >;
>>>> - };
>>>> -
>>>> - pinctrl_usdhc1: usdhc1grp {
>>>> - fsl,pins = <
>>>> - MX6QDL_PAD_SD1_CMD__SD1_CMD 0x170f9
>>>> - MX6QDL_PAD_SD1_CLK__SD1_CLK 0x100f9
>>>> - MX6QDL_PAD_SD1_DAT0__SD1_DATA0 0x170f9
>>>> - MX6QDL_PAD_SD1_DAT1__SD1_DATA1 0x170f9
>>>> - MX6QDL_PAD_SD1_DAT2__SD1_DATA2 0x170f9
>>>> - MX6QDL_PAD_SD1_DAT3__SD1_DATA3 0x170f9
>>>> - MX6QDL_PAD_EIM_BCLK__GPIO6_IO31 0x80000000 /* CD */
>>>> - >;
>>>> - };
>>>> -
>>>> - pinctrl_usdhc4: usdhc4grp {
>>>> - fsl,pins = <
>>>> - MX6QDL_PAD_SD4_CMD__SD4_CMD 0x17059
>>>> - MX6QDL_PAD_SD4_CLK__SD4_CLK 0x10059
>>>> - MX6QDL_PAD_SD4_DAT0__SD4_DATA0 0x17059
>>>> - MX6QDL_PAD_SD4_DAT1__SD4_DATA1 0x17059
>>>> - MX6QDL_PAD_SD4_DAT2__SD4_DATA2 0x17059
>>>> - MX6QDL_PAD_SD4_DAT3__SD4_DATA3 0x17059
>>>> - MX6QDL_PAD_SD4_DAT4__SD4_DATA4 0x17059
>>>> - MX6QDL_PAD_SD4_DAT5__SD4_DATA5 0x17059
>>>> - MX6QDL_PAD_SD4_DAT6__SD4_DATA6 0x17059
>>>> - MX6QDL_PAD_SD4_DAT7__SD4_DATA7 0x17059
>>>> - >;
>>>> - };
>>>> -};
>>>> -
>>>> &ocotp {
>>>> barebox,provide-mac-address = <&fec 0x620>;
>>>> };
>>>> -&uart2 {
>>>> - pinctrl-names = "default";
>>>> - pinctrl-0 = <&pinctrl_uart2>;
>>>> - status = "okay";
>>>> -};
>>>> -
>>>> -&usbh1 {
>>>> - vbus-supply = <®_usbh1_vbus>;
>>>> - disable-over-current;
>>>> - status = "disabled";
>>>> -};
>>>> -
>>>> -&usbotg {
>>>> - pinctrl-names = "default";
>>>> - pinctrl-0 = <&pinctrl_usbotg>;
>>>> - vbus-supply = <®_usbotg_vbus>;
>>>> - disable-over-current;
>>>> - status = "disabled";
>>>> -};
>>>> -
>>>> -&usdhc1 {
>>>> - pinctrl-names = "default";
>>>> - pinctrl-0 = <&pinctrl_usdhc1>;
>>>> - cd-gpios = <&gpio6 31 0>;
>>>> - status = "disabled";
>>>> -};
>>>> -
>>>> &usdhc4 {
>>>> - pinctrl-names = "default";
>>>> - pinctrl-0 = <&pinctrl_usdhc4>;
>>>> - bus-width = <8>;
>>>> - non-removable;
>>>> - status = "disabled";
>>>> -
>>>> #address-cells = <1>;
>>>> #size-cells = <1>;
>>>> diff --git a/arch/arm/dts/imx6qp-phytec-phycore-som-nand.dts b/arch/arm/dts/imx6qp-phytec-phycore-som-nand.dts
>>>> index 437457ce75..06def935b0 100644
>>>> --- a/arch/arm/dts/imx6qp-phytec-phycore-som-nand.dts
>>>> +++ b/arch/arm/dts/imx6qp-phytec-phycore-som-nand.dts
>>>> @@ -10,50 +10,20 @@
>>>> * http://www.gnu.org/copyleft/gpl.html
>>>> */
>>>> -/dts-v1/;
>>>> -#include <arm/imx6qp.dtsi>
>>>> +#include <arm/imx6qp-phytec-mira-rdk-nand.dts>
>>>> #include "imx6qdl-phytec-phycore-som.dtsi"
>>>> / {
>>>> - model = "Phytec phyCORE-i.MX6 Quad with NAND";
>>>> - compatible = "phytec,imx6qp-pcm058-nand", "fsl,imx6qp";
>>>> -};
>>>> -
>>>> -&ecspi1 {
>>>> - status = "okay";
>>>> -};
>>>> -
>>>> -&eeprom {
>>>> - status = "okay";
>>>> + compatible = "phytec,imx6qp-pbac06-nand", "phytec,imx6qp-pbac06",
>>>> + "phytec,imx6qp-pcm058-nand", "phytec,imx6qdl-pcm058",
>>>> + "fsl,imx6qp";
>>>> };
>>>> ðphy {
>>>> max-speed = <1000>;
>>>> };
>>>> -&fec {
>>>> - status = "okay";
>>>> -};
>>>> -
>>>> -&flash {
>>>> - status = "okay";
>>>> -};
>>>> -
>>>> -&gpmi {
>>>> - status = "okay";
>>>> -};
>>>> -
>>>> -&usbh1 {
>>>> - status = "okay";
>>>> -};
>>>> -
>>>> -&usbotg {
>>>> - status = "okay";
>>>> -};
>>>> -
>>>> &usdhc1 {
>>>> - status = "okay";
>>>> -
>>>> partitions {
>>>> compatible = "fixed-partitions";
>>>> #address-cells = <1>;
>>>> --
>>>> 2.20.1
>>>>
>>>>
>>>> _______________________________________________
>>>> barebox mailing list
>>>> barebox@lists.infradead.org
>>>> http://lists.infradead.org/mailman/listinfo/barebox
>>>>
>>>
>>
>> _______________________________________________
>> barebox mailing list
>> barebox@lists.infradead.org
>> http://lists.infradead.org/mailman/listinfo/barebox
>>
>
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2019-09-24 13:30 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-11 14:56 [PATCH 1/2] ARM: dts: imx6: phycore: make use of upstream dts Marco Felsch
2019-09-11 14:56 ` [PATCH 2/2] ARM: dts: imx6: phycore: use spdx license identifier Marco Felsch
2019-09-20 14:12 ` [PATCH 1/2] ARM: dts: imx6: phycore: make use of upstream dts Marco Felsch
2019-09-23 8:31 ` Stefan Riedmüller
2019-09-23 11:40 ` Marco Felsch
2019-09-24 13:30 ` Stefan Riedmüller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox