From 893b99d907b85109c8cf8b00f381f36939f5ae3c Mon Sep 17 00:00:00 2001 From: Pete Johanson Date: Fri, 17 Jul 2020 22:43:19 -0400 Subject: Initial en11 exploration. --- app/drivers/zephyr/dts/bindings/alps,en11.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 app/drivers/zephyr/dts/bindings/alps,en11.yaml (limited to 'app/drivers/zephyr/dts') diff --git a/app/drivers/zephyr/dts/bindings/alps,en11.yaml b/app/drivers/zephyr/dts/bindings/alps,en11.yaml new file mode 100644 index 0000000..1d1de3a --- /dev/null +++ b/app/drivers/zephyr/dts/bindings/alps,en11.yaml @@ -0,0 +1,17 @@ +description: | + Sensor driver for the Alps en11 rotary encoder + +compatible: "alps,en11" + +properties: + label: + type: string + required: true + a-gpios: + type: phandle-array + required: true + description: A pin for the encoder + b-gpios: + type: phandle-array + required: true + description: A pin for the encoder -- cgit v1.2.3 From 109c69cbab0a417c97b20788b0fd3bcd720178f1 Mon Sep 17 00:00:00 2001 From: Pete Johanson Date: Mon, 20 Jul 2020 20:54:58 -0400 Subject: EN11 is actually EC11, some sample work. --- app/drivers/zephyr/dts/bindings/alps,en11.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'app/drivers/zephyr/dts') diff --git a/app/drivers/zephyr/dts/bindings/alps,en11.yaml b/app/drivers/zephyr/dts/bindings/alps,en11.yaml index 1d1de3a..5cbe77a 100644 --- a/app/drivers/zephyr/dts/bindings/alps,en11.yaml +++ b/app/drivers/zephyr/dts/bindings/alps,en11.yaml @@ -1,7 +1,7 @@ description: | - Sensor driver for the Alps en11 rotary encoder + Sensor driver for the Alps EC11 rotary encoder -compatible: "alps,en11" +compatible: "alps,ec11" properties: label: @@ -15,3 +15,7 @@ properties: type: phandle-array required: true description: A pin for the encoder + resolution: + type: int + description: Number of pulses per tick + required: false -- cgit v1.2.3 From aa7c74fe075526c73cac8ae1e7df826f762fedc5 Mon Sep 17 00:00:00 2001 From: Pete Johanson Date: Tue, 21 Jul 2020 13:24:44 -0400 Subject: Filename fix for EN11 -> EC11. --- app/drivers/zephyr/dts/bindings/alps,ec11.yaml | 21 +++++++++++++++++++++ app/drivers/zephyr/dts/bindings/alps,en11.yaml | 21 --------------------- 2 files changed, 21 insertions(+), 21 deletions(-) create mode 100644 app/drivers/zephyr/dts/bindings/alps,ec11.yaml delete mode 100644 app/drivers/zephyr/dts/bindings/alps,en11.yaml (limited to 'app/drivers/zephyr/dts') diff --git a/app/drivers/zephyr/dts/bindings/alps,ec11.yaml b/app/drivers/zephyr/dts/bindings/alps,ec11.yaml new file mode 100644 index 0000000..5cbe77a --- /dev/null +++ b/app/drivers/zephyr/dts/bindings/alps,ec11.yaml @@ -0,0 +1,21 @@ +description: | + Sensor driver for the Alps EC11 rotary encoder + +compatible: "alps,ec11" + +properties: + label: + type: string + required: true + a-gpios: + type: phandle-array + required: true + description: A pin for the encoder + b-gpios: + type: phandle-array + required: true + description: A pin for the encoder + resolution: + type: int + description: Number of pulses per tick + required: false diff --git a/app/drivers/zephyr/dts/bindings/alps,en11.yaml b/app/drivers/zephyr/dts/bindings/alps,en11.yaml deleted file mode 100644 index 5cbe77a..0000000 --- a/app/drivers/zephyr/dts/bindings/alps,en11.yaml +++ /dev/null @@ -1,21 +0,0 @@ -description: | - Sensor driver for the Alps EC11 rotary encoder - -compatible: "alps,ec11" - -properties: - label: - type: string - required: true - a-gpios: - type: phandle-array - required: true - description: A pin for the encoder - b-gpios: - type: phandle-array - required: true - description: A pin for the encoder - resolution: - type: int - description: Number of pulses per tick - required: false -- cgit v1.2.3