Sjoerd Simons | 86a2d2a | 2015-01-12 17:35:49 +0900 | [diff] [blame] | 1 | /* |
| 2 | * Hardkernel Odroid XU3 board device tree source |
| 3 | * |
| 4 | * Copyright (c) 2014 Collabora Ltd. |
| 5 | * Copyright (c) 2013 Samsung Electronics Co., Ltd. |
| 6 | * http://www.samsung.com |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or modify |
| 9 | * it under the terms of the GNU General Public License version 2 as |
| 10 | * published by the Free Software Foundation. |
| 11 | */ |
| 12 | |
| 13 | /dts-v1/; |
Krzysztof Kozlowski | 3a7c01d | 2015-05-25 21:13:17 +0900 | [diff] [blame] | 14 | #include "exynos5422-odroidxu3-common.dtsi" |
Krzysztof Kozlowski | 8cec734 | 2015-09-16 08:37:07 +0900 | [diff] [blame] | 15 | #include "exynos5422-odroidxu3-audio.dtsi" |
Sjoerd Simons | 86a2d2a | 2015-01-12 17:35:49 +0900 | [diff] [blame] | 16 | |
| 17 | / { |
| 18 | model = "Hardkernel Odroid XU3"; |
| 19 | compatible = "hardkernel,odroid-xu3", "samsung,exynos5800", "samsung,exynos5"; |
Krzysztof Kozlowski | 6658356 | 2015-09-16 08:37:11 +0900 | [diff] [blame] | 20 | |
| 21 | pwmleds { |
| 22 | compatible = "pwm-leds"; |
| 23 | |
| 24 | greenled { |
| 25 | label = "green:mmc0"; |
| 26 | pwms = <&pwm 1 2000000 0>; |
| 27 | pwm-names = "pwm1"; |
| 28 | /* |
| 29 | * Green LED is much brighter than the others |
| 30 | * so limit its max brightness |
| 31 | */ |
| 32 | max_brightness = <127>; |
| 33 | linux,default-trigger = "mmc0"; |
| 34 | }; |
| 35 | |
| 36 | blueled { |
| 37 | label = "blue:heartbeat"; |
| 38 | pwms = <&pwm 2 2000000 0>; |
| 39 | pwm-names = "pwm2"; |
| 40 | max_brightness = <255>; |
| 41 | linux,default-trigger = "heartbeat"; |
| 42 | }; |
| 43 | }; |
| 44 | |
| 45 | gpioleds { |
| 46 | compatible = "gpio-leds"; |
| 47 | redled { |
| 48 | label = "red:microSD"; |
| 49 | gpios = <&gpx2 3 GPIO_ACTIVE_HIGH>; |
| 50 | default-state = "off"; |
| 51 | linux,default-trigger = "mmc1"; |
| 52 | }; |
| 53 | }; |
Inha Song | 7a548b1 | 2015-04-10 16:32:58 +0900 | [diff] [blame] | 54 | }; |
| 55 | |
Krzysztof Kozlowski | 8021dda | 2015-05-14 19:47:43 +0900 | [diff] [blame] | 56 | &i2c_0 { |
Inha Song | 7a548b1 | 2015-04-10 16:32:58 +0900 | [diff] [blame] | 57 | status = "okay"; |
Krzysztof Kozlowski | 8021dda | 2015-05-14 19:47:43 +0900 | [diff] [blame] | 58 | |
| 59 | /* A15 cluster: VDD_ARM */ |
| 60 | ina231@40 { |
| 61 | compatible = "ti,ina231"; |
| 62 | reg = <0x40>; |
| 63 | shunt-resistor = <10000>; |
| 64 | }; |
| 65 | |
| 66 | /* memory: VDD_MEM */ |
| 67 | ina231@41 { |
| 68 | compatible = "ti,ina231"; |
| 69 | reg = <0x41>; |
| 70 | shunt-resistor = <10000>; |
| 71 | }; |
| 72 | |
| 73 | /* GPU: VDD_G3D */ |
| 74 | ina231@44 { |
| 75 | compatible = "ti,ina231"; |
| 76 | reg = <0x44>; |
| 77 | shunt-resistor = <10000>; |
| 78 | }; |
| 79 | |
| 80 | /* A7 cluster: VDD_KFC */ |
| 81 | ina231@45 { |
| 82 | compatible = "ti,ina231"; |
| 83 | reg = <0x45>; |
| 84 | shunt-resistor = <10000>; |
| 85 | }; |
Sjoerd Simons | 86a2d2a | 2015-01-12 17:35:49 +0900 | [diff] [blame] | 86 | }; |
Krzysztof Kozlowski | 6658356 | 2015-09-16 08:37:11 +0900 | [diff] [blame] | 87 | |
| 88 | &pwm { |
| 89 | /* |
| 90 | * PWM 0 -- fan |
| 91 | * PWM 1 -- Green LED |
| 92 | * PWM 2 -- Blue LED |
| 93 | * PWM 3 -- on MIPI connector for backlight |
| 94 | */ |
| 95 | pinctrl-0 = <&pwm0_out &pwm1_out &pwm2_out &pwm3_out>; |
| 96 | pinctrl-names = "default"; |
| 97 | status = "okay"; |
| 98 | }; |
| 99 | |
| 100 | &usbdrd_dwc3_1 { |
| 101 | dr_mode = "otg"; |
| 102 | }; |