r8a7795-h3ulcb.dts 2.0 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
/*
 * Device Tree Source for the H3ULCB board
 *
 * Copyright (C) 2016 Renesas Electronics Corp.
 * Copyright (C) 2016 Cogent Embedded, Inc.
 *
 * 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/;
#include "r8a7795.dtsi"
#include <dt-bindings/gpio/gpio.h>

/ {
	model = "Renesas H3ULCB board based on r8a7795";
	compatible = "renesas,h3ulcb", "renesas,r8a7795";

	aliases {
		serial0 = &scif2;
22
		ethernet0 = &avb;
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
	};

	chosen {
		stdout-path = "serial0:115200n8";
	};

	memory@48000000 {
		device_type = "memory";
		/* first 128MB is reserved for secure area. */
		reg = <0x0 0x48000000 0x0 0x38000000>;
	};
};

&extal_clk {
	clock-frequency = <16666666>;
};

40 41 42 43
&extalr_clk {
	clock-frequency = <32768>;
};

44
&pfc {
45 46 47
	pinctrl-0 = <&scif_clk_pins>;
	pinctrl-names = "default";

48 49 50 51
	scif2_pins: scif2 {
		groups = "scif2_data_a";
		function = "scif2";
	};
52 53 54 55 56

	scif_clk_pins: scif_clk {
		groups = "scif_clk_a";
		function = "scif_clk";
	};
57

58 59 60 61 62
	i2c2_pins: i2c2 {
		groups = "i2c2_a";
		function = "i2c2";
	};

63 64 65 66
	avb_pins: avb {
		groups = "avb_mdc";
		function = "avb";
	};
67 68 69 70 71 72 73 74
};

&scif2 {
	pinctrl-0 = <&scif2_pins>;
	pinctrl-names = "default";

	status = "okay";
};
75 76 77 78 79

&scif_clk {
	clock-frequency = <14745600>;
	status = "okay";
};
80

81 82 83 84 85 86 87
&i2c2 {
	pinctrl-0 = <&i2c2_pins>;
	pinctrl-names = "default";

	status = "okay";
};

88 89 90 91 92
&wdt0 {
	timeout-sec = <60>;
	status = "okay";
};

93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
&avb {
	pinctrl-0 = <&avb_pins>;
	pinctrl-names = "default";
	renesas,no-ether-link;
	phy-handle = <&phy0>;
	status = "okay";

	phy0: ethernet-phy@0 {
		rxc-skew-ps = <900>;
		rxdv-skew-ps = <0>;
		rxd0-skew-ps = <0>;
		rxd1-skew-ps = <0>;
		rxd2-skew-ps = <0>;
		rxd3-skew-ps = <0>;
		txc-skew-ps = <900>;
		txen-skew-ps = <0>;
		txd0-skew-ps = <0>;
		txd1-skew-ps = <0>;
		txd2-skew-ps = <0>;
		txd3-skew-ps = <0>;
		reg = <0>;
		interrupt-parent = <&gpio2>;
		interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
	};
};