Commit d5481560b260665dc18802bb5425cb6a5d47a797

Authored by larche
1 parent 67e90b9505
Exists in master and in 2 other branches fhd, fhd-demo

= Encoder 추가 =

kernel/linux-imx6_3.14.28/arch/arm/boot/dts/imx6s-prime-oven.dts
... ... @@ -20,6 +20,26 @@
20 20 / {
21 21 model = "Freescale i.MX6 Solo/DualLite Prime Oven Device Board(PFUZE100)";
22 22 compatible = "fsl,imx6dl-prime-oven", "fsl,imx6dl";
  23 +
  24 + rotary@0 {
  25 + compatible = "rotary-encoder";
  26 + gpios = <&gpio6 11 1>, <&gpio6 10 1>;
  27 + linux,axis = <1>; /* ABS_Y */
  28 + rotary-encoder,steps = <24>;
  29 + rotary-encoder,rollover;
  30 + };
  31 +
  32 + gpio_keys {
  33 + compatible = "gpio-keys";
  34 + #address-cells = <1>;
  35 + #size-cells = <0>;
  36 + autorepeat;
  37 + button@21 {
  38 + label = "GPIO Key UP";
  39 + linux,code = <KEY_UP>;
  40 + gpios = <&gpio6 14 1>;
  41 + };
  42 + };
23 43 };
24 44  
25 45 &mxcfb1 {
... ...