Thomas Abraham | 86666ad | 2012-11-07 08:17:43 +0900 | [diff] [blame] | 1 | /* |
| 2 | * Samsung's Exynos4412 based SMDK board device tree source |
| 3 | * |
| 4 | * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. |
| 5 | * http://www.samsung.com |
| 6 | * |
| 7 | * Device tree source file for Samsung's SMDK4412 board which is based on |
| 8 | * Samsung's Exynos4412 SoC. |
| 9 | * |
| 10 | * This program is free software; you can redistribute it and/or modify |
| 11 | * it under the terms of the GNU General Public License version 2 as |
| 12 | * published by the Free Software Foundation. |
| 13 | */ |
| 14 | |
| 15 | /dts-v1/; |
Padmavathi Venna | 3799279 | 2013-06-18 00:02:08 +0900 | [diff] [blame] | 16 | #include "exynos4412.dtsi" |
Marek Szyprowski | 8b9ac7e | 2016-05-24 15:31:29 +0200 | [diff] [blame] | 17 | #include "exynos-mfc-reserved-memory.dtsi" |
Thomas Abraham | 86666ad | 2012-11-07 08:17:43 +0900 | [diff] [blame] | 18 | |
| 19 | / { |
| 20 | model = "Samsung SMDK evaluation board based on Exynos4412"; |
Sachin Kamat | 8bdb31b | 2014-03-21 02:17:22 +0900 | [diff] [blame] | 21 | compatible = "samsung,smdk4412", "samsung,exynos4412", "samsung,exynos4"; |
Thomas Abraham | 86666ad | 2012-11-07 08:17:43 +0900 | [diff] [blame] | 22 | |
Javier Martinez Canillas | 824e413 | 2016-09-01 11:06:55 +0200 | [diff] [blame] | 23 | memory@40000000 { |
Javier Martinez Canillas | 1354835 | 2016-09-01 11:06:52 +0200 | [diff] [blame] | 24 | device_type = "memory"; |
Thomas Abraham | 86666ad | 2012-11-07 08:17:43 +0900 | [diff] [blame] | 25 | reg = <0x40000000 0x40000000>; |
| 26 | }; |
| 27 | |
| 28 | chosen { |
| 29 | bootargs ="root=/dev/ram0 rw ramdisk=8192 initrd=0x41000000,8M console=ttySAC1,115200 init=/linuxrc"; |
Tomasz Figa | 62d3809 | 2015-01-23 14:47:42 +0100 | [diff] [blame] | 30 | stdout-path = &serial_1; |
Thomas Abraham | 86666ad | 2012-11-07 08:17:43 +0900 | [diff] [blame] | 31 | }; |
| 32 | |
Thomas Abraham | 8b6076d | 2013-03-09 17:19:22 +0900 | [diff] [blame] | 33 | fixed-rate-clocks { |
| 34 | xxti { |
| 35 | compatible = "samsung,clock-xxti"; |
| 36 | clock-frequency = <0>; |
| 37 | }; |
| 38 | |
| 39 | xusbxti { |
| 40 | compatible = "samsung,clock-xusbxti"; |
| 41 | clock-frequency = <24000000>; |
| 42 | }; |
| 43 | }; |
Thomas Abraham | 86666ad | 2012-11-07 08:17:43 +0900 | [diff] [blame] | 44 | }; |
Krzysztof Kozlowski | 3d06a5c | 2015-04-06 21:07:18 +0200 | [diff] [blame] | 45 | |
Krzysztof Kozlowski | 3d06a5c | 2015-04-06 21:07:18 +0200 | [diff] [blame] | 46 | &keypad { |
| 47 | samsung,keypad-num-rows = <3>; |
| 48 | samsung,keypad-num-columns = <8>; |
| 49 | linux,keypad-no-autorepeat; |
Sudeep Holla | 36a0282 | 2016-01-28 15:59:58 +0000 | [diff] [blame] | 50 | wakeup-source; |
Krzysztof Kozlowski | 3d06a5c | 2015-04-06 21:07:18 +0200 | [diff] [blame] | 51 | pinctrl-0 = <&keypad_rows &keypad_cols>; |
| 52 | pinctrl-names = "default"; |
| 53 | status = "okay"; |
| 54 | |
| 55 | key_1 { |
| 56 | keypad,row = <1>; |
| 57 | keypad,column = <3>; |
| 58 | linux,code = <2>; |
| 59 | }; |
| 60 | |
| 61 | key_2 { |
| 62 | keypad,row = <1>; |
| 63 | keypad,column = <4>; |
| 64 | linux,code = <3>; |
| 65 | }; |
| 66 | |
| 67 | key_3 { |
| 68 | keypad,row = <1>; |
| 69 | keypad,column = <5>; |
| 70 | linux,code = <4>; |
| 71 | }; |
| 72 | |
| 73 | key_4 { |
| 74 | keypad,row = <1>; |
| 75 | keypad,column = <6>; |
| 76 | linux,code = <5>; |
| 77 | }; |
| 78 | |
| 79 | key_5 { |
| 80 | keypad,row = <1>; |
| 81 | keypad,column = <7>; |
| 82 | linux,code = <6>; |
| 83 | }; |
| 84 | |
| 85 | key_A { |
| 86 | keypad,row = <2>; |
| 87 | keypad,column = <6>; |
| 88 | linux,code = <30>; |
| 89 | }; |
| 90 | |
| 91 | key_B { |
| 92 | keypad,row = <2>; |
| 93 | keypad,column = <7>; |
| 94 | linux,code = <48>; |
| 95 | }; |
| 96 | |
| 97 | key_C { |
| 98 | keypad,row = <0>; |
| 99 | keypad,column = <5>; |
| 100 | linux,code = <46>; |
| 101 | }; |
| 102 | |
| 103 | key_D { |
| 104 | keypad,row = <2>; |
| 105 | keypad,column = <5>; |
| 106 | linux,code = <32>; |
| 107 | }; |
| 108 | |
| 109 | key_E { |
| 110 | keypad,row = <0>; |
| 111 | keypad,column = <7>; |
| 112 | linux,code = <18>; |
| 113 | }; |
| 114 | }; |
| 115 | |
Krzysztof Kozlowski | 3d06a5c | 2015-04-06 21:07:18 +0200 | [diff] [blame] | 116 | &pinctrl_1 { |
| 117 | keypad_rows: keypad-rows { |
| 118 | samsung,pins = "gpx2-0", "gpx2-1", "gpx2-2"; |
Krzysztof Kozlowski | c35bc3f | 2016-09-04 13:04:09 +0200 | [diff] [blame] | 119 | samsung,pin-function = <EXYNOS_PIN_FUNC_3>; |
| 120 | samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; |
| 121 | samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>; |
Krzysztof Kozlowski | 3d06a5c | 2015-04-06 21:07:18 +0200 | [diff] [blame] | 122 | }; |
| 123 | |
| 124 | keypad_cols: keypad-cols { |
| 125 | samsung,pins = "gpx1-0", "gpx1-1", "gpx1-2", "gpx1-3", |
| 126 | "gpx1-4", "gpx1-5", "gpx1-6", "gpx1-7"; |
Krzysztof Kozlowski | c35bc3f | 2016-09-04 13:04:09 +0200 | [diff] [blame] | 127 | samsung,pin-function = <EXYNOS_PIN_FUNC_3>; |
| 128 | samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; |
| 129 | samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>; |
Krzysztof Kozlowski | 3d06a5c | 2015-04-06 21:07:18 +0200 | [diff] [blame] | 130 | }; |
| 131 | }; |
| 132 | |
| 133 | &sdhci_2 { |
| 134 | bus-width = <4>; |
| 135 | pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_bus4 &sd2_cd>; |
| 136 | pinctrl-names = "default"; |
| 137 | status = "okay"; |
| 138 | }; |
| 139 | |
| 140 | &serial_0 { |
| 141 | status = "okay"; |
| 142 | }; |
| 143 | |
| 144 | &serial_1 { |
| 145 | status = "okay"; |
| 146 | }; |
| 147 | |
| 148 | &serial_2 { |
| 149 | status = "okay"; |
| 150 | }; |
| 151 | |
| 152 | &serial_3 { |
| 153 | status = "okay"; |
| 154 | }; |