From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Likely Subject: Re: [PATCH 2/2] dt-bindings: simplefb-sunxi: Add sunxi simplefb extensions Date: Mon, 17 Nov 2014 12:18:14 +0000 Message-ID: References: <1416224086-5698-1-git-send-email-hdegoede@redhat.com> <1416224086-5698-3-git-send-email-hdegoede@redhat.com> Reply-To: linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Sender: linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org In-Reply-To: <1416224086-5698-3-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , To: Hans de Goede Cc: Tomi Valkeinen , Ian Campbell , Rob Herring , Maxime Ripard , David Herrmann , Geert Uytterhoeven , "linux-fbdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org" , devicetree , linux-sunxi List-Id: devicetree@vger.kernel.org On Mon, Nov 17, 2014 at 11:34 AM, Hans de Goede wrote: > If pre-filled framebuffer nodes are used, the firmware may need extra > properties to find the right node. This documents the properties to use > for this on sunxi platforms. > > Signed-off-by: Hans de Goede Acked-by: Grant Likely > --- > .../bindings/video/simple-framebuffer-sunxi.txt | 33 ++++++++++++++++++++++ > 1 file changed, 33 insertions(+) > create mode 100644 Documentation/devicetree/bindings/video/simple-framebuffer-sunxi.txt > > diff --git a/Documentation/devicetree/bindings/video/simple-framebuffer-sunxi.txt b/Documentation/devicetree/bindings/video/simple-framebuffer-sunxi.txt > new file mode 100644 > index 0000000..84ca264 > --- /dev/null > +++ b/Documentation/devicetree/bindings/video/simple-framebuffer-sunxi.txt > @@ -0,0 +1,33 @@ > +Sunxi specific Simple Framebuffer bindings > + > +This binding documents sunxi specific extensions to the simple-framebuffer > +bindings. The sunxi 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 and output is being used. As such they are solely intended > +for firmware / bootloader use, and the OS should ignore them. > + > +Required properties: > +- compatible: "sunxi,framebuffer" > +- sunxi,pipeline: > + <0> for the de_be0 -> lcdc0 -> output pipeline > + <1> for the de_be1 -> lcdc1 -> output pipeline > +- sunxi,output: One of: "hdmi", "lcd", "vga", and "composite" > + > +Example: > + > +chosen { > + #address-cells = <1>; > + #size-cells = <1>; > + ranges; > + > + framebuffer@0 { > + compatible = "sunxi,framebuffer", "simple-framebuffer"; > + sunxi,pipeline = <0>; > + sunxi,output = "hdmi"; > + clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>, > + <&ahb_gates 44>; > + status = "disabled"; > + }; > +}; > -- > 2.1.0 > From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Likely Date: Mon, 17 Nov 2014 12:18:14 +0000 Subject: Re: [PATCH 2/2] dt-bindings: simplefb-sunxi: Add sunxi simplefb extensions Message-Id: List-Id: References: <1416224086-5698-1-git-send-email-hdegoede@redhat.com> <1416224086-5698-3-git-send-email-hdegoede@redhat.com> In-Reply-To: <1416224086-5698-3-git-send-email-hdegoede@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-arm-kernel@lists.infradead.org On Mon, Nov 17, 2014 at 11:34 AM, Hans de Goede wrote: > If pre-filled framebuffer nodes are used, the firmware may need extra > properties to find the right node. This documents the properties to use > for this on sunxi platforms. > > Signed-off-by: Hans de Goede Acked-by: Grant Likely > --- > .../bindings/video/simple-framebuffer-sunxi.txt | 33 ++++++++++++++++++++++ > 1 file changed, 33 insertions(+) > create mode 100644 Documentation/devicetree/bindings/video/simple-framebuffer-sunxi.txt > > diff --git a/Documentation/devicetree/bindings/video/simple-framebuffer-sunxi.txt b/Documentation/devicetree/bindings/video/simple-framebuffer-sunxi.txt > new file mode 100644 > index 0000000..84ca264 > --- /dev/null > +++ b/Documentation/devicetree/bindings/video/simple-framebuffer-sunxi.txt > @@ -0,0 +1,33 @@ > +Sunxi specific Simple Framebuffer bindings > + > +This binding documents sunxi specific extensions to the simple-framebuffer > +bindings. The sunxi 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 and output is being used. As such they are solely intended > +for firmware / bootloader use, and the OS should ignore them. > + > +Required properties: > +- compatible: "sunxi,framebuffer" > +- sunxi,pipeline: > + <0> for the de_be0 -> lcdc0 -> output pipeline > + <1> for the de_be1 -> lcdc1 -> output pipeline > +- sunxi,output: One of: "hdmi", "lcd", "vga", and "composite" > + > +Example: > + > +chosen { > + #address-cells = <1>; > + #size-cells = <1>; > + ranges; > + > + framebuffer@0 { > + compatible = "sunxi,framebuffer", "simple-framebuffer"; > + sunxi,pipeline = <0>; > + sunxi,output = "hdmi"; > + clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>, > + <&ahb_gates 44>; > + status = "disabled"; > + }; > +}; > -- > 2.1.0 > From mboxrd@z Thu Jan 1 00:00:00 1970 From: grant.likely@linaro.org (Grant Likely) Date: Mon, 17 Nov 2014 12:18:14 +0000 Subject: [PATCH 2/2] dt-bindings: simplefb-sunxi: Add sunxi simplefb extensions In-Reply-To: <1416224086-5698-3-git-send-email-hdegoede@redhat.com> References: <1416224086-5698-1-git-send-email-hdegoede@redhat.com> <1416224086-5698-3-git-send-email-hdegoede@redhat.com> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Mon, Nov 17, 2014 at 11:34 AM, Hans de Goede wrote: > If pre-filled framebuffer nodes are used, the firmware may need extra > properties to find the right node. This documents the properties to use > for this on sunxi platforms. > > Signed-off-by: Hans de Goede Acked-by: Grant Likely > --- > .../bindings/video/simple-framebuffer-sunxi.txt | 33 ++++++++++++++++++++++ > 1 file changed, 33 insertions(+) > create mode 100644 Documentation/devicetree/bindings/video/simple-framebuffer-sunxi.txt > > diff --git a/Documentation/devicetree/bindings/video/simple-framebuffer-sunxi.txt b/Documentation/devicetree/bindings/video/simple-framebuffer-sunxi.txt > new file mode 100644 > index 0000000..84ca264 > --- /dev/null > +++ b/Documentation/devicetree/bindings/video/simple-framebuffer-sunxi.txt > @@ -0,0 +1,33 @@ > +Sunxi specific Simple Framebuffer bindings > + > +This binding documents sunxi specific extensions to the simple-framebuffer > +bindings. The sunxi 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 and output is being used. As such they are solely intended > +for firmware / bootloader use, and the OS should ignore them. > + > +Required properties: > +- compatible: "sunxi,framebuffer" > +- sunxi,pipeline: > + <0> for the de_be0 -> lcdc0 -> output pipeline > + <1> for the de_be1 -> lcdc1 -> output pipeline > +- sunxi,output: One of: "hdmi", "lcd", "vga", and "composite" > + > +Example: > + > +chosen { > + #address-cells = <1>; > + #size-cells = <1>; > + ranges; > + > + framebuffer at 0 { > + compatible = "sunxi,framebuffer", "simple-framebuffer"; > + sunxi,pipeline = <0>; > + sunxi,output = "hdmi"; > + clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>, > + <&ahb_gates 44>; > + status = "disabled"; > + }; > +}; > -- > 2.1.0 >