Hisashi Nakamura | 1f52c65 | 2013-09-04 12:46:49 +0900 | [diff] [blame] | 1 | /* |
| 2 | * Device Tree Source for the Koelsch board |
| 3 | * |
| 4 | * Copyright (C) 2013 Renesas Electronics Corporation |
| 5 | * Copyright (C) 2013 Renesas Solutions Corp. |
| 6 | * |
| 7 | * This file is licensed under the terms of the GNU General Public License |
| 8 | * version 2. This program is licensed "as is" without any warranty of any |
| 9 | * kind, whether express or implied. |
| 10 | */ |
| 11 | |
| 12 | /dts-v1/; |
Laurent Pinchart | 31c46cb | 2013-11-09 13:23:53 +0100 | [diff] [blame] | 13 | #include "r8a7791.dtsi" |
Laurent Pinchart | f8e2535 | 2013-12-11 15:13:48 +0100 | [diff] [blame] | 14 | #include <dt-bindings/gpio/gpio.h> |
Hisashi Nakamura | 1f52c65 | 2013-09-04 12:46:49 +0900 | [diff] [blame] | 15 | |
| 16 | / { |
| 17 | model = "Koelsch"; |
| 18 | compatible = "renesas,koelsch", "renesas,r8a7791"; |
| 19 | |
| 20 | chosen { |
| 21 | bootargs = "console=ttySC6,115200 ignore_loglevel rw root=/dev/nfs ip=dhcp"; |
| 22 | }; |
| 23 | |
| 24 | memory@40000000 { |
| 25 | device_type = "memory"; |
Takashi Yoshii | 4cd1bad | 2013-12-22 18:27:23 +0900 | [diff] [blame] | 26 | reg = <0 0x40000000 0 0x40000000>; |
| 27 | }; |
| 28 | |
| 29 | memory@200000000 { |
| 30 | device_type = "memory"; |
| 31 | reg = <2 0x00000000 0 0x40000000>; |
Hisashi Nakamura | 1f52c65 | 2013-09-04 12:46:49 +0900 | [diff] [blame] | 32 | }; |
| 33 | |
| 34 | lbsc { |
| 35 | #address-cells = <1>; |
| 36 | #size-cells = <1>; |
| 37 | }; |
Laurent Pinchart | f8e2535 | 2013-12-11 15:13:48 +0100 | [diff] [blame] | 38 | |
Laurent Pinchart | aff5274 | 2013-12-19 16:28:42 +0100 | [diff] [blame] | 39 | gpio-keys { |
| 40 | compatible = "gpio-keys"; |
| 41 | |
| 42 | key-a { |
| 43 | gpios = <&gpio7 0 GPIO_ACTIVE_LOW>; |
| 44 | linux,code = <30>; |
| 45 | label = "SW30"; |
| 46 | gpio-key,wakeup; |
| 47 | debounce-interval = <20>; |
| 48 | }; |
| 49 | key-b { |
| 50 | gpios = <&gpio7 1 GPIO_ACTIVE_LOW>; |
| 51 | linux,code = <48>; |
| 52 | label = "SW31"; |
| 53 | gpio-key,wakeup; |
| 54 | debounce-interval = <20>; |
| 55 | }; |
| 56 | key-c { |
| 57 | gpios = <&gpio7 2 GPIO_ACTIVE_LOW>; |
| 58 | linux,code = <46>; |
| 59 | label = "SW32"; |
| 60 | gpio-key,wakeup; |
| 61 | debounce-interval = <20>; |
| 62 | }; |
| 63 | key-d { |
| 64 | gpios = <&gpio7 3 GPIO_ACTIVE_LOW>; |
| 65 | linux,code = <32>; |
| 66 | label = "SW33"; |
| 67 | gpio-key,wakeup; |
| 68 | debounce-interval = <20>; |
| 69 | }; |
| 70 | key-e { |
| 71 | gpios = <&gpio7 4 GPIO_ACTIVE_LOW>; |
| 72 | linux,code = <18>; |
| 73 | label = "SW34"; |
| 74 | gpio-key,wakeup; |
| 75 | debounce-interval = <20>; |
| 76 | }; |
| 77 | key-f { |
| 78 | gpios = <&gpio7 5 GPIO_ACTIVE_LOW>; |
| 79 | linux,code = <33>; |
| 80 | label = "SW35"; |
| 81 | gpio-key,wakeup; |
| 82 | debounce-interval = <20>; |
| 83 | }; |
| 84 | key-g { |
| 85 | gpios = <&gpio7 6 GPIO_ACTIVE_LOW>; |
| 86 | linux,code = <34>; |
| 87 | label = "SW36"; |
| 88 | gpio-key,wakeup; |
| 89 | debounce-interval = <20>; |
| 90 | }; |
| 91 | }; |
| 92 | |
Laurent Pinchart | f8e2535 | 2013-12-11 15:13:48 +0100 | [diff] [blame] | 93 | leds { |
| 94 | compatible = "gpio-leds"; |
| 95 | led6 { |
| 96 | gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>; |
| 97 | }; |
| 98 | led7 { |
| 99 | gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>; |
| 100 | }; |
| 101 | led8 { |
| 102 | gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>; |
| 103 | }; |
| 104 | }; |
| 105 | }; |
| 106 | |
Laurent Pinchart | fcf0c72 | 2013-12-11 15:13:50 +0100 | [diff] [blame] | 107 | &extal_clk { |
| 108 | clock-frequency = <20000000>; |
| 109 | }; |
| 110 | |
Laurent Pinchart | f8e2535 | 2013-12-11 15:13:48 +0100 | [diff] [blame] | 111 | &pfc { |
Laurent Pinchart | afba941 | 2014-02-16 22:32:01 +0100 | [diff] [blame^] | 112 | pinctrl-0 = <&du_pins &scif0_pins &scif1_pins>; |
Laurent Pinchart | f8e2535 | 2013-12-11 15:13:48 +0100 | [diff] [blame] | 113 | pinctrl-names = "default"; |
| 114 | |
Laurent Pinchart | afba941 | 2014-02-16 22:32:01 +0100 | [diff] [blame^] | 115 | du_pins: du { |
| 116 | renesas,groups = "du_rgb666", "du_sync", "du_clk_out_0"; |
| 117 | renesas,function = "du"; |
| 118 | }; |
| 119 | |
Laurent Pinchart | f8e2535 | 2013-12-11 15:13:48 +0100 | [diff] [blame] | 120 | scif0_pins: serial0 { |
| 121 | renesas,groups = "scif0_data_d"; |
| 122 | renesas,function = "scif0"; |
| 123 | }; |
| 124 | |
| 125 | scif1_pins: serial1 { |
| 126 | renesas,groups = "scif1_data_d"; |
| 127 | renesas,function = "scif1"; |
| 128 | }; |
Geert Uytterhoeven | e02ee51 | 2014-02-04 16:24:04 +0100 | [diff] [blame] | 129 | |
| 130 | qspi_pins: spi { |
| 131 | renesas,groups = "qspi_ctrl", "qspi_data4"; |
| 132 | renesas,function = "qspi"; |
| 133 | }; |
Hisashi Nakamura | 1f52c65 | 2013-09-04 12:46:49 +0900 | [diff] [blame] | 134 | }; |
Valentine Barshak | 760c277 | 2014-01-14 21:05:41 +0400 | [diff] [blame] | 135 | |
| 136 | &sata0 { |
| 137 | status = "okay"; |
| 138 | }; |
Geert Uytterhoeven | e02ee51 | 2014-02-04 16:24:04 +0100 | [diff] [blame] | 139 | |
| 140 | &spi { |
| 141 | pinctrl-0 = <&qspi_pins>; |
| 142 | pinctrl-names = "default"; |
| 143 | |
| 144 | status = "okay"; |
| 145 | |
| 146 | flash: flash@0 { |
| 147 | #address-cells = <1>; |
| 148 | #size-cells = <1>; |
| 149 | compatible = "spansion,s25fl512s"; |
| 150 | reg = <0>; |
| 151 | spi-max-frequency = <30000000>; |
| 152 | m25p,fast-read; |
| 153 | |
| 154 | partition@0 { |
| 155 | label = "loader"; |
| 156 | reg = <0x00000000 0x00080000>; |
| 157 | read-only; |
| 158 | }; |
| 159 | partition@80000 { |
| 160 | label = "bootenv"; |
| 161 | reg = <0x00080000 0x00080000>; |
| 162 | read-only; |
| 163 | }; |
| 164 | partition@100000 { |
| 165 | label = "data"; |
| 166 | reg = <0x00100000 0x03f00000>; |
| 167 | }; |
| 168 | }; |
| 169 | }; |