Takeshi Kihara | f893453 | 2018-04-11 18:37:42 +0900 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | /* |
| 3 | * Device Tree Source for the ebisu board |
| 4 | * |
| 5 | * Copyright (C) 2018 Renesas Electronics Corp. |
| 6 | */ |
| 7 | |
| 8 | /dts-v1/; |
| 9 | #include "r8a77990.dtsi" |
Marek Vasut | 9e763fc | 2018-05-31 18:30:17 +0200 | [diff] [blame] | 10 | #include <dt-bindings/gpio/gpio.h> |
Takeshi Kihara | f893453 | 2018-04-11 18:37:42 +0900 | [diff] [blame] | 11 | |
| 12 | / { |
| 13 | model = "Renesas Ebisu board based on r8a77990"; |
| 14 | compatible = "renesas,ebisu", "renesas,r8a77990"; |
| 15 | |
| 16 | aliases { |
| 17 | serial0 = &scif2; |
Marek Vasut | 9e763fc | 2018-05-31 18:30:17 +0200 | [diff] [blame] | 18 | ethernet0 = &avb; |
Takeshi Kihara | f893453 | 2018-04-11 18:37:42 +0900 | [diff] [blame] | 19 | }; |
| 20 | |
| 21 | chosen { |
| 22 | bootargs = "ignore_loglevel"; |
| 23 | stdout-path = "serial0:115200n8"; |
| 24 | }; |
| 25 | |
| 26 | memory@48000000 { |
| 27 | device_type = "memory"; |
| 28 | /* first 128MB is reserved for secure area. */ |
| 29 | reg = <0x0 0x48000000 0x0 0x38000000>; |
| 30 | }; |
| 31 | }; |
| 32 | |
Marek Vasut | 9e763fc | 2018-05-31 18:30:17 +0200 | [diff] [blame] | 33 | &avb { |
| 34 | pinctrl-0 = <&avb_pins>; |
| 35 | pinctrl-names = "default"; |
| 36 | renesas,no-ether-link; |
| 37 | phy-handle = <&phy0>; |
| 38 | phy-mode = "rgmii-txid"; |
| 39 | status = "okay"; |
| 40 | |
| 41 | phy0: ethernet-phy@0 { |
| 42 | rxc-skew-ps = <1500>; |
| 43 | reg = <0>; |
| 44 | interrupt-parent = <&gpio2>; |
| 45 | interrupts = <21 IRQ_TYPE_LEVEL_LOW>; |
| 46 | reset-gpios = <&gpio1 20 GPIO_ACTIVE_LOW>; |
| 47 | }; |
| 48 | }; |
| 49 | |
Hiroyuki Yokoyama | d28f3fe | 2018-09-27 19:05:18 +0900 | [diff] [blame] | 50 | &ehci0 { |
| 51 | status = "okay"; |
| 52 | }; |
| 53 | |
Takeshi Kihara | f893453 | 2018-04-11 18:37:42 +0900 | [diff] [blame] | 54 | &extal_clk { |
| 55 | clock-frequency = <48000000>; |
| 56 | }; |
| 57 | |
Marek Vasut | ab9fbe9 | 2018-12-03 21:43:05 +0100 | [diff] [blame] | 58 | &ohci0 { |
| 59 | status = "okay"; |
| 60 | }; |
| 61 | |
Marek Vasut | 9e763fc | 2018-05-31 18:30:17 +0200 | [diff] [blame] | 62 | &pfc { |
| 63 | avb_pins: avb { |
| 64 | mux { |
| 65 | groups = "avb_link", "avb_mii"; |
| 66 | function = "avb"; |
| 67 | }; |
| 68 | }; |
Marek Vasut | 84ba9eb | 2018-06-13 21:44:50 +0200 | [diff] [blame] | 69 | |
Marek Vasut | ab9fbe9 | 2018-12-03 21:43:05 +0100 | [diff] [blame] | 70 | usb0_pins: usb { |
| 71 | groups = "usb0_b"; |
Hiroyuki Yokoyama | d28f3fe | 2018-09-27 19:05:18 +0900 | [diff] [blame] | 72 | function = "usb0"; |
| 73 | }; |
Hiroyuki Yokoyama | d28f3fe | 2018-09-27 19:05:18 +0900 | [diff] [blame] | 74 | |
Marek Vasut | ab9fbe9 | 2018-12-03 21:43:05 +0100 | [diff] [blame] | 75 | usb30_pins: usb30 { |
| 76 | groups = "usb30"; |
| 77 | function = "usb30"; |
| 78 | }; |
Marek Vasut | 9e763fc | 2018-05-31 18:30:17 +0200 | [diff] [blame] | 79 | }; |
| 80 | |
Marek Vasut | ab9fbe9 | 2018-12-03 21:43:05 +0100 | [diff] [blame] | 81 | &rwdt { |
| 82 | timeout-sec = <60>; |
Marek Vasut | be3a2e2 | 2018-05-31 19:56:42 +0200 | [diff] [blame] | 83 | status = "okay"; |
| 84 | }; |
| 85 | |
Marek Vasut | ab9fbe9 | 2018-12-03 21:43:05 +0100 | [diff] [blame] | 86 | &scif2 { |
Marek Vasut | be3a2e2 | 2018-05-31 19:56:42 +0200 | [diff] [blame] | 87 | status = "okay"; |
| 88 | }; |
| 89 | |
Marek Vasut | ab9fbe9 | 2018-12-03 21:43:05 +0100 | [diff] [blame] | 90 | &usb2_phy0 { |
| 91 | pinctrl-0 = <&usb0_pins>; |
| 92 | pinctrl-names = "default"; |
Marek Vasut | d45e20b | 2018-06-18 06:03:57 +0200 | [diff] [blame] | 93 | |
Marek Vasut | be3a2e2 | 2018-05-31 19:56:42 +0200 | [diff] [blame] | 94 | status = "okay"; |
| 95 | }; |
| 96 | |
Marek Vasut | ab9fbe9 | 2018-12-03 21:43:05 +0100 | [diff] [blame] | 97 | &xhci0 { |
| 98 | pinctrl-0 = <&usb30_pins>; |
| 99 | pinctrl-names = "default"; |
| 100 | |
Takeshi Kihara | f893453 | 2018-04-11 18:37:42 +0900 | [diff] [blame] | 101 | status = "okay"; |
| 102 | }; |