Biju Das | aabf13b | 2017-06-06 16:10:17 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Device Tree Source for the iWave-RZG1M-20M Qseven SOM |
| 3 | * |
| 4 | * Copyright (C) 2017 Renesas Electronics Corp. |
| 5 | * |
| 6 | * This file is licensed under the terms of the GNU General Public License |
| 7 | * version 2. This program is licensed "as is" without any warranty of any |
| 8 | * kind, whether express or implied. |
| 9 | */ |
| 10 | |
| 11 | #include "r8a7743.dtsi" |
Biju Das | e75e71e | 2017-08-14 12:49:48 +0100 | [diff] [blame] | 12 | #include <dt-bindings/gpio/gpio.h> |
Biju Das | aabf13b | 2017-06-06 16:10:17 +0100 | [diff] [blame] | 13 | |
| 14 | / { |
| 15 | compatible = "iwave,g20m", "renesas,r8a7743"; |
| 16 | |
| 17 | memory@40000000 { |
| 18 | device_type = "memory"; |
| 19 | reg = <0 0x40000000 0 0x20000000>; |
| 20 | }; |
| 21 | |
| 22 | memory@200000000 { |
| 23 | device_type = "memory"; |
| 24 | reg = <2 0x00000000 0 0x20000000>; |
| 25 | }; |
Chris Paterson | a03633a | 2017-07-13 16:39:00 +0100 | [diff] [blame] | 26 | |
| 27 | reg_3p3v: 3p3v { |
| 28 | compatible = "regulator-fixed"; |
| 29 | regulator-name = "3P3V"; |
| 30 | regulator-min-microvolt = <3300000>; |
| 31 | regulator-max-microvolt = <3300000>; |
| 32 | regulator-always-on; |
| 33 | regulator-boot-on; |
| 34 | }; |
Biju Das | aabf13b | 2017-06-06 16:10:17 +0100 | [diff] [blame] | 35 | }; |
| 36 | |
Fabrizio Castro | cbeb319 | 2018-01-11 20:59:38 +0000 | [diff] [blame] | 37 | &cmt0 { |
| 38 | status = "okay"; |
| 39 | }; |
| 40 | |
Biju Das | aabf13b | 2017-06-06 16:10:17 +0100 | [diff] [blame] | 41 | &extal_clk { |
| 42 | clock-frequency = <20000000>; |
| 43 | }; |
Chris Paterson | a03633a | 2017-07-13 16:39:00 +0100 | [diff] [blame] | 44 | |
| 45 | &pfc { |
| 46 | mmcif0_pins: mmc { |
| 47 | groups = "mmc_data8_b", "mmc_ctrl"; |
| 48 | function = "mmc"; |
| 49 | }; |
Biju Das | e75e71e | 2017-08-14 12:49:48 +0100 | [diff] [blame] | 50 | |
Fabrizio Castro | 781e923 | 2017-09-13 18:05:39 +0100 | [diff] [blame] | 51 | qspi_pins: qspi { |
| 52 | groups = "qspi_ctrl", "qspi_data2"; |
| 53 | function = "qspi"; |
| 54 | }; |
| 55 | |
Biju Das | e75e71e | 2017-08-14 12:49:48 +0100 | [diff] [blame] | 56 | sdhi0_pins: sd0 { |
| 57 | groups = "sdhi0_data4", "sdhi0_ctrl"; |
| 58 | function = "sdhi0"; |
| 59 | power-source = <3300>; |
| 60 | }; |
Chris Paterson | a03633a | 2017-07-13 16:39:00 +0100 | [diff] [blame] | 61 | }; |
| 62 | |
| 63 | &mmcif0 { |
Geert Uytterhoeven | bf38b9a | 2017-07-17 14:06:37 +0200 | [diff] [blame] | 64 | pinctrl-0 = <&mmcif0_pins>; |
| 65 | pinctrl-names = "default"; |
Chris Paterson | a03633a | 2017-07-13 16:39:00 +0100 | [diff] [blame] | 66 | |
Geert Uytterhoeven | bf38b9a | 2017-07-17 14:06:37 +0200 | [diff] [blame] | 67 | vmmc-supply = <®_3p3v>; |
| 68 | bus-width = <8>; |
| 69 | non-removable; |
| 70 | status = "okay"; |
Chris Paterson | a03633a | 2017-07-13 16:39:00 +0100 | [diff] [blame] | 71 | }; |
Biju Das | e75e71e | 2017-08-14 12:49:48 +0100 | [diff] [blame] | 72 | |
Fabrizio Castro | 781e923 | 2017-09-13 18:05:39 +0100 | [diff] [blame] | 73 | &qspi { |
| 74 | pinctrl-0 = <&qspi_pins>; |
| 75 | pinctrl-names = "default"; |
| 76 | |
| 77 | status = "okay"; |
| 78 | |
| 79 | /* WARNING - This device contains the bootloader. Handle with care. */ |
| 80 | flash: flash@0 { |
| 81 | #address-cells = <1>; |
| 82 | #size-cells = <1>; |
| 83 | compatible = "sst,sst25vf016b", "jedec,spi-nor"; |
| 84 | reg = <0>; |
| 85 | spi-max-frequency = <50000000>; |
| 86 | spi-tx-bus-width = <1>; |
| 87 | spi-rx-bus-width = <1>; |
| 88 | m25p,fast-read; |
| 89 | spi-cpol; |
| 90 | spi-cpha; |
| 91 | }; |
| 92 | }; |
| 93 | |
Biju Das | e75e71e | 2017-08-14 12:49:48 +0100 | [diff] [blame] | 94 | &sdhi0 { |
| 95 | pinctrl-0 = <&sdhi0_pins>; |
| 96 | pinctrl-names = "default"; |
| 97 | |
| 98 | vmmc-supply = <®_3p3v>; |
| 99 | vqmmc-supply = <®_3p3v>; |
| 100 | cd-gpios = <&gpio7 11 GPIO_ACTIVE_LOW>; |
| 101 | status = "okay"; |
| 102 | }; |