dt-bindings: eeprom: microchip,93lc46b: move to eeprom directory
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Wed, 27 Jul 2022 16:44:24 +0000 (18:44 +0200)
committerRob Herring <robh@kernel.org>
Fri, 29 Jul 2022 23:23:57 +0000 (17:23 -0600)
Move the Atmel/Microchip 93xx46 SPI compatible EEPROM family bindings
from misc to eeprom directory to properly match subsystem.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220727164424.386499-2-krzysztof.kozlowski@linaro.org
Documentation/devicetree/bindings/eeprom/microchip,93lc46b.yaml [new file with mode: 0644]
Documentation/devicetree/bindings/misc/eeprom-93xx46.yaml [deleted file]

diff --git a/Documentation/devicetree/bindings/eeprom/microchip,93lc46b.yaml b/Documentation/devicetree/bindings/eeprom/microchip,93lc46b.yaml
new file mode 100644 (file)
index 0000000..0c2f5dd
--- /dev/null
@@ -0,0 +1,69 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/eeprom/microchip,93lc46b.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Microchip 93xx46 SPI compatible EEPROM family dt bindings
+
+maintainers:
+  - Cory Tusar <cory.tusar@pid1solutions.com>
+
+properties:
+  compatible:
+    enum:
+      - atmel,at93c46
+      - atmel,at93c46d
+      - atmel,at93c56
+      - atmel,at93c66
+      - eeprom-93xx46
+      - microchip,93lc46b
+
+  data-size:
+    description: number of data bits per word
+    $ref: /schemas/types.yaml#/definitions/uint32
+    enum: [8, 16]
+
+  reg:
+    description: chip select of EEPROM
+    maxItems: 1
+
+  read-only:
+    description:
+      parameter-less property which disables writes to the EEPROM
+    type: boolean
+
+  select-gpios:
+    description:
+      specifies the GPIO that needs to be asserted prior to each access
+      of EEPROM (e.g. for SPI bus multiplexing)
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+  - data-size
+  - spi-max-frequency
+
+allOf:
+  - $ref: /schemas/spi/spi-peripheral-props.yaml#
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+    spi {
+      #address-cells = <1>;
+      #size-cells = <0>;
+
+      eeprom@0 {
+        compatible = "eeprom-93xx46";
+        reg = <0>;
+        spi-max-frequency = <1000000>;
+        spi-cs-high;
+        data-size = <8>;
+        select-gpios = <&gpio4 4 GPIO_ACTIVE_HIGH>;
+      };
+    };
diff --git a/Documentation/devicetree/bindings/misc/eeprom-93xx46.yaml b/Documentation/devicetree/bindings/misc/eeprom-93xx46.yaml
deleted file mode 100644 (file)
index 43ac237..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
-%YAML 1.2
----
-$id: http://devicetree.org/schemas/misc/eeprom-93xx46.yaml#
-$schema: http://devicetree.org/meta-schemas/core.yaml#
-
-title: Microchip 93xx46 SPI compatible EEPROM family dt bindings
-
-maintainers:
-  - Cory Tusar <cory.tusar@pid1solutions.com>
-
-properties:
-  compatible:
-    enum:
-      - atmel,at93c46
-      - atmel,at93c46d
-      - atmel,at93c56
-      - atmel,at93c66
-      - eeprom-93xx46
-      - microchip,93lc46b
-
-  data-size:
-    description: number of data bits per word
-    $ref: /schemas/types.yaml#/definitions/uint32
-    enum: [8, 16]
-
-  reg:
-    description: chip select of EEPROM
-    maxItems: 1
-
-  read-only:
-    description:
-      parameter-less property which disables writes to the EEPROM
-    type: boolean
-
-  select-gpios:
-    description:
-      specifies the GPIO that needs to be asserted prior to each access
-      of EEPROM (e.g. for SPI bus multiplexing)
-    maxItems: 1
-
-required:
-  - compatible
-  - reg
-  - data-size
-  - spi-max-frequency
-
-allOf:
-  - $ref: /schemas/spi/spi-peripheral-props.yaml#
-
-unevaluatedProperties: false
-
-examples:
-  - |
-    #include <dt-bindings/gpio/gpio.h>
-
-    spi {
-      #address-cells = <1>;
-      #size-cells = <0>;
-
-      eeprom@0 {
-        compatible = "eeprom-93xx46";
-        reg = <0>;
-        spi-max-frequency = <1000000>;
-        spi-cs-high;
-        data-size = <8>;
-        select-gpios = <&gpio4 4 GPIO_ACTIVE_HIGH>;
-      };
-    };