-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP ]linux-iot2050: Add the support for the SM variant
[Commit message need refine] Add the support for the everlight pm16d17 sensor This sensor is used to detect the distance of the cover, when the cover of the iot2050 open or close, the emiter strength would change. According this change to judge whether the cover open or close. Add "wkup_gpio0-base" to let mraa get button gpio. Remove arduino dts on iot2050 SM variants Signed-off-by: chao zeng <[email protected]> Signed-off-by: Li Hua Qian <[email protected]> Signed-off-by: Baocheng Su <[email protected]>
- Loading branch information
1 parent
c4fbe75
commit 5eae23f
Showing
5 changed files
with
971 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
recipes-kernel/linux/files/patches-6.1/0078-dt-bindings-vendor-prefixes-Add-EVERLIGHT.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Baocheng Su <[email protected]> | ||
Date: Fri, 24 Nov 2023 21:03:58 +0800 | ||
Subject: [PATCH] dt-bindings: vendor-prefixes: Add EVERLIGHT | ||
|
||
Add vendor prefix for EVERLIGHT Electronics Co., Ltd. | ||
|
||
Signed-off-by: Baocheng Su <[email protected]> | ||
--- | ||
Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ | ||
1 file changed, 2 insertions(+) | ||
|
||
diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml | ||
index 309b94c328c8..727319d74540 100644 | ||
--- a/Documentation/devicetree/bindings/vendor-prefixes.yaml | ||
+++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml | ||
@@ -456,6 +456,8 @@ patternProperties: | ||
description: Eukréa Electromatique | ||
"^everest,.*": | ||
description: Everest Semiconductor Co. Ltd. | ||
+ "^everlight,.*": | ||
+ description: EVERLIGHT Electronics Co., Ltd. | ||
"^everspin,.*": | ||
description: Everspin Technologies, Inc. | ||
"^evervision,.*": |
115 changes: 115 additions & 0 deletions
115
...s-kernel/linux/files/patches-6.1/0079-dt-bindings-iio-Add-everlight-pm16d17-binding.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: chao zeng <[email protected]> | ||
Date: Tue, 16 May 2023 21:10:47 +0800 | ||
Subject: [PATCH] dt-bindings: iio: Add everlight pm16d17 binding | ||
|
||
Add the binding document for the everlight pm16d17 sensor. | ||
|
||
Signed-off-by: Chao Zeng <[email protected]> | ||
Co-developed-by: Baocheng Su <[email protected]> | ||
Signed-off-by: Baocheng Su <[email protected]> | ||
--- | ||
.../iio/proximity/everlight,pm16d17.yaml | 94 +++++++++++++++++++ | ||
1 file changed, 94 insertions(+) | ||
create mode 100644 Documentation/devicetree/bindings/iio/proximity/everlight,pm16d17.yaml | ||
|
||
diff --git a/Documentation/devicetree/bindings/iio/proximity/everlight,pm16d17.yaml b/Documentation/devicetree/bindings/iio/proximity/everlight,pm16d17.yaml | ||
new file mode 100644 | ||
index 000000000000..4b488d6cafa2 | ||
--- /dev/null | ||
+++ b/Documentation/devicetree/bindings/iio/proximity/everlight,pm16d17.yaml | ||
@@ -0,0 +1,94 @@ | ||
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) | ||
+%YAML 1.2 | ||
+--- | ||
+$id: http://devicetree.org/schemas/iio/proximity/everlight,pm16d17.yaml# | ||
+$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
+ | ||
+title: Everlight PM-16D17 Ambient Light & Proximity Sensor | ||
+ | ||
+maintainers: | ||
+ - Chao Zeng <[email protected]> | ||
+ | ||
+description: | | ||
+ This sensor uses standard I2C interface. Interrupt function is not covered | ||
+ | ||
+properties: | ||
+ compatible: | ||
+ enum: | ||
+ - everlight,pm16d17 | ||
+ | ||
+ reg: | ||
+ maxItems: 1 | ||
+ | ||
+ ps-gain: | ||
+ description: Receiver gain of proximity sensor | ||
+ $ref: /schemas/types.yaml#/definitions/uint32 | ||
+ enum: [1, 2, 4, 8] | ||
+ default: 1 | ||
+ | ||
+ ps-itime: | ||
+ description: Conversion time for proximity sensor [ms] | ||
+ $ref: /schemas/types.yaml#/definitions/string | ||
+ enum: | ||
+ - "0.4" | ||
+ - "0.8" | ||
+ - "1.6" | ||
+ - "3.2" | ||
+ - "6.3" | ||
+ - "12.6" | ||
+ - "25.2" | ||
+ default: "0.4" | ||
+ | ||
+ ps-wtime: | ||
+ description: Waiting time for proximity sensor [ms] | ||
+ $ref: /schemas/types.yaml#/definitions/string | ||
+ enum: | ||
+ - "12.5" | ||
+ - "25" | ||
+ - "50" | ||
+ - "100" | ||
+ - "200" | ||
+ - "400" | ||
+ - "800" | ||
+ - "1600" | ||
+ default: "12.5" | ||
+ | ||
+ ps-ir-led-pulse-count: | ||
+ description: IR LED drive pulse count | ||
+ $ref: /schemas/types.yaml#/definitions/uint32 | ||
+ minimum: 1 | ||
+ maximum: 256 | ||
+ default: 1 | ||
+ | ||
+ ps-offset-cancel: | ||
+ description: | | ||
+ When PS offset cancel function is enabled, the result of subtracting any | ||
+ value specified by the PS offset cancel register from the internal PS | ||
+ output data is written to the PS output data register. | ||
+ $ref: /schemas/types.yaml#/definitions/uint32 | ||
+ default: 0 | ||
+ maximum: 65535 | ||
+ | ||
+required: | ||
+ - compatible | ||
+ - reg | ||
+ | ||
+unevaluatedProperties: false | ||
+ | ||
+examples: | ||
+ - | | ||
+ i2c { | ||
+ #address-cells = <1>; | ||
+ #size-cells = <0>; | ||
+ | ||
+ lightsensor: pm16d17@44 { | ||
+ compatible = "everlight,pm16d17"; | ||
+ reg = <0x44>; | ||
+ | ||
+ ps-gain = <1>; | ||
+ ps-itime = "0.4"; | ||
+ ps-wtime = "12.5"; | ||
+ ps-ir-led-pulse-count = <1>; | ||
+ ps-offset-cancel = <280>; | ||
+ }; | ||
+ }; |
Oops, something went wrong.