Skip to content

Commit

Permalink
ARM: dts: sun6i: Add device nodes for first display pipeline
Browse files Browse the repository at this point in the history
The A31 has 2 parallel display pipelines, which can be intermixed.
However the driver currently only supports one of them.

Signed-off-by: Chen-Yu Tsai <[email protected]>
Signed-off-by: Maxime Ripard <[email protected]>
  • Loading branch information
wens authored and mripard committed Nov 22, 2016
1 parent f19802b commit 6d0e5b7
Show file tree
Hide file tree
Showing 2 changed files with 160 additions and 0 deletions.
152 changes: 152 additions & 0 deletions arch/arm/boot/dts/sun6i-a31.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,11 @@
};
};

de: display-engine {
compatible = "allwinner,sun6i-a31-display-engine";
allwinner,pipelines = <&fe0>;
};

soc@01c00000 {
compatible = "simple-bus";
#address-cells = <1>;
Expand All @@ -246,6 +251,44 @@
#dma-cells = <1>;
};

tcon0: lcd-controller@01c0c000 {
compatible = "allwinner,sun6i-a31-tcon";
reg = <0x01c0c000 0x1000>;
interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
resets = <&ccu RST_AHB1_LCD0>;
reset-names = "lcd";
clocks = <&ccu CLK_AHB1_LCD0>,
<&ccu CLK_LCD0_CH0>,
<&ccu CLK_LCD0_CH1>;
clock-names = "ahb",
"tcon-ch0",
"tcon-ch1";
clock-output-names = "tcon0-pixel-clock";
status = "disabled";

ports {
#address-cells = <1>;
#size-cells = <0>;

tcon0_in: port@0 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0>;

tcon0_in_drc0: endpoint@0 {
reg = <0>;
remote-endpoint = <&drc0_out_tcon0>;
};
};

tcon0_out: port@1 {
#address-cells = <1>;
#size-cells = <0>;
reg = <1>;
};
};
};

mmc0: mmc@01c0f000 {
compatible = "allwinner,sun7i-a20-mmc";
reg = <0x01c0f000 0x1000>;
Expand Down Expand Up @@ -799,6 +842,115 @@
interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
};

fe0: display-frontend@01e00000 {
compatible = "allwinner,sun6i-a31-display-frontend";
reg = <0x01e00000 0x20000>;
interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&ccu CLK_AHB1_FE0>, <&ccu CLK_FE0>,
<&ccu CLK_DRAM_FE0>;
clock-names = "ahb", "mod",
"ram";
resets = <&ccu RST_AHB1_FE0>;

ports {
#address-cells = <1>;
#size-cells = <0>;

fe0_out: port@1 {
#address-cells = <1>;
#size-cells = <0>;
reg = <1>;

fe0_out_be0: endpoint@0 {
reg = <0>;
remote-endpoint = <&be0_in_fe0>;
};
};
};
};

be0: display-backend@01e60000 {
compatible = "allwinner,sun6i-a31-display-backend";
reg = <0x01e60000 0x10000>;
interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&ccu CLK_AHB1_BE0>, <&ccu CLK_BE0>,
<&ccu CLK_DRAM_BE0>;
clock-names = "ahb", "mod",
"ram";
resets = <&ccu RST_AHB1_BE0>;

assigned-clocks = <&ccu CLK_BE0>;
assigned-clock-rates = <300000000>;

ports {
#address-cells = <1>;
#size-cells = <0>;

be0_in: port@0 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0>;

be0_in_fe0: endpoint@0 {
reg = <0>;
remote-endpoint = <&fe0_out_be0>;
};
};

be0_out: port@1 {
#address-cells = <1>;
#size-cells = <0>;
reg = <1>;

be0_out_drc0: endpoint@0 {
reg = <0>;
remote-endpoint = <&drc0_in_be0>;
};
};
};
};

drc0: drc@01e70000 {
compatible = "allwinner,sun6i-a31-drc";
reg = <0x01e70000 0x10000>;
interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&ccu CLK_AHB1_DRC0>, <&ccu CLK_IEP_DRC0>,
<&ccu CLK_DRAM_DRC0>;
clock-names = "ahb", "mod",
"ram";
resets = <&ccu RST_AHB1_DRC0>;

assigned-clocks = <&ccu CLK_IEP_DRC0>;
assigned-clock-rates = <300000000>;

ports {
#address-cells = <1>;
#size-cells = <0>;

drc0_in: port@0 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0>;

drc0_in_be0: endpoint@0 {
reg = <0>;
remote-endpoint = <&be0_out_drc0>;
};
};

drc0_out: port@1 {
#address-cells = <1>;
#size-cells = <0>;
reg = <1>;

drc0_out_tcon0: endpoint@0 {
reg = <0>;
remote-endpoint = <&tcon0_in_drc0>;
};
};
};
};

rtc: rtc@01f00000 {
compatible = "allwinner,sun6i-a31-rtc";
reg = <0x01f00000 0x54>;
Expand Down
8 changes: 8 additions & 0 deletions arch/arm/boot/dts/sun6i-a31s.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@

#include "sun6i-a31.dtsi"

&de {
compatible = "allwinner,sun6i-a31s-display-engine";
};

&pio {
compatible = "allwinner,sun6i-a31s-pinctrl";
};

&tcon0 {
compatible = "allwinner,sun6i-a31s-tcon";
};

0 comments on commit 6d0e5b7

Please sign in to comment.