Magnus Damm | 78ded16 | 2013-03-29 17:00:02 +0900 | [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" |
Ulrich Hecht | 326baa8 | 2014-12-17 17:18:14 +0100 | [diff] [blame^] | 13 | #include <dt-bindings/gpio/gpio.h> |
Magnus Damm | 78ded16 | 2013-03-29 17:00:02 +0900 | [diff] [blame] | 14 | |
| 15 | / { |
| 16 | model = "APE6EVM"; |
| 17 | compatible = "renesas,ape6evm", "renesas,r8a73a4"; |
| 18 | |
Ulrich Hecht | 326baa8 | 2014-12-17 17:18:14 +0100 | [diff] [blame^] | 19 | aliases { |
| 20 | serial0 = &scifa0; |
| 21 | }; |
| 22 | |
Magnus Damm | 78ded16 | 2013-03-29 17:00:02 +0900 | [diff] [blame] | 23 | chosen { |
Laurent Pinchart | d2f463a | 2013-07-29 22:31:41 +0200 | [diff] [blame] | 24 | bootargs = "console=ttySC0,115200 ignore_loglevel root=/dev/nfs ip=dhcp rw"; |
Ulrich Hecht | 326baa8 | 2014-12-17 17:18:14 +0100 | [diff] [blame^] | 25 | stdout-path = &scifa0; |
Magnus Damm | 78ded16 | 2013-03-29 17:00:02 +0900 | [diff] [blame] | 26 | }; |
| 27 | |
| 28 | memory@40000000 { |
| 29 | device_type = "memory"; |
| 30 | reg = <0 0x40000000 0 0x40000000>; |
| 31 | }; |
| 32 | |
Takashi Yoshii | 8353f09 | 2013-10-31 12:15:49 +0900 | [diff] [blame] | 33 | memory@200000000 { |
| 34 | device_type = "memory"; |
| 35 | reg = <2 0x00000000 0 0x40000000>; |
| 36 | }; |
| 37 | |
Ulrich Hecht | 326baa8 | 2014-12-17 17:18:14 +0100 | [diff] [blame^] | 38 | vcc_mmc0: regulator@0 { |
| 39 | compatible = "regulator-fixed"; |
| 40 | regulator-name = "MMC0 Vcc"; |
| 41 | regulator-min-microvolt = <2800000>; |
| 42 | regulator-max-microvolt = <2800000>; |
| 43 | regulator-always-on; |
| 44 | }; |
| 45 | |
| 46 | vcc_sdhi0: regulator@1 { |
| 47 | compatible = "regulator-fixed"; |
| 48 | |
| 49 | regulator-name = "SDHI0 Vcc"; |
| 50 | regulator-min-microvolt = <3300000>; |
| 51 | regulator-max-microvolt = <3300000>; |
| 52 | |
| 53 | gpio = <&pfc 76 GPIO_ACTIVE_HIGH>; |
| 54 | enable-active-high; |
| 55 | }; |
| 56 | |
| 57 | /* Common 3.3V rail, used by several devices on APE6EVM */ |
| 58 | ape6evm_fixed_3v3: regulator@2 { |
Magnus Damm | 15351a7a | 2013-03-29 17:00:21 +0900 | [diff] [blame] | 59 | compatible = "regulator-fixed"; |
| 60 | regulator-name = "3V3"; |
| 61 | regulator-min-microvolt = <3300000>; |
| 62 | regulator-max-microvolt = <3300000>; |
| 63 | regulator-always-on; |
| 64 | }; |
| 65 | |
Magnus Damm | 78ded16 | 2013-03-29 17:00:02 +0900 | [diff] [blame] | 66 | lbsc { |
Ulrich Hecht | 326baa8 | 2014-12-17 17:18:14 +0100 | [diff] [blame^] | 67 | compatible = "simple-bus"; |
Magnus Damm | 78ded16 | 2013-03-29 17:00:02 +0900 | [diff] [blame] | 68 | #address-cells = <1>; |
| 69 | #size-cells = <1>; |
Ulrich Hecht | 326baa8 | 2014-12-17 17:18:14 +0100 | [diff] [blame^] | 70 | ranges = <0 0 0 0x20000000>; |
Magnus Damm | 15351a7a | 2013-03-29 17:00:21 +0900 | [diff] [blame] | 71 | |
| 72 | ethernet@8000000 { |
Ulrich Hecht | 6cdaa63 | 2014-12-17 17:18:13 +0100 | [diff] [blame] | 73 | compatible = "smsc,lan9220", "smsc,lan9115"; |
Magnus Damm | 15351a7a | 2013-03-29 17:00:21 +0900 | [diff] [blame] | 74 | reg = <0x08000000 0x1000>; |
| 75 | interrupt-parent = <&irqc1>; |
Laurent Pinchart | 77e2d7e | 2013-11-09 13:23:55 +0100 | [diff] [blame] | 76 | interrupts = <8 IRQ_TYPE_LEVEL_HIGH>; |
Magnus Damm | 15351a7a | 2013-03-29 17:00:21 +0900 | [diff] [blame] | 77 | phy-mode = "mii"; |
| 78 | reg-io-width = <4>; |
| 79 | smsc,irq-active-high; |
| 80 | smsc,irq-push-pull; |
| 81 | vdd33a-supply = <&ape6evm_fixed_3v3>; |
| 82 | vddvario-supply = <&ape6evm_fixed_3v3>; |
| 83 | }; |
Magnus Damm | 78ded16 | 2013-03-29 17:00:02 +0900 | [diff] [blame] | 84 | }; |
| 85 | }; |
Guennadi Liakhovetski | 463a243 | 2013-06-27 11:47:58 +0200 | [diff] [blame] | 86 | |
| 87 | &i2c5 { |
Guennadi Liakhovetski | eda3a4f | 2013-09-26 13:06:01 +0200 | [diff] [blame] | 88 | status = "okay"; |
Guennadi Liakhovetski | 463a243 | 2013-06-27 11:47:58 +0200 | [diff] [blame] | 89 | vdd_dvfs: max8973@1b { |
| 90 | compatible = "maxim,max8973"; |
| 91 | reg = <0x1b>; |
| 92 | |
| 93 | regulator-min-microvolt = <935000>; |
| 94 | regulator-max-microvolt = <1200000>; |
| 95 | regulator-boot-on; |
| 96 | regulator-always-on; |
| 97 | }; |
| 98 | }; |
| 99 | |
| 100 | &cpu0 { |
| 101 | cpu0-supply = <&vdd_dvfs>; |
| 102 | operating-points = < |
| 103 | /* kHz uV */ |
| 104 | 1950000 1115000 |
| 105 | 1462500 995000 |
| 106 | >; |
| 107 | voltage-tolerance = <1>; /* 1% */ |
| 108 | }; |
Ulrich Hecht | 326baa8 | 2014-12-17 17:18:14 +0100 | [diff] [blame^] | 109 | |
| 110 | &cmt1 { |
| 111 | status = "okay"; |
| 112 | }; |
| 113 | |
| 114 | &pfc { |
| 115 | scifa0_pins: serial0 { |
| 116 | renesas,groups = "scifa0_data"; |
| 117 | renesas,function = "scifa0"; |
| 118 | }; |
| 119 | |
| 120 | mmc0_pins: mmc { |
| 121 | renesas,groups = "mmc0_data8", "mmc0_ctrl"; |
| 122 | renesas,function = "mmc0"; |
| 123 | }; |
| 124 | |
| 125 | sdhi0_pins: sd0 { |
| 126 | renesas,groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_cd"; |
| 127 | renesas,function = "sdhi0"; |
| 128 | }; |
| 129 | |
| 130 | sdhi1_pins: sd1 { |
| 131 | renesas,groups = "sdhi1_data4", "sdhi1_ctrl"; |
| 132 | renesas,function = "sdhi1"; |
| 133 | }; |
| 134 | }; |
| 135 | |
| 136 | &mmcif0 { |
| 137 | vmmc-supply = <&vcc_mmc0>; |
| 138 | bus-width = <8>; |
| 139 | non-removable; |
| 140 | pinctrl-names = "default"; |
| 141 | pinctrl-0 = <&mmc0_pins>; |
| 142 | status = "okay"; |
| 143 | }; |
| 144 | |
| 145 | &scifa0 { |
| 146 | pinctrl-0 = <&scifa0_pins>; |
| 147 | pinctrl-names = "default"; |
| 148 | |
| 149 | status = "okay"; |
| 150 | }; |
| 151 | |
| 152 | &sdhi0 { |
| 153 | vmmc-supply = <&vcc_sdhi0>; |
| 154 | bus-width = <4>; |
| 155 | toshiba,mmc-wrprotect-disable; |
| 156 | pinctrl-names = "default"; |
| 157 | pinctrl-0 = <&sdhi0_pins>; |
| 158 | status = "okay"; |
| 159 | }; |
| 160 | |
| 161 | &sdhi1 { |
| 162 | vmmc-supply = <&ape6evm_fixed_3v3>; |
| 163 | bus-width = <4>; |
| 164 | broken-cd; |
| 165 | toshiba,mmc-wrprotect-disable; |
| 166 | pinctrl-names = "default"; |
| 167 | pinctrl-0 = <&sdhi1_pins>; |
| 168 | status = "okay"; |
| 169 | }; |