From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from plane.gmane.org ([80.91.229.3]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1WkBg9-0008Cl-3I for ptxdist@pengutronix.de; Tue, 13 May 2014 14:19:29 +0200 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WkBgB-0001LD-9W for ptxdist@pengutronix.de; Tue, 13 May 2014 14:19:31 +0200 Received: from 129.242.srvc.fr ([5.10.129.242]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 13 May 2014 14:19:31 +0200 Received: from s.carayol by 129.242.srvc.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 13 May 2014 14:19:31 +0200 From: Sophie Date: Tue, 13 May 2014 12:19:18 +0000 (UTC) Message-ID: Mime-Version: 1.0 Subject: [ptxdist] Changes in device tree files Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de 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