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