1 // SPDX-License-Identifier: (GPL-2.0-only OR B 2 /* 3 * Device Tree Source for the RZ/G2LC SMARC pi 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 #if SW_SCIF_CAN 16 /* SW8 should be at position 2->1 */ 17 can1_pins: can1 { 18 pinmux = <RZG2L_PORT_PINMUX(40 19 <RZG2L_PORT_PINMUX(40 20 }; 21 #endif 22 23 #if SW_RSPI_CAN 24 /* SW8 should be at position 2->3 so t 25 can1-stb-hog { 26 gpio-hog; 27 gpios = <RZG2L_GPIO(44, 3) GPI 28 output-low; 29 line-name = "can1_stb"; 30 }; 31 32 can1_pins: can1 { 33 pinmux = <RZG2L_PORT_PINMUX(44 34 <RZG2L_PORT_PINMUX(44 35 }; 36 #endif 37 38 i2c0_pins: i2c0 { 39 pins = "RIIC0_SDA", "RIIC0_SCL 40 input-enable; 41 }; 42 43 i2c1_pins: i2c1 { 44 pins = "RIIC1_SDA", "RIIC1_SCL 45 input-enable; 46 }; 47 48 i2c2_pins: i2c2 { 49 pinmux = <RZG2L_PORT_PINMUX(42 50 <RZG2L_PORT_PINMUX(42 51 }; 52 53 mtu3_pins: mtu3 { 54 mtu3-pwm { 55 pinmux = <RZG2L_PORT_P 56 <RZG2L_PORT_P 57 <RZG2L_PORT_P 58 <RZG2L_PORT_P 59 }; 60 }; 61 62 scif0_pins: scif0 { 63 pinmux = <RZG2L_PORT_PINMUX(38 64 <RZG2L_PORT_PINMUX(38 65 }; 66 67 scif1_pins: scif1 { 68 pinmux = <RZG2L_PORT_PINMUX(40 69 <RZG2L_PORT_PINMUX(40 70 <RZG2L_PORT_PINMUX(41 71 <RZG2L_PORT_PINMUX(41 72 }; 73 74 sd1-pwr-en-hog { 75 gpio-hog; 76 gpios = <RZG2L_GPIO(39, 2) GPI 77 output-high; 78 line-name = "sd1_pwr_en"; 79 }; 80 81 sdhi1_pins: sd1 { 82 sd1_data { 83 pins = "SD1_DATA0", "S 84 power-source = <3300>; 85 }; 86 87 sd1_ctrl { 88 pins = "SD1_CLK", "SD1 89 power-source = <3300>; 90 }; 91 92 sd1_mux { 93 pinmux = <RZG2L_PORT_P 94 }; 95 }; 96 97 sdhi1_pins_uhs: sd1_uhs { 98 sd1_data_uhs { 99 pins = "SD1_DATA0", "S 100 power-source = <1800>; 101 }; 102 103 sd1_ctrl_uhs { 104 pins = "SD1_CLK", "SD1 105 power-source = <1800>; 106 }; 107 108 sd1_mux_uhs { 109 pinmux = <RZG2L_PORT_P 110 }; 111 }; 112 113 sound_clk_pins: sound_clk { 114 pins = "AUDIO_CLK1", "AUDIO_CL 115 input-enable; 116 }; 117 118 spi1_pins: spi1 { 119 pinmux = <RZG2L_PORT_PINMUX(44 120 <RZG2L_PORT_PINMUX(44 121 <RZG2L_PORT_PINMUX(44 122 <RZG2L_PORT_PINMUX(44 123 }; 124 125 ssi0_pins: ssi0 { 126 pinmux = <RZG2L_PORT_PINMUX(45 127 <RZG2L_PORT_PINMUX(45 128 <RZG2L_PORT_PINMUX(45 129 <RZG2L_PORT_PINMUX(45 130 }; 131 132 usb0_pins: usb0 { 133 pinmux = <RZG2L_PORT_PINMUX(4, 134 <RZG2L_PORT_PINMUX(5, 135 <RZG2L_PORT_PINMUX(5, 136 }; 137 138 usb1_pins: usb1 { 139 pinmux = <RZG2L_PORT_PINMUX(42 140 <RZG2L_PORT_PINMUX(42 141 }; 142 }; 143
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.