/* * Copyright (c) 2021 Teslabs Engineering S.L. * SPDX-License-Identifier: Apache-2.0 */ #define GD32_TEST_DEVICE_RMP GD32_REMAP(0, 0, 0x1U, 1) / { test_device: test_device { compatible = "vnd,pinctrl-device"; pinctrl-0 = <&test_device_default>; pinctrl-names = "default"; }; }; &pinctrl { test_device_default: test_device_default { /* Note: the groups are just meant for testing if properties and pins are parsed correctly, but do not necessarily represent a feasible combination */ pins1 { pinmux = , , ; }; pins2 { pinmux = , ; }; pins3 { pinmux = ; drive-push-pull; }; pins4 { pinmux = ; drive-open-drain; }; pins5 { pinmux = ; bias-disable; }; pins6 { pinmux = ; bias-pull-up; }; pins7 { pinmux = ; bias-pull-down; }; pins8 { pinmux = ; slew-rate = "max-speed-2mhz"; }; pins9 { pinmux = ; slew-rate = "max-speed-10mhz"; }; pins10 { pinmux = ; slew-rate = "max-speed-50mhz"; }; pins11 { pinmux = ; slew-rate = "max-speed-highest"; }; }; };