emev2-kzm9d.dts 2.2 KB
Newer Older
1
// SPDX-License-Identifier: GPL-2.0
2 3 4
/*
 * Device Tree Source for the KZM9D board
 *
5
 * Copyright (C) 2013 Renesas Solutions Corp.
6 7 8
 */
/dts-v1/;

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

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

18
	memory@40000000 {
19 20 21 22
		device_type = "memory";
		reg = <0x40000000 0x8000000>;
	};

23 24 25 26
	aliases {
		serial1 = &uart1;
	};

27
	chosen {
28
		bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
29
		stdout-path = "serial1:115200n8";
30
	};
31

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

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

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

82
	ethernet@20000000 {
83 84 85 86 87 88 89 90 91 92 93
		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>;
	};
94
};
95

96 97 98 99 100 101 102 103
&iic0 {
	status = "okay";
};

&iic1 {
	status = "okay";
};

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

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