summaryrefslogtreecommitdiff
path: root/zephyr/dts
diff options
context:
space:
mode:
authorFabio Baltieri <fabiobaltieri@google.com>2022-11-14 16:34:16 +0000
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-11-16 12:18:43 +0000
commit427adac454da3718fda4de7532c599504bdc3924 (patch)
tree56435c793392e26e06fa65516b7729321ade9408 /zephyr/dts
parent4e5c08ec698bd54eeac6099e8d0d27db071fdf00 (diff)
downloadchrome-ec-427adac454da3718fda4de7532c599504bdc3924.tar.gz
zephyr: max695x: rework the binding, various cleanups
Various cleanups on the max695x driver: - rename the binding to the Zephyr canonical vendor,device format - move the example in the binding description - make the PLATFORM_EC_MAX695X_SEVEN_SEGMENT_DISPLAY option automatic and drop the explicit config entries - find the node by compatible and drop the nodelabel - drop the label property BRANCH=none BUG=none TEST=cq dry run Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: I9b90d1b8bb3e3df9b76b2631a24f51133c4b73f1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4022154 Reviewed-by: Al Semjonovs <asemjonovs@google.com> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Diffstat (limited to 'zephyr/dts')
-rw-r--r--zephyr/dts/bindings/led/maxim,max695x.yaml18
-rw-r--r--zephyr/dts/bindings/led/maxim,seven-seg-display.yaml19
2 files changed, 18 insertions, 19 deletions
diff --git a/zephyr/dts/bindings/led/maxim,max695x.yaml b/zephyr/dts/bindings/led/maxim,max695x.yaml
new file mode 100644
index 0000000000..a219512b0d
--- /dev/null
+++ b/zephyr/dts/bindings/led/maxim,max695x.yaml
@@ -0,0 +1,18 @@
+# Copyright 2022 The ChromiumOS Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+description: |
+ MAX6958/MAX6959 7-Segment LED Display
+
+ Example configuration
+
+ max695x@38 {
+ compatible = "maxim,max695x";
+ reg = <0x38>;
+ };
+
+
+compatible: "maxim,max695x"
+
+include: i2c-device.yaml
diff --git a/zephyr/dts/bindings/led/maxim,seven-seg-display.yaml b/zephyr/dts/bindings/led/maxim,seven-seg-display.yaml
deleted file mode 100644
index d66a0cdca2..0000000000
--- a/zephyr/dts/bindings/led/maxim,seven-seg-display.yaml
+++ /dev/null
@@ -1,19 +0,0 @@
-# Copyright 2022 The ChromiumOS Authors
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-description: MAX6958/MAX6959 7-Segment LED Display
-
-compatible: "maxim,seven-seg-display"
-
-include: i2c-device.yaml
-
-#
-# examples:
-#
-# seven_seg_display: max695x-seven-seg-display@38 {
-# compatible = "maxim,seven-seg-display";
-# reg = <0x38>;
-# label = "MAX695X_SEVEN_SEG_DISPLAY";
-# };
-#