Commit | Line | Data |
---|---|---|
cc4637f7 | 1 | // SPDX-License-Identifier: GPL-2.0 |
66583560 KK |
2 | /* |
3 | * Hardkernel Odroid XU4 board device tree source | |
4 | * | |
5 | * Copyright (c) 2015 Krzysztof Kozlowski | |
6 | * Copyright (c) 2014 Collabora Ltd. | |
7 | * Copyright (c) 2013-2015 Samsung Electronics Co., Ltd. | |
8 | * http://www.samsung.com | |
cc4637f7 | 9 | */ |
66583560 KK |
10 | |
11 | /dts-v1/; | |
99f6b77f | 12 | #include <dt-bindings/leds/common.h> |
fe6b204d | 13 | #include <dt-bindings/sound/samsung-i2s.h> |
66583560 KK |
14 | #include "exynos5422-odroidxu3-common.dtsi" |
15 | ||
16 | / { | |
17 | model = "Hardkernel Odroid XU4"; | |
18 | compatible = "hardkernel,odroid-xu4", "samsung,exynos5800", \ | |
19 | "samsung,exynos5"; | |
20 | ||
4a6dbc65 | 21 | led-controller { |
66583560 KK |
22 | compatible = "pwm-leds"; |
23 | ||
4a6dbc65 | 24 | led-1 { |
99f6b77f KK |
25 | function = LED_FUNCTION_HEARTBEAT; |
26 | color = <LED_COLOR_ID_BLUE>; | |
66583560 KK |
27 | pwms = <&pwm 2 2000000 0>; |
28 | pwm-names = "pwm2"; | |
fd2f1717 | 29 | max-brightness = <255>; |
66583560 KK |
30 | linux,default-trigger = "heartbeat"; |
31 | }; | |
32 | }; | |
fe6b204d SN |
33 | |
34 | sound: sound { | |
35 | compatible = "samsung,odroid-xu3-audio"; | |
36 | model = "Odroid-XU4"; | |
37 | ||
625c731d SN |
38 | samsung,audio-routing = "I2S Playback", "Mixer DAI TX"; |
39 | ||
fe6b204d | 40 | cpu { |
625c731d | 41 | sound-dai = <&i2s0 0>, <&i2s0 1>; |
fe6b204d SN |
42 | }; |
43 | ||
44 | codec { | |
45 | sound-dai = <&hdmi>; | |
46 | }; | |
47 | }; | |
48 | }; | |
49 | ||
fe6b204d SN |
50 | &i2s0 { |
51 | status = "okay"; | |
4afb06af KK |
52 | |
53 | assigned-clocks = <&clock CLK_MOUT_EPLL>, | |
54 | <&clock CLK_MOUT_MAU_EPLL>, | |
55 | <&clock CLK_MOUT_USER_MAU_EPLL>, | |
56 | <&clock_audss EXYNOS_MOUT_AUDSS>, | |
57 | <&clock_audss EXYNOS_MOUT_I2S>, | |
58 | <&i2s0 CLK_I2S_RCLK_SRC>, | |
59 | <&clock_audss EXYNOS_DOUT_SRP>, | |
60 | <&clock_audss EXYNOS_DOUT_AUD_BUS>, | |
61 | <&clock_audss EXYNOS_DOUT_I2S>; | |
62 | ||
63 | assigned-clock-parents = <&clock CLK_FOUT_EPLL>, | |
64 | <&clock CLK_MOUT_EPLL>, | |
65 | <&clock CLK_MOUT_MAU_EPLL>, | |
66 | <&clock CLK_MAU_EPLL>, | |
67 | <&clock_audss EXYNOS_MOUT_AUDSS>, | |
68 | <&clock_audss EXYNOS_SCLK_I2S>; | |
69 | ||
70 | assigned-clock-rates = <0>, | |
71 | <0>, | |
72 | <0>, | |
73 | <0>, | |
74 | <0>, | |
75 | <0>, | |
76 | <196608001>, | |
77 | <(196608002 / 2)>, | |
78 | <196608000>; | |
66583560 KK |
79 | }; |
80 | ||
81 | &pwm { | |
82 | /* | |
83 | * PWM 0 -- fan | |
84 | * PWM 2 -- Blue LED | |
85 | */ | |
86 | pinctrl-0 = <&pwm0_out &pwm2_out>; | |
87 | pinctrl-names = "default"; | |
88 | samsung,pwm-outputs = <0>, <2>; | |
89 | status = "okay"; | |
90 | }; | |
91 | ||
92 | &usbdrd_dwc3_1 { | |
93 | dr_mode = "host"; | |
94 | }; |