[RFC 07/16] dt-bindings: display: himax, hx8837: Add Himax HX8837 bindings

Lubomir Rintel lkundrak at v3.sk
Tue Dec 18 15:37:33 UTC 2018


Himax HX8837 is a secondary display controller used to drive the panel
on OLPC platforms.

Signed-off-by: Lubomir Rintel <lkundrak at v3.sk>

---
Changes since v3:
- Moved to bindings/display/
- Added the ports
- Removed Pavel's Ack, because the changes are substantial

Changes since v2:
- s/betweend/between/

Changes since v1:
- s/load-gpio/load-gpios/
- Use interrupt bindings instead of gpio for the IRQ
---
 .../bindings/display/bridge/himax,hx8837.txt  | 44 +++++++++++++++++++
 1 file changed, 44 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/bridge/himax,hx8837.txt

diff --git a/Documentation/devicetree/bindings/display/bridge/himax,hx8837.txt b/Documentation/devicetree/bindings/display/bridge/himax,hx8837.txt
new file mode 100644
index 000000000000..c52274f05692
--- /dev/null
+++ b/Documentation/devicetree/bindings/display/bridge/himax,hx8837.txt
@@ -0,0 +1,44 @@
+HX8837 Display Controller
+
+Required properties:
+- compatible: Should be "himax,hx8837".
+- reg: I2C address, must be 0x0d
+- stat-gpios: gpio specifier of DCON_STAT0 and DCON_STAT1 pins (active high)
+- load-gpios: gpio specifier of DCON_LOAD pin (active high)
+- interrupt: interrupt specifier of DCON_IRQ pin (edge falling)
+
+Required nodes:
+- ports: contains port nodes with endpoints, as described in
+  Documentation/devicetree/bindings/graph.txt
+  Port 0's endpoint is connected to the LCD controller's RGB data output
+  endpoint.
+  Port 1's endpoint is connected to the panel's input endpoint.
+
+Example:
+	dcon at d {
+		compatible = "himax,hx8837";
+		reg = <0x0d>;
+		stat-gpios = <&gpio 100 GPIO_ACTIVE_HIGH
+			      &gpio 101 GPIO_ACTIVE_HIGH>;
+		load-gpios = <&gpio 142 GPIO_ACTIVE_HIGH>;
+		interrupts = <&gpio 124 IRQ_TYPE_EDGE_FALLING>;
+
+		ports {
+			#address-cells = <0x01>;
+			#size-cells = <0x00>;
+
+			port at 0 {
+				reg = <0x00>;
+				dcon_rgb_in: endpoint {
+					remote-endpoint = <&lcd0_rgb_out>;
+				};
+			};
+
+			port at 1 {
+				reg = <0x01>;
+				dcon_gettl_out: endpoint {
+					remote-endpoint = <&panel_dettl_in>;
+				};
+			};
+		};
+	};
-- 
2.19.1



More information about the dri-devel mailing list