Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * FriendlyARM's Exynos4412 based TINY4412 board device tree source
0004  *
0005  * Copyright (c) 2013 Alex Ling <kasimling@gmail.com>
0006  *
0007  * Device tree source file for FriendlyARM's TINY4412 board which is based on
0008  * Samsung's Exynos4412 SoC.
0009  */
0010 
0011 /dts-v1/;
0012 #include "exynos4412.dtsi"
0013 #include <dt-bindings/gpio/gpio.h>
0014 #include <dt-bindings/leds/common.h>
0015 
0016 / {
0017         model = "FriendlyARM TINY4412 board based on Exynos4412";
0018         compatible = "friendlyarm,tiny4412", "samsung,exynos4412", "samsung,exynos4";
0019 
0020         chosen {
0021                 stdout-path = &serial_0;
0022         };
0023 
0024         memory@40000000 {
0025                 device_type = "memory";
0026                 reg = <0x40000000 0x40000000>;
0027         };
0028 
0029         leds {
0030                 compatible = "gpio-leds";
0031 
0032                 led1 {
0033                         label = "led1";
0034                         function = LED_FUNCTION_HEARTBEAT;
0035                         gpios = <&gpm4 0 GPIO_ACTIVE_LOW>;
0036                         default-state = "off";
0037                         linux,default-trigger = "heartbeat";
0038                 };
0039 
0040                 led2 {
0041                         label = "led2";
0042                         gpios = <&gpm4 1 GPIO_ACTIVE_LOW>;
0043                         default-state = "off";
0044                 };
0045 
0046                 led3 {
0047                         label = "led3";
0048                         gpios = <&gpm4 2 GPIO_ACTIVE_LOW>;
0049                         default-state = "off";
0050                 };
0051 
0052                 led4 {
0053                         label = "led4";
0054                         function = LED_FUNCTION_DISK_ACTIVITY;
0055                         gpios = <&gpm4 3 GPIO_ACTIVE_LOW>;
0056                         default-state = "off";
0057                         linux,default-trigger = "mmc0";
0058                 };
0059         };
0060 
0061         fixed-rate-clocks {
0062                 xxti {
0063                         compatible = "samsung,clock-xxti";
0064                         clock-frequency = <0>;
0065                 };
0066 
0067                 xusbxti {
0068                         compatible = "samsung,clock-xusbxti";
0069                         clock-frequency = <24000000>;
0070                 };
0071 
0072                 pmic_ap_clk: pmic-ap-clk {
0073                         /* Workaround for missing clock on PMIC */
0074                         compatible = "fixed-clock";
0075                         #clock-cells = <0>;
0076                         clock-frequency = <32768>;
0077                 };
0078         };
0079 
0080         panel {
0081                 compatible = "innolux,at070tn92";
0082 
0083                 port {
0084                         panel_input: endpoint {
0085                                 remote-endpoint = <&lcdc_output>;
0086                         };
0087                 };
0088         };
0089 };
0090 
0091 &cpu_thermal {
0092         cooling-maps {
0093                 cooling_map0: map0 {
0094                         /* Corresponds to 800MHz at freq_table */
0095                         cooling-device = <&cpu0 7 7>, <&cpu1 7 7>,
0096                                          <&cpu2 7 7>, <&cpu3 7 7>;
0097                 };
0098                 cooling_map1: map1 {
0099                         /* Corresponds to 200MHz at freq_table */
0100                         cooling-device = <&cpu0 13 13>, <&cpu1 13 13>,
0101                                          <&cpu2 13 13>, <&cpu3 13 13>;
0102                 };
0103         };
0104 };
0105 
0106 &fimd {
0107         pinctrl-0 = <&lcd_clk>, <&lcd_data24>;
0108         pinctrl-names = "default";
0109         #address-cells = <1>;
0110         #size-cells = <0>;
0111         status = "okay";
0112 
0113         port@3 {
0114                 reg = <3>;
0115                 lcdc_output: endpoint {
0116                         remote-endpoint = <&panel_input>;
0117                 };
0118         };
0119 };
0120 
0121 &rtc {
0122         status = "okay";
0123         clocks = <&clock CLK_RTC>, <&pmic_ap_clk>;
0124         clock-names = "rtc", "rtc_src";
0125 };
0126 
0127 &sdhci_2 {
0128         bus-width = <4>;
0129         pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>;
0130         pinctrl-names = "default";
0131         status = "okay";
0132 };
0133 
0134 &serial_0 {
0135         status = "okay";
0136 };
0137 
0138 &serial_1 {
0139         status = "okay";
0140 };
0141 
0142 &serial_2 {
0143         status = "okay";
0144 };
0145 
0146 &serial_3 {
0147         status = "okay";
0148 };