Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Marek Vasut | b47bc37 | 2017-10-09 21:08:10 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Device Tree Source for the Eagle board |
| 4 | * |
| 5 | * Copyright (C) 2016-2017 Renesas Electronics Corp. |
| 6 | * Copyright (C) 2017 Cogent Embedded, Inc. |
Marek Vasut | b47bc37 | 2017-10-09 21:08:10 +0200 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | /dts-v1/; |
| 10 | #include "r8a77970.dtsi" |
Marek Vasut | e4484d7 | 2018-06-16 02:15:12 +0200 | [diff] [blame] | 11 | #include <dt-bindings/gpio/gpio.h> |
Marek Vasut | b47bc37 | 2017-10-09 21:08:10 +0200 | [diff] [blame] | 12 | |
| 13 | / { |
| 14 | model = "Renesas Eagle board based on r8a77970"; |
| 15 | compatible = "renesas,eagle", "renesas,r8a77970"; |
| 16 | |
| 17 | aliases { |
| 18 | serial0 = &scif0; |
| 19 | ethernet0 = &avb; |
Marek Vasut | b38f32f | 2018-02-13 21:34:03 +0100 | [diff] [blame] | 20 | spi0 = &rpc; |
Marek Vasut | b47bc37 | 2017-10-09 21:08:10 +0200 | [diff] [blame] | 21 | }; |
| 22 | |
| 23 | chosen { |
| 24 | bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp"; |
| 25 | stdout-path = "serial0:115200n8"; |
| 26 | }; |
| 27 | |
| 28 | memory@48000000 { |
| 29 | device_type = "memory"; |
| 30 | /* first 128MB is reserved for secure area. */ |
| 31 | reg = <0x0 0x48000000 0x0 0x38000000>; |
| 32 | }; |
| 33 | }; |
| 34 | |
Marek Vasut | 051a526 | 2018-06-06 20:03:30 +0200 | [diff] [blame] | 35 | &avb { |
Marek Vasut | 5e19680 | 2018-06-16 01:16:41 +0200 | [diff] [blame] | 36 | pinctrl-0 = <&avb0_pins>; |
| 37 | pinctrl-names = "default"; |
Marek Vasut | 051a526 | 2018-06-06 20:03:30 +0200 | [diff] [blame] | 38 | renesas,no-ether-link; |
| 39 | phy-handle = <&phy0>; |
| 40 | phy-mode = "rgmii-id"; |
| 41 | status = "okay"; |
| 42 | |
| 43 | phy0: ethernet-phy@0 { |
| 44 | rxc-skew-ps = <1500>; |
| 45 | reg = <0>; |
| 46 | interrupt-parent = <&gpio1>; |
| 47 | interrupts = <17 IRQ_TYPE_LEVEL_LOW>; |
Marek Vasut | 1d7d5e5 | 2018-06-18 04:09:10 +0200 | [diff] [blame] | 48 | reset-gpios = <&gpio1 16 GPIO_ACTIVE_LOW>; |
Marek Vasut | 051a526 | 2018-06-06 20:03:30 +0200 | [diff] [blame] | 49 | }; |
| 50 | }; |
| 51 | |
Marek Vasut | b47bc37 | 2017-10-09 21:08:10 +0200 | [diff] [blame] | 52 | &extal_clk { |
| 53 | clock-frequency = <16666666>; |
| 54 | }; |
| 55 | |
| 56 | &extalr_clk { |
| 57 | clock-frequency = <32768>; |
| 58 | }; |
| 59 | |
Marek Vasut | 051a526 | 2018-06-06 20:03:30 +0200 | [diff] [blame] | 60 | &i2c0 { |
| 61 | pinctrl-0 = <&i2c0_pins>; |
Marek Vasut | b47bc37 | 2017-10-09 21:08:10 +0200 | [diff] [blame] | 62 | pinctrl-names = "default"; |
| 63 | |
Marek Vasut | 051a526 | 2018-06-06 20:03:30 +0200 | [diff] [blame] | 64 | status = "okay"; |
| 65 | clock-frequency = <400000>; |
| 66 | |
| 67 | io_expander: gpio@20 { |
| 68 | compatible = "onnn,pca9654"; |
| 69 | reg = <0x20>; |
| 70 | gpio-controller; |
| 71 | #gpio-cells = <2>; |
Marek Vasut | b47bc37 | 2017-10-09 21:08:10 +0200 | [diff] [blame] | 72 | }; |
Marek Vasut | 051a526 | 2018-06-06 20:03:30 +0200 | [diff] [blame] | 73 | }; |
Marek Vasut | b47bc37 | 2017-10-09 21:08:10 +0200 | [diff] [blame] | 74 | |
Marek Vasut | 051a526 | 2018-06-06 20:03:30 +0200 | [diff] [blame] | 75 | &pfc { |
Marek Vasut | 5e19680 | 2018-06-16 01:16:41 +0200 | [diff] [blame] | 76 | avb0_pins: avb { |
| 77 | mux { |
| 78 | groups = "avb0_link", "avb0_mdio", "avb0_rgmii", "avb0_txcrefclk"; |
| 79 | function = "avb0"; |
| 80 | }; |
| 81 | }; |
| 82 | |
Marek Vasut | 051a526 | 2018-06-06 20:03:30 +0200 | [diff] [blame] | 83 | i2c0_pins: i2c0 { |
| 84 | groups = "i2c0"; |
| 85 | function = "i2c0"; |
Marek Vasut | b47bc37 | 2017-10-09 21:08:10 +0200 | [diff] [blame] | 86 | }; |
| 87 | |
Marek Vasut | 051a526 | 2018-06-06 20:03:30 +0200 | [diff] [blame] | 88 | scif0_pins: scif0 { |
| 89 | groups = "scif0_data"; |
| 90 | function = "scif0"; |
Marek Vasut | b47bc37 | 2017-10-09 21:08:10 +0200 | [diff] [blame] | 91 | }; |
| 92 | }; |
| 93 | |
Marek Vasut | b38f32f | 2018-02-13 21:34:03 +0100 | [diff] [blame] | 94 | &rpc { |
| 95 | num-cs = <1>; |
| 96 | status = "okay"; |
| 97 | spi-max-frequency = <50000000>; |
| 98 | #address-cells = <1>; |
| 99 | #size-cells = <0>; |
| 100 | |
| 101 | flash0: spi-flash@0 { |
| 102 | #address-cells = <1>; |
| 103 | #size-cells = <1>; |
| 104 | compatible = "s25fs512s", "spi-flash", "jedec,spi-nor"; |
| 105 | spi-max-frequency = <50000000>; |
| 106 | spi-tx-bus-width = <1>; |
| 107 | spi-rx-bus-width = <1>; |
| 108 | reg = <0>; |
| 109 | status = "okay"; |
| 110 | }; |
| 111 | }; |
| 112 | |
Marek Vasut | 051a526 | 2018-06-06 20:03:30 +0200 | [diff] [blame] | 113 | &rwdt { |
| 114 | timeout-sec = <60>; |
Marek Vasut | b47bc37 | 2017-10-09 21:08:10 +0200 | [diff] [blame] | 115 | status = "okay"; |
| 116 | }; |
| 117 | |
Marek Vasut | 051a526 | 2018-06-06 20:03:30 +0200 | [diff] [blame] | 118 | &scif0 { |
| 119 | pinctrl-0 = <&scif0_pins>; |
Marek Vasut | b47bc37 | 2017-10-09 21:08:10 +0200 | [diff] [blame] | 120 | pinctrl-names = "default"; |
Marek Vasut | b47bc37 | 2017-10-09 21:08:10 +0200 | [diff] [blame] | 121 | |
Marek Vasut | 051a526 | 2018-06-06 20:03:30 +0200 | [diff] [blame] | 122 | status = "okay"; |
Marek Vasut | b47bc37 | 2017-10-09 21:08:10 +0200 | [diff] [blame] | 123 | }; |