1// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2/* 3 * Device Tree Source for the RZ SMARC Carrier-II Board. 4 * 5 * Copyright (C) 2024 Renesas Electronics Corp. 6 */ 7 8/* 9 * Please set the switch position SW_OPT_MUX.1 on the carrier board and the 10 * corresponding macro SW_SDIO_M2E on the board DTS: 11 * 12 * SW_SDIO_M2E: 13 * 0 - SMARC SDIO signal is connected to uSD1 14 * 1 - SMARC SDIO signal is connected to M.2 Key E connector 15 * 16 * Please set the switch position SW_GPIO_CAN_PMOD on the carrier board and the 17 * corresponding macro SW_GPIO8_CAN0_STB/SW_GPIO8_CAN0_STB on the board DTS: 18 * 19 * SW_GPIO8_CAN0_STB: 20 * 0 - Connect to GPIO8 PMOD (default) 21 * 1 - Connect to CAN0 transceiver STB pin 22 * 23 * SW_GPIO9_CAN1_STB: 24 * 0 - Connect to GPIO9 PMOD (default) 25 * 1 - Connect to CAN1 transceiver STB pin 26 * 27 * GPIO keys are enabled by default. Use PMOD_GPIO macros to disable them 28 * if needed. 29 */ 30 31/ { 32 model = "Renesas RZ SMARC Carrier-II Board"; 33 compatible = "renesas,smarc2-evk"; 34 35 chosen { 36 bootargs = "ignore_loglevel"; 37 stdout-path = "serial3:115200n8"; 38 }; 39 40 aliases { 41 i2c0 = &i2c0; 42 serial3 = &scif0; 43 mmc1 = &sdhi1; 44 }; 45 46 can_transceiver0: can-phy0 { 47 compatible = "ti,tcan1042"; 48 #phy-cells = <0>; 49 max-bitrate = <8000000>; 50 status = "disabled"; 51 }; 52 53 can_transceiver1: can-phy1 { 54 compatible = "ti,tcan1042"; 55 #phy-cells = <0>; 56 max-bitrate = <8000000>; 57 status = "disabled"; 58 }; 59 60 keys: keys { 61 compatible = "gpio-keys"; 62 63 key-1 { 64 interrupts-extended = <&pinctrl KEY_1_GPIO IRQ_TYPE_EDGE_FALLING>; 65 linux,code = <KEY_1>; 66 label = "USER_SW1"; 67 wakeup-source; 68 debounce-interval = <20>; 69 }; 70 71 key-2 { 72 interrupts-extended = <&pinctrl KEY_2_GPIO IRQ_TYPE_EDGE_FALLING>; 73 linux,code = <KEY_2>; 74 label = "USER_SW2"; 75 wakeup-source; 76 debounce-interval = <20>; 77 }; 78 79 key-3 { 80 interrupts-extended = <&pinctrl KEY_3_GPIO IRQ_TYPE_EDGE_FALLING>; 81 linux,code = <KEY_3>; 82 label = "USER_SW3"; 83 wakeup-source; 84 debounce-interval = <20>; 85 }; 86 }; 87}; 88 89&canfd { 90 status = "okay"; 91}; 92 93&i2c0 { 94 status = "okay"; 95 clock-frequency = <400000>; 96}; 97 98&scif0 { 99 status = "okay"; 100}; 101 102&sdhi1 { 103 bus-width = <4>; 104 sd-uhs-sdr50; 105 sd-uhs-sdr104; 106 107 status = "okay"; 108}; 109