Porting barebox (devicetree) to Variscite iMX6 SOM

Michael Burkey mdburkey at gmail.com
Thu Dec 12 13:56:14 EST 2013


Additionally, here are the dts and dtsi files I added for the Variscite part:

---------------------------------
arch/arm/dts/imx6q-var-custom.dts
---------------------------------
/*
 * Copyright 2013 Michael Burkey
 * Based on code written by 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
 */

/dts-v1/;
#include "imx6q-var-som.dtsi"

/ {
	model = "Variscite i.MX6 Quad Custom Carrier-Board";
	compatible = "variscite,imx6q-custom", "variscite,imx6q-som", "fsl,imx6q";

	chosen {
		linux,stdout-path = &uart1;

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

&uart1 {
	status = "okay";
};

&usdhc2 {
	status = "okay";
};

&usbh1 {
	status = "okay";
	disable-over-current;
};

&i2c1 {
	status = "okay";
	clock-frequency = <100000>;
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_i2c1_2>;
};

-------------------------------
arch/arm/dts/imx6q-var-som-dtsi
-------------------------------
/*
 * Copyright 2013 Michael Burkey
 * Based on code written by 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 "imx6q.dtsi"

/ {
	model = "Variscite i.MX6 Quad SOM";
	compatible = "variscite,imx6q-som", "fsl,imx6q";

	memory {
		reg = <0x10000000 0x40000000>;
	};
};

&gpmi {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_gpmi_nand_1>;
	nand-on-flash-bbt;
	status = "okay";
	#address-cells = <1>;
	#size-cells = <1>;

	partition at 0 {
		label = "barebox";
		reg = <0x0 0x200000>;
	};

	partition at 1 {
		label = "barebox-environment";
		reg = <0x200000 0x10000>;
	};

	partition at 2 {
		label = "kernel";
		reg = <0x210000 0x600000>;
	};

	partition at 3 {
		label = "rootfs";
		reg = <0x860000 0x18000000>;
	};

	partition at 4 {
		label = "profilefs";
		reg = <0x18860000 0x400000>;
	};
};

&usdhc2 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_usdhc2_2>;
	cd-gpios = <&gpio3 29 0>;
	status = "disabled";
};



More information about the barebox mailing list