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