Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: ux500: Add alternative SDI pin configs

SDI0/SDI1 can be used in configurations where some of the pins
(e.g. direction control) are not used. The pinctrl driver has
separate pin groups for them.

Add new pin configurations for:
- mc0_a_2: like mc0_a_1, but without CMDDIR/DAT0DIR/DAT2DIR
- mc1_a_2: like mc1_a_1, but without FBCLK

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Link: https://lore.kernel.org/r/20191125122256.53482-3-stephan@gerhold.net
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Stephan Gerhold and committed by
Linus Walleij
4dbeac73 7fee2022

+77
+77
arch/arm/boot/dts/ste-dbx5x0-pinctrl.dtsi
··· 257 257 ste,config = <&slpm_out_lo_wkup_pdis>; 258 258 }; 259 259 }; 260 + 261 + mc0_a_2_default: mc0_a_2_default { 262 + default_mux { 263 + function = "mc0"; 264 + groups = "mc0_a_2"; 265 + }; 266 + default_cfg1 { 267 + pins = "GPIO22_AA3"; /* FBCLK */ 268 + ste,config = <&in_nopull>; 269 + }; 270 + default_cfg2 { 271 + pins = "GPIO23_AA4"; /* CLK */ 272 + ste,config = <&out_lo>; 273 + }; 274 + default_cfg3 { 275 + pins = 276 + "GPIO24_AB2", /* CMD */ 277 + "GPIO25_Y4", /* DAT0 */ 278 + "GPIO26_Y2", /* DAT1 */ 279 + "GPIO27_AA2", /* DAT2 */ 280 + "GPIO28_AA1"; /* DAT3 */ 281 + ste,config = <&in_pu>; 282 + }; 283 + }; 284 + 285 + mc0_a_2_sleep: mc0_a_2_sleep { 286 + sleep_cfg1 { 287 + pins = 288 + "GPIO22_AA3", /* FBCLK */ 289 + "GPIO24_AB2", /* CMD */ 290 + "GPIO25_Y4", /* DAT0 */ 291 + "GPIO26_Y2", /* DAT1 */ 292 + "GPIO27_AA2", /* DAT2 */ 293 + "GPIO28_AA1"; /* DAT3 */ 294 + ste,config = <&slpm_in_wkup_pdis>; 295 + }; 296 + sleep_cfg2 { 297 + pins = "GPIO23_AA4"; /* CLK */ 298 + ste,config = <&slpm_out_lo_wkup_pdis>; 299 + }; 300 + }; 260 301 }; 261 302 262 303 sdi1 { ··· 334 293 sleep_cfg2 { 335 294 pins = 336 295 "GPIO209_AG15", /* FBCLK */ 296 + "GPIO210_AJ15", /* CMD */ 297 + "GPIO211_AG14", /* DAT0 */ 298 + "GPIO212_AF13", /* DAT1 */ 299 + "GPIO213_AG13", /* DAT2 */ 300 + "GPIO214_AH15"; /* DAT3 */ 301 + ste,config = <&slpm_in_wkup_pdis>; 302 + }; 303 + }; 304 + 305 + mc1_a_2_default: mc1_a_2_default { 306 + default_mux { 307 + function = "mc1"; 308 + groups = "mc1_a_2"; 309 + }; 310 + default_cfg1 { 311 + pins = "GPIO208_AH16"; /* CLK */ 312 + ste,config = <&out_lo>; 313 + }; 314 + default_cfg2 { 315 + pins = 316 + "GPIO210_AJ15", /* CMD */ 317 + "GPIO211_AG14", /* DAT0 */ 318 + "GPIO212_AF13", /* DAT1 */ 319 + "GPIO213_AG13", /* DAT2 */ 320 + "GPIO214_AH15"; /* DAT3 */ 321 + ste,config = <&in_pu>; 322 + }; 323 + }; 324 + 325 + mc1_a_2_sleep: mc1_a_2_sleep { 326 + sleep_cfg1 { 327 + pins = "GPIO208_AH16"; /* CLK */ 328 + ste,config = <&slpm_out_lo_wkup_pdis>; 329 + }; 330 + sleep_cfg2 { 331 + pins = 337 332 "GPIO210_AJ15", /* CMD */ 338 333 "GPIO211_AG14", /* DAT0 */ 339 334 "GPIO212_AF13", /* DAT1 */