mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Changes in device tree files
@ 2014-05-13 12:19 Sophie
  0 siblings, 0 replies; 2+ messages in thread
From: Sophie @ 2014-05-13 12:19 UTC (permalink / raw)
  To: ptxdist

Hi,

For a board based on the MBa6X (TQMa6s) TQ Group board, I tried to add our
needs in the device tree : we need to use i2c4. So I added the following
lines in imx6qdl-mba6x.dtsi and imx6qdl-tqma6x.dtsi 

&i2c4 {
	status = "okay";
	clock-frequency = <100000>;
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_i2c4_1>;
};
and then i2c4: i2c@021f8000 {
				#address-cells = <1>;
				#size-cells = <0>;
				compatible = "fsl,imx1-i2c",  "fsl,imx6q-i2c", "fsl,imx21-i2c"; 
				reg = <0x021f8000 0x4000>;
				interrupts = <0 35 0x04>; 
			        clocks = <&clks 128>;	  
				status = "disabled";
			};
in imx6qdl.dtsi.

All these lines are OK. Then I added the following lines in
imx6qdl-tqma6x.dtsi et imx6qdl.dtsi files :

i2c4 {
		pinctrl_i2c4_1: i2c4grp-1 {
			fsl,pins = <
				MX6QDL_PAD_NANDF_WP_B__I2C4_SCL 0x4001b8b1
				MX6QDL_PAD_NANDF_CS3__I2C4_SDA  0x4001b8b1
			>;
		};
	};

But these lines can't be compiled and so generate a syntax error. Is anybody
knows why ?

Besides, I want to add an NVRAM (seen as an MTD-RAM) as we have one in our
design. I saw in the device tree documentation (device
tree/bindings/mtd/mtd-physmap.txt), that I have to add the following lines :

sram@2,0 {
		compatible = "samsung,k6f1616u6a", "mtd-ram";
		reg = <2 0 0x00200000>;
		bank-width = <2>;
	};

In what file of the same device tree would it be better to add these lines ?

Best regards,
Sophie


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [ptxdist] Changes in device tree files
@ 2014-05-13 14:05 Sophie
  0 siblings, 0 replies; 2+ messages in thread
From: Sophie @ 2014-05-13 14:05 UTC (permalink / raw)
  To: ptxdist

Hi,

For a board based on the MBa6X (TQMa6s) TQ Group board, I tried to add our
needs in the device tree : I need i2c4. Now it's OK for I2C4 for imx6dl
version. The problem is only for im6q version because, i think there is an
uncompatiblity for PINMUX but I don't need this version

Besides, I want to add an NVRAM (seen as an MTD-RAM) as we have one in our
design. I saw in the device tree documentation (device
tree/bindings/mtd/mtd-physmap.txt), that I have to add the following lines :

sram <at> 2,0 {
		compatible = "samsung,k6f1616u6a", "mtd-ram";
		reg = <2 0 0x00200000>;
		bank-width = <2>;
	};

Finally, I add in imx6dl.dtsi the following lines under 'soc' node:

weim : eim@08000000 {
		sram@30000000,0 {
		compatible = "cypress,cy62157ev30ll", "mtd-ram"; 
		reg = <0x30000000 0 0x00100000>; 		
		bank-width = <2>;
		};
	};

But these lines generate a syntax error. In what file of the same device
tree would it be better to add these lines and what is the right way ?

Best regards,
Sophie


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-05-13 14:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-13 12:19 [ptxdist] Changes in device tree files Sophie
2014-05-13 14:05 Sophie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox