Biju Das | c9a41f5 | 2017-08-15 11:54:19 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Device Tree Source for the iWave-RZG1E-G22M SODIMM 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 "r8a7745.dtsi" |
Fabrizio Castro | 599114e | 2017-09-13 18:05:36 +0100 | [diff] [blame] | 12 | #include <dt-bindings/gpio/gpio.h> |
Biju Das | c9a41f5 | 2017-08-15 11:54:19 +0100 | [diff] [blame] | 13 | |
| 14 | / { |
| 15 | compatible = "iwave,g22m", "renesas,r8a7745"; |
| 16 | |
| 17 | memory@40000000 { |
| 18 | device_type = "memory"; |
| 19 | reg = <0 0x40000000 0 0x20000000>; |
| 20 | }; |
Fabrizio Castro | 3350ed9 | 2017-08-17 18:31:43 +0100 | [diff] [blame] | 21 | |
| 22 | reg_3p3v: 3p3v { |
| 23 | compatible = "regulator-fixed"; |
| 24 | regulator-name = "3P3V"; |
| 25 | regulator-min-microvolt = <3300000>; |
| 26 | regulator-max-microvolt = <3300000>; |
| 27 | regulator-always-on; |
| 28 | regulator-boot-on; |
| 29 | }; |
Biju Das | c9a41f5 | 2017-08-15 11:54:19 +0100 | [diff] [blame] | 30 | }; |
| 31 | |
Fabrizio Castro | 7d16718 | 2018-01-11 20:59:39 +0000 | [diff] [blame] | 32 | &cmt0 { |
| 33 | status = "okay"; |
| 34 | }; |
| 35 | |
Biju Das | c9a41f5 | 2017-08-15 11:54:19 +0100 | [diff] [blame] | 36 | &extal_clk { |
| 37 | clock-frequency = <20000000>; |
| 38 | }; |
Fabrizio Castro | 3350ed9 | 2017-08-17 18:31:43 +0100 | [diff] [blame] | 39 | |
| 40 | &pfc { |
| 41 | mmcif0_pins: mmc { |
| 42 | groups = "mmc_data8", "mmc_ctrl"; |
| 43 | function = "mmc"; |
| 44 | }; |
Fabrizio Castro | a7b8f48 | 2017-08-22 19:22:46 +0100 | [diff] [blame] | 45 | |
Fabrizio Castro | cf1cc6f1 | 2017-09-13 18:05:41 +0100 | [diff] [blame] | 46 | qspi_pins: qspi { |
| 47 | groups = "qspi_ctrl", "qspi_data2"; |
| 48 | function = "qspi"; |
| 49 | }; |
| 50 | |
Fabrizio Castro | 599114e | 2017-09-13 18:05:36 +0100 | [diff] [blame] | 51 | sdhi1_pins: sd1 { |
| 52 | groups = "sdhi1_data4", "sdhi1_ctrl"; |
| 53 | function = "sdhi1"; |
| 54 | power-source = <3300>; |
| 55 | }; |
| 56 | |
Fabrizio Castro | a7b8f48 | 2017-08-22 19:22:46 +0100 | [diff] [blame] | 57 | i2c3_pins: i2c3 { |
| 58 | groups = "i2c3_b"; |
| 59 | function = "i2c3"; |
| 60 | }; |
Fabrizio Castro | 3350ed9 | 2017-08-17 18:31:43 +0100 | [diff] [blame] | 61 | }; |
| 62 | |
| 63 | &mmcif0 { |
| 64 | pinctrl-0 = <&mmcif0_pins>; |
| 65 | pinctrl-names = "default"; |
| 66 | |
| 67 | vmmc-supply = <®_3p3v>; |
| 68 | bus-width = <8>; |
| 69 | non-removable; |
| 70 | status = "okay"; |
| 71 | }; |
Fabrizio Castro | a7b8f48 | 2017-08-22 19:22:46 +0100 | [diff] [blame] | 72 | |
Fabrizio Castro | cf1cc6f1 | 2017-09-13 18:05:41 +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 | |
Fabrizio Castro | a8e2c37 | 2018-02-12 17:44:35 +0000 | [diff] [blame] | 94 | &rwdt { |
| 95 | timeout-sec = <60>; |
| 96 | status = "okay"; |
| 97 | }; |
| 98 | |
Fabrizio Castro | 599114e | 2017-09-13 18:05:36 +0100 | [diff] [blame] | 99 | &sdhi1 { |
| 100 | pinctrl-0 = <&sdhi1_pins>; |
| 101 | pinctrl-names = "default"; |
| 102 | |
| 103 | vmmc-supply = <®_3p3v>; |
| 104 | vqmmc-supply = <®_3p3v>; |
| 105 | cd-gpios = <&gpio3 31 GPIO_ACTIVE_LOW>; |
| 106 | status = "okay"; |
| 107 | }; |
| 108 | |
Fabrizio Castro | a7b8f48 | 2017-08-22 19:22:46 +0100 | [diff] [blame] | 109 | &i2c3 { |
| 110 | pinctrl-0 = <&i2c3_pins>; |
| 111 | pinctrl-names = "default"; |
| 112 | |
| 113 | status = "okay"; |
| 114 | clock-frequency = <400000>; |
| 115 | |
| 116 | rtc@68 { |
| 117 | compatible = "ti,bq32000"; |
| 118 | reg = <0x68>; |
| 119 | }; |
| 120 | }; |