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"; |
Magnus Damm | 450cca4 | 2012-05-16 15:46:03 +0900 | [diff] [blame] | 28 | }; |
Magnus Damm | 9e8b48b | 2013-10-01 19:33:05 +0900 | [diff] [blame] | 29 | |
| 30 | reg_1p8v: regulator@0 { |
| 31 | compatible = "regulator-fixed"; |
| 32 | regulator-name = "fixed-1.8V"; |
| 33 | regulator-min-microvolt = <1800000>; |
| 34 | regulator-max-microvolt = <1800000>; |
| 35 | regulator-always-on; |
| 36 | regulator-boot-on; |
| 37 | }; |
| 38 | |
| 39 | reg_3p3v: regulator@1 { |
| 40 | compatible = "regulator-fixed"; |
| 41 | regulator-name = "fixed-3.3V"; |
| 42 | regulator-min-microvolt = <3300000>; |
| 43 | regulator-max-microvolt = <3300000>; |
| 44 | regulator-always-on; |
| 45 | regulator-boot-on; |
| 46 | }; |
| 47 | |
| 48 | lan9220@20000000 { |
| 49 | compatible = "smsc,lan9220", "smsc,lan9115"; |
| 50 | reg = <0x20000000 0x10000>; |
| 51 | phy-mode = "mii"; |
| 52 | interrupt-parent = <&gpio0>; |
Laurent Pinchart | 3dc7608 | 2013-11-28 17:37:50 +0100 | [diff] [blame] | 53 | interrupts = <1 IRQ_TYPE_EDGE_RISING>; |
Magnus Damm | 9e8b48b | 2013-10-01 19:33:05 +0900 | [diff] [blame] | 54 | reg-io-width = <4>; |
| 55 | smsc,irq-active-high; |
| 56 | smsc,irq-push-pull; |
| 57 | vddvario-supply = <®_1p8v>; |
| 58 | vdd33a-supply = <®_3p3v>; |
| 59 | }; |
Magnus Damm | cef20af0 | 2013-11-14 08:03:45 +0900 | [diff] [blame] | 60 | |
| 61 | gpio_keys { |
| 62 | compatible = "gpio-keys"; |
| 63 | #address-cells = <1>; |
| 64 | #size-cells = <0>; |
| 65 | |
| 66 | button@1 { |
| 67 | debounce_interval = <50>; |
| 68 | wakeup = <1>; |
| 69 | label = "DSW2-1"; |
| 70 | linux,code = <KEY_1>; |
| 71 | gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; |
| 72 | }; |
| 73 | button@2 { |
| 74 | debounce_interval = <50>; |
| 75 | wakeup = <1>; |
| 76 | label = "DSW2-2"; |
| 77 | linux,code = <KEY_2>; |
| 78 | gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>; |
| 79 | }; |
| 80 | button@3 { |
| 81 | debounce_interval = <50>; |
| 82 | wakeup = <1>; |
| 83 | label = "DSW2-3"; |
| 84 | linux,code = <KEY_3>; |
| 85 | gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>; |
| 86 | }; |
| 87 | button@4 { |
| 88 | debounce_interval = <50>; |
| 89 | wakeup = <1>; |
| 90 | label = "DSW2-4"; |
| 91 | linux,code = <KEY_4>; |
| 92 | gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>; |
| 93 | }; |
| 94 | }; |
Magnus Damm | 450cca4 | 2012-05-16 15:46:03 +0900 | [diff] [blame] | 95 | }; |