Magnus Damm | 3cc828f | 2013-03-29 17:49:37 +0900 | [diff] [blame] | 1 | /* |
| 2 | * Device Tree Source for the Lager board |
| 3 | * |
| 4 | * Copyright (C) 2013 Renesas Solutions 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 | /dts-v1/; |
Laurent Pinchart | 31c46cb | 2013-11-09 13:23:53 +0100 | [diff] [blame] | 12 | #include "r8a7790.dtsi" |
Laurent Pinchart | 39fa511 | 2013-12-11 15:13:47 +0100 | [diff] [blame] | 13 | #include <dt-bindings/gpio/gpio.h> |
Magnus Damm | 3cc828f | 2013-03-29 17:49:37 +0900 | [diff] [blame] | 14 | |
| 15 | / { |
| 16 | model = "Lager"; |
| 17 | compatible = "renesas,lager", "renesas,r8a7790"; |
| 18 | |
| 19 | chosen { |
Simon Horman | dcbbbaf | 2013-08-06 16:50:11 +0900 | [diff] [blame] | 20 | bootargs = "console=ttySC6,115200 ignore_loglevel rw root=/dev/nfs ip=dhcp"; |
Magnus Damm | 3cc828f | 2013-03-29 17:49:37 +0900 | [diff] [blame] | 21 | }; |
| 22 | |
| 23 | memory@40000000 { |
| 24 | device_type = "memory"; |
| 25 | reg = <0 0x40000000 0 0x80000000>; |
| 26 | }; |
| 27 | |
Magnus Damm | 62bc32a | 2013-10-31 12:21:41 +0900 | [diff] [blame] | 28 | memory@180000000 { |
| 29 | device_type = "memory"; |
| 30 | reg = <1 0x80000000 0 0x80000000>; |
| 31 | }; |
| 32 | |
Magnus Damm | 3cc828f | 2013-03-29 17:49:37 +0900 | [diff] [blame] | 33 | lbsc { |
| 34 | #address-cells = <1>; |
| 35 | #size-cells = <1>; |
| 36 | }; |
Laurent Pinchart | 39fa511 | 2013-12-11 15:13:47 +0100 | [diff] [blame] | 37 | |
| 38 | leds { |
| 39 | compatible = "gpio-leds"; |
| 40 | led6 { |
| 41 | gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>; |
| 42 | }; |
| 43 | led7 { |
| 44 | gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>; |
| 45 | }; |
| 46 | led8 { |
| 47 | gpios = <&gpio5 17 GPIO_ACTIVE_HIGH>; |
| 48 | }; |
| 49 | }; |
| 50 | |
| 51 | fixedregulator3v3: fixedregulator@0 { |
| 52 | compatible = "regulator-fixed"; |
| 53 | regulator-name = "fixed-3.3V"; |
| 54 | regulator-min-microvolt = <3300000>; |
| 55 | regulator-max-microvolt = <3300000>; |
| 56 | regulator-boot-on; |
| 57 | regulator-always-on; |
| 58 | }; |
Kuninori Morimoto | c611994 | 2014-02-12 21:43:19 -0800 | [diff] [blame^] | 59 | |
| 60 | vcc_sdhi0: regulator@1 { |
| 61 | compatible = "regulator-fixed"; |
| 62 | |
| 63 | regulator-name = "SDHI0 Vcc"; |
| 64 | regulator-min-microvolt = <3300000>; |
| 65 | regulator-max-microvolt = <3300000>; |
| 66 | |
| 67 | gpio = <&gpio5 24 GPIO_ACTIVE_HIGH>; |
| 68 | enable-active-high; |
| 69 | }; |
| 70 | |
| 71 | vccq_sdhi0: regulator@2 { |
| 72 | compatible = "regulator-gpio"; |
| 73 | |
| 74 | regulator-name = "SDHI0 VccQ"; |
| 75 | regulator-min-microvolt = <1800000>; |
| 76 | regulator-max-microvolt = <3300000>; |
| 77 | |
| 78 | gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>; |
| 79 | gpios-states = <1>; |
| 80 | states = <3300000 1 |
| 81 | 1800000 0>; |
| 82 | }; |
| 83 | |
| 84 | vcc_sdhi2: regulator@3 { |
| 85 | compatible = "regulator-fixed"; |
| 86 | |
| 87 | regulator-name = "SDHI2 Vcc"; |
| 88 | regulator-min-microvolt = <3300000>; |
| 89 | regulator-max-microvolt = <3300000>; |
| 90 | |
| 91 | gpio = <&gpio5 25 GPIO_ACTIVE_HIGH>; |
| 92 | enable-active-high; |
| 93 | }; |
| 94 | |
| 95 | vccq_sdhi2: regulator@4 { |
| 96 | compatible = "regulator-gpio"; |
| 97 | |
| 98 | regulator-name = "SDHI2 VccQ"; |
| 99 | regulator-min-microvolt = <1800000>; |
| 100 | regulator-max-microvolt = <3300000>; |
| 101 | |
| 102 | gpios = <&gpio5 30 GPIO_ACTIVE_HIGH>; |
| 103 | gpios-states = <1>; |
| 104 | states = <3300000 1 |
| 105 | 1800000 0>; |
| 106 | }; |
Laurent Pinchart | 39fa511 | 2013-12-11 15:13:47 +0100 | [diff] [blame] | 107 | }; |
| 108 | |
Laurent Pinchart | 62e4305 | 2013-12-11 15:13:49 +0100 | [diff] [blame] | 109 | &extal_clk { |
| 110 | clock-frequency = <20000000>; |
| 111 | }; |
| 112 | |
Laurent Pinchart | 39fa511 | 2013-12-11 15:13:47 +0100 | [diff] [blame] | 113 | &pfc { |
| 114 | pinctrl-0 = <&scif0_pins &scif1_pins>; |
| 115 | pinctrl-names = "default"; |
| 116 | |
| 117 | scif0_pins: serial0 { |
| 118 | renesas,groups = "scif0_data"; |
| 119 | renesas,function = "scif0"; |
| 120 | }; |
| 121 | |
| 122 | scif1_pins: serial1 { |
| 123 | renesas,groups = "scif1_data"; |
| 124 | renesas,function = "scif1"; |
| 125 | }; |
| 126 | |
Kuninori Morimoto | c611994 | 2014-02-12 21:43:19 -0800 | [diff] [blame^] | 127 | sdhi0_pins: sd0 { |
| 128 | renesas,gpios = "sdhi0_data4", "sdhi0_ctrl"; |
| 129 | renesas,function = "sdhi0"; |
| 130 | }; |
| 131 | |
| 132 | sdhi2_pins: sd2 { |
| 133 | renesas,gpios = "sdhi2_data4", "sdhi2_ctrl"; |
| 134 | renesas,function = "sdhi2"; |
| 135 | }; |
| 136 | |
Laurent Pinchart | 39fa511 | 2013-12-11 15:13:47 +0100 | [diff] [blame] | 137 | mmc1_pins: mmc1 { |
| 138 | renesas,groups = "mmc1_data8", "mmc1_ctrl"; |
| 139 | renesas,function = "mmc1"; |
| 140 | }; |
Geert Uytterhoeven | 9fe7c4f | 2014-02-10 11:47:30 +0100 | [diff] [blame] | 141 | |
| 142 | qspi_pins: spi { |
| 143 | renesas,groups = "qspi_ctrl", "qspi_data4"; |
| 144 | renesas,function = "qspi"; |
| 145 | }; |
Laurent Pinchart | 39fa511 | 2013-12-11 15:13:47 +0100 | [diff] [blame] | 146 | }; |
| 147 | |
| 148 | &mmcif1 { |
| 149 | pinctrl-0 = <&mmc1_pins>; |
| 150 | pinctrl-names = "default"; |
| 151 | |
| 152 | vmmc-supply = <&fixedregulator3v3>; |
| 153 | bus-width = <8>; |
| 154 | non-removable; |
| 155 | status = "okay"; |
Magnus Damm | 3cc828f | 2013-03-29 17:49:37 +0900 | [diff] [blame] | 156 | }; |
Valentine Barshak | c6181b9 | 2014-01-14 21:05:31 +0400 | [diff] [blame] | 157 | |
| 158 | &sata1 { |
| 159 | status = "okay"; |
| 160 | }; |
Geert Uytterhoeven | 9fe7c4f | 2014-02-10 11:47:30 +0100 | [diff] [blame] | 161 | |
| 162 | &spi { |
| 163 | pinctrl-0 = <&qspi_pins>; |
| 164 | pinctrl-names = "default"; |
| 165 | |
| 166 | status = "okay"; |
| 167 | |
| 168 | flash: flash@0 { |
| 169 | #address-cells = <1>; |
| 170 | #size-cells = <1>; |
| 171 | compatible = "spansion,s25fl512s"; |
| 172 | reg = <0>; |
| 173 | spi-max-frequency = <30000000>; |
| 174 | m25p,fast-read; |
| 175 | |
| 176 | partition@0 { |
| 177 | label = "loader"; |
| 178 | reg = <0x00000000 0x00040000>; |
| 179 | read-only; |
| 180 | }; |
| 181 | partition@40000 { |
| 182 | label = "user"; |
| 183 | reg = <0x00040000 0x00400000>; |
| 184 | read-only; |
| 185 | }; |
| 186 | partition@440000 { |
| 187 | label = "flash"; |
| 188 | reg = <0x00440000 0x03bc0000>; |
| 189 | }; |
| 190 | }; |
| 191 | }; |
Kuninori Morimoto | c611994 | 2014-02-12 21:43:19 -0800 | [diff] [blame^] | 192 | |
| 193 | &sdhi0 { |
| 194 | pinctrl-0 = <&sdhi0_pins>; |
| 195 | pinctrl-names = "default"; |
| 196 | |
| 197 | vmmc-supply = <&vcc_sdhi0>; |
| 198 | vqmmc-supply = <&vccq_sdhi0>; |
| 199 | cd-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>; |
| 200 | status = "okay"; |
| 201 | }; |
| 202 | |
| 203 | &sdhi2 { |
| 204 | pinctrl-0 = <&sdhi2_pins>; |
| 205 | pinctrl-names = "default"; |
| 206 | |
| 207 | vmmc-supply = <&vcc_sdhi2>; |
| 208 | vqmmc-supply = <&vccq_sdhi2>; |
| 209 | cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>; |
| 210 | status = "okay"; |
| 211 | }; |