Guennadi Liakhovetski | 69f3666 | 2013-07-08 18:04:57 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Device Tree Source for the APE6EVM 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 "r8a73a4.dtsi" |
Guennadi Liakhovetski | dbffb5a | 2013-08-01 09:41:21 +0200 | [diff] [blame] | 13 | #include <dt-bindings/gpio/gpio.h> |
Guennadi Liakhovetski | 69f3666 | 2013-07-08 18:04:57 +0200 | [diff] [blame] | 14 | |
| 15 | / { |
| 16 | model = "APE6EVM"; |
| 17 | compatible = "renesas,ape6evm-reference", "renesas,r8a73a4"; |
| 18 | |
Simon Horman | 27bc823 | 2014-07-07 09:54:34 +0200 | [diff] [blame] | 19 | aliases { |
| 20 | serial0 = &scifa0; |
| 21 | }; |
| 22 | |
Guennadi Liakhovetski | 69f3666 | 2013-07-08 18:04:57 +0200 | [diff] [blame] | 23 | chosen { |
Laurent Pinchart | d2f463a | 2013-07-29 22:31:41 +0200 | [diff] [blame] | 24 | bootargs = "console=ttySC0,115200 ignore_loglevel rw"; |
Guennadi Liakhovetski | 69f3666 | 2013-07-08 18:04:57 +0200 | [diff] [blame] | 25 | }; |
| 26 | |
| 27 | memory@40000000 { |
| 28 | device_type = "memory"; |
| 29 | reg = <0 0x40000000 0 0x40000000>; |
| 30 | }; |
| 31 | |
Magnus Damm | 9701f44 | 2013-10-31 12:18:41 +0900 | [diff] [blame] | 32 | memory@200000000 { |
| 33 | device_type = "memory"; |
| 34 | reg = <2 0x00000000 0 0x40000000>; |
| 35 | }; |
| 36 | |
Guennadi Liakhovetski | dbffb5a | 2013-08-01 09:41:21 +0200 | [diff] [blame] | 37 | vcc_mmc0: regulator@0 { |
| 38 | compatible = "regulator-fixed"; |
| 39 | regulator-name = "MMC0 Vcc"; |
| 40 | regulator-min-microvolt = <2800000>; |
| 41 | regulator-max-microvolt = <2800000>; |
| 42 | regulator-always-on; |
| 43 | }; |
| 44 | |
| 45 | vcc_sdhi0: regulator@1 { |
| 46 | compatible = "regulator-fixed"; |
| 47 | |
| 48 | regulator-name = "SDHI0 Vcc"; |
| 49 | regulator-min-microvolt = <3300000>; |
| 50 | regulator-max-microvolt = <3300000>; |
| 51 | |
| 52 | gpio = <&pfc 76 GPIO_ACTIVE_HIGH>; |
| 53 | enable-active-high; |
| 54 | }; |
| 55 | |
| 56 | /* Common 3.3V rail, used by several devices on APE6EVM */ |
| 57 | ape6evm_fixed_3v3: regulator@2 { |
| 58 | compatible = "regulator-fixed"; |
| 59 | regulator-name = "3V3"; |
| 60 | regulator-min-microvolt = <3300000>; |
| 61 | regulator-max-microvolt = <3300000>; |
| 62 | regulator-always-on; |
| 63 | }; |
| 64 | |
Guennadi Liakhovetski | 69f3666 | 2013-07-08 18:04:57 +0200 | [diff] [blame] | 65 | lbsc { |
| 66 | compatible = "simple-bus"; |
| 67 | #address-cells = <1>; |
| 68 | #size-cells = <1>; |
| 69 | ranges = <0 0 0 0x80000000>; |
| 70 | }; |
| 71 | }; |
Guennadi Liakhovetski | b88cf6f73 | 2013-07-08 18:04:58 +0200 | [diff] [blame] | 72 | |
| 73 | &i2c5 { |
Guennadi Liakhovetski | eda3a4f | 2013-09-26 13:06:01 +0200 | [diff] [blame] | 74 | status = "okay"; |
Guennadi Liakhovetski | b88cf6f73 | 2013-07-08 18:04:58 +0200 | [diff] [blame] | 75 | vdd_dvfs: max8973@1b { |
| 76 | compatible = "maxim,max8973"; |
| 77 | reg = <0x1b>; |
| 78 | |
| 79 | regulator-min-microvolt = <935000>; |
| 80 | regulator-max-microvolt = <1200000>; |
| 81 | regulator-boot-on; |
| 82 | regulator-always-on; |
| 83 | }; |
| 84 | }; |
| 85 | |
| 86 | &cpu0 { |
| 87 | cpu0-supply = <&vdd_dvfs>; |
| 88 | operating-points = < |
| 89 | /* kHz uV */ |
| 90 | 1950000 1115000 |
| 91 | 1462500 995000 |
| 92 | >; |
| 93 | voltage-tolerance = <1>; /* 1% */ |
| 94 | }; |
Guennadi Liakhovetski | 59b2bc3 | 2013-07-23 13:19:07 +0200 | [diff] [blame] | 95 | |
| 96 | &pfc { |
Kuninori Morimoto | eeafbdf | 2013-10-21 19:37:26 -0700 | [diff] [blame] | 97 | scifa0_pins: serial0 { |
Guennadi Liakhovetski | 59b2bc3 | 2013-07-23 13:19:07 +0200 | [diff] [blame] | 98 | renesas,groups = "scifa0_data"; |
| 99 | renesas,function = "scifa0"; |
| 100 | }; |
Guennadi Liakhovetski | dbffb5a | 2013-08-01 09:41:21 +0200 | [diff] [blame] | 101 | |
Kuninori Morimoto | eeafbdf | 2013-10-21 19:37:26 -0700 | [diff] [blame] | 102 | mmc0_pins: mmc { |
Guennadi Liakhovetski | dbffb5a | 2013-08-01 09:41:21 +0200 | [diff] [blame] | 103 | renesas,groups = "mmc0_data8", "mmc0_ctrl"; |
| 104 | renesas,function = "mmc0"; |
| 105 | }; |
| 106 | |
Kuninori Morimoto | eeafbdf | 2013-10-21 19:37:26 -0700 | [diff] [blame] | 107 | sdhi0_pins: sd0 { |
Guennadi Liakhovetski | dbffb5a | 2013-08-01 09:41:21 +0200 | [diff] [blame] | 108 | renesas,groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_cd"; |
| 109 | renesas,function = "sdhi0"; |
| 110 | }; |
| 111 | |
Kuninori Morimoto | eeafbdf | 2013-10-21 19:37:26 -0700 | [diff] [blame] | 112 | sdhi1_pins: sd1 { |
Guennadi Liakhovetski | dbffb5a | 2013-08-01 09:41:21 +0200 | [diff] [blame] | 113 | renesas,groups = "sdhi1_data4", "sdhi1_ctrl"; |
| 114 | renesas,function = "sdhi1"; |
| 115 | }; |
| 116 | }; |
| 117 | |
| 118 | &mmcif0 { |
| 119 | vmmc-supply = <&vcc_mmc0>; |
| 120 | bus-width = <8>; |
| 121 | non-removable; |
| 122 | pinctrl-names = "default"; |
| 123 | pinctrl-0 = <&mmc0_pins>; |
| 124 | status = "okay"; |
| 125 | }; |
| 126 | |
Simon Horman | 27bc823 | 2014-07-07 09:54:34 +0200 | [diff] [blame] | 127 | &scifa0 { |
| 128 | pinctrl-0 = <&scifa0_pins>; |
| 129 | pinctrl-names = "default"; |
| 130 | |
| 131 | status = "okay"; |
| 132 | }; |
| 133 | |
Guennadi Liakhovetski | dbffb5a | 2013-08-01 09:41:21 +0200 | [diff] [blame] | 134 | &sdhi0 { |
| 135 | vmmc-supply = <&vcc_sdhi0>; |
| 136 | bus-width = <4>; |
| 137 | toshiba,mmc-wrprotect-disable; |
| 138 | pinctrl-names = "default"; |
| 139 | pinctrl-0 = <&sdhi0_pins>; |
| 140 | status = "okay"; |
| 141 | }; |
| 142 | |
| 143 | &sdhi1 { |
| 144 | vmmc-supply = <&ape6evm_fixed_3v3>; |
| 145 | bus-width = <4>; |
| 146 | broken-cd; |
| 147 | toshiba,mmc-wrprotect-disable; |
| 148 | pinctrl-names = "default"; |
| 149 | pinctrl-0 = <&sdhi1_pins>; |
| 150 | status = "okay"; |
Guennadi Liakhovetski | 59b2bc3 | 2013-07-23 13:19:07 +0200 | [diff] [blame] | 151 | }; |