1/* 2 * Samsung's Exynos4210 based SMDKV310 board device tree source 3 * 4 * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd. 5 * http://www.samsung.com 6 * Copyright (c) 2010-2011 Linaro Ltd. 7 * www.linaro.org 8 * 9 * Device tree source file for Samsung's SMDKV310 board which is based on 10 * Samsung's Exynos4210 SoC. 11 * 12 * This program is free software; you can redistribute it and/or modify 13 * it under the terms of the GNU General Public License version 2 as 14 * published by the Free Software Foundation. 15*/ 16 17/dts-v1/; 18#include "exynos4210.dtsi" 19#include <dt-bindings/gpio/gpio.h> 20 21/ { 22 model = "Samsung smdkv310 evaluation board based on Exynos4210"; 23 compatible = "samsung,smdkv310", "samsung,exynos4210", "samsung,exynos4"; 24 25 memory { 26 reg = <0x40000000 0x80000000>; 27 }; 28 29 chosen { 30 bootargs = "root=/dev/ram0 rw ramdisk=8192 initrd=0x41000000,8M console=ttySAC1,115200 init=/linuxrc"; 31 stdout-path = &serial_1; 32 }; 33 34 fixed-rate-clocks { 35 xxti { 36 compatible = "samsung,clock-xxti"; 37 clock-frequency = <12000000>; 38 }; 39 40 xusbxti { 41 compatible = "samsung,clock-xusbxti"; 42 clock-frequency = <24000000>; 43 }; 44 }; 45}; 46 47&g2d { 48 status = "okay"; 49}; 50 51&i2c_0 { 52 #address-cells = <1>; 53 #size-cells = <0>; 54 samsung,i2c-sda-delay = <100>; 55 samsung,i2c-max-bus-freq = <100000>; 56 status = "okay"; 57 58 eeprom@50 { 59 compatible = "samsung,24ad0xd1"; 60 reg = <0x50>; 61 }; 62 63 eeprom@52 { 64 compatible = "samsung,24ad0xd1"; 65 reg = <0x52>; 66 }; 67}; 68 69&keypad { 70 samsung,keypad-num-rows = <2>; 71 samsung,keypad-num-columns = <8>; 72 linux,keypad-no-autorepeat; 73 linux,keypad-wakeup; 74 pinctrl-names = "default"; 75 pinctrl-0 = <&keypad_rows &keypad_cols>; 76 status = "okay"; 77 78 key_1 { 79 keypad,row = <0>; 80 keypad,column = <3>; 81 linux,code = <2>; 82 }; 83 84 key_2 { 85 keypad,row = <0>; 86 keypad,column = <4>; 87 linux,code = <3>; 88 }; 89 90 key_3 { 91 keypad,row = <0>; 92 keypad,column = <5>; 93 linux,code = <4>; 94 }; 95 96 key_4 { 97 keypad,row = <0>; 98 keypad,column = <6>; 99 linux,code = <5>; 100 }; 101 102 key_5 { 103 keypad,row = <0>; 104 keypad,column = <7>; 105 linux,code = <6>; 106 }; 107 108 key_a { 109 keypad,row = <1>; 110 keypad,column = <3>; 111 linux,code = <30>; 112 }; 113 114 key_b { 115 keypad,row = <1>; 116 keypad,column = <4>; 117 linux,code = <48>; 118 }; 119 120 key_c { 121 keypad,row = <1>; 122 keypad,column = <5>; 123 linux,code = <46>; 124 }; 125 126 key_d { 127 keypad,row = <1>; 128 keypad,column = <6>; 129 linux,code = <32>; 130 }; 131 132 key_e { 133 keypad,row = <1>; 134 keypad,column = <7>; 135 linux,code = <18>; 136 }; 137}; 138 139&mfc { 140 samsung,mfc-r = <0x43000000 0x800000>; 141 samsung,mfc-l = <0x51000000 0x800000>; 142 status = "okay"; 143}; 144 145&pinctrl_1 { 146 keypad_rows: keypad-rows { 147 samsung,pins = "gpx2-0", "gpx2-1"; 148 samsung,pin-function = <3>; 149 samsung,pin-pud = <3>; 150 samsung,pin-drv = <0>; 151 }; 152 153 keypad_cols: keypad-cols { 154 samsung,pins = "gpx1-0", "gpx1-1", "gpx1-2", "gpx1-3", 155 "gpx1-4", "gpx1-5", "gpx1-6", "gpx1-7"; 156 samsung,pin-function = <3>; 157 samsung,pin-pud = <0>; 158 samsung,pin-drv = <0>; 159 }; 160}; 161 162&sdhci_2 { 163 bus-width = <4>; 164 pinctrl-names = "default"; 165 pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>; 166 status = "okay"; 167}; 168 169&serial_0 { 170 status = "okay"; 171}; 172 173&serial_1 { 174 status = "okay"; 175}; 176 177&serial_2 { 178 status = "okay"; 179}; 180 181&serial_3 { 182 status = "okay"; 183}; 184 185&spi_2 { 186 cs-gpios = <&gpc1 2 GPIO_ACTIVE_HIGH>; 187 status = "okay"; 188 189 w25x80@0 { 190 #address-cells = <1>; 191 #size-cells = <1>; 192 compatible = "w25x80"; 193 reg = <0>; 194 spi-max-frequency = <1000000>; 195 196 controller-data { 197 samsung,spi-feedback-delay = <0>; 198 }; 199 200 partition@0 { 201 label = "U-Boot"; 202 reg = <0x0 0x40000>; 203 read-only; 204 }; 205 206 partition@40000 { 207 label = "Kernel"; 208 reg = <0x40000 0xc0000>; 209 }; 210 }; 211}; 212