0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003 * WinLink E850-96 board device tree source
0004 *
0005 * Copyright (C) 2018 Samsung Electronics Co., Ltd.
0006 * Copyright (C) 2021 Linaro Ltd.
0007 *
0008 * Device tree source file for WinLink's E850-96 board which is based on
0009 * Samsung Exynos850 SoC.
0010 */
0011
0012 /dts-v1/;
0013
0014 #include "exynos850.dtsi"
0015 #include <dt-bindings/gpio/gpio.h>
0016 #include <dt-bindings/input/input.h>
0017 #include <dt-bindings/leds/common.h>
0018
0019 / {
0020 model = "WinLink E850-96 board";
0021 compatible = "winlink,e850-96", "samsung,exynos850";
0022
0023 aliases {
0024 mmc0 = &mmc_0;
0025 serial0 = &serial_0;
0026 };
0027
0028 chosen {
0029 stdout-path = &serial_0;
0030 };
0031
0032 /*
0033 * RAM: 4 GiB (eMCP):
0034 * - 2 GiB at 0x80000000
0035 * - 2 GiB at 0x880000000
0036 *
0037 * 0xbab00000..0xbfffffff: secure memory (85 MiB).
0038 */
0039 memory@80000000 {
0040 device_type = "memory";
0041 reg = <0x0 0x80000000 0x3ab00000>,
0042 <0x0 0xc0000000 0x40000000>,
0043 <0x8 0x80000000 0x80000000>;
0044 };
0045
0046 gpio-keys {
0047 compatible = "gpio-keys";
0048 pinctrl-names = "default";
0049 pinctrl-0 = <&key_voldown_pins &key_volup_pins>;
0050
0051 volume-down-key {
0052 label = "Volume Down";
0053 linux,code = <KEY_VOLUMEDOWN>;
0054 gpios = <&gpa1 0 GPIO_ACTIVE_LOW>;
0055 };
0056
0057 volume-up-key {
0058 label = "Volume Up";
0059 linux,code = <KEY_VOLUMEUP>;
0060 gpios = <&gpa0 7 GPIO_ACTIVE_LOW>;
0061 };
0062 };
0063
0064 leds {
0065 compatible = "gpio-leds";
0066
0067 /* HEART_BEAT_LED */
0068 user_led1: led-1 {
0069 label = "yellow:user1";
0070 gpios = <&gpg2 2 GPIO_ACTIVE_HIGH>;
0071 color = <LED_COLOR_ID_YELLOW>;
0072 function = LED_FUNCTION_HEARTBEAT;
0073 linux,default-trigger = "heartbeat";
0074 };
0075
0076 /* eMMC_LED */
0077 user_led2: led-2 {
0078 label = "yellow:user2";
0079 gpios = <&gpg2 3 GPIO_ACTIVE_HIGH>;
0080 color = <LED_COLOR_ID_YELLOW>;
0081 linux,default-trigger = "mmc0";
0082 };
0083
0084 /* SD_LED */
0085 user_led3: led-3 {
0086 label = "white:user3";
0087 gpios = <&gpg2 4 GPIO_ACTIVE_HIGH>;
0088 color = <LED_COLOR_ID_WHITE>;
0089 function = LED_FUNCTION_SD;
0090 linux,default-trigger = "mmc2";
0091 };
0092
0093 /* WIFI_LED */
0094 wlan_active_led: led-4 {
0095 label = "yellow:wlan";
0096 gpios = <&gpg2 6 GPIO_ACTIVE_HIGH>;
0097 color = <LED_COLOR_ID_YELLOW>;
0098 function = LED_FUNCTION_WLAN;
0099 linux,default-trigger = "phy0tx";
0100 default-state = "off";
0101 };
0102
0103 /* BLUETOOTH_LED */
0104 bt_active_led: led-5 {
0105 label = "blue:bt";
0106 gpios = <&gpg2 7 GPIO_ACTIVE_HIGH>;
0107 color = <LED_COLOR_ID_BLUE>;
0108 function = LED_FUNCTION_BLUETOOTH;
0109 linux,default-trigger = "hci0rx";
0110 default-state = "off";
0111 };
0112 };
0113
0114 /*
0115 * RTC clock (XrtcXTI); external, must be 32.768 kHz.
0116 *
0117 * TODO: Remove this once RTC clock is implemented properly as part of
0118 * PMIC driver.
0119 */
0120 rtcclk: clock-rtcclk {
0121 compatible = "fixed-clock";
0122 clock-output-names = "rtcclk";
0123 #clock-cells = <0>;
0124 clock-frequency = <32768>;
0125 };
0126 };
0127
0128 &cmu_hsi {
0129 clocks = <&oscclk>, <&rtcclk>,
0130 <&cmu_top CLK_DOUT_HSI_BUS>,
0131 <&cmu_top CLK_DOUT_HSI_MMC_CARD>,
0132 <&cmu_top CLK_DOUT_HSI_USB20DRD>;
0133 clock-names = "oscclk", "rtcclk", "dout_hsi_bus",
0134 "dout_hsi_mmc_card", "dout_hsi_usb20drd";
0135 };
0136
0137 &mmc_0 {
0138 status = "okay";
0139 mmc-hs200-1_8v;
0140 mmc-hs400-1_8v;
0141 cap-mmc-highspeed;
0142 non-removable;
0143 mmc-hs400-enhanced-strobe;
0144 card-detect-delay = <200>;
0145 clock-frequency = <800000000>;
0146 bus-width = <8>;
0147 samsung,dw-mshc-ciu-div = <3>;
0148 samsung,dw-mshc-sdr-timing = <0 4>;
0149 samsung,dw-mshc-ddr-timing = <2 4>;
0150 samsung,dw-mshc-hs400-timing = <0 2>;
0151
0152 pinctrl-names = "default";
0153 pinctrl-0 = <&sd0_clk_pins &sd0_cmd_pins &sd0_rdqs_pins &sd0_nreset_pins
0154 &sd0_bus1_pins &sd0_bus4_pins &sd0_bus8_pins>;
0155 };
0156
0157 &oscclk {
0158 clock-frequency = <26000000>;
0159 };
0160
0161 &pinctrl_alive {
0162 key_voldown_pins: key-voldown-pins {
0163 samsung,pins = "gpa1-0";
0164 samsung,pin-function = <EXYNOS_PIN_FUNC_EINT>;
0165 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
0166 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
0167 };
0168
0169 key_volup_pins: key-volup-pins {
0170 samsung,pins = "gpa0-7";
0171 samsung,pin-function = <EXYNOS_PIN_FUNC_EINT>;
0172 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
0173 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
0174 };
0175 };
0176
0177 &rtc {
0178 status = "okay";
0179 clocks = <&cmu_apm CLK_GOUT_RTC_PCLK>, <&rtcclk>;
0180 clock-names = "rtc", "rtc_src";
0181 };
0182
0183 &serial_0 {
0184 status = "okay";
0185 pinctrl-names = "default";
0186 pinctrl-0 = <&uart1_pins>;
0187 };
0188
0189 &usi_uart {
0190 samsung,clkreq-on; /* needed for UART mode */
0191 status = "okay";
0192 };
0193
0194 &watchdog_cl0 {
0195 status = "okay";
0196 };
0197
0198 &watchdog_cl1 {
0199 status = "okay";
0200 };