Files
BPI-CM9-Linux/build/patch/kernel/archive/meson-6.12/0013-dt-bindings-phy-Add-bindings-for-the-Amlogic-Meson-C.patch
T

105 lines
2.6 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Martin Blumenstingl <[email protected]>
Date: Mon, 11 Oct 2021 23:37:19 +0200
Subject: dt-bindings: phy: Add bindings for the Amlogic Meson CVBS DAC
Amlogic Meson SoCs embed a Composite Video Baseband Signal DAC. Add the
bindings for this IP.
Signed-off-by: Martin Blumenstingl <[email protected]>
---
Documentation/devicetree/bindings/phy/amlogic,meson-cvbs-dac-phy.yaml | 82 ++++++++++
1 file changed, 82 insertions(+)
diff --git a/Documentation/devicetree/bindings/phy/amlogic,meson-cvbs-dac-phy.yaml b/Documentation/devicetree/bindings/phy/amlogic,meson-cvbs-dac-phy.yaml
new file mode 100644
index 000000000000..111111111111
--- /dev/null
+++ b/Documentation/devicetree/bindings/phy/amlogic,meson-cvbs-dac-phy.yaml
@@ -0,0 +1,82 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/phy/amlogic,meson-cvbs-dac-phy.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Amlogic Meson Composite Video Baseband Signal DAC
+
+maintainers:
+ - Martin Blumenstingl <[email protected]>
+
+description: |+
+ The CVBS DAC node should be the child of a syscon node with the
+ required property:
+
+ compatible = "amlogic,meson-hhi-sysctrl", "simple-mfd", "syscon"
+
+ Refer to the bindings described in
+ Documentation/devicetree/bindings/mfd/syscon.yaml
+
+properties:
+ $nodename:
+ pattern: "^video-dac@[0-9a-f]+$"
+
+ compatible:
+ oneOf:
+ - items:
+ - enum:
+ - amlogic,meson8-cvbs-dac
+ - amlogic,meson8b-cvbs-dac
+ - amlogic,meson-gxbb-cvbs-dac
+ - amlogic,meson-gxl-cvbs-dac
+ - amlogic,meson-g12a-cvbs-dac
+ - const: amlogic,meson-cvbs-dac
+ - const: amlogic,meson-cvbs-dac
+
+ reg:
+ maxItems: 1
+
+ clocks:
+ minItems: 1
+
+ nvmem-cells:
+ minItems: 1
+
+ nvmem-cell-names:
+ items:
+ - const: cvbs_trimming
+
+ "#phy-cells":
+ const: 0
+
+required:
+ - compatible
+ - reg
+ - clocks
+ - "#phy-cells"
+
+additionalProperties: false
+
+examples:
+ - |
+ video-dac@2f4 {
+ compatible = "amlogic,meson8-cvbs-dac", "amlogic,meson-cvbs-dac";
+ reg = <0x2f4 0x8>;
+
+ #phy-cells = <0>;
+
+ clocks = <&vdac_clock>;
+
+ nvmem-cells = <&cvbs_trimming>;
+ nvmem-cell-names = "cvbs_trimming";
+ };
+ - |
+ video-dac@2ec {
+ compatible = "amlogic,meson-g12a-cvbs-dac", "amlogic,meson-cvbs-dac";
+ reg = <0x2ec 0x8>;
+
+ #phy-cells = <0>;
+
+ clocks = <&vdac_clock>;
+ };
--
Armbian