1/* 2 * Copyright (c) 2023 Renesas Electronics Corporation and/or its affiliates 3 * SPDX-License-Identifier: Apache-2.0 4 */ 5 6#include <zephyr/dt-bindings/pinctrl/smartbond-pinctrl.h> 7 8&pinctrl { 9 uart_default: uart_default { 10 group1 { 11 pinmux = <SMARTBOND_PINMUX(UART_TX, 0, 9)>; 12 }; 13 group2 { 14 pinmux = <SMARTBOND_PINMUX(UART_RX, 0, 8)>; 15 bias-pull-up; 16 }; 17 }; 18 19 uart2_default: uart2_default { 20 group1 { 21 pinmux = <SMARTBOND_PINMUX(UART2_TX, 0, 17)>; 22 }; 23 group2 { 24 pinmux = <SMARTBOND_PINMUX(UART2_RX, 1, 8)>; 25 bias-pull-up; 26 }; 27 }; 28 29 uart3_default: uart3_default { 30 group1 { 31 pinmux = <SMARTBOND_PINMUX(UART3_TX, 0, 29)>; 32 }; 33 group2 { 34 pinmux = <SMARTBOND_PINMUX(UART3_RX, 0, 28)>; 35 bias-pull-up; 36 }; 37 }; 38 39 i2c_default: i2c_default { 40 group1 { 41 pinmux = <SMARTBOND_PINMUX(I2C_SDA, 0, 31)>, 42 <SMARTBOND_PINMUX(I2C_SCL, 0, 30)>; 43 bias-pull-up; 44 }; 45 }; 46 47 /omit-if-no-ref/ i2c_sleep: i2c_sleep { 48 group1 { 49 pinmux = <SMARTBOND_PINMUX(GPIO, 0, 31)>, 50 <SMARTBOND_PINMUX(GPIO, 0, 30)>; 51 bias-pull-up; 52 53 }; 54 }; 55 56 i2c2_default: i2c2_default { 57 group1 { 58 pinmux = <SMARTBOND_PINMUX(I2C2_SDA, 0, 19)>, 59 <SMARTBOND_PINMUX(I2C2_SCL, 0, 18)>; 60 bias-pull-up; 61 }; 62 }; 63 64 /omit-if-no-ref/ i2c2_sleep: i2c2_sleep { 65 group1 { 66 pinmux = <SMARTBOND_PINMUX(GPIO, 0, 19)>, 67 <SMARTBOND_PINMUX(GPIO, 0, 18)>; 68 bias-pull-up; 69 }; 70 }; 71 72 /omit-if-no-ref/ spi_sleep: spi_sleep { 73 group1 { 74 pinmux = <SMARTBOND_PINMUX(GPIO, 0, 21)>, 75 <SMARTBOND_PINMUX(GPIO, 0, 24)>, 76 <SMARTBOND_PINMUX(GPIO, 0, 26)>; 77 }; 78 }; 79 80 spi_controller: spi_controller { 81 group1 { 82 pinmux = < SMARTBOND_PINMUX(SPI_CLK, 0, 21) >, 83 <SMARTBOND_PINMUX(SPI_DO, 0, 26)>; 84 output-enable; 85 }; 86 group2 { 87 pinmux = <SMARTBOND_PINMUX(SPI_DI, 0, 24)>; 88 input-enable; 89 }; 90 }; 91 92 /omit-if-no-ref/ spi2_sleep: spi2_sleep { 93 group1 { 94 pinmux = <SMARTBOND_PINMUX(GPIO, 1, 3)>, 95 <SMARTBOND_PINMUX(GPIO, 1, 4)>, 96 <SMARTBOND_PINMUX(GPIO, 1, 5)>; 97 }; 98 }; 99 100 spi2_controller: spi2_controller { 101 group1 { 102 pinmux = < SMARTBOND_PINMUX(SPI2_CLK, 1, 3) >, 103 <SMARTBOND_PINMUX(SPI2_DO, 1, 5)>; 104 output-enable; 105 }; 106 group2 { 107 pinmux = <SMARTBOND_PINMUX(SPI2_DI, 1, 4)>; 108 input-enable; 109 }; 110 }; 111}; 112