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