1/* 2 * Copyright (c) 2021 Teslabs Engineering S.L. 3 * SPDX-License-Identifier: Apache-2.0 4 */ 5 6/ { 7 test_device: test_device { 8 compatible = "vnd,pinctrl-device"; 9 pinctrl-0 = <&test_device_default>; 10 pinctrl-names = "default"; 11 }; 12}; 13 14&pinctrl { 15 test_device_default: test_device_default { 16 /* Note: the groups are just meant for testing if properties and 17 pins are parsed correctly, but do not necessarily represent a 18 feasible combination */ 19 group1 { 20 pinmux = <GD32_PINMUX_AF('A', 0, AF0)>, 21 <GD32_PINMUX_AF('B', 1, AF1)>; 22 }; 23 group2 { 24 pinmux = <GD32_PINMUX_AF('C', 2, AF2)>; 25 drive-push-pull; 26 }; 27 group3 { 28 pinmux = <GD32_PINMUX_AF('A', 3, AF3)>; 29 drive-open-drain; 30 }; 31 group4 { 32 pinmux = <GD32_PINMUX_AF('B', 4, AF4)>; 33 bias-disable; 34 }; 35 group5 { 36 pinmux = <GD32_PINMUX_AF('C', 5, AF5)>; 37 bias-pull-up; 38 }; 39 group6 { 40 pinmux = <GD32_PINMUX_AF('A', 6, AF6)>; 41 bias-pull-down; 42 }; 43 group7 { 44 pinmux = <GD32_PINMUX_AF('B', 7, AF7)>; 45 slew-rate = "max-speed-2mhz"; 46 }; 47 group8 { 48 pinmux = <GD32_PINMUX_AF('C', 8, AF8)>; 49 slew-rate = "max-speed-25mhz"; 50 }; 51 group9 { 52 pinmux = <GD32_PINMUX_AF('A', 9, AF9)>; 53 slew-rate = "max-speed-50mhz"; 54 }; 55 group10 { 56 pinmux = <GD32_PINMUX_AF('B', 10, AF10)>; 57 slew-rate = "max-speed-200mhz"; 58 }; 59 group11 { 60 pinmux = <GD32_PINMUX_AF('C', 11, ANALOG)>; 61 }; 62 }; 63}; 64