emev2-kzm9d.dts 2.4 KB
Newer Older
1 2 3
/*
 * Device Tree Source for the KZM9D board
 *
4
 * Copyright (C) 2013 Renesas Solutions Corp.
5 6 7 8 9 10 11
 *
 * This file is licensed under the terms of the GNU General Public License
 * version 2.  This program is licensed "as is" without any warranty of any
 * kind, whether express or implied.
 */
/dts-v1/;

12 13 14
#include "emev2.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
15
#include <dt-bindings/interrupt-controller/irq.h>
16 17 18 19 20

/ {
	model = "EMEV2 KZM9D Board";
	compatible = "renesas,kzm9d", "renesas,emev2";

21
	memory@40000000 {
22 23 24 25 26
		device_type = "memory";
		reg = <0x40000000 0x8000000>;
	};

	chosen {
27
		bootargs = "console=ttyS1,115200n81 ignore_loglevel root=/dev/nfs ip=dhcp";
28
		stdout-path = &uart1;
29
	};
30

31 32 33 34 35
	gpio_keys {
		compatible = "gpio-keys";
		#address-cells = <1>;
		#size-cells = <0>;

36
		one {
37
			debounce_interval = <50>;
38
			wakeup-source;
39 40 41 42
			label = "DSW2-1";
			linux,code = <KEY_1>;
			gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
		};
43
		two {
44
			debounce_interval = <50>;
45
			wakeup-source;
46 47 48 49
			label = "DSW2-2";
			linux,code = <KEY_2>;
			gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
		};
50
		three {
51
			debounce_interval = <50>;
52
			wakeup-source;
53 54 55 56
			label = "DSW2-3";
			linux,code = <KEY_3>;
			gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
		};
57
		four {
58
			debounce_interval = <50>;
59
			wakeup-source;
60 61 62 63 64
			label = "DSW2-4";
			linux,code = <KEY_4>;
			gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
		};
	};
65

66
	reg_1p8v: regulator-1p8v {
67 68 69 70 71 72 73 74
		compatible = "regulator-fixed";
		regulator-name = "fixed-1.8V";
		regulator-min-microvolt = <1800000>;
		regulator-max-microvolt = <1800000>;
		regulator-always-on;
		regulator-boot-on;
	};

75
	reg_3p3v: regulator-3p3v {
76 77 78 79 80 81 82 83
		compatible = "regulator-fixed";
		regulator-name = "fixed-3.3V";
		regulator-min-microvolt = <3300000>;
		regulator-max-microvolt = <3300000>;
		regulator-always-on;
		regulator-boot-on;
	};

84
	ethernet@20000000 {
85 86 87 88 89 90 91 92 93 94 95
		compatible = "smsc,lan9220", "smsc,lan9115";
		reg = <0x20000000 0x10000>;
		phy-mode = "mii";
		interrupt-parent = <&gpio0>;
		interrupts = <1 IRQ_TYPE_EDGE_RISING>;
		reg-io-width = <4>;
		smsc,irq-active-high;
		smsc,irq-push-pull;
		vddvario-supply = <&reg_1p8v>;
		vdd33a-supply = <&reg_3p3v>;
	};
96
};
97

98 99 100 101 102 103 104 105
&iic0 {
	status = "okay";
};

&iic1 {
	status = "okay";
};

106
&pfc {
107
	uart1_pins: uart1 {
108 109
		groups = "uart1_ctrl", "uart1_data";
		function = "uart1";
110 111 112 113 114 115 116 117
	};
};

&uart1 {
	pinctrl-0 = <&uart1_pins>;
	pinctrl-names = "default";
	status = "okay";
};