* [PATCH 1/6] ARM: mx27: Replace clk_register_clkdev with clock DT lookup
[not found] ` <1371739815-6666-1-git-send-email-mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
@ 2013-06-20 14:50 ` Markus Pargmann
[not found] ` <1371739815-6666-2-git-send-email-mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2013-06-20 14:50 ` [PATCH 2/6] ARM: imx27: Use 'AITC' for the interrupt controller name Markus Pargmann
` (4 subsequent siblings)
5 siblings, 1 reply; 23+ messages in thread
From: Markus Pargmann @ 2013-06-20 14:50 UTC (permalink / raw)
To: Shawn Guo, Sascha Hauer
Cc: Fabio Estevam, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ,
Alexander Shiyan,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
From: Fabio Estevam <fabio.estevam-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
Similarly as it was done for mx6q, use a DT lookup in order to make maintainance
task for the clock devices easier.
Signed-off-by: Fabio Estevam <fabio.estevam-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
[Markus Pargmann: Add gpio clocks]
Signed-off-by: Markus Pargmann <mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
---
arch/arm/boot/dts/imx27.dtsi | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/arch/arm/boot/dts/imx27.dtsi b/arch/arm/boot/dts/imx27.dtsi
index 0695264..48c263c 100644
--- a/arch/arm/boot/dts/imx27.dtsi
+++ b/arch/arm/boot/dts/imx27.dtsi
@@ -208,6 +208,8 @@
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
+ clocks = <&clks 47>;
+ clock-names = "ipg";
};
gpio2: gpio@10015100 {
@@ -218,6 +220,8 @@
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
+ clocks = <&clks 47>;
+ clock-names = "ipg";
};
gpio3: gpio@10015200 {
@@ -228,6 +232,8 @@
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
+ clocks = <&clks 47>;
+ clock-names = "ipg";
};
gpio4: gpio@10015300 {
@@ -238,6 +244,8 @@
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
+ clocks = <&clks 47>;
+ clock-names = "ipg";
};
gpio5: gpio@10015400 {
@@ -248,6 +256,8 @@
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
+ clocks = <&clks 47>;
+ clock-names = "ipg";
};
gpio6: gpio@10015500 {
@@ -258,6 +268,8 @@
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
+ clocks = <&clks 47>;
+ clock-names = "ipg";
};
cspi3: cspi@10017000 {
--
1.8.2.1
^ permalink raw reply related [flat|nested] 23+ messages in thread
* [PATCH 2/6] ARM: imx27: Use 'AITC' for the interrupt controller name
[not found] ` <1371739815-6666-1-git-send-email-mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2013-06-20 14:50 ` [PATCH 1/6] ARM: mx27: Replace clk_register_clkdev with clock DT lookup Markus Pargmann
@ 2013-06-20 14:50 ` Markus Pargmann
2013-06-20 14:50 ` [PATCH 3/6] ARM: dts: imx27: Add imx framebuffer device Markus Pargmann
` (3 subsequent siblings)
5 siblings, 0 replies; 23+ messages in thread
From: Markus Pargmann @ 2013-06-20 14:50 UTC (permalink / raw)
To: Shawn Guo, Sascha Hauer
Cc: Fabio Estevam, Alexander Shiyan,
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, Uwe Kleine-König,
Fabio Estevam, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
From: Fabio Estevam <festevam@gmail.com>
On the MX27 Reference Manual the interrupt controller is named AITC:
ARM926EJ-S Interrupt Controller
So use the AITC term instead of AVIC.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Origin: id:1334193132-18944-2-git-send-email-festevam@gmail.com
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
---
arch/arm/boot/dts/imx27.dtsi | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/arm/boot/dts/imx27.dtsi b/arch/arm/boot/dts/imx27.dtsi
index 48c263c..4f76453 100644
--- a/arch/arm/boot/dts/imx27.dtsi
+++ b/arch/arm/boot/dts/imx27.dtsi
@@ -30,8 +30,8 @@
spi2 = &cspi3;
};
- avic: avic-interrupt-controller@e0000000 {
- compatible = "fsl,imx27-avic", "fsl,avic";
+ aitc: aitc-interrupt-controller@e0000000 {
+ compatible = "fsl,imx27-aitc", "fsl,avic";
interrupt-controller;
#interrupt-cells = <1>;
reg = <0x10040000 0x1000>;
@@ -51,7 +51,7 @@
#address-cells = <1>;
#size-cells = <1>;
compatible = "simple-bus";
- interrupt-parent = <&avic>;
+ interrupt-parent = <&aitc>;
ranges;
aipi@10000000 { /* AIPI1 */
--
1.8.2.1
_______________________________________________
devicetree-discuss mailing list
devicetree-discuss@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/devicetree-discuss
^ permalink raw reply related [flat|nested] 23+ messages in thread
* [PATCH 3/6] ARM: dts: imx27: Add imx framebuffer device
[not found] ` <1371739815-6666-1-git-send-email-mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2013-06-20 14:50 ` [PATCH 1/6] ARM: mx27: Replace clk_register_clkdev with clock DT lookup Markus Pargmann
2013-06-20 14:50 ` [PATCH 2/6] ARM: imx27: Use 'AITC' for the interrupt controller name Markus Pargmann
@ 2013-06-20 14:50 ` Markus Pargmann
2013-06-20 14:50 ` [PATCH 4/6] ARM: dts: imx27: Add 1-wire Markus Pargmann
` (2 subsequent siblings)
5 siblings, 0 replies; 23+ messages in thread
From: Markus Pargmann @ 2013-06-20 14:50 UTC (permalink / raw)
To: Shawn Guo, Sascha Hauer
Cc: Fabio Estevam, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ,
Alexander Shiyan,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
Signed-off-by: Markus Pargmann <mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
---
arch/arm/boot/dts/imx27.dtsi | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/arm/boot/dts/imx27.dtsi b/arch/arm/boot/dts/imx27.dtsi
index 4f76453..044004a 100644
--- a/arch/arm/boot/dts/imx27.dtsi
+++ b/arch/arm/boot/dts/imx27.dtsi
@@ -354,6 +354,15 @@
reg = <0x10020000 0x20000>;
ranges;
+ imxfb: fb@10021000 {
+ compatible = "fsl,imx27-fb", "fsl,imx21-fb";
+ interrupts = <61>;
+ reg = <0x10021000 0x1000>;
+ clocks = <&clks 36>, <&clks 65>, <&clks 59>;
+ clock-names = "ipg", "ahb", "per";
+ status = "disabled";
+ };
+
coda: coda@10023000 {
compatible = "fsl,imx27-vpu";
reg = <0x10023000 0x0200>;
--
1.8.2.1
^ permalink raw reply related [flat|nested] 23+ messages in thread
* [PATCH 4/6] ARM: dts: imx27: Add 1-wire
[not found] ` <1371739815-6666-1-git-send-email-mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
` (2 preceding siblings ...)
2013-06-20 14:50 ` [PATCH 3/6] ARM: dts: imx27: Add imx framebuffer device Markus Pargmann
@ 2013-06-20 14:50 ` Markus Pargmann
2013-06-20 15:17 ` Alexander Shiyan
2013-06-20 14:50 ` [PATCH 5/6] ARM: dts: imx27 cpufreq-cpu0 frequencies Markus Pargmann
2013-06-20 14:50 ` [PATCH 6/6] ARM: dts: Add device tree support for phycard pca100 Markus Pargmann
5 siblings, 1 reply; 23+ messages in thread
From: Markus Pargmann @ 2013-06-20 14:50 UTC (permalink / raw)
To: Shawn Guo, Sascha Hauer
Cc: Fabio Estevam, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ,
Alexander Shiyan,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
Signed-off-by: Markus Pargmann <mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
---
arch/arm/boot/dts/imx27.dtsi | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm/boot/dts/imx27.dtsi b/arch/arm/boot/dts/imx27.dtsi
index 044004a..e883e77 100644
--- a/arch/arm/boot/dts/imx27.dtsi
+++ b/arch/arm/boot/dts/imx27.dtsi
@@ -110,6 +110,14 @@
clock-names = "ipg", "per";
};
+ owire: owire@10009000 {
+ compatible = "fsl,imx21-owire";
+ reg = <0x10009000 0x1000>;
+ clocks = <&clks 35>;
+ clock-names = "ipg";
+ status = "disabled";
+ };
+
uart1: serial@1000a000 {
compatible = "fsl,imx27-uart", "fsl,imx21-uart";
reg = <0x1000a000 0x1000>;
--
1.8.2.1
^ permalink raw reply related [flat|nested] 23+ messages in thread
* Re: [PATCH 4/6] ARM: dts: imx27: Add 1-wire
2013-06-20 14:50 ` [PATCH 4/6] ARM: dts: imx27: Add 1-wire Markus Pargmann
@ 2013-06-20 15:17 ` Alexander Shiyan
[not found] ` <1371741454.488712140-ZzAHCfOzKYkox3rIn2DAYQ@public.gmane.org>
0 siblings, 1 reply; 23+ messages in thread
From: Alexander Shiyan @ 2013-06-20 15:17 UTC (permalink / raw)
To: Markus Pargmann
Cc: Fabio Estevam, devicetree-discuss, Shawn Guo, linux-arm-kernel,
Sascha Hauer
> Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
> ---
> arch/arm/boot/dts/imx27.dtsi | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/arch/arm/boot/dts/imx27.dtsi b/arch/arm/boot/dts/imx27.dtsi
> index 044004a..e883e77 100644
> --- a/arch/arm/boot/dts/imx27.dtsi
> +++ b/arch/arm/boot/dts/imx27.dtsi
> @@ -110,6 +110,14 @@
> clock-names = "ipg", "per";
> };
>
> + owire: owire@10009000 {
> + compatible = "fsl,imx21-owire";
I think you should use "fsl,imx27-owire", "fsl,imx21-owire" here.
> + reg = <0x10009000 0x1000>;
> + clocks = <&clks 35>;
> + clock-names = "ipg";
> + status = "disabled";
> + };
> +
> uart1: serial@1000a000 {
> compatible = "fsl,imx27-uart", "fsl,imx21-uart";
> reg = <0x1000a000 0x1000>;
> --
---
^ permalink raw reply [flat|nested] 23+ messages in thread
* [PATCH 5/6] ARM: dts: imx27 cpufreq-cpu0 frequencies
[not found] ` <1371739815-6666-1-git-send-email-mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
` (3 preceding siblings ...)
2013-06-20 14:50 ` [PATCH 4/6] ARM: dts: imx27: Add 1-wire Markus Pargmann
@ 2013-06-20 14:50 ` Markus Pargmann
[not found] ` <1371739815-6666-6-git-send-email-mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2013-06-20 14:50 ` [PATCH 6/6] ARM: dts: Add device tree support for phycard pca100 Markus Pargmann
5 siblings, 1 reply; 23+ messages in thread
From: Markus Pargmann @ 2013-06-20 14:50 UTC (permalink / raw)
To: Shawn Guo, Sascha Hauer
Cc: Fabio Estevam, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ,
Alexander Shiyan,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
Set operating-points for imx27. There is no regulator support, so the
voltages are 0. The frequencies should be the same for all imx27 boards,
so it is defined here and can be overwritten if necessary.
Signed-off-by: Markus Pargmann <mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
---
arch/arm/boot/dts/imx27.dtsi | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/arch/arm/boot/dts/imx27.dtsi b/arch/arm/boot/dts/imx27.dtsi
index e883e77..3ebd98a 100644
--- a/arch/arm/boot/dts/imx27.dtsi
+++ b/arch/arm/boot/dts/imx27.dtsi
@@ -47,6 +47,25 @@
};
};
+ cpus {
+ #size-cells = <0>;
+ #address-cells = <1>;
+
+ cpu@0 {
+ device_type = "cpu";
+ compatible = "fsl,imx27", "arm,arm926ejs";
+ reg = <0>;
+ operating-points = <
+ /* kHz uV (No regulator support) */
+ 133000 0
+ 399000 0
+ >;
+ clock-latency = <61036>; /* two CLK32 periods */
+ clocks = <&clks 18>;
+ clock-names = "cpu";
+ };
+ };
+
soc {
#address-cells = <1>;
#size-cells = <1>;
--
1.8.2.1
^ permalink raw reply related [flat|nested] 23+ messages in thread
* [PATCH 6/6] ARM: dts: Add device tree support for phycard pca100
[not found] ` <1371739815-6666-1-git-send-email-mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
` (4 preceding siblings ...)
2013-06-20 14:50 ` [PATCH 5/6] ARM: dts: imx27 cpufreq-cpu0 frequencies Markus Pargmann
@ 2013-06-20 14:50 ` Markus Pargmann
2013-06-20 15:15 ` Markus Pargmann
` (2 more replies)
5 siblings, 3 replies; 23+ messages in thread
From: Markus Pargmann @ 2013-06-20 14:50 UTC (permalink / raw)
To: Shawn Guo, Sascha Hauer
Cc: Fabio Estevam, Alexander Shiyan,
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, Steffen Trumtrar,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
Based on patches from:
Steffen Trumtrar <s.trumtrar@pengutronix.de>:
- Original patch
- ARM: dts: Set partition offsets for phycard
- ARM: dts: Use CSPI1 instead of CSPI2 on phycard pca100
- ARM: imx27-phytec-phycard-S.dts: resize nand partitions
Jan Luebbe <jlu@pengutronix.de>:
- ARM: dts: Enable bad block table in NAND
Cc: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Cc: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
---
arch/arm/boot/dts/Makefile | 1 +
arch/arm/boot/dts/imx27-phytec-phycard-S.dts | 195 +++++++++++++++++++++++++++
arch/arm/mach-imx/Kconfig | 1 +
3 files changed, 197 insertions(+)
create mode 100644 arch/arm/boot/dts/imx27-phytec-phycard-S.dts
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index b3a8661..e8fb0bc 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -105,6 +105,7 @@ dtb-$(CONFIG_ARCH_MXC) += \
imx27-pdk.dtb \
imx27-phytec-phycore-som.dtb \
imx27-phytec-phycore-rdk.dtb \
+ imx27-phytec-phycard-S.dtb \
imx31-bug.dtb \
imx51-apf51.dtb \
imx51-apf51dev.dtb \
diff --git a/arch/arm/boot/dts/imx27-phytec-phycard-S.dts b/arch/arm/boot/dts/imx27-phytec-phycard-S.dts
new file mode 100644
index 0000000..dc3a93b
--- /dev/null
+++ b/arch/arm/boot/dts/imx27-phytec-phycard-S.dts
@@ -0,0 +1,195 @@
+/*
+ * Copyright 2012 Sascha Hauer, Uwe Kleine-König and Steffen Trumtrar, Pengutronix
+ *
+ * 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/;
+#include "imx27.dtsi"
+
+/ {
+ model = "Phytec pca100";
+ compatible = "phytec,imx27-pca100", "fsl,imx27";
+
+ memory {
+ device_type = "memory";
+ #address-cells = <1>;
+ #size-cells = <1>;
+ reg = <0x0 0x08000000>; // 128MB
+ };
+
+ soc {
+ aipi@10000000 { /* aipi */
+ wdog@10002000 {
+ status = "okay";
+ };
+
+ owire@10009000 {
+ status = "okay";
+ };
+
+ serial@1000a000 {
+ fsl,uart-has-rtscts;
+ status = "okay";
+ };
+
+ serial@1000b000 {
+ fsl,uart-has-rtscts;
+ status = "okay";
+ };
+
+ serial@1000c000 {
+ fsl,uart-has-rtscts;
+ status = "okay";
+ };
+
+ cspi@1000e000 {
+ fsl,spi-num-chipselects = <2>;
+ cs-gpios = <&gpio4 28 0>,
+ <&gpio4 27 0>;
+ status = "okay";
+ };
+
+ i2c@10012000 {
+ status = "okay";
+ ioexpander@41 {
+ compatible = "nxp,pca9536";
+ reg = <0x41>;
+ };
+ rtc@51 {
+ compatible = "nxp,pcf8563";
+ reg = <0x51>;
+ };
+ dimmer@60 {
+ compatible = "nxp,pca9530";
+ reg = <0x60>;
+ pwm = <1 1>;
+ psc = <1 1>;
+ leds = <&led0 &led1>;
+ led0: led0 {
+ label = "pba-lcd_brightness";
+ default-state = "off";
+ type = "led";
+ };
+ led1: led1 {
+ label = "pba-free_use";
+ default-state = "off";
+ type = "led";
+ };
+ };
+ };
+
+ sdhci@10014000 {
+ cd-gpios = <&gpio3 29 0>;
+ status = "okay";
+ };
+
+ gpio@10015000 {
+ status = "okay";
+ };
+
+ gpio@10015100 {
+ status = "okay";
+ };
+
+ gpio@10015200 {
+ status = "okay";
+ };
+
+ gpio@10015300 {
+ status = "okay";
+ };
+
+ gpio@10015400 {
+ status = "okay";
+ };
+
+ gpio@10015500 {
+ status = "okay";
+ };
+
+ i2c@1001d000 {
+ status = "okay";
+
+ lm75@4a {
+ compatible = "national,lm75";
+ reg = <0x4a>;
+ };
+
+ rtc@51 {
+ compatible = "nxp,pcf8563";
+ reg = <0x51>;
+ };
+
+ at24@52 {
+ compatible = "at,24c32";
+ pagesize = <32>;
+ reg = <0x52>;
+ };
+ };
+ };
+
+ aipi@10020000 { /* AIPI2 */
+ fb@10021000 {
+ status = "okay";
+ display = <&display0>;
+ };
+
+ ethernet@1002b000 {
+ status = "okay";
+ };
+ }; /* AIPI */
+
+ nand@d8000000 {
+ status = "okay";
+ nand-bus-width = <8>;
+ nand-ecc-mode = "hw";
+ nand-on-flash-bbt;
+
+ barebox@0 {
+ label = "barebox";
+ reg = <0x0 0x80000>;
+ };
+
+ bareboxenv@80000 {
+ label = "bareboxenv";
+ reg = <0x80000 0x80000>;
+ };
+
+ kernel@100000 {
+ label = "kernel";
+ reg = <0x100000 0x500000>;
+ };
+
+ rootfs@500000 {
+ label = "rootfs";
+ reg = <0x500000 0x7b00000>;
+ };
+ };
+ };
+
+ display0: display0 {
+ model = "Primeview-PD050VL1";
+ native-mode = <&timing_disp0>;
+ bits-per-pixel = <16>; /* non-standard but required */
+ fsl,pcr = <0xf0c88080>; /* non-standard but required */
+ display-timings {
+ timing_disp0: 640x480 {
+ hactive = <640>;
+ vactive = <480>;
+ hback-porch = <112>;
+ hfront-porch = <36>;
+ hsync-len = <32>;
+ vback-porch = <33>;
+ vfront-porch = <33>;
+ vsync-len = <2>;
+ clock-frequency = <25000000>;
+ };
+ };
+ };
+};
diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
index f25cf88..5372337 100644
--- a/arch/arm/mach-imx/Kconfig
+++ b/arch/arm/mach-imx/Kconfig
@@ -441,6 +441,7 @@ config MACH_IMX27IPCAM
config MACH_IMX27_DT
bool "Support i.MX27 platforms from device tree"
select SOC_IMX27
+ select IMX_HAVE_PLATFORM_MXC_NAND
help
Include support for Freescale i.MX27 based platforms
using the device tree for discovery
--
1.8.2.1
_______________________________________________
devicetree-discuss mailing list
devicetree-discuss@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/devicetree-discuss
^ permalink raw reply related [flat|nested] 23+ messages in thread
* Re: [PATCH 6/6] ARM: dts: Add device tree support for phycard pca100
2013-06-20 14:50 ` [PATCH 6/6] ARM: dts: Add device tree support for phycard pca100 Markus Pargmann
@ 2013-06-20 15:15 ` Markus Pargmann
2013-06-20 15:21 ` Alexander Shiyan
[not found] ` <1371739815-6666-7-git-send-email-mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2 siblings, 0 replies; 23+ messages in thread
From: Markus Pargmann @ 2013-06-20 15:15 UTC (permalink / raw)
To: Shawn Guo, Sascha Hauer
Cc: Fabio Estevam, Jan Luebbe, Alexander Shiyan, devicetree-discuss,
Steffen Trumtrar, linux-arm-kernel
On Thu, Jun 20, 2013 at 04:50:15PM +0200, Markus Pargmann wrote:
> Based on patches from:
>
> Steffen Trumtrar <s.trumtrar@pengutronix.de>:
> - Original patch
> - ARM: dts: Set partition offsets for phycard
> - ARM: dts: Use CSPI1 instead of CSPI2 on phycard pca100
> - ARM: imx27-phytec-phycard-S.dts: resize nand partitions
>
> Jan Luebbe <jlu@pengutronix.de>:
> - ARM: dts: Enable bad block table in NAND
>
> Cc: Steffen Trumtrar <s.trumtrar@pengutronix.de>
> Cc: Jan Luebbe <jlu@pengutronix.de>
> Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
> ---
> arch/arm/boot/dts/Makefile | 1 +
> arch/arm/boot/dts/imx27-phytec-phycard-S.dts | 195 +++++++++++++++++++++++++++
> arch/arm/mach-imx/Kconfig | 1 +
> 3 files changed, 197 insertions(+)
> create mode 100644 arch/arm/boot/dts/imx27-phytec-phycard-S.dts
>
> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
> index b3a8661..e8fb0bc 100644
> --- a/arch/arm/boot/dts/Makefile
> +++ b/arch/arm/boot/dts/Makefile
> @@ -105,6 +105,7 @@ dtb-$(CONFIG_ARCH_MXC) += \
> imx27-pdk.dtb \
> imx27-phytec-phycore-som.dtb \
> imx27-phytec-phycore-rdk.dtb \
> + imx27-phytec-phycard-S.dtb \
> imx31-bug.dtb \
> imx51-apf51.dtb \
> imx51-apf51dev.dtb \
> diff --git a/arch/arm/boot/dts/imx27-phytec-phycard-S.dts b/arch/arm/boot/dts/imx27-phytec-phycard-S.dts
> new file mode 100644
> index 0000000..dc3a93b
> --- /dev/null
> +++ b/arch/arm/boot/dts/imx27-phytec-phycard-S.dts
> @@ -0,0 +1,195 @@
> +/*
> + * Copyright 2012 Sascha Hauer, Uwe Kleine-König and Steffen Trumtrar, Pengutronix
> + *
> + * 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/;
> +#include "imx27.dtsi"
> +
> +/ {
> + model = "Phytec pca100";
> + compatible = "phytec,imx27-pca100", "fsl,imx27";
> +
> + memory {
> + device_type = "memory";
> + #address-cells = <1>;
> + #size-cells = <1>;
> + reg = <0x0 0x08000000>; // 128MB
> + };
> +
> + soc {
> + aipi@10000000 { /* aipi */
> + wdog@10002000 {
> + status = "okay";
> + };
> +
> + owire@10009000 {
> + status = "okay";
> + };
> +
> + serial@1000a000 {
> + fsl,uart-has-rtscts;
> + status = "okay";
> + };
> +
> + serial@1000b000 {
> + fsl,uart-has-rtscts;
> + status = "okay";
> + };
> +
> + serial@1000c000 {
> + fsl,uart-has-rtscts;
> + status = "okay";
> + };
> +
> + cspi@1000e000 {
> + fsl,spi-num-chipselects = <2>;
> + cs-gpios = <&gpio4 28 0>,
> + <&gpio4 27 0>;
> + status = "okay";
> + };
> +
> + i2c@10012000 {
> + status = "okay";
> + ioexpander@41 {
> + compatible = "nxp,pca9536";
> + reg = <0x41>;
> + };
> + rtc@51 {
> + compatible = "nxp,pcf8563";
> + reg = <0x51>;
> + };
> + dimmer@60 {
> + compatible = "nxp,pca9530";
> + reg = <0x60>;
> + pwm = <1 1>;
> + psc = <1 1>;
> + leds = <&led0 &led1>;
> + led0: led0 {
> + label = "pba-lcd_brightness";
> + default-state = "off";
> + type = "led";
> + };
> + led1: led1 {
> + label = "pba-free_use";
> + default-state = "off";
> + type = "led";
> + };
> + };
> + };
> +
> + sdhci@10014000 {
> + cd-gpios = <&gpio3 29 0>;
> + status = "okay";
> + };
> +
> + gpio@10015000 {
> + status = "okay";
> + };
> +
> + gpio@10015100 {
> + status = "okay";
> + };
> +
> + gpio@10015200 {
> + status = "okay";
> + };
> +
> + gpio@10015300 {
> + status = "okay";
> + };
> +
> + gpio@10015400 {
> + status = "okay";
> + };
> +
> + gpio@10015500 {
> + status = "okay";
> + };
> +
> + i2c@1001d000 {
> + status = "okay";
> +
> + lm75@4a {
> + compatible = "national,lm75";
> + reg = <0x4a>;
> + };
> +
> + rtc@51 {
> + compatible = "nxp,pcf8563";
> + reg = <0x51>;
> + };
> +
> + at24@52 {
> + compatible = "at,24c32";
> + pagesize = <32>;
> + reg = <0x52>;
> + };
> + };
> + };
> +
> + aipi@10020000 { /* AIPI2 */
> + fb@10021000 {
> + status = "okay";
> + display = <&display0>;
> + };
> +
> + ethernet@1002b000 {
> + status = "okay";
> + };
> + }; /* AIPI */
> +
> + nand@d8000000 {
> + status = "okay";
> + nand-bus-width = <8>;
> + nand-ecc-mode = "hw";
> + nand-on-flash-bbt;
> +
> + barebox@0 {
> + label = "barebox";
> + reg = <0x0 0x80000>;
> + };
> +
> + bareboxenv@80000 {
> + label = "bareboxenv";
> + reg = <0x80000 0x80000>;
> + };
> +
> + kernel@100000 {
> + label = "kernel";
> + reg = <0x100000 0x500000>;
> + };
> +
> + rootfs@500000 {
> + label = "rootfs";
> + reg = <0x500000 0x7b00000>;
> + };
> + };
> + };
> +
> + display0: display0 {
> + model = "Primeview-PD050VL1";
> + native-mode = <&timing_disp0>;
> + bits-per-pixel = <16>; /* non-standard but required */
> + fsl,pcr = <0xf0c88080>; /* non-standard but required */
> + display-timings {
> + timing_disp0: 640x480 {
> + hactive = <640>;
> + vactive = <480>;
> + hback-porch = <112>;
> + hfront-porch = <36>;
> + hsync-len = <32>;
> + vback-porch = <33>;
> + vfront-porch = <33>;
> + vsync-len = <2>;
> + clock-frequency = <25000000>;
> + };
> + };
> + };
> +};
> diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
> index f25cf88..5372337 100644
> --- a/arch/arm/mach-imx/Kconfig
> +++ b/arch/arm/mach-imx/Kconfig
> @@ -441,6 +441,7 @@ config MACH_IMX27IPCAM
> config MACH_IMX27_DT
> bool "Support i.MX27 platforms from device tree"
> select SOC_IMX27
> + select IMX_HAVE_PLATFORM_MXC_NAND
This select is not necessary. I will send a new version at the weekend.
Regards,
Markus
--
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 |
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH 6/6] ARM: dts: Add device tree support for phycard pca100
2013-06-20 14:50 ` [PATCH 6/6] ARM: dts: Add device tree support for phycard pca100 Markus Pargmann
2013-06-20 15:15 ` Markus Pargmann
@ 2013-06-20 15:21 ` Alexander Shiyan
[not found] ` <1371741670.186508416-ZzAHCfOzKYkox3rIn2DAYQ@public.gmane.org>
[not found] ` <1371739815-6666-7-git-send-email-mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2 siblings, 1 reply; 23+ messages in thread
From: Alexander Shiyan @ 2013-06-20 15:21 UTC (permalink / raw)
To: Markus Pargmann
Cc: Fabio Estevam, Steffen Trumtrar, Jan Luebbe, devicetree-discuss,
Sascha Hauer, Shawn Guo, linux-arm-kernel
> Based on patches from:
>
> Steffen Trumtrar <s.trumtrar@pengutronix.de>:
> - Original patch
> - ARM: dts: Set partition offsets for phycard
> - ARM: dts: Use CSPI1 instead of CSPI2 on phycard pca100
> - ARM: imx27-phytec-phycard-S.dts: resize nand partitions
>
> Jan Luebbe <jlu@pengutronix.de>:
> - ARM: dts: Enable bad block table in NAND
>
> Cc: Steffen Trumtrar <s.trumtrar@pengutronix.de>
> Cc: Jan Luebbe <jlu@pengutronix.de>
> Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
...
> + gpio@10015000 {
> + status = "okay";
> + };
> +
> + gpio@10015100 {
> + status = "okay";
> + };
> +
> + gpio@10015200 {
> + status = "okay";
> + };
> +
> + gpio@10015300 {
> + status = "okay";
> + };
> +
> + gpio@10015400 {
> + status = "okay";
> + };
> +
> + gpio@10015500 {
> + status = "okay";
> + };
No need setup status for devices which not disabled in imx27.dts
---
^ permalink raw reply [flat|nested] 23+ messages in thread
[parent not found: <1371739815-6666-7-git-send-email-mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>]
* Re: [PATCH 6/6] ARM: dts: Add device tree support for phycard pca100
[not found] ` <1371739815-6666-7-git-send-email-mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
@ 2013-06-21 3:46 ` Shawn Guo
2013-06-23 8:17 ` Markus Pargmann
0 siblings, 1 reply; 23+ messages in thread
From: Shawn Guo @ 2013-06-21 3:46 UTC (permalink / raw)
To: Markus Pargmann
Cc: Fabio Estevam, Alexander Shiyan,
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, Sascha Hauer,
Steffen Trumtrar,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
On Thu, Jun 20, 2013 at 04:50:15PM +0200, Markus Pargmann wrote:
> Based on patches from:
>
> Steffen Trumtrar <s.trumtrar-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>:
> - Original patch
> - ARM: dts: Set partition offsets for phycard
> - ARM: dts: Use CSPI1 instead of CSPI2 on phycard pca100
> - ARM: imx27-phytec-phycard-S.dts: resize nand partitions
>
> Jan Luebbe <jlu-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>:
> - ARM: dts: Enable bad block table in NAND
>
> Cc: Steffen Trumtrar <s.trumtrar-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
> Cc: Jan Luebbe <jlu-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
> Signed-off-by: Markus Pargmann <mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
> ---
> arch/arm/boot/dts/Makefile | 1 +
> arch/arm/boot/dts/imx27-phytec-phycard-S.dts | 195 +++++++++++++++++++++++++++
> arch/arm/mach-imx/Kconfig | 1 +
> 3 files changed, 197 insertions(+)
> create mode 100644 arch/arm/boot/dts/imx27-phytec-phycard-S.dts
>
> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
> index b3a8661..e8fb0bc 100644
> --- a/arch/arm/boot/dts/Makefile
> +++ b/arch/arm/boot/dts/Makefile
> @@ -105,6 +105,7 @@ dtb-$(CONFIG_ARCH_MXC) += \
> imx27-pdk.dtb \
> imx27-phytec-phycore-som.dtb \
> imx27-phytec-phycore-rdk.dtb \
> + imx27-phytec-phycard-S.dtb \
> imx31-bug.dtb \
> imx51-apf51.dtb \
> imx51-apf51dev.dtb \
> diff --git a/arch/arm/boot/dts/imx27-phytec-phycard-S.dts b/arch/arm/boot/dts/imx27-phytec-phycard-S.dts
> new file mode 100644
> index 0000000..dc3a93b
> --- /dev/null
> +++ b/arch/arm/boot/dts/imx27-phytec-phycard-S.dts
> @@ -0,0 +1,195 @@
> +/*
> + * Copyright 2012 Sascha Hauer, Uwe Kleine-König and Steffen Trumtrar, Pengutronix
> + *
> + * 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/;
> +#include "imx27.dtsi"
> +
> +/ {
> + model = "Phytec pca100";
> + compatible = "phytec,imx27-pca100", "fsl,imx27";
> +
> + memory {
> + device_type = "memory";
It's been covered by skeleton.dtsi.
> + #address-cells = <1>;
> + #size-cells = <1>;
They are only needed if there are child nodes with "reg" property.
> + reg = <0x0 0x08000000>; // 128MB
> + };
> +
> + soc {
> + aipi@10000000 { /* aipi */
> + wdog@10002000 {
> + status = "okay";
> + };
We now use node label in board dts files to refer to the nodes defined
in soc dts.
> +
> + owire@10009000 {
> + status = "okay";
> + };
> +
> + serial@1000a000 {
> + fsl,uart-has-rtscts;
> + status = "okay";
> + };
> +
> + serial@1000b000 {
> + fsl,uart-has-rtscts;
> + status = "okay";
> + };
> +
> + serial@1000c000 {
> + fsl,uart-has-rtscts;
> + status = "okay";
> + };
> +
> + cspi@1000e000 {
> + fsl,spi-num-chipselects = <2>;
> + cs-gpios = <&gpio4 28 0>,
> + <&gpio4 27 0>;
> + status = "okay";
> + };
> +
> + i2c@10012000 {
> + status = "okay";
> + ioexpander@41 {
> + compatible = "nxp,pca9536";
> + reg = <0x41>;
> + };
Please put blank line before and after node.
> + rtc@51 {
> + compatible = "nxp,pcf8563";
> + reg = <0x51>;
> + };
> + dimmer@60 {
> + compatible = "nxp,pca9530";
> + reg = <0x60>;
> + pwm = <1 1>;
> + psc = <1 1>;
> + leds = <&led0 &led1>;
Are these documented/accepted bindings?
> + led0: led0 {
> + label = "pba-lcd_brightness";
> + default-state = "off";
> + type = "led";
What is this "type" property used for? Is it documented?
> + };
> + led1: led1 {
> + label = "pba-free_use";
> + default-state = "off";
> + type = "led";
> + };
> + };
> + };
> +
> + sdhci@10014000 {
> + cd-gpios = <&gpio3 29 0>;
> + status = "okay";
> + };
> +
> + gpio@10015000 {
> + status = "okay";
> + };
> +
> + gpio@10015100 {
> + status = "okay";
> + };
> +
> + gpio@10015200 {
> + status = "okay";
> + };
> +
> + gpio@10015300 {
> + status = "okay";
> + };
> +
> + gpio@10015400 {
> + status = "okay";
> + };
> +
> + gpio@10015500 {
> + status = "okay";
> + };
> +
> + i2c@1001d000 {
> + status = "okay";
> +
> + lm75@4a {
> + compatible = "national,lm75";
> + reg = <0x4a>;
> + };
> +
> + rtc@51 {
> + compatible = "nxp,pcf8563";
> + reg = <0x51>;
> + };
> +
> + at24@52 {
> + compatible = "at,24c32";
> + pagesize = <32>;
> + reg = <0x52>;
> + };
> + };
> + };
> +
> + aipi@10020000 { /* AIPI2 */
> + fb@10021000 {
> + status = "okay";
Please let it be the last property in the node.
> + display = <&display0>;
> + };
> +
> + ethernet@1002b000 {
> + status = "okay";
> + };
> + }; /* AIPI */
> +
> + nand@d8000000 {
> + status = "okay";
Ditto
> + nand-bus-width = <8>;
> + nand-ecc-mode = "hw";
> + nand-on-flash-bbt;
> +
> + barebox@0 {
> + label = "barebox";
> + reg = <0x0 0x80000>;
> + };
> +
> + bareboxenv@80000 {
> + label = "bareboxenv";
> + reg = <0x80000 0x80000>;
> + };
> +
> + kernel@100000 {
> + label = "kernel";
> + reg = <0x100000 0x500000>;
> + };
> +
> + rootfs@500000 {
> + label = "rootfs";
> + reg = <0x500000 0x7b00000>;
> + };
People are against the idea of putting partition layout in device tree.
> + };
> + };
> +
> + display0: display0 {
> + model = "Primeview-PD050VL1";
> + native-mode = <&timing_disp0>;
> + bits-per-pixel = <16>; /* non-standard but required */
> + fsl,pcr = <0xf0c88080>; /* non-standard but required */
Has the code/document for these non-standard properties been accepted?
Shawn
> + display-timings {
> + timing_disp0: 640x480 {
> + hactive = <640>;
> + vactive = <480>;
> + hback-porch = <112>;
> + hfront-porch = <36>;
> + hsync-len = <32>;
> + vback-porch = <33>;
> + vfront-porch = <33>;
> + vsync-len = <2>;
> + clock-frequency = <25000000>;
> + };
> + };
> + };
> +};
> diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
> index f25cf88..5372337 100644
> --- a/arch/arm/mach-imx/Kconfig
> +++ b/arch/arm/mach-imx/Kconfig
> @@ -441,6 +441,7 @@ config MACH_IMX27IPCAM
> config MACH_IMX27_DT
> bool "Support i.MX27 platforms from device tree"
> select SOC_IMX27
> + select IMX_HAVE_PLATFORM_MXC_NAND
> help
> Include support for Freescale i.MX27 based platforms
> using the device tree for discovery
> --
> 1.8.2.1
>
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH 6/6] ARM: dts: Add device tree support for phycard pca100
2013-06-21 3:46 ` Shawn Guo
@ 2013-06-23 8:17 ` Markus Pargmann
0 siblings, 0 replies; 23+ messages in thread
From: Markus Pargmann @ 2013-06-23 8:17 UTC (permalink / raw)
To: Shawn Guo
Cc: Fabio Estevam, Jan Luebbe, Alexander Shiyan, devicetree-discuss,
Sascha Hauer, Steffen Trumtrar, linux-arm-kernel
On Fri, Jun 21, 2013 at 11:46:05AM +0800, Shawn Guo wrote:
> On Thu, Jun 20, 2013 at 04:50:15PM +0200, Markus Pargmann wrote:
> > Based on patches from:
> >
> > Steffen Trumtrar <s.trumtrar@pengutronix.de>:
> > - Original patch
> > - ARM: dts: Set partition offsets for phycard
> > - ARM: dts: Use CSPI1 instead of CSPI2 on phycard pca100
> > - ARM: imx27-phytec-phycard-S.dts: resize nand partitions
> >
> > Jan Luebbe <jlu@pengutronix.de>:
> > - ARM: dts: Enable bad block table in NAND
> >
> > Cc: Steffen Trumtrar <s.trumtrar@pengutronix.de>
> > Cc: Jan Luebbe <jlu@pengutronix.de>
> > Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
> > ---
> > arch/arm/boot/dts/Makefile | 1 +
> > arch/arm/boot/dts/imx27-phytec-phycard-S.dts | 195 +++++++++++++++++++++++++++
> > arch/arm/mach-imx/Kconfig | 1 +
> > 3 files changed, 197 insertions(+)
> > create mode 100644 arch/arm/boot/dts/imx27-phytec-phycard-S.dts
> >
> > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
> > index b3a8661..e8fb0bc 100644
> > --- a/arch/arm/boot/dts/Makefile
> > +++ b/arch/arm/boot/dts/Makefile
> > @@ -105,6 +105,7 @@ dtb-$(CONFIG_ARCH_MXC) += \
> > imx27-pdk.dtb \
> > imx27-phytec-phycore-som.dtb \
> > imx27-phytec-phycore-rdk.dtb \
> > + imx27-phytec-phycard-S.dtb \
> > imx31-bug.dtb \
> > imx51-apf51.dtb \
> > imx51-apf51dev.dtb \
> > diff --git a/arch/arm/boot/dts/imx27-phytec-phycard-S.dts b/arch/arm/boot/dts/imx27-phytec-phycard-S.dts
> > new file mode 100644
> > index 0000000..dc3a93b
> > --- /dev/null
> > +++ b/arch/arm/boot/dts/imx27-phytec-phycard-S.dts
> > @@ -0,0 +1,195 @@
> > +/*
> > + * Copyright 2012 Sascha Hauer, Uwe Kleine-König and Steffen Trumtrar, Pengutronix
> > + *
> > + * 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/;
> > +#include "imx27.dtsi"
> > +
> > +/ {
> > + model = "Phytec pca100";
> > + compatible = "phytec,imx27-pca100", "fsl,imx27";
> > +
> > + memory {
> > + device_type = "memory";
>
> It's been covered by skeleton.dtsi.
>
> > + #address-cells = <1>;
> > + #size-cells = <1>;
>
> They are only needed if there are child nodes with "reg" property.
Removed
>
> > + reg = <0x0 0x08000000>; // 128MB
> > + };
> > +
> > + soc {
> > + aipi@10000000 { /* aipi */
> > + wdog@10002000 {
> > + status = "okay";
> > + };
>
> We now use node label in board dts files to refer to the nodes defined
> in soc dts.
I replaced all node identifiers with their labels.
>
> > +
> > + owire@10009000 {
> > + status = "okay";
> > + };
> > +
> > + serial@1000a000 {
> > + fsl,uart-has-rtscts;
> > + status = "okay";
> > + };
> > +
> > + serial@1000b000 {
> > + fsl,uart-has-rtscts;
> > + status = "okay";
> > + };
> > +
> > + serial@1000c000 {
> > + fsl,uart-has-rtscts;
> > + status = "okay";
> > + };
> > +
> > + cspi@1000e000 {
> > + fsl,spi-num-chipselects = <2>;
> > + cs-gpios = <&gpio4 28 0>,
> > + <&gpio4 27 0>;
> > + status = "okay";
> > + };
> > +
> > + i2c@10012000 {
> > + status = "okay";
> > + ioexpander@41 {
> > + compatible = "nxp,pca9536";
> > + reg = <0x41>;
> > + };
>
> Please put blank line before and after node.
Fixed
>
> > + rtc@51 {
> > + compatible = "nxp,pcf8563";
> > + reg = <0x51>;
> > + };
> > + dimmer@60 {
> > + compatible = "nxp,pca9530";
> > + reg = <0x60>;
>
> > + pwm = <1 1>;
> > + psc = <1 1>;
> > + leds = <&led0 &led1>;
>
> Are these documented/accepted bindings?
No, sorry, I forgot to remove them.
>
> > + led0: led0 {
> > + label = "pba-lcd_brightness";
> > + default-state = "off";
> > + type = "led";
>
> What is this "type" property used for? Is it documented?
>
> > + };
> > + led1: led1 {
> > + label = "pba-free_use";
> > + default-state = "off";
> > + type = "led";
> > + };
> > + };
> > + };
> > +
> > + sdhci@10014000 {
> > + cd-gpios = <&gpio3 29 0>;
> > + status = "okay";
> > + };
> > +
> > + gpio@10015000 {
> > + status = "okay";
> > + };
> > +
> > + gpio@10015100 {
> > + status = "okay";
> > + };
> > +
> > + gpio@10015200 {
> > + status = "okay";
> > + };
> > +
> > + gpio@10015300 {
> > + status = "okay";
> > + };
> > +
> > + gpio@10015400 {
> > + status = "okay";
> > + };
> > +
> > + gpio@10015500 {
> > + status = "okay";
> > + };
> > +
> > + i2c@1001d000 {
> > + status = "okay";
> > +
> > + lm75@4a {
> > + compatible = "national,lm75";
> > + reg = <0x4a>;
> > + };
> > +
> > + rtc@51 {
> > + compatible = "nxp,pcf8563";
> > + reg = <0x51>;
> > + };
> > +
> > + at24@52 {
> > + compatible = "at,24c32";
> > + pagesize = <32>;
> > + reg = <0x52>;
> > + };
> > + };
> > + };
> > +
> > + aipi@10020000 { /* AIPI2 */
> > + fb@10021000 {
> > + status = "okay";
>
> Please let it be the last property in the node.
Fixed.
>
> > + display = <&display0>;
> > + };
> > +
> > + ethernet@1002b000 {
> > + status = "okay";
> > + };
> > + }; /* AIPI */
> > +
> > + nand@d8000000 {
> > + status = "okay";
>
> Ditto
>
> > + nand-bus-width = <8>;
> > + nand-ecc-mode = "hw";
> > + nand-on-flash-bbt;
> > +
> > + barebox@0 {
> > + label = "barebox";
> > + reg = <0x0 0x80000>;
> > + };
> > +
> > + bareboxenv@80000 {
> > + label = "bareboxenv";
> > + reg = <0x80000 0x80000>;
> > + };
> > +
> > + kernel@100000 {
> > + label = "kernel";
> > + reg = <0x100000 0x500000>;
> > + };
> > +
> > + rootfs@500000 {
> > + label = "rootfs";
> > + reg = <0x500000 0x7b00000>;
> > + };
>
> People are against the idea of putting partition layout in device tree.
Removed.
>
> > + };
> > + };
> > +
> > + display0: display0 {
> > + model = "Primeview-PD050VL1";
> > + native-mode = <&timing_disp0>;
> > + bits-per-pixel = <16>; /* non-standard but required */
> > + fsl,pcr = <0xf0c88080>; /* non-standard but required */
>
> Has the code/document for these non-standard properties been accepted?
Yes, it was accepted:
https://patchwork.kernel.org/patch/2614951/
Thank you,
Markus
>
> Shawn
>
> > + display-timings {
> > + timing_disp0: 640x480 {
> > + hactive = <640>;
> > + vactive = <480>;
> > + hback-porch = <112>;
> > + hfront-porch = <36>;
> > + hsync-len = <32>;
> > + vback-porch = <33>;
> > + vfront-porch = <33>;
> > + vsync-len = <2>;
> > + clock-frequency = <25000000>;
> > + };
> > + };
> > + };
> > +};
> > diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
> > index f25cf88..5372337 100644
> > --- a/arch/arm/mach-imx/Kconfig
> > +++ b/arch/arm/mach-imx/Kconfig
> > @@ -441,6 +441,7 @@ config MACH_IMX27IPCAM
> > config MACH_IMX27_DT
> > bool "Support i.MX27 platforms from device tree"
> > select SOC_IMX27
> > + select IMX_HAVE_PLATFORM_MXC_NAND
> > help
> > Include support for Freescale i.MX27 based platforms
> > using the device tree for discovery
> > --
> > 1.8.2.1
> >
>
>
--
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 |
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 23+ messages in thread