Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'samsung-dt64-4.17' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/krzk/linux into next/dt

Pull "Samsung DTS ARM64 changes for v4.17" from Krzysztof Kozłowski:

1. Add support for HDMI audio on Exynos 5433 TM2/TM2E boards.
2. Add support for USB-MHL connector on Exynos 5433 TM2/TM2E boards.

* tag 'samsung-dt64-4.17' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/krzk/linux:
arm64: dts: exynos: add OF graph between MHL and USB connector
arm64: dts: exynos: add micro-USB connector node to TM2 platforms
ARM: dts: exynos: Add support for HDMI audio on Exynos 5433 TM2 board
ARM: dts: exynos: Update I2S0 device node in exynos5433
ARM: dts: exynos: Add I2S1 device node to exynos5433

+106 -8
+83 -7
arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi
··· 14 14 #include <dt-bindings/gpio/gpio.h> 15 15 #include <dt-bindings/input/input.h> 16 16 #include <dt-bindings/interrupt-controller/irq.h> 17 + #include <dt-bindings/sound/samsung-i2s.h> 17 18 18 19 / { 19 20 aliases { ··· 113 112 114 113 sound { 115 114 compatible = "samsung,tm2-audio"; 116 - audio-codec = <&wm5110>; 117 - i2s-controller = <&i2s0>; 115 + audio-codec = <&wm5110>, <&hdmi>; 116 + i2s-controller = <&i2s0 0>, <&i2s1 0>; 118 117 audio-amplifier = <&max98504>; 119 118 mic-bias-gpios = <&gpr3 2 GPIO_ACTIVE_HIGH>; 120 119 model = "wm5110"; ··· 218 217 }; 219 218 220 219 &cmu_aud { 221 - assigned-clocks = <&cmu_aud CLK_MOUT_AUD_PLL_USER>; 222 - assigned-clock-parents = <&cmu_top CLK_FOUT_AUD_PLL>; 220 + assigned-clocks = <&cmu_aud CLK_MOUT_AUD_PLL_USER>, 221 + <&cmu_aud CLK_MOUT_SCLK_AUD_I2S>, 222 + <&cmu_aud CLK_MOUT_SCLK_AUD_PCM>, 223 + <&cmu_top CLK_MOUT_AUD_PLL>, 224 + <&cmu_top CLK_MOUT_AUD_PLL_USER_T>, 225 + <&cmu_top CLK_MOUT_SCLK_AUDIO0>, 226 + <&cmu_top CLK_MOUT_SCLK_AUDIO1>, 227 + <&cmu_top CLK_MOUT_SCLK_SPDIF>, 228 + 229 + <&cmu_aud CLK_DIV_AUD_CA5>, 230 + <&cmu_aud CLK_DIV_ACLK_AUD>, 231 + <&cmu_aud CLK_DIV_PCLK_DBG_AUD>, 232 + <&cmu_aud CLK_DIV_SCLK_AUD_I2S>, 233 + <&cmu_aud CLK_DIV_SCLK_AUD_PCM>, 234 + <&cmu_aud CLK_DIV_SCLK_AUD_SLIMBUS>, 235 + <&cmu_aud CLK_DIV_SCLK_AUD_UART>, 236 + <&cmu_top CLK_DIV_SCLK_AUDIO0>, 237 + <&cmu_top CLK_DIV_SCLK_AUDIO1>, 238 + <&cmu_top CLK_DIV_SCLK_PCM1>, 239 + <&cmu_top CLK_DIV_SCLK_I2S1>; 240 + 241 + assigned-clock-parents = <&cmu_top CLK_FOUT_AUD_PLL>, 242 + <&cmu_aud CLK_MOUT_AUD_PLL_USER>, 243 + <&cmu_aud CLK_MOUT_AUD_PLL_USER>, 244 + <&cmu_top CLK_FOUT_AUD_PLL>, 245 + <&cmu_top CLK_MOUT_AUD_PLL>, 246 + <&cmu_top CLK_MOUT_AUD_PLL_USER_T>, 247 + <&cmu_top CLK_MOUT_AUD_PLL_USER_T>, 248 + <&cmu_top CLK_SCLK_AUDIO0>; 249 + 250 + assigned-clock-rates = <0>, <0>, <0>, <0>, <0>, <0>, <0>, <0>, 251 + <196608001>, <65536001>, <32768001>, <49152001>, 252 + <2048001>, <24576001>, <196608001>, 253 + <24576001>, <98304001>, <2048001>, <49152001>; 223 254 }; 224 255 225 256 &cmu_fsys { ··· 298 265 <&cmu_top CLK_SCLK_JPEG_MSCL>, 299 266 <&cmu_mscl CLK_MOUT_SCLK_JPEG_USER>, 300 267 <&cmu_top CLK_MOUT_BUS_PLL_USER>; 268 + }; 269 + 270 + &cmu_top { 271 + assigned-clocks = <&cmu_top CLK_FOUT_AUD_PLL>; 272 + assigned-clock-rates = <196608001>; 301 273 }; 302 274 303 275 &cpu0 { ··· 817 779 clocks = <&pmu_system_controller 0>; 818 780 clock-names = "xtal"; 819 781 820 - port { 821 - mhl_to_hdmi: endpoint { 822 - remote-endpoint = <&hdmi_to_mhl>; 782 + ports { 783 + #address-cells = <1>; 784 + #size-cells = <0>; 785 + 786 + port@0 { 787 + reg = <0>; 788 + mhl_to_hdmi: endpoint { 789 + remote-endpoint = <&hdmi_to_mhl>; 790 + }; 791 + }; 792 + 793 + port@1 { 794 + reg = <1>; 795 + mhl_to_musb_con: endpoint { 796 + remote-endpoint = <&musb_con_to_mhl>; 797 + }; 823 798 }; 824 799 }; 825 800 }; ··· 849 798 850 799 muic: max77843-muic { 851 800 compatible = "maxim,max77843-muic"; 801 + 802 + musb_con: musb_connector { 803 + compatible = "samsung,usb-connector-11pin", 804 + "usb-b-connector"; 805 + label = "micro-USB"; 806 + type = "micro"; 807 + 808 + ports { 809 + #address-cells = <1>; 810 + #size-cells = <0>; 811 + 812 + port@3 { 813 + reg = <3>; 814 + musb_con_to_mhl: endpoint { 815 + remote-endpoint = <&mhl_to_musb_con>; 816 + }; 817 + }; 818 + }; 819 + }; 852 820 }; 853 821 854 822 regulators { ··· 905 835 }; 906 836 907 837 &i2s0 { 838 + status = "okay"; 839 + }; 840 + 841 + &i2s1 { 842 + assigned-clocks = <&i2s1 CLK_I2S_RCLK_SRC>; 843 + assigned-clock-parents = <&cmu_peric CLK_SCLK_I2S1>; 908 844 status = "okay"; 909 845 }; 910 846
+23 -1
arch/arm64/boot/dts/exynos/exynos5433.dtsi
··· 969 969 ddc = <&hsi2c_11>; 970 970 samsung,syscon-phandle = <&pmu_system_controller>; 971 971 samsung,sysreg-phandle = <&syscon_disp>; 972 + #sound-dai-cells = <0>; 972 973 status = "disabled"; 973 974 }; 974 975 ··· 1312 1311 status = "disabled"; 1313 1312 }; 1314 1313 1314 + i2s1: i2s@14d60000 { 1315 + compatible = "samsung,exynos7-i2s"; 1316 + reg = <0x14d60000 0x100>; 1317 + dmas = <&pdma0 31 &pdma0 30>; 1318 + dma-names = "tx", "rx"; 1319 + interrupts = <GIC_SPI 435 IRQ_TYPE_NONE>; 1320 + clocks = <&cmu_peric CLK_PCLK_I2S1>, 1321 + <&cmu_peric CLK_PCLK_I2S1>, 1322 + <&cmu_peric CLK_SCLK_I2S1>; 1323 + clock-names = "iis", "i2s_opclk0", "i2s_opclk1"; 1324 + #clock-cells = <1>; 1325 + samsung,supports-6ch; 1326 + samsung,supports-rstclr; 1327 + samsung,supports-tdm; 1328 + samsung,supports-low-rfs; 1329 + #sound-dai-cells = <1>; 1330 + status = "disabled"; 1331 + }; 1332 + 1315 1333 pwm: pwm@14dd0000 { 1316 1334 compatible = "samsung,exynos4210-pwm"; 1317 1335 reg = <0x14dd0000 0x100>; ··· 1659 1639 power-domains = <&pd_aud>; 1660 1640 }; 1661 1641 1662 - i2s0: i2s0@11440000 { 1642 + i2s0: i2s@11440000 { 1663 1643 compatible = "samsung,exynos7-i2s"; 1664 1644 reg = <0x11440000 0x100>; 1665 1645 dmas = <&adma 0 &adma 2>; ··· 1671 1651 <&cmu_aud CLK_SCLK_AUD_I2S>, 1672 1652 <&cmu_aud CLK_SCLK_I2S_BCLK>; 1673 1653 clock-names = "iis", "i2s_opclk0", "i2s_opclk1"; 1654 + #clock-cells = <1>; 1674 1655 pinctrl-names = "default"; 1675 1656 pinctrl-0 = <&i2s0_bus>; 1676 1657 power-domains = <&pd_aud>; 1658 + #sound-dai-cells = <1>; 1677 1659 status = "disabled"; 1678 1660 }; 1679 1661