From mboxrd@z Thu Jan 1 00:00:00 1970 From: frowand.list-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Subject: [RFC PATCH 4/5] overlay: bad_a_1.dts, example of an old style dts file unable to be converted Date: Tue, 27 Dec 2016 23:20:16 -0800 Message-ID: <1482909617-31950-5-git-send-email-frowand.list@gmail.com> References: <1482909617-31950-1-git-send-email-frowand.list@gmail.com> Return-path: In-Reply-To: <1482909617-31950-1-git-send-email-frowand.list-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Sender: devicetree-compiler-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org, jdl-CYoMK+44s/E@public.gmane.org, pantelis.antoniou-OWPKS81ov/FWk0Htik3J/w@public.gmane.org, Pantelis Antoniou Cc: devicetree-compiler-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Rob Herring , glikely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org, jlu-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org, s.hauer-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org, phil-FnsA7b+Nu9XbIbC87yuRow@public.gmane.org, sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org, thomas.petazzoni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org, boris.brezillon-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org, antoine.tenart-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org, stephen.boyd-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org List-Id: devicetree@vger.kernel.org From: Frank Rowand Requires a dtc that supports the new syntactic sugar. One such version is commit: 6f4db2fc2354 DTBO magic and dtbo format options in url = https://github.com/pantoniou/dtc $ export PATH="$PATH:/path/dtc/" $ ./overlay_convert_old_to_new bad_a_1.dts bad_b_1.dts No 'target' property in node fragment@0 ERROR: unable to convert bad_a_1.dts Signed-off-by: Frank Rowand --- bad_a_1.dts | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 bad_a_1.dts diff --git a/bad_a_1.dts b/bad_a_1.dts new file mode 100644 index 000000000000..b4e26fc8d945 --- /dev/null +++ b/bad_a_1.dts @@ -0,0 +1,36 @@ +/dts-v1/; +/plugin/; + +/ { + fragment@0 { + + __overlay__ { + + i2c1_pins: pinmux_i2c1_pins { + pinctrl-single,pins = < + 0x158 0x72 + 0x15c 0x72 + >; + }; + }; + }; + + fragment@1 { + target = <&i2c1>; + + __overlay__ { + #address-cells = <1>; + #size-cells = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&i2c1_pins>; + clock-frequency = <400000>; + status = "okay"; + + at24@50 { + compatible = "at,24c256"; + pagesize = <64>; + reg = <0x50>; + }; + }; + }; +}; -- 1.9.1