Commit d470030680005d65d624eecd51f5ffe03019de65

Authored by Bhuvanchandra DV
Committed by Stefano Babic
1 parent 508f412125

vf610: dts: Add device tree support

Add device tree files for Freescale Vybrid platform and
Toradex Colibri VF50, VF61 modules.
Device tree files are taken from upstream Kernel.
Removed the stuff which are not used/supported yet in U-Boot.

Signed-off-by: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com>

Showing 5 changed files with 160 additions and 0 deletions Side-by-side Diff

arch/arm/dts/Makefile
... ... @@ -130,6 +130,9 @@
130 130 sun9i-a80-optimus.dtb \
131 131 sun9i-a80-cubieboard4.dtb
132 132  
  133 +dtb-$(CONFIG_VF610) += vf500-colibri.dtb \
  134 + vf610-colibri.dtb
  135 +
133 136 targets += $(dtb-y)
134 137  
135 138 DTC_FLAGS += -R 4 -p 0x1000
arch/arm/dts/vf-colibri.dtsi
  1 +/*
  2 + * Copyright 2014 Toradex AG
  3 + *
  4 + * SPDX-License-Identifier: GPL-2.0+ or X11
  5 + *
  6 + * This program is free software; you can redistribute it and/or modify
  7 + * it under the terms of the GNU General Public License as published by
  8 + * the Free Software Foundation; either version 2 of the License, or
  9 + * (at your option) any later version.
  10 + */
  11 +#include "vf.dtsi"
  12 +
  13 +&dspi1 {
  14 + status = "okay";
  15 + bus-num = <1>;
  16 +
  17 + spi_cmd: sspi@0 {
  18 + reg = <0>;
  19 + spi-max-frequency = <50000000>;
  20 + };
  21 +};
arch/arm/dts/vf.dtsi
  1 +/*
  2 + * Copyright 2013 Freescale Semiconductor, Inc.
  3 + *
  4 + * SPDX-License-Identifier: GPL-2.0+ or X11
  5 + *
  6 + * This program is free software; you can redistribute it and/or modify
  7 + * it under the terms of the GNU General Public License as published by
  8 + * the Free Software Foundation; either version 2 of the License, or
  9 + * (at your option) any later version.
  10 + */
  11 +/include/ "skeleton.dtsi"
  12 +
  13 +/ {
  14 + aliases {
  15 + gpio0 = &gpio0;
  16 + gpio1 = &gpio1;
  17 + gpio2 = &gpio2;
  18 + gpio3 = &gpio3;
  19 + gpio4 = &gpio4;
  20 + spi0 = &dspi0;
  21 + spi1 = &dspi1;
  22 + };
  23 +
  24 + soc {
  25 + #address-cells = <1>;
  26 + #size-cells = <1>;
  27 + compatible = "simple-bus";
  28 + ranges;
  29 +
  30 + aips0: aips-bus@40000000 {
  31 + compatible = "fsl,aips-bus", "simple-bus";
  32 + #address-cells = <1>;
  33 + #size-cells = <1>;
  34 + ranges;
  35 +
  36 + dspi0: dspi0@4002c000 {
  37 + #address-cells = <1>;
  38 + #size-cells = <0>;
  39 + compatible = "fsl,vf610-dspi";
  40 + reg = <0x4002c000 0x1000>;
  41 + num-cs = <5>;
  42 + status = "disabled";
  43 + };
  44 +
  45 + dspi1: dspi1@4002d000 {
  46 + #address-cells = <1>;
  47 + #size-cells = <0>;
  48 + compatible = "fsl,vf610-dspi";
  49 + reg = <0x4002d000 0x1000>;
  50 + num-cs = <5>;
  51 + status = "disabled";
  52 + };
  53 +
  54 + qspi0: quadspi@40044000 {
  55 + #address-cells = <1>;
  56 + #size-cells = <0>;
  57 + compatible = "fsl,vf610-qspi";
  58 + reg = <0x40044000 0x1000>;
  59 + status = "disabled";
  60 + };
  61 +
  62 + gpio0: gpio@40049000 {
  63 + compatible = "fsl,vf610-gpio";
  64 + reg = <0x400ff000 0x40>;
  65 + #gpio-cells = <2>;
  66 + };
  67 +
  68 + gpio1: gpio@4004a000 {
  69 + compatible = "fsl,vf610-gpio";
  70 + reg = <0x400ff040 0x40>;
  71 + #gpio-cells = <2>;
  72 + };
  73 +
  74 + gpio2: gpio@4004b000 {
  75 + compatible = "fsl,vf610-gpio";
  76 + reg = <0x400ff080 0x40>;
  77 + #gpio-cells = <2>;
  78 + };
  79 +
  80 + gpio3: gpio@4004c000 {
  81 + compatible = "fsl,vf610-gpio";
  82 + reg = <0x400ff0c0 0x40>;
  83 + #gpio-cells = <2>;
  84 + };
  85 +
  86 + gpio4: gpio@4004d000 {
  87 + compatible = "fsl,vf610-gpio";
  88 + reg = <0x400ff100 0x40>;
  89 + #gpio-cells = <2>;
  90 + };
  91 + };
  92 +
  93 + aips1: aips-bus@40080000 {
  94 + compatible = "fsl,aips-bus", "simple-bus";
  95 + #address-cells = <1>;
  96 + #size-cells = <1>;
  97 + ranges;
  98 + };
  99 + };
  100 +};
arch/arm/dts/vf500-colibri.dts
  1 +/*
  2 + * Copyright 2014 Toradex AG
  3 + *
  4 + * SPDX-License-Identifier: GPL-2.0+ or X11
  5 + *
  6 + * This program is free software; you can redistribute it and/or modify
  7 + * it under the terms of the GNU General Public License as published by
  8 + * the Free Software Foundation; either version 2 of the License, or
  9 + * (at your option) any later version.
  10 + */
  11 +
  12 +/dts-v1/;
  13 +#include "vf-colibri.dtsi"
  14 +
  15 +/ {
  16 + model = "Toradex Colibri VF50";
  17 + compatible = "toradex,vf500-colibri_vf50", "toradex,vf500-colibri_vf50", "fsl,vf500";
  18 +};
arch/arm/dts/vf610-colibri.dts
  1 +/*
  2 + * Copyright 2014 Toradex AG
  3 + *
  4 + * SPDX-License-Identifier: GPL-2.0+ or X11
  5 + *
  6 + * This program is free software; you can redistribute it and/or modify
  7 + * it under the terms of the GNU General Public License as published by
  8 + * the Free Software Foundation; either version 2 of the License, or
  9 + * (at your option) any later version.
  10 + */
  11 +
  12 +/dts-v1/;
  13 +#include "vf-colibri.dtsi"
  14 +
  15 +/ {
  16 + model = "Toradex Colibri VF61";
  17 + compatible = "toradex,vf610-colibri_vf61", "toradex,vf610-colibri_vf61", "fsl,vf610";
  18 +};