From d5481560b260665dc18802bb5425cb6a5d47a797 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EA=B7=9C=ED=98=95?= Date: Thu, 2 Mar 2017 18:36:22 +0900 Subject: [PATCH] =?UTF-8?q?=3D=20Encoder=20=EC=B6=94=EA=B0=80=20=3D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../arch/arm/boot/dts/imx6s-prime-oven.dts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/kernel/linux-imx6_3.14.28/arch/arm/boot/dts/imx6s-prime-oven.dts b/kernel/linux-imx6_3.14.28/arch/arm/boot/dts/imx6s-prime-oven.dts index 29da467..c4658f1 100755 --- a/kernel/linux-imx6_3.14.28/arch/arm/boot/dts/imx6s-prime-oven.dts +++ b/kernel/linux-imx6_3.14.28/arch/arm/boot/dts/imx6s-prime-oven.dts @@ -20,6 +20,26 @@ / { model = "Freescale i.MX6 Solo/DualLite Prime Oven Device Board(PFUZE100)"; compatible = "fsl,imx6dl-prime-oven", "fsl,imx6dl"; + + rotary@0 { + compatible = "rotary-encoder"; + gpios = <&gpio6 11 1>, <&gpio6 10 1>; + linux,axis = <1>; /* ABS_Y */ + rotary-encoder,steps = <24>; + rotary-encoder,rollover; + }; + + gpio_keys { + compatible = "gpio-keys"; + #address-cells = <1>; + #size-cells = <0>; + autorepeat; + button@21 { + label = "GPIO Key UP"; + linux,code = ; + gpios = <&gpio6 14 1>; + }; + }; }; &mxcfb1 { -- 2.1.4