Bastian Hecht | 76b92b4 | 2013-04-17 12:34:06 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Reference Device Tree Source for the armadillo 800 eva board |
| 3 | * |
| 4 | * Copyright (C) 2012 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/; |
| 12 | /include/ "r8a7740.dtsi" |
Laurent Pinchart | 14d0a2b | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 13 | #include <dt-bindings/gpio/gpio.h> |
Laurent Pinchart | 87b73d8 | 2013-09-11 13:51:13 +0200 | [diff] [blame] | 14 | #include <dt-bindings/pwm/pwm.h> |
Bastian Hecht | 76b92b4 | 2013-04-17 12:34:06 +0200 | [diff] [blame] | 15 | |
| 16 | / { |
| 17 | model = "armadillo 800 eva reference"; |
| 18 | compatible = "renesas,armadillo800eva-reference", "renesas,r8a7740"; |
| 19 | |
| 20 | chosen { |
Kuninori Morimoto | 3d81449 | 2013-08-05 20:17:06 -0700 | [diff] [blame] | 21 | bootargs = "console=tty0 console=ttySC1,115200 earlyprintk=sh-sci.1,115200 ignore_loglevel root=/dev/nfs ip=dhcp rw"; |
Bastian Hecht | 76b92b4 | 2013-04-17 12:34:06 +0200 | [diff] [blame] | 22 | }; |
| 23 | |
| 24 | memory { |
| 25 | device_type = "memory"; |
| 26 | reg = <0x40000000 0x20000000>; |
| 27 | }; |
| 28 | |
| 29 | reg_3p3v: regulator@0 { |
| 30 | compatible = "regulator-fixed"; |
| 31 | regulator-name = "fixed-3.3V"; |
| 32 | regulator-min-microvolt = <3300000>; |
| 33 | regulator-max-microvolt = <3300000>; |
| 34 | regulator-always-on; |
| 35 | regulator-boot-on; |
| 36 | }; |
| 37 | |
Guennadi Liakhovetski | e99d796 | 2013-09-27 10:02:57 +0200 | [diff] [blame^] | 38 | vcc_sdhi0: regulator@1 { |
| 39 | compatible = "regulator-fixed"; |
| 40 | |
| 41 | regulator-name = "SDHI0 Vcc"; |
| 42 | regulator-min-microvolt = <3300000>; |
| 43 | regulator-max-microvolt = <3300000>; |
| 44 | |
| 45 | gpio = <&pfc 75 GPIO_ACTIVE_HIGH>; |
| 46 | enable-active-high; |
| 47 | }; |
| 48 | |
| 49 | vccq_sdhi0: regulator@2 { |
| 50 | compatible = "regulator-gpio"; |
| 51 | |
| 52 | regulator-name = "SDHI0 VccQ"; |
| 53 | regulator-min-microvolt = <1800000>; |
| 54 | regulator-max-microvolt = <3300000>; |
| 55 | vin-supply = <&vcc_sdhi0>; |
| 56 | |
| 57 | enable-gpio = <&pfc 74 GPIO_ACTIVE_HIGH>; |
| 58 | gpios = <&pfc 17 GPIO_ACTIVE_HIGH>; |
| 59 | states = <3300000 0 |
| 60 | 1800000 1>; |
| 61 | |
| 62 | enable-active-high; |
| 63 | }; |
| 64 | |
Laurent Pinchart | 0a4f788 | 2013-05-10 00:23:04 +0200 | [diff] [blame] | 65 | leds { |
| 66 | compatible = "gpio-leds"; |
| 67 | led1 { |
| 68 | gpios = <&pfc 102 GPIO_ACTIVE_HIGH>; |
| 69 | }; |
| 70 | led2 { |
| 71 | gpios = <&pfc 111 GPIO_ACTIVE_HIGH>; |
| 72 | }; |
| 73 | led3 { |
| 74 | gpios = <&pfc 110 GPIO_ACTIVE_HIGH>; |
| 75 | }; |
| 76 | led4 { |
| 77 | gpios = <&pfc 177 GPIO_ACTIVE_HIGH>; |
| 78 | }; |
| 79 | }; |
Laurent Pinchart | 87b73d8 | 2013-09-11 13:51:13 +0200 | [diff] [blame] | 80 | |
| 81 | backlight { |
| 82 | compatible = "pwm-backlight"; |
| 83 | pwms = <&tpu 2 33333 PWM_POLARITY_INVERTED>; |
| 84 | brightness-levels = <0 1 2 4 8 16 32 64 128 255>; |
| 85 | default-brightness-level = <9>; |
| 86 | pinctrl-0 = <&backlight_pins>; |
| 87 | pinctrl-names = "default"; |
| 88 | }; |
Bastian Hecht | 76b92b4 | 2013-04-17 12:34:06 +0200 | [diff] [blame] | 89 | }; |
| 90 | |
| 91 | &i2c0 { |
Guennadi Liakhovetski | eda3a4f | 2013-09-26 13:06:01 +0200 | [diff] [blame] | 92 | status = "okay"; |
Bastian Hecht | 76b92b4 | 2013-04-17 12:34:06 +0200 | [diff] [blame] | 93 | touchscreen: st1232@55 { |
| 94 | compatible = "sitronix,st1232"; |
| 95 | reg = <0x55>; |
| 96 | interrupt-parent = <&irqpin1>; |
| 97 | interrupts = <2 0>; /* IRQ10: hwirq 2 on irqpin1 */ |
Laurent Pinchart | f46a6b0 | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 98 | pinctrl-0 = <&st1232_pins>; |
| 99 | pinctrl-names = "default"; |
Laurent Pinchart | 14d0a2b | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 100 | gpios = <&pfc 166 GPIO_ACTIVE_LOW>; |
Bastian Hecht | 76b92b4 | 2013-04-17 12:34:06 +0200 | [diff] [blame] | 101 | }; |
| 102 | }; |
Laurent Pinchart | 5d24456 | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 103 | |
| 104 | &pfc { |
| 105 | pinctrl-0 = <&scifa1_pins>; |
| 106 | pinctrl-names = "default"; |
| 107 | |
| 108 | scifa1_pins: scifa1 { |
| 109 | renesas,groups = "scifa1_data"; |
| 110 | renesas,function = "scifa1"; |
| 111 | }; |
Laurent Pinchart | f46a6b0 | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 112 | |
| 113 | st1232_pins: st1232 { |
| 114 | renesas,groups = "intc_irq10"; |
| 115 | renesas,function = "intc"; |
| 116 | }; |
Laurent Pinchart | 87b73d8 | 2013-09-11 13:51:13 +0200 | [diff] [blame] | 117 | |
| 118 | backlight_pins: backlight { |
| 119 | renesas,groups = "tpu0_to2_1"; |
| 120 | renesas,function = "tpu0"; |
| 121 | }; |
Guennadi Liakhovetski | e99d796 | 2013-09-27 10:02:57 +0200 | [diff] [blame^] | 122 | |
| 123 | mmc0_pins: mmc0 { |
| 124 | renesas,groups = "mmc0_data8_1", "mmc0_ctrl_1"; |
| 125 | renesas,function = "mmc0"; |
| 126 | }; |
| 127 | |
| 128 | sdhi0_pins: sdhi0 { |
| 129 | renesas,groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_wp"; |
| 130 | renesas,function = "sdhi0"; |
| 131 | }; |
Laurent Pinchart | 87b73d8 | 2013-09-11 13:51:13 +0200 | [diff] [blame] | 132 | }; |
| 133 | |
| 134 | &tpu { |
| 135 | status = "okay"; |
Laurent Pinchart | 5d24456 | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 136 | }; |
Guennadi Liakhovetski | e99d796 | 2013-09-27 10:02:57 +0200 | [diff] [blame^] | 137 | |
| 138 | &mmcif0 { |
| 139 | pinctrl-0 = <&mmc0_pins>; |
| 140 | pinctrl-names = "default"; |
| 141 | |
| 142 | vmmc-supply = <®_3p3v>; |
| 143 | bus-width = <8>; |
| 144 | non-removable; |
| 145 | status = "okay"; |
| 146 | }; |
| 147 | |
| 148 | &sdhi0 { |
| 149 | pinctrl-0 = <&sdhi0_pins>; |
| 150 | pinctrl-names = "default"; |
| 151 | |
| 152 | vmmc-supply = <&vcc_sdhi0>; |
| 153 | vqmmc-supply = <&vccq_sdhi0>; |
| 154 | bus-width = <4>; |
| 155 | cd-gpios = <&pfc 167 GPIO_ACTIVE_LOW>; |
| 156 | status = "okay"; |
| 157 | }; |