Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * Hardkernel's Exynos4412 based ODROID-X board device tree source
0004  *
0005  * Copyright (c) 2012 Dongjin Kim <tobetter@gmail.com>
0006  *
0007  * Device tree source file for Hardkernel's ODROID-X 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 
0015 / {
0016         model = "Hardkernel ODROID-X board based on Exynos4412";
0017         compatible = "hardkernel,odroid-x", "samsung,exynos4412", "samsung,exynos4";
0018 
0019         aliases {
0020                 ethernet = &ethernet;
0021         };
0022 
0023         memory@40000000 {
0024                 device_type = "memory";
0025                 reg = <0x40000000 0x3FF00000>;
0026         };
0027 
0028         leds {
0029                 compatible = "gpio-leds";
0030                 led1 {
0031                         function = LED_FUNCTION_HEARTBEAT;
0032                         color = <LED_COLOR_ID_BLUE>;
0033                         gpios = <&gpc1 0 GPIO_ACTIVE_LOW>;
0034                         default-state = "on";
0035                         linux,default-trigger = "heartbeat";
0036                 };
0037                 led2 {
0038                         label = "led2:mmc0";
0039                         function = LED_FUNCTION_DISK_ACTIVITY;
0040                         gpios = <&gpc1 2 GPIO_ACTIVE_LOW>;
0041                         default-state = "on";
0042                         linux,default-trigger = "mmc0";
0043                 };
0044         };
0045 
0046         regulator-1 {
0047                 compatible = "regulator-fixed";
0048                 regulator-name = "p3v3_en";
0049                 regulator-min-microvolt = <3300000>;
0050                 regulator-max-microvolt = <3300000>;
0051                 gpio = <&gpa1 1 GPIO_ACTIVE_HIGH>;
0052                 enable-active-high;
0053                 regulator-always-on;
0054         };
0055 };
0056 
0057 &adc {
0058         vdd-supply = <&ldo10_reg>;
0059         status = "okay";
0060 };
0061 
0062 /* VDDQ for MSHC (eMMC card) */
0063 &buck8_reg {
0064         regulator-name = "BUCK8_VDDQ_MMC4_2.8V";
0065         regulator-min-microvolt = <2800000>;
0066         regulator-max-microvolt = <2800000>;
0067 };
0068 
0069 &ehci {
0070         #address-cells = <1>;
0071         #size-cells = <0>;
0072         phys = <&exynos_usbphy 2>;
0073         phy-names = "hsic0";
0074 
0075         hub@2 {
0076                 compatible = "usb424,3503";
0077                 reg = <2>;
0078                 #address-cells = <1>;
0079                 #size-cells = <0>;
0080 
0081                 hub@1 {
0082                         compatible = "usb424,9514";
0083                         reg = <1>;
0084                         #address-cells = <1>;
0085                         #size-cells = <0>;
0086 
0087                         ethernet: ethernet@1 {
0088                                 compatible = "usb424,ec00";
0089                                 reg = <1>;
0090                                 /* Filled in by a bootloader */
0091                                 local-mac-address = [00 00 00 00 00 00];
0092                         };
0093                 };
0094         };
0095 };
0096 
0097 &gpio_keys {
0098         pinctrl-0 = <&gpio_power_key &gpio_home_key>;
0099 
0100         home-key {
0101                 gpios = <&gpx2 2 GPIO_ACTIVE_HIGH>;
0102                 linux,code = <KEY_HOME>;
0103                 label = "home key";
0104                 debounce-interval = <10>;
0105                 wakeup-source;
0106         };
0107 };
0108 
0109 &hsotg {
0110         dr_mode = "peripheral";
0111 };
0112 
0113 &mshc_0 {
0114         vqmmc-supply = <&buck8_reg>;
0115 };
0116 
0117 &pinctrl_1 {
0118         gpio_home_key: home-key-pins {
0119                 samsung,pins = "gpx2-2";
0120                 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
0121         };
0122 };
0123 
0124 &serial_2 {
0125         status = "okay";
0126 };
0127 
0128 &serial_3 {
0129         status = "okay";
0130 };
0131 
0132 &sound {
0133         model = "Odroid-X";
0134         samsung,audio-widgets =
0135                 "Headphone", "Headphone Jack",
0136                 "Microphone", "Mic Jack",
0137                 "Microphone", "DMIC";
0138         samsung,audio-routing =
0139                 "Headphone Jack", "HPL",
0140                 "Headphone Jack", "HPR",
0141                 "IN1", "Mic Jack",
0142                 "Mic Jack", "MICBIAS";
0143 };