1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0 2f126890aSEmmanuel Vadot/* 3f126890aSEmmanuel Vadot * Hardkernel's Exynos4412 based ODROID-U3 board device tree source 4f126890aSEmmanuel Vadot * 5f126890aSEmmanuel Vadot * Copyright (c) 2014 Marek Szyprowski <m.szyprowski@samsung.com> 6f126890aSEmmanuel Vadot * 7f126890aSEmmanuel Vadot * Device tree source file for Hardkernel's ODROID-U3 board which is based 8f126890aSEmmanuel Vadot * on Samsung's Exynos4412 SoC. 9f126890aSEmmanuel Vadot */ 10f126890aSEmmanuel Vadot 11f126890aSEmmanuel Vadot/dts-v1/; 12f126890aSEmmanuel Vadot#include <dt-bindings/leds/common.h> 13f126890aSEmmanuel Vadot#include "exynos4412-odroid-common.dtsi" 14f126890aSEmmanuel Vadot#include "exynos4412-prime.dtsi" 15f126890aSEmmanuel Vadot 16f126890aSEmmanuel Vadot/ { 17f126890aSEmmanuel Vadot model = "Hardkernel ODROID-U3 board based on Exynos4412"; 18f126890aSEmmanuel Vadot compatible = "hardkernel,odroid-u3", "samsung,exynos4412", "samsung,exynos4"; 19f126890aSEmmanuel Vadot 20f126890aSEmmanuel Vadot aliases { 21f126890aSEmmanuel Vadot ethernet = ðernet; 22f126890aSEmmanuel Vadot }; 23f126890aSEmmanuel Vadot 24f126890aSEmmanuel Vadot memory@40000000 { 25f126890aSEmmanuel Vadot device_type = "memory"; 26f126890aSEmmanuel Vadot reg = <0x40000000 0x7ff00000>; 27f126890aSEmmanuel Vadot }; 28f126890aSEmmanuel Vadot 29f126890aSEmmanuel Vadot vbus_otg_reg: regulator-1 { 30f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 31f126890aSEmmanuel Vadot regulator-name = "VBUS_VDD_5.0V"; 32f126890aSEmmanuel Vadot regulator-min-microvolt = <5000000>; 33f126890aSEmmanuel Vadot regulator-max-microvolt = <5000000>; 34f126890aSEmmanuel Vadot gpio = <&gpl2 0 GPIO_ACTIVE_HIGH>; 35f126890aSEmmanuel Vadot enable-active-high; 36f126890aSEmmanuel Vadot }; 37f126890aSEmmanuel Vadot 38f126890aSEmmanuel Vadot leds { 39f126890aSEmmanuel Vadot compatible = "gpio-leds"; 40f126890aSEmmanuel Vadot led1 { 41f126890aSEmmanuel Vadot function = LED_FUNCTION_HEARTBEAT; 42f126890aSEmmanuel Vadot color = <LED_COLOR_ID_BLUE>; 43f126890aSEmmanuel Vadot gpios = <&gpc1 0 GPIO_ACTIVE_LOW>; 44f126890aSEmmanuel Vadot default-state = "on"; 45f126890aSEmmanuel Vadot linux,default-trigger = "heartbeat"; 46f126890aSEmmanuel Vadot }; 47f126890aSEmmanuel Vadot }; 48f126890aSEmmanuel Vadot 49f126890aSEmmanuel Vadot fan0: pwm-fan { 50f126890aSEmmanuel Vadot compatible = "pwm-fan"; 51f126890aSEmmanuel Vadot pwms = <&pwm 0 10000 0>; 52f126890aSEmmanuel Vadot #cooling-cells = <2>; 53f126890aSEmmanuel Vadot cooling-levels = <0 102 170 230>; 54f126890aSEmmanuel Vadot }; 55f126890aSEmmanuel Vadot}; 56f126890aSEmmanuel Vadot 57f126890aSEmmanuel Vadot&adc { 58f126890aSEmmanuel Vadot vdd-supply = <&ldo10_reg>; 59f126890aSEmmanuel Vadot /* Nothing connected to ADC inputs, keep it disabled */ 60f126890aSEmmanuel Vadot}; 61f126890aSEmmanuel Vadot 62f126890aSEmmanuel Vadot/* Supply for LAN9730/SMSC95xx */ 63f126890aSEmmanuel Vadot&buck8_reg { 64f126890aSEmmanuel Vadot regulator-name = "BUCK8_P3V3"; 65f126890aSEmmanuel Vadot regulator-min-microvolt = <3300000>; 66f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 67f126890aSEmmanuel Vadot}; 68f126890aSEmmanuel Vadot 69f126890aSEmmanuel Vadot&cpu_thermal { 70f126890aSEmmanuel Vadot cooling-maps { 71f126890aSEmmanuel Vadot map0 { 72f126890aSEmmanuel Vadot trip = <&cpu_alert1>; 73f126890aSEmmanuel Vadot cooling-device = <&cpu0 9 9>, <&cpu1 9 9>, 74f126890aSEmmanuel Vadot <&cpu2 9 9>, <&cpu3 9 9>, 75f126890aSEmmanuel Vadot <&fan0 1 2>; 76f126890aSEmmanuel Vadot }; 77f126890aSEmmanuel Vadot map1 { 78f126890aSEmmanuel Vadot trip = <&cpu_alert2>; 79f126890aSEmmanuel Vadot cooling-device = <&cpu0 15 15>, <&cpu1 15 15>, 80f126890aSEmmanuel Vadot <&cpu2 15 15>, <&cpu3 15 15>, 81f126890aSEmmanuel Vadot <&fan0 2 3>; 82f126890aSEmmanuel Vadot }; 83f126890aSEmmanuel Vadot map2 { 84f126890aSEmmanuel Vadot trip = <&cpu_alert0>; 85f126890aSEmmanuel Vadot cooling-device = <&fan0 0 1>; 86f126890aSEmmanuel Vadot }; 87f126890aSEmmanuel Vadot }; 88f126890aSEmmanuel Vadot}; 89f126890aSEmmanuel Vadot 90f126890aSEmmanuel Vadot&hdmicec { 91f126890aSEmmanuel Vadot needs-hpd; 92f126890aSEmmanuel Vadot}; 93f126890aSEmmanuel Vadot 94f126890aSEmmanuel Vadot/* VDDQ for MSHC (eMMC card) */ 95f126890aSEmmanuel Vadot&ldo22_reg { 96f126890aSEmmanuel Vadot regulator-name = "LDO22_VDDQ_MMC4_2.8V"; 97f126890aSEmmanuel Vadot regulator-min-microvolt = <2800000>; 98f126890aSEmmanuel Vadot regulator-max-microvolt = <2800000>; 99f126890aSEmmanuel Vadot}; 100f126890aSEmmanuel Vadot 101f126890aSEmmanuel Vadot&mshc_0 { 102f126890aSEmmanuel Vadot vqmmc-supply = <&ldo22_reg>; 103f126890aSEmmanuel Vadot}; 104f126890aSEmmanuel Vadot 105f126890aSEmmanuel Vadot&pwm { 106f126890aSEmmanuel Vadot pinctrl-0 = <&pwm0_out>; 107f126890aSEmmanuel Vadot pinctrl-names = "default"; 108f126890aSEmmanuel Vadot samsung,pwm-outputs = <0>; 109f126890aSEmmanuel Vadot status = "okay"; 110f126890aSEmmanuel Vadot}; 111f126890aSEmmanuel Vadot 112f126890aSEmmanuel Vadot&usb3503 { 113f126890aSEmmanuel Vadot clock-names = "refclk"; 114f126890aSEmmanuel Vadot clocks = <&pmu_system_controller 0>; 115f126890aSEmmanuel Vadot refclk-frequency = <24000000>; 116f126890aSEmmanuel Vadot}; 117f126890aSEmmanuel Vadot 118f126890aSEmmanuel Vadot&ehci { 119f126890aSEmmanuel Vadot #address-cells = <1>; 120f126890aSEmmanuel Vadot #size-cells = <0>; 121f126890aSEmmanuel Vadot phys = <&exynos_usbphy 2>, <&exynos_usbphy 3>; 122f126890aSEmmanuel Vadot phy-names = "hsic0", "hsic1"; 123f126890aSEmmanuel Vadot 124f126890aSEmmanuel Vadot ethernet: ethernet@2 { 125f126890aSEmmanuel Vadot compatible = "usb424,9730"; 126f126890aSEmmanuel Vadot reg = <2>; 127f126890aSEmmanuel Vadot local-mac-address = [00 00 00 00 00 00]; /* Filled in by a bootloader */ 128f126890aSEmmanuel Vadot }; 129f126890aSEmmanuel Vadot}; 130f126890aSEmmanuel Vadot 131f126890aSEmmanuel Vadot&hsotg { 132f126890aSEmmanuel Vadot dr_mode = "otg"; 133f126890aSEmmanuel Vadot vbus-supply = <&vbus_otg_reg>; 134f126890aSEmmanuel Vadot}; 135f126890aSEmmanuel Vadot 136f126890aSEmmanuel Vadot&sound { 137f126890aSEmmanuel Vadot model = "Odroid-U3"; 138f126890aSEmmanuel Vadot samsung,audio-widgets = 139f126890aSEmmanuel Vadot "Headphone", "Headphone Jack", 140f126890aSEmmanuel Vadot "Speakers", "Speakers"; 141*84943d6fSEmmanuel Vadot audio-routing = "Headphone Jack", "HPL", 142f126890aSEmmanuel Vadot "Headphone Jack", "HPR", 143f126890aSEmmanuel Vadot "Headphone Jack", "MICBIAS", 144f126890aSEmmanuel Vadot "IN1", "Headphone Jack", 145f126890aSEmmanuel Vadot "Speakers", "SPKL", 146f126890aSEmmanuel Vadot "Speakers", "SPKR"; 147f126890aSEmmanuel Vadot}; 148f126890aSEmmanuel Vadot 149f126890aSEmmanuel Vadot&spi_1 { 150f126890aSEmmanuel Vadot pinctrl-names = "default"; 151f126890aSEmmanuel Vadot pinctrl-0 = <&spi1_bus>; 152f126890aSEmmanuel Vadot cs-gpios = <&gpb 5 GPIO_ACTIVE_HIGH>; 153f126890aSEmmanuel Vadot status = "okay"; 154f126890aSEmmanuel Vadot}; 155