1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Device Tree Source for the Falcon CPU board 4 * 5 * Copyright (C) 2020 Renesas Electronics Corp. 6 */ 7 8#include <dt-bindings/gpio/gpio.h> 9#include <dt-bindings/input/input.h> 10#include <dt-bindings/leds/common.h> 11 12#include "r8a779a0.dtsi" 13 14/ { 15 model = "Renesas Falcon CPU board"; 16 compatible = "renesas,falcon-cpu", "renesas,r8a779a0"; 17 18 aliases { 19 serial0 = &scif0; 20 }; 21 22 chosen { 23 stdout-path = "serial0:115200n8"; 24 }; 25 26 keys { 27 compatible = "gpio-keys"; 28 29 pinctrl-0 = <&keys_pins>; 30 pinctrl-names = "default"; 31 32 key-1 { 33 gpios = <&gpio6 18 GPIO_ACTIVE_LOW>; 34 linux,code = <KEY_1>; 35 label = "SW47"; 36 wakeup-source; 37 debounce-interval = <20>; 38 }; 39 40 key-2 { 41 gpios = <&gpio6 19 GPIO_ACTIVE_LOW>; 42 linux,code = <KEY_2>; 43 label = "SW48"; 44 wakeup-source; 45 debounce-interval = <20>; 46 }; 47 48 key-3 { 49 gpios = <&gpio6 20 GPIO_ACTIVE_LOW>; 50 linux,code = <KEY_3>; 51 label = "SW49"; 52 wakeup-source; 53 debounce-interval = <20>; 54 }; 55 }; 56 57 leds { 58 compatible = "gpio-leds"; 59 60 led-1 { 61 gpios = <&gpio4 18 GPIO_ACTIVE_HIGH>; 62 color = <LED_COLOR_ID_GREEN>; 63 function = LED_FUNCTION_INDICATOR; 64 function-enumerator = <1>; 65 }; 66 led-2 { 67 gpios = <&gpio4 19 GPIO_ACTIVE_HIGH>; 68 color = <LED_COLOR_ID_GREEN>; 69 function = LED_FUNCTION_INDICATOR; 70 function-enumerator = <2>; 71 }; 72 led-3 { 73 gpios = <&gpio4 20 GPIO_ACTIVE_HIGH>; 74 color = <LED_COLOR_ID_GREEN>; 75 function = LED_FUNCTION_INDICATOR; 76 function-enumerator = <3>; 77 }; 78 }; 79 80 memory@48000000 { 81 device_type = "memory"; 82 /* first 128MB is reserved for secure area. */ 83 reg = <0x0 0x48000000 0x0 0x78000000>; 84 }; 85 86 memory@500000000 { 87 device_type = "memory"; 88 reg = <0x5 0x00000000 0x0 0x80000000>; 89 }; 90 91 memory@600000000 { 92 device_type = "memory"; 93 reg = <0x6 0x00000000 0x0 0x80000000>; 94 }; 95 96 memory@700000000 { 97 device_type = "memory"; 98 reg = <0x7 0x00000000 0x0 0x80000000>; 99 }; 100 101 reg_1p8v: regulator-1p8v { 102 compatible = "regulator-fixed"; 103 regulator-name = "fixed-1.8V"; 104 regulator-min-microvolt = <1800000>; 105 regulator-max-microvolt = <1800000>; 106 regulator-boot-on; 107 regulator-always-on; 108 }; 109 110 reg_3p3v: regulator-3p3v { 111 compatible = "regulator-fixed"; 112 regulator-name = "fixed-3.3V"; 113 regulator-min-microvolt = <3300000>; 114 regulator-max-microvolt = <3300000>; 115 regulator-boot-on; 116 regulator-always-on; 117 }; 118}; 119 120&extal_clk { 121 clock-frequency = <16666666>; 122}; 123 124&extalr_clk { 125 clock-frequency = <32768>; 126}; 127 128&i2c0 { 129 pinctrl-0 = <&i2c0_pins>; 130 pinctrl-names = "default"; 131 132 status = "okay"; 133 clock-frequency = <400000>; 134 135 eeprom@50 { 136 compatible = "rohm,br24g01", "atmel,24c01"; 137 label = "cpu-board"; 138 reg = <0x50>; 139 pagesize = <8>; 140 }; 141}; 142 143&i2c1 { 144 pinctrl-0 = <&i2c1_pins>; 145 pinctrl-names = "default"; 146 147 status = "okay"; 148 clock-frequency = <400000>; 149}; 150 151&i2c6 { 152 pinctrl-0 = <&i2c6_pins>; 153 pinctrl-names = "default"; 154 155 status = "okay"; 156 clock-frequency = <400000>; 157}; 158 159&mmc0 { 160 pinctrl-0 = <&mmc_pins>; 161 pinctrl-1 = <&mmc_pins>; 162 pinctrl-names = "default", "state_uhs"; 163 164 vmmc-supply = <®_3p3v>; 165 vqmmc-supply = <®_1p8v>; 166 mmc-hs200-1_8v; 167 mmc-hs400-1_8v; 168 bus-width = <8>; 169 no-sd; 170 no-sdio; 171 non-removable; 172 full-pwr-cycle-in-suspend; 173 status = "okay"; 174}; 175 176&pfc { 177 pinctrl-0 = <&scif_clk_pins>; 178 pinctrl-names = "default"; 179 180 i2c0_pins: i2c0 { 181 groups = "i2c0"; 182 function = "i2c0"; 183 }; 184 185 i2c1_pins: i2c1 { 186 groups = "i2c1"; 187 function = "i2c1"; 188 }; 189 190 i2c6_pins: i2c6 { 191 groups = "i2c6"; 192 function = "i2c6"; 193 }; 194 195 keys_pins: keys { 196 pins = "GP_6_18", "GP_6_19", "GP_6_20"; 197 bias-pull-up; 198 }; 199 200 mmc_pins: mmc { 201 groups = "mmc_data8", "mmc_ctrl", "mmc_ds"; 202 function = "mmc"; 203 power-source = <1800>; 204 }; 205 206 qspi0_pins: qspi0 { 207 groups = "qspi0_ctrl", "qspi0_data4"; 208 function = "qspi0"; 209 }; 210 211 scif0_pins: scif0 { 212 groups = "scif0_data", "scif0_ctrl"; 213 function = "scif0"; 214 }; 215 216 scif_clk_pins: scif_clk { 217 groups = "scif_clk"; 218 function = "scif_clk"; 219 }; 220}; 221 222&rpc { 223 pinctrl-0 = <&qspi0_pins>; 224 pinctrl-names = "default"; 225 226 status = "okay"; 227 228 flash@0 { 229 compatible = "spansion,s25fs512s", "jedec,spi-nor"; 230 reg = <0>; 231 spi-max-frequency = <40000000>; 232 spi-rx-bus-width = <4>; 233 234 partitions { 235 compatible = "fixed-partitions"; 236 #address-cells = <1>; 237 #size-cells = <1>; 238 239 boot@0 { 240 reg = <0x0 0xcc0000>; 241 read-only; 242 }; 243 user@cc0000 { 244 reg = <0xcc0000 0x3340000>; 245 }; 246 }; 247 }; 248}; 249 250&rwdt { 251 timeout-sec = <60>; 252 status = "okay"; 253}; 254 255&scif0 { 256 pinctrl-0 = <&scif0_pins>; 257 pinctrl-names = "default"; 258 259 uart-has-rtscts; 260 status = "okay"; 261}; 262 263&scif_clk { 264 clock-frequency = <24000000>; 265}; 266