Skip to contentSkip to conversation

dt-bindings: meson: add specific simplefb bindings

PATCH Superseded Maxime Jourdan 3 participants 5 messages Dec 10, 2018 – Dec 20, 2018

Subsystems (4)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 dt-bindings: meson: add specific simplefb bindings

Similar to simple-framebuffer-sunxi, we support different display pipelines that the firmware is free to choose from.

This documents the "amlogic,simple-framebuffer" compatible and the "amlogic,pipeline" extension.

---
 .../display/simple-framebuffer-meson.txt      | 33 +++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/simple-framebuffer-meson.txt
Documentation/devicetree/bindings/display/simple-framebuffer-meson.txt new file +33 -0
new file mode 100644
index 000000000000..122a5c005cd9
@@ -0,0 +1,33 @@
+Meson specific Simple Framebuffer bindings
+
+This binding documents meson specific extensions to the simple-framebuffer
+bindings. The meson simplefb u-boot code relies on the devicetree containing
+pre-populated simplefb nodes.
+
+These extensions are intended so that u-boot can select the right node based
+on which pipeline is being used. As such they are solely intended for
+firmware / bootloader use, and the OS should ignore them.
+
+Required properties:
+- compatible: "amlogic,simple-framebuffer"
+- amlogic,pipeline, one of:
+  "vpu-cvbs"
+  "vpu-hdmi"
+
+Example:
+
+chosen {
+	#address-cells = <2>;
+	#size-cells = <2>;
+	ranges;
+
+	framebuffer@0 {
+		compatible = "amlogic,simple-framebuffer",
+			     "simple-framebuffer";
+		amlogic,pipeline = "vpu-hdmi";
+		clocks = <&clkc CLKID_HDMI_PCLK>,
+			 <&clkc CLKID_CLK81>,
+			 <&clkc CLKID_GCLK_VENCI_INT0>;
+		power-domains = <&pwrc_vpu>;
+	};
+};
Signature · 1 line
2.19.2
#1 lore raw

PATCH 2/2 arm64: dts: meson-gx: add support for simplefb

SimpleFB allows transferring a framebuffer from the firmware/bootloader to the kernel, while making sure the related clocks and power supplies stay enabled.

Add nodes for CVBS and HDMI Simple Framebuffers.

---
 arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 25 +++++++++++++++++++++
 arch/arm64/boot/dts/amlogic/meson-gxl.dtsi  | 25 +++++++++++++++++++++
 2 files changed, 50 insertions(+)
arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi +25 -0
index 1ade7e486828..4bc7dd5ba141 100644
@@ -13,6 +13,31 @@
 / {
 	compatible = "amlogic,meson-gxbb";
 
+	chosen {
+		#address-cells = <2>;
+		#size-cells = <2>;
+		ranges;
+
+		framebuffer@0 {
+			compatible = "amlogic,simple-framebuffer",
+				     "simple-framebuffer";
+			amlogic,pipeline = "vpu-cvbs";
+			power-domains = <&pwrc_vpu>;
+			status = "disabled";
+		};
+
+		framebuffer@1 {
+			compatible = "amlogic,simple-framebuffer",
+				     "simple-framebuffer";
+			amlogic,pipeline = "vpu-hdmi";
+			clocks = <&clkc CLKID_HDMI_PCLK>,
+				 <&clkc CLKID_CLK81>,
+				 <&clkc CLKID_GCLK_VENCI_INT0>;
+			power-domains = <&pwrc_vpu>;
+			status = "disabled";
+		};
+	};
+
 	soc {
 		usb0_phy: phy@c0000000 {
 			compatible = "amlogic,meson-gxbb-usb2-phy";
arch/arm64/boot/dts/amlogic/meson-gxl.dtsi +25 -0
index 8f0bb3c44bd6..f7ef8e0cf96e 100644
@@ -13,6 +13,31 @@
 / {
 	compatible = "amlogic,meson-gxl";
 
+	chosen {
+		#address-cells = <2>;
+		#size-cells = <2>;
+		ranges;
+
+		framebuffer@0 {
+			compatible = "amlogic,simple-framebuffer",
+				     "simple-framebuffer";
+			amlogic,pipeline = "vpu-cvbs";
+			power-domains = <&pwrc_vpu>;
+			status = "disabled";
+		};
+
+		framebuffer@1 {
+			compatible = "amlogic,simple-framebuffer",
+				     "simple-framebuffer";
+			amlogic,pipeline = "vpu-hdmi";
+			clocks = <&clkc CLKID_HDMI_PCLK>,
+				 <&clkc CLKID_CLK81>,
+				 <&clkc CLKID_GCLK_VENCI_INT0>;
+			power-domains = <&pwrc_vpu>;
+			status = "disabled";
+		};
+	};
+
 	soc {
 		usb0: usb@c9000000 {
 			status = "disabled";
Signature · 1 line
2.19.2
#2 lore raw
In reply to Maxime Jourdan

Hi Maxime,

Quoted 42 lines · Maxime Jourdan

Similar to simple-framebuffer-sunxi, we support different display pipelines that the firmware is free to choose from.

This documents the "amlogic,simple-framebuffer" compatible and the "amlogic,pipeline" extension.

---
 .../display/simple-framebuffer-meson.txt      | 33 +++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/simple-framebuffer-meson.txt
Documentation/devicetree/bindings/display/simple-framebuffer-meson.txt new file +23 -0
new file mode 100644
index 000000000000..122a5c005cd9
@@ -0,0 +1,33 @@
+Meson specific Simple Framebuffer bindings
+
+This binding documents meson specific extensions to the simple-framebuffer
+bindings. The meson simplefb u-boot code relies on the devicetree containing
+pre-populated simplefb nodes.
+
+These extensions are intended so that u-boot can select the right node based
+on which pipeline is being used. As such they are solely intended for
+firmware / bootloader use, and the OS should ignore them.
+
+Required properties:
+- compatible: "amlogic,simple-framebuffer"
+- amlogic,pipeline, one of:
+  "vpu-cvbs"
+  "vpu-hdmi"
+
+Example:
+
+chosen {
+	#address-cells = <2>;
+	#size-cells = <2>;
+	ranges;
+

Documentation/devicetree/bindings/display/simple-framebuffer-meson.txt line 33

Quoted 10 lines
Documentation/devicetree/bindings/display/simple-framebuffer-meson.txt new file +10 -0
+	framebuffer@0 {
+		compatible = "amlogic,simple-framebuffer",
+			     "simple-framebuffer";
+		amlogic,pipeline = "vpu-hdmi";
+		clocks = <&clkc CLKID_HDMI_PCLK>,
+			 <&clkc CLKID_CLK81>,
+			 <&clkc CLKID_GCLK_VENCI_INT0>;
+		power-domains = <&pwrc_vpu>;
+	};
+};

You should add a cover-letter for this patchset !

Neil

#3 lore raw

Hi Neil,

Quoted 59 lines · Neil Armstrong

Hi Maxime,

Quoted 42 lines · Maxime Jourdan

Similar to simple-framebuffer-sunxi, we support different display pipelines that the firmware is free to choose from.

This documents the "amlogic,simple-framebuffer" compatible and the "amlogic,pipeline" extension.

---
 .../display/simple-framebuffer-meson.txt      | 33 +++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/simple-framebuffer-meson.txt
Documentation/devicetree/bindings/display/simple-framebuffer-meson.txt new file +23 -0
new file mode 100644
index 000000000000..122a5c005cd9
@@ -0,0 +1,33 @@
+Meson specific Simple Framebuffer bindings
+
+This binding documents meson specific extensions to the simple-framebuffer
+bindings. The meson simplefb u-boot code relies on the devicetree containing
+pre-populated simplefb nodes.
+
+These extensions are intended so that u-boot can select the right node based
+on which pipeline is being used. As such they are solely intended for
+firmware / bootloader use, and the OS should ignore them.
+
+Required properties:
+- compatible: "amlogic,simple-framebuffer"
+- amlogic,pipeline, one of:
+  "vpu-cvbs"
+  "vpu-hdmi"
+
+Example:
+
+chosen {
+     #address-cells = <2>;
+     #size-cells = <2>;
+     ranges;
+

Documentation/devicetree/bindings/display/simple-framebuffer-meson.txt line 33

Quoted 10 lines
Documentation/devicetree/bindings/display/simple-framebuffer-meson.txt new file +10 -0
+     framebuffer@0 {
+             compatible = "amlogic,simple-framebuffer",
+                          "simple-framebuffer";
+             amlogic,pipeline = "vpu-hdmi";
+             clocks = <&clkc CLKID_HDMI_PCLK>,
+                      <&clkc CLKID_CLK81>,
+                      <&clkc CLKID_GCLK_VENCI_INT0>;
+             power-domains = <&pwrc_vpu>;
+     };
+};

You should add a cover-letter for this patchset !

Quoted 1 line

Neil

Sorry about that, I completely forgot. Thanks for the reminder, will repost.

Maxime

maintainer
#4 lore raw
In reply to Maxime Jourdan
Quoted 20 lines · Maxime Jourdan

Similar to simple-framebuffer-sunxi, we support different display pipelines that the firmware is free to choose from.

This documents the "amlogic,simple-framebuffer" compatible and the "amlogic,pipeline" extension.

---
 .../display/simple-framebuffer-meson.txt      | 33 +++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/simple-framebuffer-meson.txt
Documentation/devicetree/bindings/display/simple-framebuffer-meson.txt new file +2 -0
new file mode 100644
index 000000000000..122a5c005cd9
@@ -0,0 +1,33 @@
+Meson specific Simple Framebuffer bindings
+

Documentation/devicetree/bindings/display/simple-framebuffer-meson.txt line 12

Quoted 10 lines
Documentation/devicetree/bindings/display/simple-framebuffer-meson.txt new file +10 -0
+This binding documents meson specific extensions to the simple-framebuffer
+bindings. The meson simplefb u-boot code relies on the devicetree containing
+pre-populated simplefb nodes.
+
+These extensions are intended so that u-boot can select the right node based
+on which pipeline is being used. As such they are solely intended for
+firmware / bootloader use, and the OS should ignore them.
+
+Required properties:
+- compatible: "amlogic,simple-framebuffer"

And a fallback?

Documentation/devicetree/bindings/display/simple-framebuffer-meson.txt line 24

Quoted 12 lines
Documentation/devicetree/bindings/display/simple-framebuffer-meson.txt new file +12 -0
+- amlogic,pipeline, one of:
+  "vpu-cvbs"
+  "vpu-hdmi"
+
+Example:
+
+chosen {
+	#address-cells = <2>;
+	#size-cells = <2>;
+	ranges;
+
+	framebuffer@0 {

Without 'reg', you shouldn't have a unit-address.

Quoted 12 lines
Documentation/devicetree/bindings/display/simple-framebuffer-meson.txt new file +9 -0
+		compatible = "amlogic,simple-framebuffer",
+			     "simple-framebuffer";
+		amlogic,pipeline = "vpu-hdmi";
+		clocks = <&clkc CLKID_HDMI_PCLK>,
+			 <&clkc CLKID_CLK81>,
+			 <&clkc CLKID_GCLK_VENCI_INT0>;
+		power-domains = <&pwrc_vpu>;
+	};
+};
Signature · 1 line
2.19.2