aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCK Hu <ck.hu@mediatek.com>2016-08-11 05:59:59 -0400
committerMatthias Brugger <matthias.bgg@gmail.com>2016-08-22 13:12:07 -0400
commita10b57f44a659a073b0e4f982ca205bed9e913fc (patch)
tree9d7cf19f19da4635947f8bce970571aabbe679d3
parent29b4817d4018df78086157ea3a55c1d9424a7cfc (diff)
arm64: dts: mt8173: Add HDMI related nodes
This patch adds the device nodes for the HDMI encoder, HDMI PHY, and HDMI CEC modules. Signed-off-by: CK Hu <ck.hu@mediatek.com> Signed-off-by: Cawa Cheng <cawa.cheng@mediatek.com> Signed-off-by: Jie Qiu <jie.qiu@mediatek.com> Signed-off-by: Daniel Kurtz <djkurtz@chromium.org> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
-rw-r--r--arch/arm64/boot/dts/mediatek/mt8173.dtsi77
1 files changed, 77 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi
index 10f638f4e7d8..1c71e256601d 100644
--- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi
@@ -254,6 +254,16 @@
254 <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>, 254 <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
255 <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>; 255 <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>;
256 256
257 hdmi_pin: xxx {
258
259 /*hdmi htplg pin*/
260 pins1 {
261 pinmux = <MT8173_PIN_21_HTPLG__FUNC_HTPLG>;
262 input-enable;
263 bias-pull-down;
264 };
265 };
266
257 i2c0_pins_a: i2c0 { 267 i2c0_pins_a: i2c0 {
258 pins1 { 268 pins1 {
259 pinmux = <MT8173_PIN_45_SDA0__FUNC_SDA0>, 269 pinmux = <MT8173_PIN_45_SDA0__FUNC_SDA0>,
@@ -341,6 +351,14 @@
341 clock-names = "spi", "wrap"; 351 clock-names = "spi", "wrap";
342 }; 352 };
343 353
354 cec: cec@10013000 {
355 compatible = "mediatek,mt8173-cec";
356 reg = <0 0x10013000 0 0xbc>;
357 interrupts = <GIC_SPI 167 IRQ_TYPE_LEVEL_LOW>;
358 clocks = <&infracfg CLK_INFRA_CEC>;
359 status = "disabled";
360 };
361
344 vpu: vpu@10020000 { 362 vpu: vpu@10020000 {
345 compatible = "mediatek,mt8173-vpu"; 363 compatible = "mediatek,mt8173-vpu";
346 reg = <0 0x10020000 0 0x30000>, 364 reg = <0 0x10020000 0 0x30000>,
@@ -383,6 +401,19 @@
383 #clock-cells = <1>; 401 #clock-cells = <1>;
384 }; 402 };
385 403
404 hdmi_phy: hdmi-phy@10209100 {
405 compatible = "mediatek,mt8173-hdmi-phy";
406 reg = <0 0x10209100 0 0x24>;
407 clocks = <&apmixedsys CLK_APMIXED_HDMI_REF>;
408 clock-names = "pll_ref";
409 clock-output-names = "hdmitx_dig_cts";
410 mediatek,ibias = <0xa>;
411 mediatek,ibias_up = <0x1c>;
412 #clock-cells = <0>;
413 #phy-cells = <0>;
414 status = "disabled";
415 };
416
386 mipi_tx0: mipi-dphy@10215000 { 417 mipi_tx0: mipi-dphy@10215000 {
387 compatible = "mediatek,mt8173-mipi-tx"; 418 compatible = "mediatek,mt8173-mipi-tx";
388 reg = <0 0x10215000 0 0x1000>; 419 reg = <0 0x10215000 0 0x1000>;
@@ -577,6 +608,14 @@
577 status = "disabled"; 608 status = "disabled";
578 }; 609 };
579 610
611 hdmiddc0: i2c@11012000 {
612 compatible = "mediatek,mt8173-hdmi-ddc";
613 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_LOW>;
614 reg = <0 0x11012000 0 0x1C>;
615 clocks = <&pericfg CLK_PERI_I2C5>;
616 clock-names = "ddc-i2c";
617 };
618
580 i2c6: i2c@11013000 { 619 i2c6: i2c@11013000 {
581 compatible = "mediatek,mt8173-i2c"; 620 compatible = "mediatek,mt8173-i2c";
582 reg = <0 0x11013000 0 0x70>, 621 reg = <0 0x11013000 0 0x70>,
@@ -885,6 +924,12 @@
885 <&apmixedsys CLK_APMIXED_TVDPLL>; 924 <&apmixedsys CLK_APMIXED_TVDPLL>;
886 clock-names = "pixel", "engine", "pll"; 925 clock-names = "pixel", "engine", "pll";
887 status = "disabled"; 926 status = "disabled";
927
928 port {
929 dpi0_out: endpoint {
930 remote-endpoint = <&hdmi0_in>;
931 };
932 };
888 }; 933 };
889 934
890 pwm0: pwm@1401e000 { 935 pwm0: pwm@1401e000 {
@@ -942,6 +987,38 @@
942 clocks = <&mmsys CLK_MM_DISP_OD>; 987 clocks = <&mmsys CLK_MM_DISP_OD>;
943 }; 988 };
944 989
990 hdmi0: hdmi@14025000 {
991 compatible = "mediatek,mt8173-hdmi";
992 reg = <0 0x14025000 0 0x400>;
993 interrupts = <GIC_SPI 206 IRQ_TYPE_LEVEL_LOW>;
994 clocks = <&mmsys CLK_MM_HDMI_PIXEL>,
995 <&mmsys CLK_MM_HDMI_PLLCK>,
996 <&mmsys CLK_MM_HDMI_AUDIO>,
997 <&mmsys CLK_MM_HDMI_SPDIF>;
998 clock-names = "pixel", "pll", "bclk", "spdif";
999 pinctrl-names = "default";
1000 pinctrl-0 = <&hdmi_pin>;
1001 phys = <&hdmi_phy>;
1002 phy-names = "hdmi";
1003 mediatek,syscon-hdmi = <&mmsys 0x900>;
1004 assigned-clocks = <&topckgen CLK_TOP_HDMI_SEL>;
1005 assigned-clock-parents = <&hdmi_phy>;
1006 status = "disabled";
1007
1008 ports {
1009 #address-cells = <1>;
1010 #size-cells = <0>;
1011
1012 port@0 {
1013 reg = <0>;
1014
1015 hdmi0_in: endpoint {
1016 remote-endpoint = <&dpi0_out>;
1017 };
1018 };
1019 };
1020 };
1021
945 larb4: larb@14027000 { 1022 larb4: larb@14027000 {
946 compatible = "mediatek,mt8173-smi-larb"; 1023 compatible = "mediatek,mt8173-smi-larb";
947 reg = <0 0x14027000 0 0x1000>; 1024 reg = <0 0x14027000 0 0x1000>;