Linux Audio

Check our new training course

Linux kernel drivers training

Mar 31-Apr 9, 2025, special US time zones
Register
Loading...
v5.4
  1// SPDX-License-Identifier: GPL-2.0
  2/*
  3 * Hardkernel's Exynos4412 based ODROID-U3 board device tree source
  4 *
  5 * Copyright (c) 2014 Marek Szyprowski <m.szyprowski@samsung.com>
  6 *
  7 * Device tree source file for Hardkernel's ODROID-U3 board which is based
  8 * on Samsung's Exynos4412 SoC.
  9 */
 
 
 
 
 10
 11/dts-v1/;
 12#include "exynos4412-odroid-common.dtsi"
 13#include "exynos4412-prime.dtsi"
 14
 15/ {
 16	model = "Hardkernel ODROID-U3 board based on Exynos4412";
 17	compatible = "hardkernel,odroid-u3", "samsung,exynos4412", "samsung,exynos4";
 18
 19	memory@40000000 {
 20		device_type = "memory";
 21		reg = <0x40000000 0x7FF00000>;
 22	};
 23
 24	leds {
 25		compatible = "gpio-leds";
 26		led1 {
 27			label = "led1:heart";
 28			gpios = <&gpc1 0 GPIO_ACTIVE_LOW>;
 29			default-state = "on";
 30			linux,default-trigger = "heartbeat";
 31		};
 32	};
 33
 34	fan0: pwm-fan {
 35		compatible = "pwm-fan";
 36		pwms = <&pwm 0 10000 0>;
 
 
 37		#cooling-cells = <2>;
 38		cooling-levels = <0 102 170 230>;
 39	};
 40
 41	thermal-zones {
 42		cpu_thermal: cpu-thermal {
 43			cooling-maps {
 44				map0 {
 45				     trip = <&cpu_alert1>;
 46				     cooling-device = <&cpu0 9 9>, <&cpu1 9 9>,
 47						      <&cpu2 9 9>, <&cpu3 9 9>,
 48						      <&fan0 1 2>;
 49				};
 50				map1 {
 51				     trip = <&cpu_alert2>;
 52				     cooling-device = <&cpu0 15 15>,
 53						      <&cpu1 15 15>,
 54						      <&cpu2 15 15>,
 55						      <&cpu3 15 15>,
 56						      <&fan0 2 3>;
 57				};
 58				map2 {
 59				     trip = <&cpu_alert0>;
 60				     cooling-device = <&fan0 0 1>;
 61				};
 
 
 
 
 
 
 
 
 62			};
 63		};
 64	};
 65};
 66
 67&adc {
 68	vdd-supply = <&ldo10_reg>;
 69	/* Nothing connected to ADC inputs, keep it disabled */
 70};
 71
 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&hdmicec {
 80	needs-hpd;
 81};
 82
 83/* VDDQ for MSHC (eMMC card) */
 84&ldo22_reg {
 85	regulator-name = "LDO22_VDDQ_MMC4_2.8V";
 86	regulator-min-microvolt = <2800000>;
 87	regulator-max-microvolt = <2800000>;
 88};
 89
 90&mshc_0 {
 91	vqmmc-supply = <&ldo22_reg>;
 92};
 93
 94&pwm {
 95	pinctrl-0 = <&pwm0_out>;
 96	pinctrl-names = "default";
 97	samsung,pwm-outputs = <0>;
 98	status = "okay";
 99};
