Marek Szyprowski | ec601ff | 2014-07-16 02:54:07 +0900 | [diff] [blame] | 1 | /* |
| 2 | * Hardkernel's Exynos4412 based ODROID-U3 board device tree source |
| 3 | * |
| 4 | * Copyright (c) 2014 Marek Szyprowski <m.szyprowski@samsung.com> |
| 5 | * |
| 6 | * Device tree source file for Hardkernel's ODROID-U3 board which is based |
| 7 | * on Samsung's Exynos4412 SoC. |
| 8 | * |
| 9 | * This program is free software; you can redistribute it and/or modify |
| 10 | * it under the terms of the GNU General Public License version 2 as |
| 11 | * published by the Free Software Foundation. |
| 12 | */ |
| 13 | |
| 14 | /dts-v1/; |
| 15 | #include "exynos4412-odroid-common.dtsi" |
| 16 | |
| 17 | / { |
| 18 | model = "Hardkernel ODROID-U3 board based on Exynos4412"; |
| 19 | compatible = "hardkernel,odroid-u3", "samsung,exynos4412", "samsung,exynos4"; |
| 20 | |
| 21 | memory { |
| 22 | reg = <0x40000000 0x7FF00000>; |
| 23 | }; |
| 24 | |
| 25 | leds { |
| 26 | compatible = "gpio-leds"; |
| 27 | led1 { |
| 28 | label = "led1:heart"; |
Javier Martinez Canillas | c10d329 | 2015-10-08 07:39:58 +0900 | [diff] [blame] | 29 | gpios = <&gpc1 0 GPIO_ACTIVE_LOW>; |
Marek Szyprowski | ec601ff | 2014-07-16 02:54:07 +0900 | [diff] [blame] | 30 | default-state = "on"; |
| 31 | linux,default-trigger = "heartbeat"; |
| 32 | }; |
| 33 | }; |
Kamil Debski | ee6011f | 2015-08-17 08:53:47 +0900 | [diff] [blame] | 34 | |
Lukasz Majewski | d3981d1 | 2015-08-17 08:53:48 +0900 | [diff] [blame] | 35 | fan0: pwm-fan { |
Kamil Debski | ee6011f | 2015-08-17 08:53:47 +0900 | [diff] [blame] | 36 | compatible = "pwm-fan"; |
| 37 | pwms = <&pwm 0 10000 0>; |
Lukasz Majewski | d3981d1 | 2015-08-17 08:53:48 +0900 | [diff] [blame] | 38 | cooling-min-state = <0>; |
| 39 | cooling-max-state = <3>; |
| 40 | #cooling-cells = <2>; |
| 41 | cooling-levels = <0 102 170 230>; |
| 42 | }; |
| 43 | |
| 44 | thermal-zones { |
| 45 | cpu_thermal: cpu-thermal { |
| 46 | cooling-maps { |
| 47 | map0 { |
| 48 | trip = <&cpu_alert1>; |
| 49 | cooling-device = <&cpu0 7 7>; |
| 50 | }; |
| 51 | map1 { |
| 52 | trip = <&cpu_alert2>; |
| 53 | cooling-device = <&cpu0 13 13>; |
| 54 | }; |
| 55 | map2 { |
| 56 | trip = <&cpu_alert0>; |
| 57 | cooling-device = <&fan0 0 1>; |
| 58 | }; |
| 59 | map3 { |
| 60 | trip = <&cpu_alert1>; |
| 61 | cooling-device = <&fan0 1 2>; |
| 62 | }; |
| 63 | map4 { |
| 64 | trip = <&cpu_alert2>; |
| 65 | cooling-device = <&fan0 2 3>; |
| 66 | }; |
| 67 | }; |
| 68 | }; |
Kamil Debski | ee6011f | 2015-08-17 08:53:47 +0900 | [diff] [blame] | 69 | }; |
| 70 | }; |
| 71 | |
Krzysztof Kozlowski | 303ce71 | 2016-05-04 14:43:59 +0200 | [diff] [blame] | 72 | /* Supply for LAN9730/SMSC95xx */ |
| 73 | &buck8_reg { |
| 74 | regulator-name = "BUCK8_P3V3"; |
| 75 | regulator-min-microvolt = <3300000>; |
| 76 | regulator-max-microvolt = <3300000>; |
| 77 | }; |
| 78 | |
| 79 | /* VDDQ for MSHC (eMMC card) */ |
| 80 | &ldo22_reg { |
| 81 | regulator-name = "LDO22_VDDQ_MMC4_2.8V"; |
| 82 | regulator-min-microvolt = <2800000>; |
| 83 | regulator-max-microvolt = <2800000>; |
| 84 | }; |
| 85 | |
| 86 | &mshc_0 { |
| 87 | vqmmc-supply = <&ldo22_reg>; |
| 88 | }; |
| 89 | |
Kamil Debski | ee6011f | 2015-08-17 08:53:47 +0900 | [diff] [blame] | 90 | &pwm { |
| 91 | pinctrl-0 = <&pwm0_out>; |
| 92 | pinctrl-names = "default"; |
| 93 | samsung,pwm-outputs = <0>; |
| 94 | status = "okay"; |
Marek Szyprowski | ec601ff | 2014-07-16 02:54:07 +0900 | [diff] [blame] | 95 | }; |
| 96 | |
| 97 | &usb3503 { |
| 98 | clock-names = "refclk"; |
| 99 | clocks = <&pmu_system_controller 0>; |
| 100 | refclk-frequency = <24000000>; |
| 101 | }; |
| 102 | |
| 103 | &ehci { |
| 104 | port@1 { |
| 105 | status = "okay"; |
| 106 | }; |
| 107 | port@2 { |
| 108 | status = "okay"; |
| 109 | }; |
| 110 | }; |
Sylwester Nawrocki | 5a85274 | 2014-07-16 03:16:44 +0900 | [diff] [blame] | 111 | |
| 112 | &sound { |
Sylwester Nawrocki | 1669633 | 2015-02-03 15:06:21 +0100 | [diff] [blame] | 113 | simple-audio-card,name = "Odroid-U3"; |
| 114 | simple-audio-card,widgets = |
| 115 | "Headphone", "Headphone Jack", |
| 116 | "Speakers", "Speakers"; |
| 117 | simple-audio-card,routing = |
Sylwester Nawrocki | 5a85274 | 2014-07-16 03:16:44 +0900 | [diff] [blame] | 118 | "Headphone Jack", "HPL", |
| 119 | "Headphone Jack", "HPR", |
| 120 | "Headphone Jack", "MICBIAS", |
| 121 | "IN1", "Headphone Jack", |
| 122 | "Speakers", "SPKL", |
| 123 | "Speakers", "SPKR"; |
| 124 | }; |
Alexis Ballier | c8b34e3 | 2015-08-14 02:27:33 +0900 | [diff] [blame] | 125 | |
| 126 | &spi_1 { |
| 127 | pinctrl-names = "default"; |
| 128 | pinctrl-0 = <&spi1_bus>; |
| 129 | cs-gpios = <&gpb 5 GPIO_ACTIVE_HIGH>; |
| 130 | status = "okay"; |
| 131 | }; |