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