xref: /linux/arch/arm/boot/dts/renesas/emev2-kzm9d.dts (revision cdd5b5a9761fd66d17586e4f4ba6588c70e640ea)
1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0
2*724ba675SRob Herring/*
3*724ba675SRob Herring * Device Tree Source for the KZM9D board
4*724ba675SRob Herring *
5*724ba675SRob Herring * Copyright (C) 2013 Renesas Solutions Corp.
6*724ba675SRob Herring */
7*724ba675SRob Herring/dts-v1/;
8*724ba675SRob Herring
9*724ba675SRob Herring#include "emev2.dtsi"
10*724ba675SRob Herring#include <dt-bindings/gpio/gpio.h>
11*724ba675SRob Herring#include <dt-bindings/input/input.h>
12*724ba675SRob Herring#include <dt-bindings/interrupt-controller/irq.h>
13*724ba675SRob Herring
14*724ba675SRob Herring/ {
15*724ba675SRob Herring	model = "EMEV2 KZM9D Board";
16*724ba675SRob Herring	compatible = "renesas,kzm9d", "renesas,emev2";
17*724ba675SRob Herring
18*724ba675SRob Herring	memory@40000000 {
19*724ba675SRob Herring		device_type = "memory";
20*724ba675SRob Herring		reg = <0x40000000 0x8000000>;
21*724ba675SRob Herring	};
22*724ba675SRob Herring
23*724ba675SRob Herring	aliases {
24*724ba675SRob Herring		serial1 = &uart1;
25*724ba675SRob Herring	};
26*724ba675SRob Herring
27*724ba675SRob Herring	chosen {
28*724ba675SRob Herring		bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
29*724ba675SRob Herring		stdout-path = "serial1:115200n8";
30*724ba675SRob Herring	};
31*724ba675SRob Herring
32*724ba675SRob Herring	gpio_keys {
33*724ba675SRob Herring		compatible = "gpio-keys";
34*724ba675SRob Herring		one {
35*724ba675SRob Herring			debounce-interval = <50>;
36*724ba675SRob Herring			wakeup-source;
37*724ba675SRob Herring			label = "DSW2-1";
38*724ba675SRob Herring			linux,code = <KEY_1>;
39*724ba675SRob Herring			gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
40*724ba675SRob Herring		};
41*724ba675SRob Herring		two {
42*724ba675SRob Herring			debounce-interval = <50>;
43*724ba675SRob Herring			wakeup-source;
44*724ba675SRob Herring			label = "DSW2-2";
45*724ba675SRob Herring			linux,code = <KEY_2>;
46*724ba675SRob Herring			gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
47*724ba675SRob Herring		};
48*724ba675SRob Herring		three {
49*724ba675SRob Herring			debounce-interval = <50>;
50*724ba675SRob Herring			wakeup-source;
51*724ba675SRob Herring			label = "DSW2-3";
52*724ba675SRob Herring			linux,code = <KEY_3>;
53*724ba675SRob Herring			gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
54*724ba675SRob Herring		};
55*724ba675SRob Herring		four {
56*724ba675SRob Herring			debounce-interval = <50>;
57*724ba675SRob Herring			wakeup-source;
58*724ba675SRob Herring			label = "DSW2-4";
59*724ba675SRob Herring			linux,code = <KEY_4>;
60*724ba675SRob Herring			gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
61*724ba675SRob Herring		};
62*724ba675SRob Herring	};
63*724ba675SRob Herring
64*724ba675SRob Herring	reg_1p8v: regulator-1p8v {
65*724ba675SRob Herring		compatible = "regulator-fixed";
66*724ba675SRob Herring		regulator-name = "fixed-1.8V";
67*724ba675SRob Herring		regulator-min-microvolt = <1800000>;
68*724ba675SRob Herring		regulator-max-microvolt = <1800000>;
69*724ba675SRob Herring		regulator-always-on;
70*724ba675SRob Herring		regulator-boot-on;
71*724ba675SRob Herring	};
72*724ba675SRob Herring
73*724ba675SRob Herring	reg_3p3v: regulator-3p3v {
74*724ba675SRob Herring		compatible = "regulator-fixed";
75*724ba675SRob Herring		regulator-name = "fixed-3.3V";
76*724ba675SRob Herring		regulator-min-microvolt = <3300000>;
77*724ba675SRob Herring		regulator-max-microvolt = <3300000>;
78*724ba675SRob Herring		regulator-always-on;
79*724ba675SRob Herring		regulator-boot-on;
80*724ba675SRob Herring	};
81*724ba675SRob Herring
82*724ba675SRob Herring	ethernet@20000000 {
83*724ba675SRob Herring		compatible = "smsc,lan9221", "smsc,lan9115";
84*724ba675SRob Herring		reg = <0x20000000 0x10000>;
85*724ba675SRob Herring		phy-mode = "mii";
86*724ba675SRob Herring		interrupt-parent = <&gpio0>;
87*724ba675SRob Herring		interrupts = <1 IRQ_TYPE_EDGE_RISING>;
88*724ba675SRob Herring		reg-io-width = <4>;
89*724ba675SRob Herring		smsc,irq-active-high;
90*724ba675SRob Herring		smsc,irq-push-pull;
91*724ba675SRob Herring		vddvario-supply = <&reg_1p8v>;
92*724ba675SRob Herring		vdd33a-supply = <&reg_3p3v>;
93*724ba675SRob Herring	};
94*724ba675SRob Herring};
95*724ba675SRob Herring
96*724ba675SRob Herring&iic0 {
97*724ba675SRob Herring	status = "okay";
98*724ba675SRob Herring};
99*724ba675SRob Herring
100*724ba675SRob Herring&iic1 {
101*724ba675SRob Herring	status = "okay";
102*724ba675SRob Herring};
103*724ba675SRob Herring
104*724ba675SRob Herring&pfc {
105*724ba675SRob Herring	uart1_pins: uart1 {
106*724ba675SRob Herring		groups = "uart1_ctrl", "uart1_data";
107*724ba675SRob Herring		function = "uart1";
108*724ba675SRob Herring	};
109*724ba675SRob Herring};
110*724ba675SRob Herring
111*724ba675SRob Herring&uart1 {
112*724ba675SRob Herring	pinctrl-0 = <&uart1_pins>;
113*724ba675SRob Herring	pinctrl-names = "default";
114*724ba675SRob Herring	status = "okay";
115*724ba675SRob Herring};
116