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" |
| 11 | |
| 12 | / { |
| 13 | model = "Renesas Eagle board based on r8a77970"; |
| 14 | compatible = "renesas,eagle", "renesas,r8a77970"; |
| 15 | |
| 16 | aliases { |
| 17 | serial0 = &scif0; |
| 18 | ethernet0 = &avb; |
| 19 | }; |
| 20 | |
| 21 | chosen { |
Marek Vasut | adaa016 | 2020-04-04 16:12:48 +0200 | [diff] [blame] | 22 | bootargs = "ignore_loglevel rw root=/dev/nfs ip=on"; |
Marek Vasut | b47bc37 | 2017-10-09 21:08:10 +0200 | [diff] [blame] | 23 | stdout-path = "serial0:115200n8"; |
| 24 | }; |
| 25 | |
Marek Vasut | adaa016 | 2020-04-04 16:12:48 +0200 | [diff] [blame] | 26 | d3p3: regulator-fixed { |
| 27 | compatible = "regulator-fixed"; |
| 28 | regulator-name = "fixed-3.3V"; |
| 29 | regulator-min-microvolt = <3300000>; |
| 30 | regulator-max-microvolt = <3300000>; |
| 31 | regulator-boot-on; |
| 32 | regulator-always-on; |
Marek Vasut | b47bc37 | 2017-10-09 21:08:10 +0200 | [diff] [blame] | 33 | }; |
Marek Vasut | ab9fbe9 | 2018-12-03 21:43:05 +0100 | [diff] [blame] | 34 | |
| 35 | hdmi-out { |
| 36 | compatible = "hdmi-connector"; |
| 37 | type = "a"; |
| 38 | |
| 39 | port { |
| 40 | hdmi_con_out: endpoint { |
| 41 | remote-endpoint = <&adv7511_out>; |
| 42 | }; |
| 43 | }; |
| 44 | }; |
| 45 | |
Marek Vasut | ab9fbe9 | 2018-12-03 21:43:05 +0100 | [diff] [blame] | 46 | lvds-decoder { |
| 47 | compatible = "thine,thc63lvd1024"; |
| 48 | |
| 49 | vcc-supply = <&d3p3>; |
| 50 | |
| 51 | ports { |
| 52 | #address-cells = <1>; |
| 53 | #size-cells = <0>; |
| 54 | |
| 55 | port@0 { |
| 56 | reg = <0>; |
| 57 | thc63lvd1024_in: endpoint { |
| 58 | remote-endpoint = <&lvds0_out>; |
| 59 | }; |
| 60 | }; |
| 61 | |
| 62 | port@2 { |
| 63 | reg = <2>; |
| 64 | thc63lvd1024_out: endpoint { |
| 65 | remote-endpoint = <&adv7511_in>; |
| 66 | }; |
| 67 | }; |
| 68 | }; |
| 69 | }; |
Marek Vasut | adaa016 | 2020-04-04 16:12:48 +0200 | [diff] [blame] | 70 | |
| 71 | memory@48000000 { |
| 72 | device_type = "memory"; |
| 73 | /* first 128MB is reserved for secure area. */ |
| 74 | reg = <0x0 0x48000000 0x0 0x38000000>; |
| 75 | }; |
Marek Vasut | b47bc37 | 2017-10-09 21:08:10 +0200 | [diff] [blame] | 76 | }; |
| 77 | |
Marek Vasut | 051a526 | 2018-06-06 20:03:30 +0200 | [diff] [blame] | 78 | &avb { |
Marek Vasut | ab9fbe9 | 2018-12-03 21:43:05 +0100 | [diff] [blame] | 79 | pinctrl-0 = <&avb_pins>; |
| 80 | pinctrl-names = "default"; |
| 81 | |
Marek Vasut | 051a526 | 2018-06-06 20:03:30 +0200 | [diff] [blame] | 82 | renesas,no-ether-link; |
| 83 | phy-handle = <&phy0>; |
| 84 | phy-mode = "rgmii-id"; |
| 85 | status = "okay"; |
| 86 | |
| 87 | phy0: ethernet-phy@0 { |
| 88 | rxc-skew-ps = <1500>; |
| 89 | reg = <0>; |
| 90 | interrupt-parent = <&gpio1>; |
| 91 | interrupts = <17 IRQ_TYPE_LEVEL_LOW>; |
| 92 | }; |
| 93 | }; |
| 94 | |
Marek Vasut | ab9fbe9 | 2018-12-03 21:43:05 +0100 | [diff] [blame] | 95 | &canfd { |
| 96 | pinctrl-0 = <&canfd0_pins>; |
| 97 | pinctrl-names = "default"; |
| 98 | status = "okay"; |
| 99 | |
| 100 | channel0 { |
| 101 | status = "okay"; |
| 102 | }; |
| 103 | }; |
| 104 | |
Marek Vasut | adaa016 | 2020-04-04 16:12:48 +0200 | [diff] [blame] | 105 | &du { |
| 106 | status = "okay"; |
| 107 | }; |
| 108 | |
Marek Vasut | b47bc37 | 2017-10-09 21:08:10 +0200 | [diff] [blame] | 109 | &extal_clk { |
| 110 | clock-frequency = <16666666>; |
| 111 | }; |
| 112 | |
| 113 | &extalr_clk { |
| 114 | clock-frequency = <32768>; |
| 115 | }; |
| 116 | |
Marek Vasut | 051a526 | 2018-06-06 20:03:30 +0200 | [diff] [blame] | 117 | &i2c0 { |
| 118 | pinctrl-0 = <&i2c0_pins>; |
Marek Vasut | b47bc37 | 2017-10-09 21:08:10 +0200 | [diff] [blame] | 119 | pinctrl-names = "default"; |
| 120 | |
Marek Vasut | 051a526 | 2018-06-06 20:03:30 +0200 | [diff] [blame] | 121 | status = "okay"; |
| 122 | clock-frequency = <400000>; |
| 123 | |
| 124 | io_expander: gpio@20 { |
| 125 | compatible = "onnn,pca9654"; |
| 126 | reg = <0x20>; |
| 127 | gpio-controller; |
| 128 | #gpio-cells = <2>; |
Marek Vasut | b47bc37 | 2017-10-09 21:08:10 +0200 | [diff] [blame] | 129 | }; |
Marek Vasut | ab9fbe9 | 2018-12-03 21:43:05 +0100 | [diff] [blame] | 130 | |
| 131 | hdmi@39 { |
| 132 | compatible = "adi,adv7511w"; |
| 133 | reg = <0x39>; |
| 134 | interrupt-parent = <&gpio1>; |
| 135 | interrupts = <20 IRQ_TYPE_LEVEL_LOW>; |
| 136 | |
| 137 | adi,input-depth = <8>; |
| 138 | adi,input-colorspace = "rgb"; |
| 139 | adi,input-clock = "1x"; |
| 140 | adi,input-style = <1>; |
| 141 | adi,input-justification = "evenly"; |
| 142 | |
| 143 | ports { |
| 144 | #address-cells = <1>; |
| 145 | #size-cells = <0>; |
| 146 | |
| 147 | port@0 { |
| 148 | reg = <0>; |
| 149 | adv7511_in: endpoint { |
| 150 | remote-endpoint = <&thc63lvd1024_out>; |
| 151 | }; |
| 152 | }; |
| 153 | |
| 154 | port@1 { |
| 155 | reg = <1>; |
| 156 | adv7511_out: endpoint { |
| 157 | remote-endpoint = <&hdmi_con_out>; |
| 158 | }; |
| 159 | }; |
| 160 | }; |
| 161 | }; |
Marek Vasut | 051a526 | 2018-06-06 20:03:30 +0200 | [diff] [blame] | 162 | }; |
Marek Vasut | b47bc37 | 2017-10-09 21:08:10 +0200 | [diff] [blame] | 163 | |
Marek Vasut | adaa016 | 2020-04-04 16:12:48 +0200 | [diff] [blame] | 164 | &lvds0 { |
| 165 | status = "okay"; |
| 166 | |
| 167 | ports { |
| 168 | port@1 { |
| 169 | lvds0_out: endpoint { |
| 170 | remote-endpoint = <&thc63lvd1024_in>; |
| 171 | }; |
| 172 | }; |
| 173 | }; |
| 174 | }; |
| 175 | |
Marek Vasut | 051a526 | 2018-06-06 20:03:30 +0200 | [diff] [blame] | 176 | &pfc { |
Marek Vasut | ab9fbe9 | 2018-12-03 21:43:05 +0100 | [diff] [blame] | 177 | avb_pins: avb0 { |
| 178 | groups = "avb0_mdio", "avb0_rgmii", "avb0_txcrefclk"; |
| 179 | function = "avb0"; |
| 180 | }; |
| 181 | |
| 182 | canfd0_pins: canfd0 { |
| 183 | groups = "canfd0_data_a"; |
| 184 | function = "canfd0"; |
| 185 | }; |
| 186 | |
Marek Vasut | 051a526 | 2018-06-06 20:03:30 +0200 | [diff] [blame] | 187 | i2c0_pins: i2c0 { |
| 188 | groups = "i2c0"; |
| 189 | function = "i2c0"; |
Marek Vasut | b47bc37 | 2017-10-09 21:08:10 +0200 | [diff] [blame] | 190 | }; |
| 191 | |
Marek Vasut | 051a526 | 2018-06-06 20:03:30 +0200 | [diff] [blame] | 192 | scif0_pins: scif0 { |
| 193 | groups = "scif0_data"; |
| 194 | function = "scif0"; |
Marek Vasut | b47bc37 | 2017-10-09 21:08:10 +0200 | [diff] [blame] | 195 | }; |
| 196 | }; |
| 197 | |
Marek Vasut | 051a526 | 2018-06-06 20:03:30 +0200 | [diff] [blame] | 198 | &rwdt { |
| 199 | timeout-sec = <60>; |
Marek Vasut | b47bc37 | 2017-10-09 21:08:10 +0200 | [diff] [blame] | 200 | status = "okay"; |
| 201 | }; |
| 202 | |
Marek Vasut | 051a526 | 2018-06-06 20:03:30 +0200 | [diff] [blame] | 203 | &scif0 { |
| 204 | pinctrl-0 = <&scif0_pins>; |
Marek Vasut | b47bc37 | 2017-10-09 21:08:10 +0200 | [diff] [blame] | 205 | pinctrl-names = "default"; |
Marek Vasut | b47bc37 | 2017-10-09 21:08:10 +0200 | [diff] [blame] | 206 | |
Marek Vasut | 051a526 | 2018-06-06 20:03:30 +0200 | [diff] [blame] | 207 | status = "okay"; |
Marek Vasut | b47bc37 | 2017-10-09 21:08:10 +0200 | [diff] [blame] | 208 | }; |