165d2bc88SBiju Das// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 265d2bc88SBiju Das/* 3f91c4c74SBiju Das * Device Tree Source for the RZ/{G2L,V2L} SMARC pincontrol parts 465d2bc88SBiju Das * 565d2bc88SBiju Das * Copyright (C) 2021 Renesas Electronics Corp. 665d2bc88SBiju Das */ 765d2bc88SBiju Das 865d2bc88SBiju Das#include <dt-bindings/gpio/gpio.h> 965d2bc88SBiju Das#include <dt-bindings/pinctrl/rzg2l-pinctrl.h> 1065d2bc88SBiju Das 1165d2bc88SBiju Das&pinctrl { 1265d2bc88SBiju Das pinctrl-0 = <&sound_clk_pins>; 1365d2bc88SBiju Das pinctrl-names = "default"; 1465d2bc88SBiju Das 1565d2bc88SBiju Das can0_pins: can0 { 1665d2bc88SBiju Das pinmux = <RZG2L_PORT_PINMUX(10, 1, 2)>, /* TX */ 1765d2bc88SBiju Das <RZG2L_PORT_PINMUX(11, 0, 2)>; /* RX */ 1865d2bc88SBiju Das }; 1965d2bc88SBiju Das 2065d2bc88SBiju Das /* SW7 should be at position 2->3 so that GPIO8_CAN0_STB line is activated */ 2148d8ee5bSGeert Uytterhoeven can0-stb-hog { 2265d2bc88SBiju Das gpio-hog; 2365d2bc88SBiju Das gpios = <RZG2L_GPIO(42, 2) GPIO_ACTIVE_HIGH>; 2465d2bc88SBiju Das output-low; 2565d2bc88SBiju Das line-name = "can0_stb"; 2665d2bc88SBiju Das }; 2765d2bc88SBiju Das 2865d2bc88SBiju Das can1_pins: can1 { 2965d2bc88SBiju Das pinmux = <RZG2L_PORT_PINMUX(12, 1, 2)>, /* TX */ 3065d2bc88SBiju Das <RZG2L_PORT_PINMUX(13, 0, 2)>; /* RX */ 3165d2bc88SBiju Das }; 3265d2bc88SBiju Das 3365d2bc88SBiju Das /* SW8 should be at position 2->3 so that GPIO9_CAN1_STB line is activated */ 3448d8ee5bSGeert Uytterhoeven can1-stb-hog { 3565d2bc88SBiju Das gpio-hog; 3665d2bc88SBiju Das gpios = <RZG2L_GPIO(42, 3) GPIO_ACTIVE_HIGH>; 3765d2bc88SBiju Das output-low; 3865d2bc88SBiju Das line-name = "can1_stb"; 3965d2bc88SBiju Das }; 4065d2bc88SBiju Das 4165d2bc88SBiju Das i2c0_pins: i2c0 { 4265d2bc88SBiju Das pins = "RIIC0_SDA", "RIIC0_SCL"; 4365d2bc88SBiju Das input-enable; 4465d2bc88SBiju Das }; 4565d2bc88SBiju Das 4665d2bc88SBiju Das i2c1_pins: i2c1 { 4765d2bc88SBiju Das pins = "RIIC1_SDA", "RIIC1_SCL"; 4865d2bc88SBiju Das input-enable; 4965d2bc88SBiju Das }; 5065d2bc88SBiju Das 5165d2bc88SBiju Das i2c3_pins: i2c3 { 5265d2bc88SBiju Das pinmux = <RZG2L_PORT_PINMUX(18, 0, 3)>, /* SDA */ 5365d2bc88SBiju Das <RZG2L_PORT_PINMUX(18, 1, 3)>; /* SCL */ 5465d2bc88SBiju Das }; 5565d2bc88SBiju Das 5610ca61c6SBiju Das mtu3_pins: mtu3 { 5710ca61c6SBiju Das mtu3-ext-clk-input-pin { 5810ca61c6SBiju Das pinmux = <RZG2L_PORT_PINMUX(48, 0, 4)>, /* MTCLKA */ 5910ca61c6SBiju Das <RZG2L_PORT_PINMUX(48, 1, 4)>; /* MTCLKB */ 6010ca61c6SBiju Das }; 6110ca61c6SBiju Das 6210ca61c6SBiju Das mtu3-pwm { 6310ca61c6SBiju Das pinmux = <RZG2L_PORT_PINMUX(44, 0, 4)>, /* MTIOC3A */ 6410ca61c6SBiju Das <RZG2L_PORT_PINMUX(44, 1, 4)>, /* MTIOC3B */ 6510ca61c6SBiju Das <RZG2L_PORT_PINMUX(44, 2, 4)>, /* MTIOC3C */ 6610ca61c6SBiju Das <RZG2L_PORT_PINMUX(44, 3, 4)>; /* MTIOC3D */ 6710ca61c6SBiju Das }; 6810ca61c6SBiju Das 6910ca61c6SBiju Das#if MTU3_COUNTER_Z_PHASE_SIGNAL 7010ca61c6SBiju Das mtu3-zphase-clk { 7110ca61c6SBiju Das pinmux = <RZG2L_PORT_PINMUX(19, 0, 3)>; /* MTIOC1A */ 7210ca61c6SBiju Das }; 7310ca61c6SBiju Das#endif /* MTU3_COUNTER_Z_PHASE_SIGNAL */ 7410ca61c6SBiju Das }; 7510ca61c6SBiju Das 7665d2bc88SBiju Das scif0_pins: scif0 { 7765d2bc88SBiju Das pinmux = <RZG2L_PORT_PINMUX(38, 0, 1)>, /* TxD */ 7865d2bc88SBiju Das <RZG2L_PORT_PINMUX(38, 1, 1)>; /* RxD */ 7965d2bc88SBiju Das }; 8065d2bc88SBiju Das 8165d2bc88SBiju Das scif2_pins: scif2 { 8265d2bc88SBiju Das pinmux = <RZG2L_PORT_PINMUX(48, 0, 1)>, /* TxD */ 8365d2bc88SBiju Das <RZG2L_PORT_PINMUX(48, 1, 1)>, /* RxD */ 8465d2bc88SBiju Das <RZG2L_PORT_PINMUX(48, 3, 1)>, /* CTS# */ 8565d2bc88SBiju Das <RZG2L_PORT_PINMUX(48, 4, 1)>; /* RTS# */ 8665d2bc88SBiju Das }; 8765d2bc88SBiju Das 8865d2bc88SBiju Das sd1-pwr-en-hog { 8965d2bc88SBiju Das gpio-hog; 9065d2bc88SBiju Das gpios = <RZG2L_GPIO(39, 2) GPIO_ACTIVE_HIGH>; 9165d2bc88SBiju Das output-high; 9265d2bc88SBiju Das line-name = "sd1_pwr_en"; 9365d2bc88SBiju Das }; 9465d2bc88SBiju Das 9565d2bc88SBiju Das sdhi1_pins: sd1 { 9665d2bc88SBiju Das sd1_data { 9765d2bc88SBiju Das pins = "SD1_DATA0", "SD1_DATA1", "SD1_DATA2", "SD1_DATA3"; 9865d2bc88SBiju Das power-source = <3300>; 9965d2bc88SBiju Das }; 10065d2bc88SBiju Das 10165d2bc88SBiju Das sd1_ctrl { 10265d2bc88SBiju Das pins = "SD1_CLK", "SD1_CMD"; 10365d2bc88SBiju Das power-source = <3300>; 10465d2bc88SBiju Das }; 10565d2bc88SBiju Das 10665d2bc88SBiju Das sd1_mux { 10765d2bc88SBiju Das pinmux = <RZG2L_PORT_PINMUX(19, 0, 1)>; /* SD1_CD */ 10865d2bc88SBiju Das }; 10965d2bc88SBiju Das }; 11065d2bc88SBiju Das 11165d2bc88SBiju Das sdhi1_pins_uhs: sd1_uhs { 11265d2bc88SBiju Das sd1_data_uhs { 11365d2bc88SBiju Das pins = "SD1_DATA0", "SD1_DATA1", "SD1_DATA2", "SD1_DATA3"; 11465d2bc88SBiju Das power-source = <1800>; 11565d2bc88SBiju Das }; 11665d2bc88SBiju Das 11765d2bc88SBiju Das sd1_ctrl_uhs { 11865d2bc88SBiju Das pins = "SD1_CLK", "SD1_CMD"; 11965d2bc88SBiju Das power-source = <1800>; 12065d2bc88SBiju Das }; 12165d2bc88SBiju Das 12265d2bc88SBiju Das sd1_mux_uhs { 12365d2bc88SBiju Das pinmux = <RZG2L_PORT_PINMUX(19, 0, 1)>; /* SD1_CD */ 12465d2bc88SBiju Das }; 12565d2bc88SBiju Das }; 12665d2bc88SBiju Das 12765d2bc88SBiju Das sound_clk_pins: sound_clk { 12865d2bc88SBiju Das pins = "AUDIO_CLK1", "AUDIO_CLK2"; 12965d2bc88SBiju Das input-enable; 13065d2bc88SBiju Das }; 13165d2bc88SBiju Das 13265d2bc88SBiju Das spi1_pins: spi1 { 13365d2bc88SBiju Das pinmux = <RZG2L_PORT_PINMUX(44, 0, 1)>, /* CK */ 13465d2bc88SBiju Das <RZG2L_PORT_PINMUX(44, 1, 1)>, /* MOSI */ 13565d2bc88SBiju Das <RZG2L_PORT_PINMUX(44, 2, 1)>, /* MISO */ 13665d2bc88SBiju Das <RZG2L_PORT_PINMUX(44, 3, 1)>; /* SSL */ 13765d2bc88SBiju Das }; 13865d2bc88SBiju Das 13965d2bc88SBiju Das ssi0_pins: ssi0 { 14065d2bc88SBiju Das pinmux = <RZG2L_PORT_PINMUX(45, 0, 1)>, /* BCK */ 14165d2bc88SBiju Das <RZG2L_PORT_PINMUX(45, 1, 1)>, /* RCK */ 14265d2bc88SBiju Das <RZG2L_PORT_PINMUX(45, 2, 1)>, /* TXD */ 14365d2bc88SBiju Das <RZG2L_PORT_PINMUX(45, 3, 1)>; /* RXD */ 14465d2bc88SBiju Das }; 14565d2bc88SBiju Das 146*73573fdeSBiju Das ssi1_pins: ssi1 { 147*73573fdeSBiju Das pinmux = <RZG2L_PORT_PINMUX(46, 0, 1)>, /* BCK */ 148*73573fdeSBiju Das <RZG2L_PORT_PINMUX(46, 1, 1)>, /* RCK */ 149*73573fdeSBiju Das <RZG2L_PORT_PINMUX(46, 2, 1)>; /* TXD */ 150*73573fdeSBiju Das }; 151*73573fdeSBiju Das 15265d2bc88SBiju Das usb0_pins: usb0 { 15365d2bc88SBiju Das pinmux = <RZG2L_PORT_PINMUX(4, 0, 1)>, /* VBUS */ 15465d2bc88SBiju Das <RZG2L_PORT_PINMUX(5, 0, 1)>, /* OVC */ 15565d2bc88SBiju Das <RZG2L_PORT_PINMUX(5, 1, 1)>; /* OTG_ID */ 15665d2bc88SBiju Das }; 15765d2bc88SBiju Das 15865d2bc88SBiju Das usb1_pins: usb1 { 15965d2bc88SBiju Das pinmux = <RZG2L_PORT_PINMUX(42, 0, 1)>, /* VBUS */ 16065d2bc88SBiju Das <RZG2L_PORT_PINMUX(42, 1, 1)>; /* OVC */ 16165d2bc88SBiju Das }; 16265d2bc88SBiju Das}; 16365d2bc88SBiju Das 164