Skip to content

Commit

Permalink
Merge tag 'late-dt' of git://git.kernel.org/pub/scm/linux/kernel/git/…
Browse files Browse the repository at this point in the history
…arm/arm-soc

Pull ARM SoC i.MX DT changes from Olof Johansson:
 "This branch contains of devicetree changes for the Freescale i.MX
  platform.

  The base patch of the branch changes the format of the dts files to a
  slightly different format that makes it easier to do derivative board
  definitions, but it also introduces a lot of churn in the process
  since every line of the file is touched.

  On top of that are a handful of the regular changes; enabling more
  boards as DT-based instead of legacy board files (mx25pdk), enabling
  another driver for devicetree and thus adding bindings (onewire), etc.

  I'm not happy about the churn, and will likely not take it for other
  platforms in the future."

* tag 'late-dt' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (21 commits)
  ARM: dts: add dtsi for imx6q and imx6dl
  ARM: dts: rename imx6q.dtsi to imx6qdl.dtsi
  ARM: dts: i.MX6: Add regulator delay support
  ARM: dts: Add device tree entry for onewire master on i.MX53
  ARM: i.MX53: Add clocks for i.mx53 onewire master.
  W1: Add device tree support to MXC onewire master.
  ARM: imx: enable imx6q-cpufreq support
  ARM: dts: Add apf51 basic support
  ARM i.MX6: change mxs usbphy clock usage
  ARM: dts: imx6q: Remove silicon version from SDMA firmware
  ARM i.MX53: dts: add oftree for MBa53 baseboard
  ARM i.MX53: add dts for the TQ tqma53 module
  ARM: dts: imx53: pinctrl update
  ARM i.MX51 babbage: Add keypad support
  ARM: dts: imx: Add imx51 KPP entry
  ARM: dts: imx25-karo-tx25: Put status entry in the end
  ARM: mx25pdk: Add device tree support
  ARM: dts: imx: use nodes label in board dts
  ARM: dts: add missing imx dtb targets
  ARM: boot: dts: Add an entry for imx27-pdk.dtb
  ...
  • Loading branch information
Linus Torvalds committed Mar 1, 2013
2 parents 2af7844 + 4a9226a commit f8f466c
Show file tree
Hide file tree
Showing 33 changed files with 2,560 additions and 1,884 deletions.
6 changes: 6 additions & 0 deletions Documentation/devicetree/bindings/arm/armadeus.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Armadeus i.MX Platforms Device Tree Bindings
-----------------------------------------------

APF51: i.MX51 based module.
Required root node properties:
- compatible = "armadeus,imx51-apf51", "fsl,imx51";
8 changes: 8 additions & 0 deletions Documentation/devicetree/bindings/arm/fsl.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ i.MX23 Evaluation Kit
Required root node properties:
- compatible = "fsl,imx23-evk", "fsl,imx23";

i.MX25 Product Development Kit
Required root node properties:
- compatible = "fsl,imx25-pdk", "fsl,imx25";

i.MX27 Product Development Kit
Required root node properties:
- compatible = "fsl,imx27-pdk", "fsl,imx27";

i.MX28 Evaluation Kit
Required root node properties:
- compatible = "fsl,imx28-evk", "fsl,imx28";
Expand Down
1 change: 1 addition & 0 deletions Documentation/devicetree/bindings/clock/imx5-clock.txt
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ clocks and IDs.
can_sel 156
can1_serial_gate 157
can1_ipg_gate 158
owire_gate 159

Examples (for mx53):

Expand Down
2 changes: 2 additions & 0 deletions Documentation/devicetree/bindings/clock/imx6q-clock.txt
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ clocks and IDs.
pcie_ref 188
pcie_ref_125m 189
enet_ref 190
usbphy1_gate 191
usbphy2_gate 192

Examples:

Expand Down
19 changes: 19 additions & 0 deletions Documentation/devicetree/bindings/w1/fsl-imx-owire.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
* Freescale i.MX One wire bus master controller

Required properties:
- compatible : should be "fsl,imx21-owire"
- reg : Address and length of the register set for the device

Optional properties:
- clocks : phandle of clock that supplies the module (required if platform
clock bindings use device tree)

Example:

- From imx53.dtsi:
owire: owire@63fa4000 {
compatible = "fsl,imx53-owire", "fsl,imx21-owire";
reg = <0x63fa4000 0x4000>;
clocks = <&clks 159>;
status = "disabled";
};
10 changes: 9 additions & 1 deletion arch/arm/boot/dts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,17 @@ dtb-$(CONFIG_ARCH_MVEBU) += armada-370-db.dtb \
armada-370-mirabox.dtb \
armada-xp-db.dtb \
armada-xp-openblocks-ax3-4.dtb
dtb-$(CONFIG_ARCH_MXC) += imx51-babbage.dtb \
dtb-$(CONFIG_ARCH_MXC) += \
imx25-karo-tx25.dtb \
imx25-pdk.dtb \
imx27-apf27.dtb \
imx27-pdk.dtb \
imx31-bug.dtb \
imx51-apf51.dtb \
imx51-babbage.dtb \
imx53-ard.dtb \
imx53-evk.dtb \
imx53-mba53.dtb \
imx53-qsb.dtb \
imx53-smd.dtb \
imx6q-arm2.dtb \
Expand Down
30 changes: 11 additions & 19 deletions arch/arm/boot/dts/imx25-karo-tx25.dts
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,18 @@
memory {
reg = <0x80000000 0x02000000 0x90000000 0x02000000>;
};
};

