Re: [linux-sunxi] [PATCH v4 5/6] arm64: allwinner: a64: add simplefb for A64 SoC
On Sat, Dec 30, 2017 at 7:30 PM, Icenowy Zhengwrote: > The A64 SoC features two display pipelines, one has a LCD output, the > other has a HDMI output. > > Add support for simplefb for these pipelines on A64 SoC. > > Signed-off-by: Icenowy Zheng > --- > Changes in v4: > - Dropped extra clocks. > - Added labels to the SimpleFB device tree nodes as boards may have > extra regulator for display pipeline. > > arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 26 ++ > 1 file changed, 26 insertions(+) > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi > b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi > index fb8ea7c414e1..d803c115d362 100644 > --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi > +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi > @@ -42,9 +42,11 @@ > * OTHER DEALINGS IN THE SOFTWARE. > */ > > +#include > #include > #include > #include > +#include Nit: This isn't used anywhere. Please add it when DE2 DRM support is added. ChenYu
Re: [linux-sunxi] [PATCH v4 5/6] arm64: allwinner: a64: add simplefb for A64 SoC
On Sat, Dec 30, 2017 at 7:30 PM, Icenowy Zheng wrote: > The A64 SoC features two display pipelines, one has a LCD output, the > other has a HDMI output. > > Add support for simplefb for these pipelines on A64 SoC. > > Signed-off-by: Icenowy Zheng > --- > Changes in v4: > - Dropped extra clocks. > - Added labels to the SimpleFB device tree nodes as boards may have > extra regulator for display pipeline. > > arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 26 ++ > 1 file changed, 26 insertions(+) > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi > b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi > index fb8ea7c414e1..d803c115d362 100644 > --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi > +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi > @@ -42,9 +42,11 @@ > * OTHER DEALINGS IN THE SOFTWARE. > */ > > +#include > #include > #include > #include > +#include Nit: This isn't used anywhere. Please add it when DE2 DRM support is added. ChenYu
[PATCH v4 5/6] arm64: allwinner: a64: add simplefb for A64 SoC
The A64 SoC features two display pipelines, one has a LCD output, the other has a HDMI output. Add support for simplefb for these pipelines on A64 SoC. Signed-off-by: Icenowy Zheng--- Changes in v4: - Dropped extra clocks. - Added labels to the SimpleFB device tree nodes as boards may have extra regulator for display pipeline. arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 26 ++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index fb8ea7c414e1..d803c115d362 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -42,9 +42,11 @@ * OTHER DEALINGS IN THE SOFTWARE. */ +#include #include #include #include +#include #include / { @@ -52,6 +54,30 @@ #address-cells = <1>; #size-cells = <1>; + chosen { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + simplefb_lcd: framebuffer-lcd { + compatible = "allwinner,simple-framebuffer", +"simple-framebuffer"; + allwinner,pipeline = "mixer0-lcd0"; + clocks = <_clocks CLK_MIXER0>, +< CLK_TCON0>; + status = "disabled"; + }; + + simplefb_hdmi: framebuffer-hdmi { + compatible = "allwinner,simple-framebuffer", +"simple-framebuffer"; + allwinner,pipeline = "mixer1-lcd1-hdmi"; + clocks = <_clocks CLK_MIXER1>, +< CLK_TCON1>, < CLK_HDMI>; + status = "disabled"; + }; + }; + cpus { #address-cells = <1>; #size-cells = <0>; -- 2.14.2
[PATCH v4 5/6] arm64: allwinner: a64: add simplefb for A64 SoC
The A64 SoC features two display pipelines, one has a LCD output, the other has a HDMI output. Add support for simplefb for these pipelines on A64 SoC. Signed-off-by: Icenowy Zheng --- Changes in v4: - Dropped extra clocks. - Added labels to the SimpleFB device tree nodes as boards may have extra regulator for display pipeline. arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 26 ++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index fb8ea7c414e1..d803c115d362 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -42,9 +42,11 @@ * OTHER DEALINGS IN THE SOFTWARE. */ +#include #include #include #include +#include #include / { @@ -52,6 +54,30 @@ #address-cells = <1>; #size-cells = <1>; + chosen { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + simplefb_lcd: framebuffer-lcd { + compatible = "allwinner,simple-framebuffer", +"simple-framebuffer"; + allwinner,pipeline = "mixer0-lcd0"; + clocks = <_clocks CLK_MIXER0>, +< CLK_TCON0>; + status = "disabled"; + }; + + simplefb_hdmi: framebuffer-hdmi { + compatible = "allwinner,simple-framebuffer", +"simple-framebuffer"; + allwinner,pipeline = "mixer1-lcd1-hdmi"; + clocks = <_clocks CLK_MIXER1>, +< CLK_TCON1>, < CLK_HDMI>; + status = "disabled"; + }; + }; + cpus { #address-cells = <1>; #size-cells = <0>; -- 2.14.2