Newer
Older
barebox / arch / arm / dts / imx27-phytec-phycard-s-som.dts
/*
 * Copyright 2012 Sascha Hauer, Uwe Kleine-König, Steffen Trumtrar
 * and Markus Pargmann, 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";

	chosen {
		linux,stdout-path = &uart1;

		environment@0 {
			compatible = "barebox,environment";
			device-path = &nfc, "partname:environment";
		};
	};

	memory {
		reg = <0xa0000000 0x08000000>; /* 128MB */
	};
};

&cspi1 {
	fsl,spi-num-chipselects = <2>;
	cs-gpios = <&gpio4 28 GPIO_ACTIVE_HIGH>,
		   <&gpio4 27 GPIO_ACTIVE_HIGH>;
	status = "okay";
};

&iomuxc {
	imx27-phycard-s-som {
		pinctrl_fec1: fec1grp {
			fsl,pins = <MX27_FEC1_PINGRP1>;
		};

		pinctrl_i2c2: i2c2grp {
			fsl,pins = <MX27_I2C2_PINGRP1>;
		};

		pinctrl_nfc: nfcgrp {
			fsl,pins = <MX27_NFC_PINGRP1>;
		};
	};
};

&fec {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_fec1>;
	status = "okay";
};

&i2c2 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_i2c2>;
	status = "okay";

	at24@52 {
		compatible = "at,24c32";
		pagesize = <32>;
		reg = <0x52>;
	};
};

&nfc {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_nfc>;
	nand-bus-width = <8>;
	nand-ecc-mode = "hw";
	nand-on-flash-bbt;
	status = "okay";

	partition@0 {
		label = "boot";
		reg = <0x0 0x80000>;
	};

	partition@1 {
		label = "environment";
		reg = <0x80000 0x80000>;
	};

	partition@2 {
		label = "kernel";
		reg = <0x100000 0x400000>;
	};

	partition@3 {
		label = "root";
		reg = <0x500000 0x7b00000>;
	};
};