1// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2/* 3 * Device Tree Source for the RZ/G2LC SMARC pincontrol parts 4 * 5 * Copyright (C) 2021 Renesas Electronics Corp. 6 */ 7 8#include <dt-bindings/gpio/gpio.h> 9#include <dt-bindings/pinctrl/rzg2l-pinctrl.h> 10 11&pinctrl { 12 pinctrl-0 = <&sound_clk_pins>; 13 pinctrl-names = "default"; 14 15 scif0_pins: scif0 { 16 pinmux = <RZG2L_PORT_PINMUX(38, 0, 1)>, /* TxD */ 17 <RZG2L_PORT_PINMUX(38, 1, 1)>; /* RxD */ 18 }; 19 20#if SW_SCIF_CAN 21 /* SW8 should be at position 2->1 */ 22 can1_pins: can1 { 23 pinmux = <RZG2L_PORT_PINMUX(40, 0, 3)>, /* TxD */ 24 <RZG2L_PORT_PINMUX(40, 1, 3)>; /* RxD */ 25 }; 26#endif 27 28 scif1_pins: scif1 { 29 pinmux = <RZG2L_PORT_PINMUX(40, 0, 1)>, /* TxD */ 30 <RZG2L_PORT_PINMUX(40, 1, 1)>, /* RxD */ 31 <RZG2L_PORT_PINMUX(41, 0, 1)>, /* CTS# */ 32 <RZG2L_PORT_PINMUX(41, 1, 1)>; /* RTS# */ 33 }; 34 35#if SW_RSPI_CAN 36 /* SW8 should be at position 2->3 so that GPIO9_CAN1_STB line is activated */ 37 can1-stb-hog { 38 gpio-hog; 39 gpios = <RZG2L_GPIO(44, 3) GPIO_ACTIVE_HIGH>; 40 output-low; 41 line-name = "can1_stb"; 42 }; 43 44 can1_pins: can1 { 45 pinmux = <RZG2L_PORT_PINMUX(44, 0, 3)>, /* TxD */ 46 <RZG2L_PORT_PINMUX(44, 1, 3)>; /* RxD */ 47 }; 48#endif 49 50 sd1-pwr-en-hog { 51 gpio-hog; 52 gpios = <RZG2L_GPIO(39, 2) GPIO_ACTIVE_HIGH>; 53 output-high; 54 line-name = "sd1_pwr_en"; 55 }; 56 57 sdhi1_pins: sd1 { 58 sd1_data { 59 pins = "SD1_DATA0", "SD1_DATA1", "SD1_DATA2", "SD1_DATA3"; 60 power-source = <3300>; 61 }; 62 63 sd1_ctrl { 64 pins = "SD1_CLK", "SD1_CMD"; 65 power-source = <3300>; 66 }; 67 68 sd1_mux { 69 pinmux = <RZG2L_PORT_PINMUX(19, 0, 1)>; /* SD1_CD */ 70 }; 71 }; 72 73 sdhi1_pins_uhs: sd1_uhs { 74 sd1_data_uhs { 75 pins = "SD1_DATA0", "SD1_DATA1", "SD1_DATA2", "SD1_DATA3"; 76 power-source = <1800>; 77 }; 78 79 sd1_ctrl_uhs { 80 pins = "SD1_CLK", "SD1_CMD"; 81 power-source = <1800>; 82 }; 83 84 sd1_mux_uhs { 85 pinmux = <RZG2L_PORT_PINMUX(19, 0, 1)>; /* SD1_CD */ 86 }; 87 }; 88 89 sound_clk_pins: sound_clk { 90 pins = "AUDIO_CLK1", "AUDIO_CLK2"; 91 input-enable; 92 }; 93}; 94 95