Magnus Damm | 1919a0a | 2013-10-08 15:30:09 +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" |
Magnus Damm | 614a198 | 2013-11-21 09:44:04 +0900 | [diff] [blame] | 14 | #include <dt-bindings/gpio/gpio.h> |
Magnus Damm | 1919a0a | 2013-10-08 15:30:09 +0900 | [diff] [blame] | 15 | |
| 16 | / { |
| 17 | model = "Koelsch"; |
| 18 | compatible = "renesas,koelsch-reference", "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"; |
| 26 | reg = <0 0x40000000 0 0x80000000>; |
| 27 | }; |
| 28 | |
| 29 | lbsc { |
| 30 | #address-cells = <1>; |
| 31 | #size-cells = <1>; |
| 32 | }; |
Magnus Damm | 614a198 | 2013-11-21 09:44:04 +0900 | [diff] [blame] | 33 | |
Laurent Pinchart | bd06098 | 2013-12-11 16:42:51 +0100 | [diff] [blame] | 34 | gpio-keys { |
| 35 | compatible = "gpio-keys"; |
| 36 | |
| 37 | key-a { |
| 38 | gpios = <&gpio7 0 GPIO_ACTIVE_LOW>; |
| 39 | linux,code = <30>; |
| 40 | label = "SW30"; |
| 41 | gpio-key,wakeup; |
| 42 | debounce-interval = <20>; |
| 43 | }; |
| 44 | key-b { |
| 45 | gpios = <&gpio7 1 GPIO_ACTIVE_LOW>; |
| 46 | linux,code = <48>; |
| 47 | label = "SW31"; |
| 48 | gpio-key,wakeup; |
| 49 | debounce-interval = <20>; |
| 50 | }; |
| 51 | key-c { |
| 52 | gpios = <&gpio7 2 GPIO_ACTIVE_LOW>; |
| 53 | linux,code = <46>; |
| 54 | label = "SW32"; |
| 55 | gpio-key,wakeup; |
| 56 | debounce-interval = <20>; |
| 57 | }; |
| 58 | key-d { |
| 59 | gpios = <&gpio7 3 GPIO_ACTIVE_LOW>; |
| 60 | linux,code = <32>; |
| 61 | label = "SW33"; |
| 62 | gpio-key,wakeup; |
| 63 | debounce-interval = <20>; |
| 64 | }; |
| 65 | key-e { |
| 66 | gpios = <&gpio7 4 GPIO_ACTIVE_LOW>; |
| 67 | linux,code = <18>; |
| 68 | label = "SW34"; |
| 69 | gpio-key,wakeup; |
| 70 | debounce-interval = <20>; |
| 71 | }; |
| 72 | key-f { |
| 73 | gpios = <&gpio7 5 GPIO_ACTIVE_LOW>; |
| 74 | linux,code = <33>; |
| 75 | label = "SW35"; |
| 76 | gpio-key,wakeup; |
| 77 | debounce-interval = <20>; |
| 78 | }; |
| 79 | key-g { |
| 80 | gpios = <&gpio7 6 GPIO_ACTIVE_LOW>; |
| 81 | linux,code = <34>; |
| 82 | label = "SW36"; |
| 83 | gpio-key,wakeup; |
| 84 | debounce-interval = <20>; |
| 85 | }; |
| 86 | }; |
| 87 | |
Magnus Damm | 614a198 | 2013-11-21 09:44:04 +0900 | [diff] [blame] | 88 | leds { |
| 89 | compatible = "gpio-leds"; |
| 90 | led6 { |
| 91 | gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>; |
| 92 | }; |
| 93 | led7 { |
| 94 | gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>; |
| 95 | }; |
| 96 | led8 { |
| 97 | gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>; |
| 98 | }; |
| 99 | }; |
Magnus Damm | 1919a0a | 2013-10-08 15:30:09 +0900 | [diff] [blame] | 100 | }; |
Magnus Damm | b91a89c | 2013-11-20 16:36:59 +0900 | [diff] [blame] | 101 | |
| 102 | &pfc { |
| 103 | pinctrl-0 = <&scif0_pins &scif1_pins>; |
| 104 | pinctrl-names = "default"; |
| 105 | |
| 106 | scif0_pins: serial0 { |
| 107 | renesas,groups = "scif0_data_d"; |
| 108 | renesas,function = "scif0"; |
| 109 | }; |
| 110 | |
| 111 | scif1_pins: serial1 { |
| 112 | renesas,groups = "scif1_data_d"; |
| 113 | renesas,function = "scif1"; |
| 114 | }; |
| 115 | }; |