1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) !! 1 // SPDX-License-Identifier: (GPL-2.0 or MIT) 2 /* 2 /* 3 * Device Tree Source for the Spider CPU board 3 * Device Tree Source for the Spider CPU board 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> << 9 #include <dt-bindings/leds/common.h> << 10 << 11 #include "r8a779f0.dtsi" 8 #include "r8a779f0.dtsi" 12 9 13 / { 10 / { 14 model = "Renesas Spider CPU board"; 11 model = "Renesas Spider CPU board"; 15 compatible = "renesas,spider-cpu", "re 12 compatible = "renesas,spider-cpu", "renesas,r8a779f0"; 16 13 17 aliases { 14 aliases { 18 i2c0 = &i2c0; << 19 i2c1 = &i2c1; << 20 i2c2 = &i2c2; << 21 i2c3 = &i2c3; << 22 i2c4 = &i2c4; << 23 i2c5 = &i2c5; << 24 serial0 = &hscif0; 15 serial0 = &hscif0; 25 serial1 = &scif0; 16 serial1 = &scif0; 26 }; 17 }; 27 18 28 chosen { 19 chosen { 29 bootargs = "ignore_loglevel rw 20 bootargs = "ignore_loglevel rw root=/dev/nfs ip=on"; 30 stdout-path = "serial0:1843200 21 stdout-path = "serial0:1843200n8"; 31 }; 22 }; 32 23 33 leds { << 34 compatible = "gpio-leds"; << 35 << 36 led-7 { << 37 gpios = <&gpio0 11 GPI << 38 color = <LED_COLOR_ID_ << 39 function = LED_FUNCTIO << 40 function-enumerator = << 41 }; << 42 << 43 led-8 { << 44 gpios = <&gpio0 14 GPI << 45 color = <LED_COLOR_ID_ << 46 function = LED_FUNCTIO << 47 function-enumerator = << 48 }; << 49 }; << 50 << 51 memory@48000000 { 24 memory@48000000 { 52 device_type = "memory"; 25 device_type = "memory"; 53 /* first 128MB is reserved for 26 /* first 128MB is reserved for secure area. */ 54 reg = <0x0 0x48000000 0x0 0x78 27 reg = <0x0 0x48000000 0x0 0x78000000>; 55 }; 28 }; 56 29 57 memory@480000000 { 30 memory@480000000 { 58 device_type = "memory"; 31 device_type = "memory"; 59 reg = <0x4 0x80000000 0x0 0x80 32 reg = <0x4 0x80000000 0x0 0x80000000>; 60 }; 33 }; 61 34 62 rc21012_pci: clk-rc21012-pci { << 63 compatible = "fixed-clock"; << 64 clock-frequency = <100000000>; << 65 #clock-cells = <0>; << 66 }; << 67 << 68 rc21012_ufs: clk-rc21012-ufs { << 69 compatible = "fixed-clock"; << 70 clock-frequency = <38400000>; << 71 #clock-cells = <0>; << 72 }; << 73 << 74 reg_1p8v: regulator-1p8v { 35 reg_1p8v: regulator-1p8v { 75 compatible = "regulator-fixed" 36 compatible = "regulator-fixed"; 76 regulator-name = "fixed-1.8V"; 37 regulator-name = "fixed-1.8V"; 77 regulator-min-microvolt = <180 38 regulator-min-microvolt = <1800000>; 78 regulator-max-microvolt = <180 39 regulator-max-microvolt = <1800000>; 79 regulator-boot-on; 40 regulator-boot-on; 80 regulator-always-on; 41 regulator-always-on; 81 }; 42 }; 82 43 83 reg_3p3v: regulator-3p3v { 44 reg_3p3v: regulator-3p3v { 84 compatible = "regulator-fixed" 45 compatible = "regulator-fixed"; 85 regulator-name = "fixed-3.3V"; 46 regulator-name = "fixed-3.3V"; 86 regulator-min-microvolt = <330 47 regulator-min-microvolt = <3300000>; 87 regulator-max-microvolt = <330 48 regulator-max-microvolt = <3300000>; 88 regulator-boot-on; 49 regulator-boot-on; 89 regulator-always-on; 50 regulator-always-on; 90 }; 51 }; 91 }; 52 }; 92 53 93 &extal_clk { 54 &extal_clk { 94 clock-frequency = <20000000>; 55 clock-frequency = <20000000>; 95 }; 56 }; 96 57 97 &extalr_clk { 58 &extalr_clk { 98 clock-frequency = <32768>; 59 clock-frequency = <32768>; 99 }; 60 }; 100 61 101 &hscif0 { 62 &hscif0 { 102 pinctrl-0 = <&hscif0_pins>; 63 pinctrl-0 = <&hscif0_pins>; 103 pinctrl-names = "default"; 64 pinctrl-names = "default"; 104 65 105 uart-has-rtscts; 66 uart-has-rtscts; 106 status = "okay"; 67 status = "okay"; 107 }; 68 }; 108 69 109 &i2c0 { << 110 pinctrl-0 = <&i2c0_pins>; << 111 pinctrl-names = "default"; << 112 << 113 status = "okay"; << 114 clock-frequency = <400000>; << 115 << 116 gpio_exp_20: gpio@20 { << 117 compatible = "ti,tca9554"; << 118 reg = <0x20>; << 119 gpio-controller; << 120 #gpio-cells = <2>; << 121 << 122 rc21012-gpio2-hog { << 123 gpio-hog; << 124 gpios = <5 GPIO_ACTIVE << 125 output-high; << 126 }; << 127 }; << 128 }; << 129 << 130 &i2c4 { 70 &i2c4 { 131 pinctrl-0 = <&i2c4_pins>; 71 pinctrl-0 = <&i2c4_pins>; 132 pinctrl-names = "default"; 72 pinctrl-names = "default"; 133 73 134 status = "okay"; 74 status = "okay"; 135 clock-frequency = <400000>; 75 clock-frequency = <400000>; 136 76 137 eeprom@50 { 77 eeprom@50 { 138 compatible = "rohm,br24g01", " 78 compatible = "rohm,br24g01", "atmel,24c01"; 139 label = "cpu-board"; 79 label = "cpu-board"; 140 reg = <0x50>; 80 reg = <0x50>; 141 pagesize = <8>; 81 pagesize = <8>; 142 }; 82 }; 143 }; 83 }; 144 84 145 /* 85 /* 146 * This board also has a microSD slot which we 86 * This board also has a microSD slot which we will not support upstream 147 * because we cannot directly switch voltages 87 * because we cannot directly switch voltages in software. 148 */ 88 */ 149 &mmc0 { 89 &mmc0 { 150 pinctrl-0 = <&mmc_pins>; 90 pinctrl-0 = <&mmc_pins>; 151 pinctrl-1 = <&mmc_pins>; 91 pinctrl-1 = <&mmc_pins>; 152 pinctrl-names = "default", "state_uhs" 92 pinctrl-names = "default", "state_uhs"; 153 93 154 vmmc-supply = <®_3p3v>; 94 vmmc-supply = <®_3p3v>; 155 vqmmc-supply = <®_1p8v>; 95 vqmmc-supply = <®_1p8v>; 156 mmc-hs200-1_8v; 96 mmc-hs200-1_8v; 157 mmc-hs400-1_8v; 97 mmc-hs400-1_8v; 158 bus-width = <8>; 98 bus-width = <8>; 159 no-sd; 99 no-sd; 160 no-sdio; 100 no-sdio; 161 non-removable; 101 non-removable; 162 full-pwr-cycle-in-suspend; 102 full-pwr-cycle-in-suspend; 163 status = "okay"; 103 status = "okay"; 164 }; 104 }; 165 105 166 &pcie0_clkref { << 167 compatible = "gpio-gate-clock"; << 168 clocks = <&rc21012_pci>; << 169 enable-gpios = <&gpio2 15 GPIO_ACTIVE_ << 170 /delete-property/ clock-frequency; << 171 }; << 172 << 173 &pciec0 { << 174 reset-gpio = <&gpio_exp_20 0 GPIO_ACTI << 175 status = "okay"; << 176 }; << 177 << 178 &pfc { 106 &pfc { 179 pinctrl-0 = <&scif_clk_pins>; 107 pinctrl-0 = <&scif_clk_pins>; 180 pinctrl-names = "default"; 108 pinctrl-names = "default"; 181 109 182 hscif0_pins: hscif0 { 110 hscif0_pins: hscif0 { 183 groups = "hscif0_data", "hscif 111 groups = "hscif0_data", "hscif0_ctrl"; 184 function = "hscif0"; 112 function = "hscif0"; 185 }; 113 }; 186 114 187 i2c0_pins: i2c0 { << 188 groups = "i2c0"; << 189 function = "i2c0"; << 190 }; << 191 << 192 i2c4_pins: i2c4 { 115 i2c4_pins: i2c4 { 193 groups = "i2c4"; 116 groups = "i2c4"; 194 function = "i2c4"; 117 function = "i2c4"; 195 }; 118 }; 196 119 197 mmc_pins: mmc { 120 mmc_pins: mmc { 198 groups = "mmc_data8", "mmc_ctr 121 groups = "mmc_data8", "mmc_ctrl", "mmc_ds"; 199 function = "mmc"; 122 function = "mmc"; 200 power-source = <1800>; 123 power-source = <1800>; 201 }; 124 }; 202 125 203 scif0_pins: scif0 { 126 scif0_pins: scif0 { 204 groups = "scif0_data", "scif0_ 127 groups = "scif0_data", "scif0_ctrl"; 205 function = "scif0"; 128 function = "scif0"; 206 }; 129 }; 207 130 208 scif_clk_pins: scif_clk { 131 scif_clk_pins: scif_clk { 209 groups = "scif_clk"; 132 groups = "scif_clk"; 210 function = "scif_clk"; 133 function = "scif_clk"; 211 }; 134 }; 212 }; 135 }; 213 136 214 &rwdt { 137 &rwdt { 215 timeout-sec = <60>; 138 timeout-sec = <60>; 216 status = "okay"; 139 status = "okay"; 217 }; 140 }; 218 141 219 &scif0 { 142 &scif0 { 220 pinctrl-0 = <&scif0_pins>; 143 pinctrl-0 = <&scif0_pins>; 221 pinctrl-names = "default"; 144 pinctrl-names = "default"; 222 145 223 uart-has-rtscts; 146 uart-has-rtscts; 224 status = "okay"; 147 status = "okay"; 225 }; 148 }; 226 149 227 &scif_clk { 150 &scif_clk { 228 clock-frequency = <24000000>; 151 clock-frequency = <24000000>; 229 }; << 230 << 231 &ufs { << 232 status = "okay"; << 233 }; << 234 << 235 &ufs30_clk { << 236 compatible = "gpio-gate-clock"; << 237 clocks = <&rc21012_ufs>; << 238 enable-gpios = <&gpio_exp_20 4 GPIO_AC << 239 /delete-property/ clock-frequency; << 240 }; 152 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.