soc {
aips@43f00000 {
uart1: serial@43f90000 {
status = "okay";
};
};
&uart1 {
status = "okay";
};

spba@50000000 {
fec: ethernet@50038000 {
status = "okay";
phy-mode = "rmii";
};
};
&fec {
phy-mode = "rmii";
status = "okay";
};

emi@80000000 {
nand@bb000000 {
nand-on-flash-bbt;
status = "okay";
};
};
};
&nfc {
nand-on-flash-bbt;
status = "okay";
};
36 changes: 36 additions & 0 deletions arch/arm/boot/dts/imx25-pdk.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
* Copyright 2013 Freescale Semiconductor, Inc.
*
* 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/ "imx25.dtsi"

/ {
model = "Freescale i.MX25 Product Development Kit";
compatible = "fsl,imx25-pdk", "fsl,imx25";

memory {
reg = <0x80000000 0x4000000>;
};
};

&uart1 {
status = "okay";
};

&fec {
phy-mode = "rmii";
status = "okay";
};

&nfc {
nand-on-flash-bbt;
status = "okay";
};
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/imx25.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@
reg = <0x80000000 0x3b002000>;
ranges;

nand@bb000000 {
nfc: nand@bb000000 {
#address-cells = <1>;
#size-cells = <1>;

Expand Down
82 changes: 39 additions & 43 deletions arch/arm/boot/dts/imx27-apf27.dts
Original file line number Diff line number Diff line change
Expand Up @@ -32,58 +32,54 @@
clock-frequency = <0>;
};
};
};

soc {
aipi@10000000 {
serial@1000a000 {
status = "okay";
};
&uart1 {
status = "okay";
};

ethernet@1002b000 {
status = "okay";
};
};
&fec {
status = "okay";
};

nand@d8000000 {
status = "okay";
nand-bus-width = <16>;
nand-ecc-mode = "hw";
nand-on-flash-bbt;
&nfc {
status = "okay";
nand-bus-width = <16>;
nand-ecc-mode = "hw";
nand-on-flash-bbt;

partition@0 {
label = "u-boot";
reg = <0x0 0x100000>;
};
partition@0 {
label = "u-boot";
reg = <0x0 0x100000>;
};

partition@100000 {
label = "env";
reg = <0x100000 0x80000>;
};
partition@100000 {
label = "env";
reg = <0x100000 0x80000>;
};

partition@180000 {
label = "env2";
reg = <0x180000 0x80000>;
};
partition@180000 {
label = "env2";
reg = <0x180000 0x80000>;
};

partition@200000 {
label = "firmware";
reg = <0x200000 0x80000>;
};
partition@200000 {
label = "firmware";
reg = <0x200000 0x80000>;
};

partition@280000 {
label = "dtb";
reg = <0x280000 0x80000>;
};
partition@280000 {
label = "dtb";
reg = <0x280000 0x80000>;
};

partition@300000 {
label = "kernel";
reg = <0x300000 0x500000>;
};
partition@300000 {
label = "kernel";
reg = <0x300000 0x500000>;
};

partition@800000 {
label = "rootfs";
reg = <0x800000 0xf800000>;
};
};
partition@800000 {
label = "rootfs";
reg = <0x800000 0xf800000>;
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,19 @@
/include/ "imx27.dtsi"

/ {
model = "mx27_3ds";
compatible = "freescale,imx27-3ds", "fsl,imx27";
model = "Freescale i.MX27 Product Development Kit";
compatible = "fsl,imx27-pdk", "fsl,imx27";

memory {
reg = <0x0 0x0>;
};
};

soc {
aipi@10000000 { /* aipi1 */
uart1: serial@1000a000 {
fsl,uart-has-rtscts;
status = "okay";
};
};
&uart1 {
fsl,uart-has-rtscts;
status = "okay";
};

aipi@10020000 { /* aipi2 */
ethernet@1002b000 {
status = "okay";
};
};
};
&fec {
status = "okay";
};
12 changes: 4 additions & 8 deletions arch/arm/boot/dts/imx31-bug.dts
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,9 @@
memory {
reg = <0x80000000 0x8000000>; /* 128M */
};
};

soc {
aips@43f00000 { /* AIPS1 */
uart5: serial@43fb4000 {
fsl,uart-has-rtscts;
status = "okay";
};
};
};
&uart5 {
fsl,uart-has-rtscts;
status = "okay";
};
52 changes: 52 additions & 0 deletions arch/arm/boot/dts/imx51-apf51.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/*
* Copyright 2012 Armadeus Systems - <support@armadeus.com>
* Copyright 2012 Laurent Cans <laurent.cans@gmail.com>
*
* Based on mx51-babbage.dts
* Copyright 2011 Freescale Semiconductor, Inc.
* Copyright 2011 Linaro Ltd.
*
* 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/ "imx51.dtsi"

/ {
model = "Armadeus Systems APF51 module";
compatible = "armadeus,imx51-apf51", "fsl,imx51";

memory {
reg = <0x90000000 0x20000000>;
};

clocks {
ckih1 {
clock-frequency = <0>;
};

osc {
clock-frequency = <33554432>;
};
};
};

&fec {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_fec_2>;
phy-mode = "mii";
phy-reset-gpios = <&gpio3 0 0>;
phy-reset-duration = <1>;
status = "okay";
};

&uart3 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart3_2>;
status = "okay";
};
Loading

0 comments on commit f8f466c

Please sign in to comment.