Masahiro Yamada | 0bc5684 | 2018-04-16 12:35:33 +0900 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ OR MIT |
| 2 | // |
| 3 | // Device Tree Source for UniPhier PXs3 Reference Board |
| 4 | // |
| 5 | // Copyright (C) 2017 Socionext Inc. |
| 6 | // Author: Masahiro Yamada <yamada.masahiro@socionext.com> |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 7 | |
| 8 | /dts-v1/; |
Masahiro Yamada | 23bdb3d | 2017-08-29 12:20:53 +0900 | [diff] [blame] | 9 | #include "uniphier-pxs3.dtsi" |
| 10 | #include "uniphier-support-card.dtsi" |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 11 | |
| 12 | / { |
| 13 | model = "UniPhier PXs3 Reference Board"; |
| 14 | compatible = "socionext,uniphier-pxs3-ref", "socionext,uniphier-pxs3"; |
| 15 | |
Masahiro Yamada | ce6ca3c | 2017-03-13 00:16:40 +0900 | [diff] [blame] | 16 | chosen { |
| 17 | stdout-path = "serial0:115200n8"; |
| 18 | }; |
| 19 | |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 20 | aliases { |
| 21 | serial0 = &serial0; |
Masahiro Yamada | 5e8f4ad | 2020-08-04 14:41:09 +0900 | [diff] [blame] | 22 | serial1 = &serialsc; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 23 | serial2 = &serial2; |
| 24 | serial3 = &serial3; |
| 25 | i2c0 = &i2c0; |
| 26 | i2c1 = &i2c1; |
| 27 | i2c2 = &i2c2; |
| 28 | i2c3 = &i2c3; |
| 29 | i2c6 = &i2c6; |
Masahiro Yamada | 423471f | 2020-07-09 15:08:14 +0900 | [diff] [blame] | 30 | spi0 = &spi0; |
| 31 | spi1 = &spi1; |
| 32 | ethernet0 = ð0; |
| 33 | ethernet1 = ð1; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 34 | }; |
| 35 | |
Masahiro Yamada | ce6ca3c | 2017-03-13 00:16:40 +0900 | [diff] [blame] | 36 | memory@80000000 { |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 37 | device_type = "memory"; |
| 38 | reg = <0 0x80000000 0 0xa0000000>; |
| 39 | }; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 40 | }; |
| 41 | |
| 42 | ðsc { |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 43 | interrupts = <4 IRQ_TYPE_LEVEL_LOW>; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 44 | }; |
| 45 | |
Masahiro Yamada | 5e8f4ad | 2020-08-04 14:41:09 +0900 | [diff] [blame] | 46 | &serialsc { |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 47 | interrupts = <4 IRQ_TYPE_LEVEL_LOW>; |
Masahiro Yamada | 5e8f4ad | 2020-08-04 14:41:09 +0900 | [diff] [blame] | 48 | }; |
| 49 | |
Masahiro Yamada | 423471f | 2020-07-09 15:08:14 +0900 | [diff] [blame] | 50 | &spi0 { |
| 51 | status = "okay"; |
| 52 | }; |
| 53 | |
| 54 | &spi1 { |
| 55 | status = "okay"; |
| 56 | }; |
| 57 | |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 58 | &serial0 { |
| 59 | status = "okay"; |
| 60 | }; |
| 61 | |
Masahiro Yamada | b61327d | 2018-03-15 11:43:03 +0900 | [diff] [blame] | 62 | &serial2 { |
| 63 | status = "okay"; |
| 64 | }; |
| 65 | |
| 66 | &serial3 { |
| 67 | status = "okay"; |
| 68 | }; |
| 69 | |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 70 | &gpio { |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 71 | xirq4-hog { |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 72 | gpio-hog; |
| 73 | gpios = <UNIPHIER_GPIO_IRQ(4) 0>; |
| 74 | input; |
| 75 | }; |
| 76 | }; |
| 77 | |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 78 | &i2c0 { |
| 79 | status = "okay"; |
| 80 | }; |
Masahiro Yamada | 23bdb3d | 2017-08-29 12:20:53 +0900 | [diff] [blame] | 81 | |
| 82 | &i2c1 { |
| 83 | status = "okay"; |
| 84 | }; |
| 85 | |
| 86 | &i2c2 { |
| 87 | status = "okay"; |
| 88 | }; |
| 89 | |
| 90 | &i2c3 { |
| 91 | status = "okay"; |
| 92 | }; |
| 93 | |
Masahiro Yamada | 008073b | 2018-06-19 16:11:47 +0900 | [diff] [blame] | 94 | &sd { |
| 95 | status = "okay"; |
| 96 | }; |
| 97 | |
Masahiro Yamada | 0bc5684 | 2018-04-16 12:35:33 +0900 | [diff] [blame] | 98 | ð0 { |
| 99 | status = "okay"; |
| 100 | phy-handle = <ðphy0>; |
| 101 | }; |
| 102 | |
| 103 | &mdio0 { |
Masahiro Yamada | 5e8f4ad | 2020-08-04 14:41:09 +0900 | [diff] [blame] | 104 | ethphy0: ethernet-phy@0 { |
Masahiro Yamada | 0bc5684 | 2018-04-16 12:35:33 +0900 | [diff] [blame] | 105 | reg = <0>; |
| 106 | }; |
| 107 | }; |
| 108 | |
| 109 | ð1 { |
| 110 | status = "okay"; |
| 111 | phy-handle = <ðphy1>; |
| 112 | }; |
| 113 | |
| 114 | &mdio1 { |
Masahiro Yamada | 5e8f4ad | 2020-08-04 14:41:09 +0900 | [diff] [blame] | 115 | ethphy1: ethernet-phy@0 { |
Masahiro Yamada | 0bc5684 | 2018-04-16 12:35:33 +0900 | [diff] [blame] | 116 | reg = <0>; |
| 117 | }; |
| 118 | }; |
| 119 | |
Masahiro Yamada | 23bdb3d | 2017-08-29 12:20:53 +0900 | [diff] [blame] | 120 | &usb0 { |
| 121 | status = "okay"; |
| 122 | }; |
| 123 | |
| 124 | &usb1 { |
| 125 | status = "okay"; |
| 126 | }; |
Masahiro Yamada | a0a95bb | 2017-10-17 21:19:43 +0900 | [diff] [blame] | 127 | |
Masahiro Yamada | c902688 | 2019-04-12 18:55:50 +0900 | [diff] [blame] | 128 | &pcie { |
| 129 | status = "okay"; |
| 130 | }; |
| 131 | |
Masahiro Yamada | a0a95bb | 2017-10-17 21:19:43 +0900 | [diff] [blame] | 132 | &nand { |
| 133 | status = "okay"; |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 134 | |
| 135 | nand@0 { |
| 136 | reg = <0>; |
| 137 | }; |
| 138 | }; |
| 139 | |
| 140 | &ahci0 { |
| 141 | status = "okay"; |
| 142 | }; |
| 143 | |
| 144 | &ahci1 { |
| 145 | status = "okay"; |
Masahiro Yamada | a0a95bb | 2017-10-17 21:19:43 +0900 | [diff] [blame] | 146 | }; |
Masahiro Yamada | 423471f | 2020-07-09 15:08:14 +0900 | [diff] [blame] | 147 | |
| 148 | &pinctrl_ether_rgmii { |
| 149 | tx { |
| 150 | pins = "RGMII0_TXCLK", "RGMII0_TXD0", "RGMII0_TXD1", |
| 151 | "RGMII0_TXD2", "RGMII0_TXD3", "RGMII0_TXCTL"; |
| 152 | drive-strength = <9>; |
| 153 | }; |
| 154 | }; |
| 155 | |
| 156 | &pinctrl_ether1_rgmii { |
| 157 | tx { |
| 158 | pins = "RGMII1_TXCLK", "RGMII1_TXD0", "RGMII1_TXD1", |
| 159 | "RGMII1_TXD2", "RGMII1_TXD3", "RGMII1_TXCTL"; |
| 160 | drive-strength = <9>; |
| 161 | }; |
| 162 | }; |