[PATCH v2 1/5] dt-bindings: media: Add Allwinner A10 CSI binding
From: Maxime Ripard
Date: Mon Jan 28 2019 - 09:52:49 EST
The Allwinner A10 CMOS Sensor Interface is a camera capture interface also
used in later (A10s, A13, A20, R8 and GR8) SoCs.
On some SoCs, like the A10, there's multiple instances of that controller,
with one instance supporting more channels and having an ISP.
Signed-off-by: Maxime Ripard <maxime.ripard@xxxxxxxxxxx>
---
Documentation/devicetree/bindings/media/allwinner,sun4i-a10-csi.yaml | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 73 insertions(+)
create mode 100644 Documentation/devicetree/bindings/media/allwinner,sun4i-a10-csi.yaml
diff --git a/Documentation/devicetree/bindings/media/allwinner,sun4i-a10-csi.yaml b/Documentation/devicetree/bindings/media/allwinner,sun4i-a10-csi.yaml
new file mode 100644
index 000000000000..f550fefa074f
--- /dev/null
+++ b/Documentation/devicetree/bindings/media/allwinner,sun4i-a10-csi.yaml
@@ -0,0 +1,73 @@
+# SPDX-License-Identifier: (GPL-2.0+ OR X11)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/allwinner,sun4i-a10-csi.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Allwinner A10 CMOS Sensor Interface (CSI) Device Tree Bindings
+
+maintainers:
+ - Chen-Yu Tsai <wens@xxxxxxxx>
+ - Maxime Ripard <maxime.ripard@xxxxxxxxxxx>
+
+properties:
+ compatible:
+ oneOf:
+ - description: Allwinner A10 CSI0 Controller
+ items:
+ - const: allwinner,sun4i-a10-csi0
+
+ - description: Allwinner A20 CSI0 Controller
+ items:
+ - const: allwinner,sun7i-a20-csi0
+ - const: allwinner,sun4i-a10-csi0
+
+ reg:
+ description: The base address and size of the memory-mapped region
+ maxItems: 1
+
+ interrupts:
+ description: The interrupt associated to this IP
+ maxItems: 1
+
+ clocks:
+ minItems: 4
+ maxItems: 4
+ items:
+ - description: The CSI interface clock
+ - description: The CSI module clock
+ - description: The CSI ISP clock
+ - description: The CSI DRAM clock
+
+ clock-names:
+ minItems: 4
+ maxItems: 4
+ items:
+ - const: bus
+ - const: mod
+ - const: isp
+ - const: ram
+
+ resets:
+ description: The reset line driver this IP
+ maxItems: 1
+
+ pinctrl-0: true
+
+ pinctrl-names:
+ description:
+ When present, must have one state named "default" that sets up
+ pins for ordinary operations.
+ minItems: 1
+ maxItems: 1
+ items:
+ - const: default
+
+required:
+ - compatible
+ - reg
+ - interrupts
+ - clocks
+
+# The media OF-graph binding hasn't been described yet
+# additionalProperties: false
--
git-series 0.9.1