Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * Device Tree Source for the KZM9D board
0004  *
0005  * Copyright (C) 2013 Renesas Solutions Corp.
0006  */
0007 /dts-v1/;
0008 
0009 #include "emev2.dtsi"
0010 #include <dt-bindings/gpio/gpio.h>
0011 #include <dt-bindings/input/input.h>
0012 #include <dt-bindings/interrupt-controller/irq.h>
0013 
0014 / {
0015         model = "EMEV2 KZM9D Board";
0016         compatible = "renesas,kzm9d", "renesas,emev2";
0017 
0018         memory@40000000 {
0019                 device_type = "memory";
0020                 reg = <0x40000000 0x8000000>;
0021         };
0022 
0023         aliases {
0024                 serial1 = &uart1;
0025         };
0026 
0027         chosen {
0028                 bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
0029                 stdout-path = "serial1:115200n8";
0030         };
0031 
0032         gpio_keys {
0033                 compatible = "gpio-keys";
0034                 one {
0035                         debounce-interval = <50>;
0036                         wakeup-source;
0037                         label = "DSW2-1";
0038                         linux,code = <KEY_1>;
0039                         gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
0040                 };
0041                 two {
0042                         debounce-interval = <50>;
0043                         wakeup-source;
0044                         label = "DSW2-2";
0045                         linux,code = <KEY_2>;
0046                         gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
0047                 };
0048                 three {
0049                         debounce-interval = <50>;
0050                         wakeup-source;
0051                         label = "DSW2-3";
0052                         linux,code = <KEY_3>;
0053                         gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
0054                 };
0055                 four {
0056                         debounce-interval = <50>;
0057                         wakeup-source;
0058                         label = "DSW2-4";
0059                         linux,code = <KEY_4>;
0060                         gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
0061                 };
0062         };
0063 
0064         reg_1p8v: regulator-1p8v {
0065                 compatible = "regulator-fixed";
0066                 regulator-name = "fixed-1.8V";
0067                 regulator-min-microvolt = <1800000>;
0068                 regulator-max-microvolt = <1800000>;
0069                 regulator-always-on;
0070                 regulator-boot-on;
0071         };
0072 
0073         reg_3p3v: regulator-3p3v {
0074                 compatible = "regulator-fixed";
0075                 regulator-name = "fixed-3.3V";
0076                 regulator-min-microvolt = <3300000>;
0077                 regulator-max-microvolt = <3300000>;
0078                 regulator-always-on;
0079                 regulator-boot-on;
0080         };
0081 
0082         ethernet@20000000 {
0083                 compatible = "smsc,lan9221", "smsc,lan9115";
0084                 reg = <0x20000000 0x10000>;
0085                 phy-mode = "mii";
0086                 interrupt-parent = <&gpio0>;
0087                 interrupts = <1 IRQ_TYPE_EDGE_RISING>;
0088                 reg-io-width = <4>;
0089                 smsc,irq-active-high;
0090                 smsc,irq-push-pull;
0091                 vddvario-supply = <&reg_1p8v>;
0092                 vdd33a-supply = <&reg_3p3v>;
0093         };
0094 };
0095 
0096 &iic0 {
0097         status = "okay";
0098 };
0099 
0100 &iic1 {
0101         status = "okay";
0102 };
0103 
0104 &pfc {
0105         uart1_pins: uart1 {
0106                 groups = "uart1_ctrl", "uart1_data";
0107                 function = "uart1";
0108         };
0109 };
0110 
0111 &uart1 {
0112         pinctrl-0 = <&uart1_pins>;
0113         pinctrl-names = "default";
0114         status = "okay";
0115 };