Magnus Damm | 450cca4 | 2012-05-16 15:46:03 +0900 | [diff] [blame] | 1 | /* |
| 2 | * Device Tree Source for the KZM9D board |
| 3 | * |
Magnus Damm | 9e8b48b | 2013-10-01 19:33:05 +0900 | [diff] [blame] | 4 | * Copyright (C) 2013 Renesas Solutions Corp. |
Magnus Damm | 450cca4 | 2012-05-16 15:46:03 +0900 | [diff] [blame] | 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 | /dts-v1/; |
| 11 | |
Magnus Damm | cef20af0 | 2013-11-14 08:03:45 +0900 | [diff] [blame] | 12 | #include "emev2.dtsi" |
| 13 | #include <dt-bindings/gpio/gpio.h> |
| 14 | #include <dt-bindings/input/input.h> |
Laurent Pinchart | 3dc7608 | 2013-11-28 17:37:50 +0100 | [diff] [blame] | 15 | #include <dt-bindings/interrupt-controller/irq.h> |
Magnus Damm | 450cca4 | 2012-05-16 15:46:03 +0900 | [diff] [blame] | 16 | |
| 17 | / { |
| 18 | model = "EMEV2 KZM9D Board"; |
| 19 | compatible = "renesas,kzm9d", "renesas,emev2"; |
| 20 | |
| 21 | memory { |
| 22 | device_type = "memory"; |
| 23 | reg = <0x40000000 0x8000000>; |
| 24 | }; |
| 25 | |
| 26 | chosen { |
Kuninori Morimoto | 6de6913 | 2013-08-05 20:17:33 -0700 | [diff] [blame] | 27 | bootargs = "console=ttyS1,115200n81 ignore_loglevel root=/dev/nfs ip=dhcp"; |
Geert Uytterhoeven | 120f038 | 2014-10-06 13:59:13 +0200 | [diff] [blame] | 28 | stdout-path = &uart1; |
Magnus Damm | 450cca4 | 2012-05-16 15:46:03 +0900 | [diff] [blame] | 29 | }; |
Magnus Damm | 9e8b48b | 2013-10-01 19:33:05 +0900 | [diff] [blame] | 30 | |
Magnus Damm | cef20af0 | 2013-11-14 08:03:45 +0900 | [diff] [blame] | 31 | gpio_keys { |
| 32 | compatible = "gpio-keys"; |
| 33 | #address-cells = <1>; |
| 34 | #size-cells = <0>; |
| 35 | |
| 36 | button@1 { |
| 37 | debounce_interval = <50>; |
Sudeep Holla | 4db7062 | 2015-10-16 17:01:36 +0100 | [diff] [blame] | 38 | wakeup-source; |
Magnus Damm | cef20af0 | 2013-11-14 08:03:45 +0900 | [diff] [blame] | 39 | label = "DSW2-1"; |
| 40 | linux,code = <KEY_1>; |
| 41 | gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; |
| 42 | }; |
| 43 | button@2 { |
| 44 | debounce_interval = <50>; |
Sudeep Holla | 4db7062 | 2015-10-16 17:01:36 +0100 | [diff] [blame] | 45 | wakeup-source; |
Magnus Damm | cef20af0 | 2013-11-14 08:03:45 +0900 | [diff] [blame] | 46 | label = "DSW2-2"; |
| 47 | linux,code = <KEY_2>; |
| 48 | gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>; |
| 49 | }; |
| 50 | button@3 { |
| 51 | debounce_interval = <50>; |
Sudeep Holla | 4db7062 | 2015-10-16 17:01:36 +0100 | [diff] [blame] | 52 | wakeup-source; |
Magnus Damm | cef20af0 | 2013-11-14 08:03:45 +0900 | [diff] [blame] | 53 | label = "DSW2-3"; |
| 54 | linux,code = <KEY_3>; |
| 55 | gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>; |
| 56 | }; |
| 57 | button@4 { |
| 58 | debounce_interval = <50>; |
Sudeep Holla | 4db7062 | 2015-10-16 17:01:36 +0100 | [diff] [blame] | 59 | wakeup-source; |
Magnus Damm | cef20af0 | 2013-11-14 08:03:45 +0900 | [diff] [blame] | 60 | label = "DSW2-4"; |
| 61 | linux,code = <KEY_4>; |
| 62 | gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>; |
| 63 | }; |
| 64 | }; |
Ulrich Hecht | b97950c | 2014-09-25 10:32:13 +0900 | [diff] [blame] | 65 | |
| 66 | reg_1p8v: regulator@0 { |
| 67 | compatible = "regulator-fixed"; |
| 68 | regulator-name = "fixed-1.8V"; |
| 69 | regulator-min-microvolt = <1800000>; |
| 70 | regulator-max-microvolt = <1800000>; |
| 71 | regulator-always-on; |
| 72 | regulator-boot-on; |
| 73 | }; |
| 74 | |
| 75 | reg_3p3v: regulator@1 { |
| 76 | compatible = "regulator-fixed"; |
| 77 | regulator-name = "fixed-3.3V"; |
| 78 | regulator-min-microvolt = <3300000>; |
| 79 | regulator-max-microvolt = <3300000>; |
| 80 | regulator-always-on; |
| 81 | regulator-boot-on; |
| 82 | }; |
| 83 | |
Geert Uytterhoeven | 69478b2 | 2015-04-27 14:55:33 +0200 | [diff] [blame] | 84 | ethernet@20000000 { |
Ulrich Hecht | b97950c | 2014-09-25 10:32:13 +0900 | [diff] [blame] | 85 | compatible = "smsc,lan9220", "smsc,lan9115"; |
| 86 | reg = <0x20000000 0x10000>; |
| 87 | phy-mode = "mii"; |
| 88 | interrupt-parent = <&gpio0>; |
| 89 | interrupts = <1 IRQ_TYPE_EDGE_RISING>; |
| 90 | reg-io-width = <4>; |
| 91 | smsc,irq-active-high; |
| 92 | smsc,irq-push-pull; |
| 93 | vddvario-supply = <®_1p8v>; |
| 94 | vdd33a-supply = <®_3p3v>; |
| 95 | }; |
Magnus Damm | 450cca4 | 2012-05-16 15:46:03 +0900 | [diff] [blame] | 96 | }; |
Niklas Söderlund | 4a5fcc6 | 2015-02-17 14:31:55 +0100 | [diff] [blame] | 97 | |
Wolfram Sang | c53b0c9 | 2015-07-11 09:46:26 +0200 | [diff] [blame] | 98 | &iic0 { |
| 99 | status = "okay"; |
| 100 | }; |
| 101 | |
| 102 | &iic1 { |
| 103 | status = "okay"; |
| 104 | }; |
| 105 | |
Niklas Söderlund | 4a5fcc6 | 2015-02-17 14:31:55 +0100 | [diff] [blame] | 106 | &pfc { |
Geert Uytterhoeven | 69478b2 | 2015-04-27 14:55:33 +0200 | [diff] [blame] | 107 | uart1_pins: serial@e1030000 { |
Niklas Söderlund | 4a5fcc6 | 2015-02-17 14:31:55 +0100 | [diff] [blame] | 108 | renesas,groups = "uart1_ctrl", "uart1_data"; |
| 109 | renesas,function = "uart1"; |
| 110 | }; |
| 111 | }; |
| 112 | |
| 113 | &uart1 { |
| 114 | pinctrl-0 = <&uart1_pins>; |
| 115 | pinctrl-names = "default"; |
| 116 | status = "okay"; |
| 117 | }; |