100
101&usb3503 {
102	clock-names = "refclk";
103	clocks = <&pmu_system_controller 0>;
104	refclk-frequency = <24000000>;
105};
106
107&ehci {
108	phys = <&exynos_usbphy 2>, <&exynos_usbphy 3>;
109	phy-names = "hsic0", "hsic1";
 
 
 
 
110};
111
112&sound {
113	model = "Odroid-U3";
114	samsung,audio-widgets =
115		"Headphone", "Headphone Jack",
116		"Speakers", "Speakers";
117	samsung,audio-routing =
118		"Headphone Jack", "HPL",
119		"Headphone Jack", "HPR",
120		"Headphone Jack", "MICBIAS",
121		"IN1", "Headphone Jack",
122		"Speakers", "SPKL",
123		"Speakers", "SPKR";
124};
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};
v4.10.11
 
  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@40000000 {
 22		device_type = "memory";
 23		reg = <0x40000000 0x7FF00000>;
 24	};
 25
 26	leds {
 27		compatible = "gpio-leds";
 28		led1 {
 29			label = "led1:heart";
 30			gpios = <&gpc1 0 GPIO_ACTIVE_LOW>;
 31			default-state = "on";
 32			linux,default-trigger = "heartbeat";
 33		};
 34	};
 35
 36	fan0: pwm-fan {
 37		compatible = "pwm-fan";
 38		pwms = <&pwm 0 10000 0>;
 39		cooling-min-state = <0>;
 40		cooling-max-state = <3>;
 41		#cooling-cells = <2>;
 42		cooling-levels = <0 102 170 230>;
 43	};
 44
 45	thermal-zones {
 46		cpu_thermal: cpu-thermal {
 47			cooling-maps {
 48				map0 {
 49				     trip = <&cpu_alert1>;
 50				     cooling-device = <&cpu0 7 7>;
 
 
 51				};
 52				map1 {
 53				     trip = <&cpu_alert2>;
 54				     cooling-device = <&cpu0 13 13>;
 
 
 
 
 55				};
 56				map2 {
 57				     trip = <&cpu_alert0>;
 58				     cooling-device = <&fan0 0 1>;
 59				};
 60				map3 {
 61				     trip = <&cpu_alert1>;
 62				     cooling-device = <&fan0 1 2>;
 63				};
 64				map4 {
 65				     trip = <&cpu_alert2>;
 66				     cooling-device = <&fan0 2 3>;
 67				};
 68			};
 69		};
 70	};
 71};
 72
 
 
 
 
 
 73/* Supply for LAN9730/SMSC95xx */
 74&buck8_reg {
 75	regulator-name = "BUCK8_P3V3";
 76	regulator-min-microvolt = <3300000>;
 77	regulator-max-microvolt = <3300000>;
 78};
 79
 
 
 
 
 80/* VDDQ for MSHC (eMMC card) */
 81&ldo22_reg {
 82	regulator-name = "LDO22_VDDQ_MMC4_2.8V";
 83	regulator-min-microvolt = <2800000>;
 84	regulator-max-microvolt = <2800000>;
 85};
 86
 87&mshc_0 {
 88	vqmmc-supply = <&ldo22_reg>;
 89};
 90
 91&pwm {
 92	pinctrl-0 = <&pwm0_out>;
 93	pinctrl-names = "default";
 94	samsung,pwm-outputs = <0>;
 95	status = "okay";
 96};
 97
 98&usb3503 {
 99	clock-names = "refclk";
100	clocks = <&pmu_system_controller 0>;
101	refclk-frequency = <24000000>;
102};
103
104&ehci {
105	port@1 {
106		status = "okay";
107	};
108	port@2 {
109		status = "okay";
110	};
111};
112
113&sound {
114	simple-audio-card,name = "Odroid-U3";
115	simple-audio-card,widgets =
116		"Headphone", "Headphone Jack",
117		"Speakers", "Speakers";
118	simple-audio-card,routing =
119		"Headphone Jack", "HPL",
120		"Headphone Jack", "HPR",
121		"Headphone Jack", "MICBIAS",
122		"IN1", "Headphone Jack",
123		"Speakers", "SPKL",
124		"Speakers", "SPKR";
125};
126
127&spi_1 {
128	pinctrl-names = "default";
129	pinctrl-0 = <&spi1_bus>;
130	cs-gpios = <&gpb 5 GPIO_ACTIVE_HIGH>;
131	status = "okay";
132};