2018-06-11 23:49:36 +09:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2012-05-16 15:46:03 +09:00
|
|
|
/*
|
|
|
|
* Device Tree Source for the KZM9D board
|
|
|
|
*
|
2013-10-01 19:33:05 +09:00
|
|
|
* Copyright (C) 2013 Renesas Solutions Corp.
|
2012-05-16 15:46:03 +09:00
|
|
|
*/
|
|
|
|
/dts-v1/;
|
|
|
|
|
2013-11-14 08:03:45 +09:00
|
|
|
#include "emev2.dtsi"
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
#include <dt-bindings/input/input.h>
|
2013-11-28 17:37:50 +01:00
|
|
|
#include <dt-bindings/interrupt-controller/irq.h>
|
2012-05-16 15:46:03 +09:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "EMEV2 KZM9D Board";
|
|
|
|
compatible = "renesas,kzm9d", "renesas,emev2";
|
|
|
|
|
2016-05-20 09:10:07 +02:00
|
|
|
memory@40000000 {
|
2012-05-16 15:46:03 +09:00
|
|
|
device_type = "memory";
|
|
|
|
reg = <0x40000000 0x8000000>;
|
|
|
|
};
|
|
|
|
|
2016-06-14 16:15:23 +02:00
|
|
|
aliases {
|
|
|
|
serial1 = &uart1;
|
|
|
|
};
|
|
|
|
|
2012-05-16 15:46:03 +09:00
|
|
|
chosen {
|
2019-05-18 19:03:57 +09:00
|
|
|
bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
|
2016-06-14 16:15:23 +02:00
|
|
|
stdout-path = "serial1:115200n8";
|
2012-05-16 15:46:03 +09:00
|
|
|
};
|
2013-10-01 19:33:05 +09:00
|
|
|
|
2013-11-14 08:03:45 +09:00
|
|
|
gpio_keys {
|
|
|
|
compatible = "gpio-keys";
|
2024-09-26 13:07:19 +02:00
|
|
|
key-1 {
|
2018-02-13 15:15:29 +01:00
|
|
|
debounce-interval = <50>;
|
2015-10-16 17:01:36 +01:00
|
|
|
wakeup-source;
|
2013-11-14 08:03:45 +09:00
|
|
|
label = "DSW2-1";
|
|
|
|
linux,code = <KEY_1>;
|
|
|
|
gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
2024-09-26 13:07:19 +02:00
|
|
|
key-2 {
|
2018-02-13 15:15:29 +01:00
|
|
|
debounce-interval = <50>;
|
2015-10-16 17:01:36 +01:00
|
|
|
wakeup-source;
|
2013-11-14 08:03:45 +09:00
|
|
|
label = "DSW2-2";
|
|
|
|
linux,code = <KEY_2>;
|
|
|
|
gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
2024-09-26 13:07:19 +02:00
|
|
|
key-3 {
|
2018-02-13 15:15:29 +01:00
|
|
|
debounce-interval = <50>;
|
2015-10-16 17:01:36 +01:00
|
|
|
wakeup-source;
|
2013-11-14 08:03:45 +09:00
|
|
|
label = "DSW2-3";
|
|
|
|
linux,code = <KEY_3>;
|
|
|
|
gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
2024-09-26 13:07:19 +02:00
|
|
|
key-4 {
|
2018-02-13 15:15:29 +01:00
|
|
|
debounce-interval = <50>;
|
2015-10-16 17:01:36 +01:00
|
|
|
wakeup-source;
|
2013-11-14 08:03:45 +09:00
|
|
|
label = "DSW2-4";
|
|
|
|
linux,code = <KEY_4>;
|
|
|
|
gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
};
|
2014-09-25 10:32:13 +09:00
|
|
|
|
2016-05-20 09:10:07 +02:00
|
|
|
reg_1p8v: regulator-1p8v {
|
2014-09-25 10:32:13 +09:00
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "fixed-1.8V";
|
|
|
|
regulator-min-microvolt = <1800000>;
|
|
|
|
regulator-max-microvolt = <1800000>;
|
|
|
|
regulator-always-on;
|
|
|
|
regulator-boot-on;
|
|
|
|
};
|
|
|
|
|
2016-05-20 09:10:07 +02:00
|
|
|
reg_3p3v: regulator-3p3v {
|
2014-09-25 10:32:13 +09:00
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "fixed-3.3V";
|
|
|
|
regulator-min-microvolt = <3300000>;
|
|
|
|
regulator-max-microvolt = <3300000>;
|
|
|
|
regulator-always-on;
|
|
|
|
regulator-boot-on;
|
|
|
|
};
|
|
|
|
|
2015-04-27 14:55:33 +02:00
|
|
|
ethernet@20000000 {
|
2021-09-09 09:52:36 +02:00
|
|
|
compatible = "smsc,lan9221", "smsc,lan9115";
|
2014-09-25 10:32:13 +09:00
|
|
|
reg = <0x20000000 0x10000>;
|
|
|
|
phy-mode = "mii";
|
2024-10-04 14:52:43 +02:00
|
|
|
interrupts-extended = <&gpio0 1 IRQ_TYPE_EDGE_RISING>;
|
2014-09-25 10:32:13 +09:00
|
|
|
reg-io-width = <4>;
|
|
|
|
smsc,irq-active-high;
|
|
|
|
smsc,irq-push-pull;
|
|
|
|
vddvario-supply = <®_1p8v>;
|
|
|
|
vdd33a-supply = <®_3p3v>;
|
|
|
|
};
|
2012-05-16 15:46:03 +09:00
|
|
|
};
|
2015-02-17 14:31:55 +01:00
|
|
|
|
2015-07-11 09:46:26 +02:00
|
|
|
&iic0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&iic1 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2015-02-17 14:31:55 +01:00
|
|
|
&pfc {
|
2016-05-20 09:10:07 +02:00
|
|
|
uart1_pins: uart1 {
|
2016-03-18 07:57:10 +09:00
|
|
|
groups = "uart1_ctrl", "uart1_data";
|
|
|
|
function = "uart1";
|
2015-02-17 14:31:55 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart1 {
|
|
|
|
pinctrl-0 = <&uart1_pins>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
status = "okay";
|
|
|
|
};
|