0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003 * Hardkernel's Exynos4412 based ODROID-U3 board device tree source
0004 *
0005 * Copyright (c) 2014 Marek Szyprowski <m.szyprowski@samsung.com>
0006 *
0007 * Device tree source file for Hardkernel's ODROID-U3 board which is based
0008 * on Samsung's Exynos4412 SoC.
0009 */
0010
0011 /dts-v1/;
0012 #include <dt-bindings/leds/common.h>
0013 #include "exynos4412-odroid-common.dtsi"
0014 #include "exynos4412-prime.dtsi"
0015
0016 / {
0017 model = "Hardkernel ODROID-U3 board based on Exynos4412";
0018 compatible = "hardkernel,odroid-u3", "samsung,exynos4412", "samsung,exynos4";
0019
0020 aliases {
0021 ethernet = ðernet;
0022 };
0023
0024 memory@40000000 {
0025 device_type = "memory";
0026 reg = <0x40000000 0x7FF00000>;
0027 };
0028
0029 vbus_otg_reg: regulator-1 {
0030 compatible = "regulator-fixed";
0031 regulator-name = "VBUS_VDD_5.0V";
0032 regulator-min-microvolt = <5000000>;
0033 regulator-max-microvolt = <5000000>;
0034 gpio = <&gpl2 0 GPIO_ACTIVE_HIGH>;
0035 enable-active-high;
0036 };
0037
0038 leds {
0039 compatible = "gpio-leds";
0040 led1 {
0041 function = LED_FUNCTION_HEARTBEAT;
0042 color = <LED_COLOR_ID_BLUE>;
0043 gpios = <&gpc1 0 GPIO_ACTIVE_LOW>;
0044 default-state = "on";
0045 linux,default-trigger = "heartbeat";
0046 };
0047 };
0048
0049 fan0: pwm-fan {
0050 compatible = "pwm-fan";
0051 pwms = <&pwm 0 10000 0>;
0052 #cooling-cells = <2>;
0053 cooling-levels = <0 102 170 230>;
0054 };
0055 };
0056
0057 &adc {
0058 vdd-supply = <&ldo10_reg>;
0059 /* Nothing connected to ADC inputs, keep it disabled */
0060 };
0061
0062 /* Supply for LAN9730/SMSC95xx */
0063 &buck8_reg {
0064 regulator-name = "BUCK8_P3V3";
0065 regulator-min-microvolt = <3300000>;
0066 regulator-max-microvolt = <3300000>;
0067 };
0068
0069 &cpu_thermal {
0070 cooling-maps {
0071 map0 {
0072 trip = <&cpu_alert1>;
0073 cooling-device = <&cpu0 9 9>, <&cpu1 9 9>,
0074 <&cpu2 9 9>, <&cpu3 9 9>,
0075 <&fan0 1 2>;
0076 };
0077 map1 {
0078 trip = <&cpu_alert2>;
0079 cooling-device = <&cpu0 15 15>, <&cpu1 15 15>,
0080 <&cpu2 15 15>, <&cpu3 15 15>,
0081 <&fan0 2 3>;
0082 };
0083 map2 {
0084 trip = <&cpu_alert0>;
0085 cooling-device = <&fan0 0 1>;
0086 };
0087 };
0088 };
0089
0090 &hdmicec {
0091 needs-hpd;
0092 };
0093
0094 /* VDDQ for MSHC (eMMC card) */
0095 &ldo22_reg {
0096 regulator-name = "LDO22_VDDQ_MMC4_2.8V";
0097 regulator-min-microvolt = <2800000>;
0098 regulator-max-microvolt = <2800000>;
0099 };
0100
0101 &mshc_0 {
0102 vqmmc-supply = <&ldo22_reg>;
0103 };
0104
0105 &pwm {
0106 pinctrl-0 = <&pwm0_out>;
0107 pinctrl-names = "default";
0108 samsung,pwm-outputs = <0>;
0109 status = "okay";
0110 };
0111
0112 &usb3503 {
0113 clock-names = "refclk";
0114 clocks = <&pmu_system_controller 0>;
0115 refclk-frequency = <24000000>;
0116 };
0117
0118 &ehci {
0119 #address-cells = <1>;
0120 #size-cells = <0>;
0121 phys = <&exynos_usbphy 2>, <&exynos_usbphy 3>;
0122 phy-names = "hsic0", "hsic1";
0123
0124 ethernet: ethernet@2 {
0125 compatible = "usb424,9730";
0126 reg = <2>;
0127 local-mac-address = [00 00 00 00 00 00]; /* Filled in by a bootloader */
0128 };
0129 };
0130
0131 &hsotg {
0132 dr_mode = "otg";
0133 vbus-supply = <&vbus_otg_reg>;
0134 };
0135
0136 &sound {
0137 model = "Odroid-U3";
0138 samsung,audio-widgets =
0139 "Headphone", "Headphone Jack",
0140 "Speakers", "Speakers";
0141 samsung,audio-routing =
0142 "Headphone Jack", "HPL",
0143 "Headphone Jack", "HPR",
0144 "Headphone Jack", "MICBIAS",
0145 "IN1", "Headphone Jack",
0146 "Speakers", "SPKL",
0147 "Speakers", "SPKR";
0148 };
0149
0150 &spi_1 {
0151 pinctrl-names = "default";
0152 pinctrl-0 = <&spi1_bus>;
0153 cs-gpios = <&gpb 5 GPIO_ACTIVE_HIGH>;
0154 status = "okay";
0155 };