Dzmitry Sankouski | 69bde04 | 2021-10-17 13:45:41 +0300 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Samsung's Exynos7880 SoC pin-mux and pin-config device tree source |
| 4 | * |
| 5 | * Copyright (c) 2014 Samsung Electronics Co., Ltd. |
| 6 | * http://www.samsung.com |
| 7 | * Copyright (c) 2020 Dzmitry Sankouski (dsankouski@gmail.com) |
| 8 | * |
| 9 | * Samsung's Exynos7880 SoC pin-mux and pin-config options are listed as device |
| 10 | * tree nodes are listed in this file. |
| 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 | / { |
| 18 | /* ALIVE */ |
| 19 | pinctrl@139F0000 { |
| 20 | uart2_bus: uart2-bus { |
| 21 | samsung,pins = "gpa1-1", "gpa1-0"; |
| 22 | samsung,pin-function = <2>; |
| 23 | samsung,pin-pud = <0>; |
| 24 | }; |
| 25 | |
| 26 | dwmmc2_cd_ext_irq: dwmmc2_cd_ext_irq { |
| 27 | samsung,pins = "gpa3-3"; |
| 28 | samsung,pin-function = <0xf>; |
| 29 | samsung,pin-pud = <0>; |
| 30 | samsung,pin-drv = <4>; |
| 31 | }; |
| 32 | |
| 33 | key_power: key-power { |
| 34 | samsung,pins = "gpa0-0"; |
| 35 | samsung,pin-function = <0xf>; |
| 36 | samsung,pin-pud = <0>; |
| 37 | samsung,pin-drv = <0>; |
| 38 | }; |
| 39 | |
| 40 | key_voldown: key-voldown { |
| 41 | samsung,pins = "gpa2-1"; |
| 42 | samsung,pin-function = <0xf>; |
| 43 | samsung,pin-pud = <0>; |
| 44 | samsung,pin-drv = <0>; |
| 45 | }; |
| 46 | |
| 47 | key_volup: key-volup { |
| 48 | samsung,pins = "gpa2-0"; |
| 49 | samsung,pin-function = <0xf>; |
| 50 | samsung,pin-pud = <0>; |
| 51 | samsung,pin-drv = <0>; |
| 52 | }; |
| 53 | |
| 54 | key_home: key-home { |
| 55 | samsung,pins = "gpa1-7"; |
| 56 | samsung,pin-function = <0xf>; |
| 57 | samsung,pin-pud = <0>; |
| 58 | samsung,pin-drv = <0>; |
| 59 | }; |
| 60 | }; |
| 61 | |
| 62 | /* TOP */ |
| 63 | pinctrl@139B0000 { |
| 64 | i2c0_bus: i2c0-bus { |
| 65 | samsung,pins = "gpc1-1", "gpc1-0"; |
| 66 | samsung,pin-function = <2>; |
| 67 | }; |
| 68 | |
| 69 | sd0_rst: sd0_rst { |
| 70 | samsung,pins = "gpc0-2"; |
| 71 | samsung,pin-function = <0>; |
| 72 | }; |
| 73 | }; |
| 74 | |
| 75 | /* DISP/AUD */ |
| 76 | pinctrl@148C0000 { |
| 77 | i2s_pmic_bus: i2s-pmic-bus { |
| 78 | samsung,pins = "gpz1-0", "gpz1-1", "gpz1-2", "gpz1-3", "gpz1-4"; |
| 79 | samsung,pin-function = <2>; |
| 80 | samsung,pin-pud = <1>; |
| 81 | samsung,pin-drv = <0>; |
| 82 | }; |
| 83 | |
| 84 | i2s_pmic_bus_idle: i2s-pmic-bus_idle { |
| 85 | samsung,pins = "gpz1-0", "gpz1-1", "gpz1-2", "gpz1-3", "gpz1-4"; |
| 86 | samsung,pin-function = <0>; |
| 87 | samsung,pin-pud = <1>; |
| 88 | samsung,pin-drv = <0>; |
| 89 | }; |
| 90 | }; |
| 91 | |
| 92 | /* FSYS0 */ |
| 93 | pinctrl@13750000 { |
| 94 | sd0_clk: sd0-clk { |
| 95 | samsung,pins = "gpr0-0"; |
| 96 | samsung,pin-function = <2>; |
| 97 | samsung,pin-pud = <0>; |
| 98 | samsung,pin-drv = <2>; |
| 99 | }; |
| 100 | |
| 101 | sd0_cmd: sd0-cmd { |
| 102 | samsung,pins = "gpr0-1"; |
| 103 | samsung,pin-function = <2>; |
| 104 | samsung,pin-pud = <0>; |
| 105 | samsung,pin-drv = <2>; |
| 106 | }; |
| 107 | |
| 108 | sd0_rdqs: sd0-rdqs { |
| 109 | samsung,pins = "gpr0-2"; |
| 110 | samsung,pin-function = <2>; |
| 111 | samsung,pin-pud = <0>; |
| 112 | samsung,pin-drv = <2>; |
| 113 | }; |
| 114 | |
| 115 | sd0_clk_fast_slew_rate_1x: sd0-clk_fast_slew_rate_1x { |
| 116 | samsung,pins = "gpr0-0"; |
| 117 | samsung,pin-function = <2>; |
| 118 | samsung,pin-pud = <0>; |
| 119 | samsung,pin-drv = <0>; |
| 120 | }; |
| 121 | |
| 122 | sd0_clk_fast_slew_rate_2x: sd0-clk_fast_slew_rate_2x { |
| 123 | samsung,pins = "gpr0-0"; |
| 124 | samsung,pin-function = <2>; |
| 125 | samsung,pin-pud = <0>; |
| 126 | samsung,pin-drv = <1>; |
| 127 | }; |
| 128 | |
| 129 | sd0_clk_fast_slew_rate_3x: sd0-clk_fast_slew_rate_3x { |
| 130 | samsung,pins = "gpr0-0"; |
| 131 | samsung,pin-function = <2>; |
| 132 | samsung,pin-pud = <0>; |
| 133 | samsung,pin-drv = <2>; |
| 134 | }; |
| 135 | |
| 136 | sd0_clk_fast_slew_rate_4x: sd0-clk_fast_slew_rate_4x { |
| 137 | samsung,pins = "gpr0-0"; |
| 138 | samsung,pin-function = <2>; |
| 139 | samsung,pin-pud = <0>; |
| 140 | samsung,pin-drv = <3>; |
| 141 | }; |
| 142 | |
| 143 | sd0_clk_fast_slew_rate_5x: sd0-clk_fast_slew_rate_5x { |
| 144 | samsung,pins = "gpr0-0"; |
| 145 | samsung,pin-function = <2>; |
| 146 | samsung,pin-pud = <0>; |
| 147 | samsung,pin-drv = <4>; |
| 148 | }; |
| 149 | |
| 150 | sd0_clk_fast_slew_rate_6x: sd0-clk_fast_slew_rate_6x { |
| 151 | samsung,pins = "gpr0-0"; |
| 152 | samsung,pin-function = <2>; |
| 153 | samsung,pin-pud = <0>; |
| 154 | samsung,pin-drv = <5>; |
| 155 | }; |
| 156 | |
| 157 | sd0_bus1: sd0-bus-width1 { |
| 158 | samsung,pins = "gpr1-0"; |
| 159 | samsung,pin-function = <2>; |
| 160 | samsung,pin-pud = <3>; |
| 161 | samsung,pin-drv = <2>; |
| 162 | }; |
| 163 | |
| 164 | sd0_bus4: sd0-bus-width4 { |
| 165 | samsung,pins = "gpr1-1", "gpr1-2", "gpr1-3"; |
| 166 | samsung,pin-function = <2>; |
| 167 | samsung,pin-pud = <3>; |
| 168 | samsung,pin-drv = <2>; |
| 169 | }; |
| 170 | |
| 171 | sd0_bus8: sd0-bus-width8 { |
| 172 | samsung,pins = "gpr1-4", "gpr1-5", "gpr1-6", "gpr1-7"; |
| 173 | samsung,pin-function = <2>; |
| 174 | samsung,pin-pud = <3>; |
| 175 | samsung,pin-drv = <2>; |
| 176 | }; |
| 177 | |
| 178 | sd1_clk: sd1-clk { |
| 179 | samsung,pins = "gpr2-0"; |
| 180 | samsung,pin-function = <2>; |
| 181 | samsung,pin-pud = <0>; |
| 182 | samsung,pin-drv = <2>; |
| 183 | }; |
| 184 | |
| 185 | sd1_cmd: sd1-cmd { |
| 186 | samsung,pins = "gpr2-1"; |
| 187 | samsung,pin-function = <2>; |
| 188 | samsung,pin-pud = <0>; |
| 189 | samsung,pin-drv = <2>; |
| 190 | }; |
| 191 | |
| 192 | sd1_bus1: sd1-bus-width1 { |
| 193 | samsung,pins = "gpr3-0"; |
| 194 | samsung,pin-function = <2>; |
| 195 | samsung,pin-pud = <3>; |
| 196 | samsung,pin-drv = <2>; |
| 197 | samsung,pin-con-pdn = <2>; |
| 198 | samsung,pin-pud-pdn = <3>; |
| 199 | }; |
| 200 | |
| 201 | sd1_bus4: sd1-bus-width4 { |
| 202 | samsung,pins = "gpr3-1", "gpr3-2", "gpr3-3"; |
| 203 | samsung,pin-function = <2>; |
| 204 | samsung,pin-pud = <3>; |
| 205 | samsung,pin-drv = <2>; |
| 206 | samsung,pin-con-pdn = <2>; |
| 207 | samsung,pin-pud-pdn = <3>; |
| 208 | }; |
| 209 | |
| 210 | sd2_clk: sd2-clk { |
| 211 | samsung,pins = "gpr4-0"; |
| 212 | samsung,pin-function = <2>; |
| 213 | samsung,pin-pud = <0>; |
| 214 | samsung,pin-drv = <2>; |
| 215 | }; |
| 216 | |
| 217 | sd2_cmd: sd2-cmd { |
| 218 | samsung,pins = "gpr4-1"; |
| 219 | samsung,pin-function = <2>; |
| 220 | samsung,pin-pud = <3>; |
| 221 | samsung,pin-drv = <2>; |
| 222 | }; |
| 223 | |
| 224 | sd2_bus1: sd2-bus-width1 { |
| 225 | samsung,pins = "gpr4-2"; |
| 226 | samsung,pin-function = <2>; |
| 227 | samsung,pin-pud = <3>; |
| 228 | samsung,pin-drv = <2>; |
| 229 | }; |
| 230 | |
| 231 | sd2_bus4: sd2-bus-width4 { |
| 232 | samsung,pins = "gpr4-3", "gpr4-4", "gpr4-5"; |
| 233 | samsung,pin-function = <2>; |
| 234 | samsung,pin-pud = <3>; |
| 235 | samsung,pin-drv = <2>; |
| 236 | }; |
| 237 | |
| 238 | sd2_clk_output: sd2-clk-output { |
| 239 | samsung,pins = "gpr4-0"; |
| 240 | samsung,pin-function = <1>; |
| 241 | samsung,pin-pud = <0>; |
| 242 | samsung,pin-drv = <2>; |
| 243 | }; |
| 244 | |
| 245 | sd2_cmd_output: sd2-cmd-output { |
| 246 | samsung,pins = "gpr4-1"; |
| 247 | samsung,pin-function = <1>; |
| 248 | samsung,pin-pud = <0>; |
| 249 | samsung,pin-drv = <2>; |
| 250 | }; |
| 251 | |
| 252 | sd2_clk_fast_slew_rate_1x: sd2-clk_fast_slew_rate_1x { |
| 253 | samsung,pins = "gpr4-0"; |
| 254 | samsung,pin-function = <2>; |
| 255 | samsung,pin-pud = <0>; |
| 256 | samsung,pin-drv = <0>; |
| 257 | }; |
| 258 | |
| 259 | sd2_clk_fast_slew_rate_2x: sd2-clk_fast_slew_rate_2x { |
| 260 | samsung,pins = "gpr4-0"; |
| 261 | samsung,pin-function = <2>; |
| 262 | samsung,pin-pud = <0>; |
| 263 | samsung,pin-drv = <1>; |
| 264 | }; |
| 265 | |
| 266 | sd2_clk_fast_slew_rate_3x: sd2-clk_fast_slew_rate_3x { |
| 267 | samsung,pins = "gpr4-0"; |
| 268 | samsung,pin-function = <2>; |
| 269 | samsung,pin-pud = <0>; |
| 270 | samsung,pin-drv = <2>; |
| 271 | }; |
| 272 | |
| 273 | sd2_clk_fast_slew_rate_4x: sd2-clk_fast_slew_rate_4x { |
| 274 | samsung,pins = "gpr4-0"; |
| 275 | samsung,pin-function = <2>; |
| 276 | samsung,pin-pud = <0>; |
| 277 | samsung,pin-drv = <3>; |
| 278 | }; |
| 279 | }; |
| 280 | }; |