aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/boot
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-09-14 11:31:58 -0400
committerArnd Bergmann <arnd@arndb.de>2016-09-14 11:31:58 -0400
commit2e1762c30f5287b84ab9683305cbd2f9a496078b (patch)
tree5af189cc0fa00ad4c1748a225615fb9898f34859 /arch/arm64/boot
parent3402a63d8dd54fe4a48dd6c40cfa9d19a1dd502d (diff)
parent7475e27b45554d350f6a28edc8d0bfcf13f801c4 (diff)
Merge tag 'v4.8-next-dts64' of https://github.com/mbgg/linux-mediatek into next/dt64
Pull "ARM: mediatek: dts64 updates for v4.9" from Matthias Brugger: - add HDMI related nodes to mt8173 - enable the HDMI output on mt8173-evb * tag 'v4.8-next-dts64' of https://github.com/mbgg/linux-mediatek: arm64: dts: mt8173-evb: enable HDMI output arm64: dts: mt8173: Add HDMI related nodes
Diffstat (limited to 'arch/arm64/boot')
-rw-r--r--arch/arm64/boot/dts/mediatek/mt8173-evb.dts38
-rw-r--r--arch/arm64/boot/dts/mediatek/mt8173.dtsi77
2 files changed, 115 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/mediatek/mt8173-evb.dts b/arch/arm64/boot/dts/mediatek/mt8173-evb.dts
index 7453a47b3047..2a7f731c7759 100644
--- a/arch/arm64/boot/dts/mediatek/mt8173-evb.dts
+++ b/arch/arm64/boot/dts/mediatek/mt8173-evb.dts
@@ -42,6 +42,44 @@
42 gpio = <&pio 130 GPIO_ACTIVE_HIGH>; 42 gpio = <&pio 130 GPIO_ACTIVE_HIGH>;
43 enable-active-high; 43 enable-active-high;
44 }; 44 };
45
46 connector {
47 compatible = "hdmi-connector";
48 label = "hdmi";
49 type = "d";
50
51 port {
52 hdmi_connector_in: endpoint {
53 remote-endpoint = <&hdmi0_out>;
54 };
55 };
56 };
57};
58
59&cec {
60 status = "okay";
61};
62
63&dpi0 {
64 status = "okay";
65};
66
67&hdmi_phy {
68 status = "okay";
69};
70
71&hdmi0 {
72 status = "okay";
73
74 ports {
75 port@1 {
76 reg = <1>;
77
78 hdmi0_out: endpoint {
79 remote-endpoint = <&hdmi_connector_in>;
80 };
81 };
82 };
45}; 83};
46 84
47&i2c1 { 85&i2c1 {
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>;