1// SPDX-License-Identifier: (GPL-2.0 or MIT) 2/* 3 * Device Tree Source for the Spider CPU board 4 * 5 * Copyright (C) 2021 Renesas Electronics Corp. 6 */ 7 8#include "r8a779f0.dtsi" 9 10/ { 11 model = "Renesas Spider CPU board"; 12 compatible = "renesas,spider-cpu", "renesas,r8a779f0"; 13 14 aliases { 15 serial0 = &hscif0; 16 serial1 = &scif0; 17 }; 18 19 chosen { 20 bootargs = "ignore_loglevel rw root=/dev/nfs ip=on"; 21 stdout-path = "serial0:1843200n8"; 22 }; 23 24 memory@48000000 { 25 device_type = "memory"; 26 /* first 128MB is reserved for secure area. */ 27 reg = <0x0 0x48000000 0x0 0x78000000>; 28 }; 29 30 memory@480000000 { 31 device_type = "memory"; 32 reg = <0x4 0x80000000 0x0 0x80000000>; 33 }; 34 35 reg_1p8v: regulator-1p8v { 36 compatible = "regulator-fixed"; 37 regulator-name = "fixed-1.8V"; 38 regulator-min-microvolt = <1800000>; 39 regulator-max-microvolt = <1800000>; 40 regulator-boot-on; 41 regulator-always-on; 42 }; 43 44 reg_3p3v: regulator-3p3v { 45 compatible = "regulator-fixed"; 46 regulator-name = "fixed-3.3V"; 47 regulator-min-microvolt = <3300000>; 48 regulator-max-microvolt = <3300000>; 49 regulator-boot-on; 50 regulator-always-on; 51 }; 52}; 53 54&extal_clk { 55 clock-frequency = <20000000>; 56}; 57 58&extalr_clk { 59 clock-frequency = <32768>; 60}; 61 62&hscif0 { 63 pinctrl-0 = <&hscif0_pins>; 64 pinctrl-names = "default"; 65 66 uart-has-rtscts; 67 status = "okay"; 68}; 69 70&i2c4 { 71 pinctrl-0 = <&i2c4_pins>; 72 pinctrl-names = "default"; 73 74 status = "okay"; 75 clock-frequency = <400000>; 76 77 eeprom@50 { 78 compatible = "rohm,br24g01", "atmel,24c01"; 79 label = "cpu-board"; 80 reg = <0x50>; 81 pagesize = <8>; 82 }; 83}; 84 85/* 86 * This board also has a microSD slot which we will not support upstream 87 * because we cannot directly switch voltages in software. 88 */ 89&mmc0 { 90 pinctrl-0 = <&mmc_pins>; 91 pinctrl-1 = <&mmc_pins>; 92 pinctrl-names = "default", "state_uhs"; 93 94 vmmc-supply = <®_3p3v>; 95 vqmmc-supply = <®_1p8v>; 96 mmc-hs200-1_8v; 97 mmc-hs400-1_8v; 98 bus-width = <8>; 99 no-sd; 100 no-sdio; 101 non-removable; 102 full-pwr-cycle-in-suspend; 103 status = "okay"; 104}; 105 106&pfc { 107 pinctrl-0 = <&scif_clk_pins>; 108 pinctrl-names = "default"; 109 110 hscif0_pins: hscif0 { 111 groups = "hscif0_data", "hscif0_ctrl"; 112 function = "hscif0"; 113 }; 114 115 i2c4_pins: i2c4 { 116 groups = "i2c4"; 117 function = "i2c4"; 118 }; 119 120 mmc_pins: mmc { 121 groups = "mmc_data8", "mmc_ctrl", "mmc_ds"; 122 function = "mmc"; 123 power-source = <1800>; 124 }; 125 126 scif0_pins: scif0 { 127 groups = "scif0_data", "scif0_ctrl"; 128 function = "scif0"; 129 }; 130 131 scif_clk_pins: scif_clk { 132 groups = "scif_clk"; 133 function = "scif_clk"; 134 }; 135}; 136 137&rwdt { 138 timeout-sec = <60>; 139 status = "okay"; 140}; 141 142&scif0 { 143 pinctrl-0 = <&scif0_pins>; 144 pinctrl-names = "default"; 145 146 uart-has-rtscts; 147 status = "okay"; 148}; 149 150&scif_clk { 151 clock-frequency = <24000000>; 152}; 153