Jim Liu | f59405f | 2024-08-19 15:24:28 +0800 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | // Copyright (c) 2024 Nuvoton Technology |
| 3 | |
| 4 | /dts-v1/; |
| 5 | |
| 6 | #include <dt-bindings/phy/nuvoton,npcm-usbphy.h> |
| 7 | #include "nuvoton-npcm845.dtsi" |
| 8 | #include "nuvoton-npcm845-yosemite4-pincfg.dtsi" |
| 9 | |
| 10 | / { |
| 11 | model = "Nuvoton npcm845 yosemite4"; |
| 12 | compatible = "nuvoton,npcm845"; |
| 13 | |
| 14 | aliases { |
| 15 | serial0 = &serial0; |
| 16 | ethernet0 = &gmac0; |
| 17 | ethernet1 = &gmac1; |
| 18 | ethernet2 = &gmac2; |
| 19 | ethernet3 = &gmac3; |
| 20 | i2c0 = &i2c0; |
| 21 | i2c1 = &i2c1; |
| 22 | i2c2 = &i2c2; |
| 23 | i2c3 = &i2c3; |
| 24 | i2c4 = &i2c4; |
| 25 | i2c5 = &i2c5; |
| 26 | i2c6 = &i2c6; |
| 27 | i2c7 = &i2c7; |
| 28 | i2c8 = &i2c8; |
| 29 | i2c9 = &i2c9; |
| 30 | i2c10 = &i2c10; |
| 31 | i2c11 = &i2c11; |
| 32 | i2c12 = &i2c12; |
| 33 | i2c13 = &i2c13; |
| 34 | i2c14 = &i2c14; |
| 35 | i2c15 = &i2c15; |
| 36 | i2c16 = &i2c16; |
| 37 | i2c17 = &i2c17; |
| 38 | i2c18 = &i2c18; |
| 39 | i2c19 = &i2c19; |
| 40 | i2c20 = &i2c20; |
| 41 | i2c21 = &i2c21; |
| 42 | i2c22 = &i2c22; |
| 43 | i2c23 = &i2c23; |
| 44 | i2c24 = &i2c24; |
| 45 | i2c25 = &i2c25; |
| 46 | i2c26 = &i2c26; |
| 47 | spi0 = &fiu0; |
| 48 | spi1 = &fiu1; |
| 49 | spi3 = &fiu3; |
| 50 | spi4 = &fiux; |
| 51 | spi5 = &pspi; |
| 52 | usb0 = &udc0; |
| 53 | usb1 = &ehci1; |
| 54 | usb2 = &udc8; |
| 55 | }; |
| 56 | |
| 57 | chosen { |
| 58 | stdout-path = &serial0; |
| 59 | }; |
| 60 | |
| 61 | memory { |
| 62 | reg = <0x0 0x0 0x0 0x40000000>; |
| 63 | }; |
| 64 | |
| 65 | tpm@0 { |
| 66 | compatible = "microsoft,ftpm"; |
| 67 | }; |
| 68 | |
| 69 | firmware { |
| 70 | optee { |
| 71 | compatible = "linaro,optee-tz"; |
| 72 | method = "smc"; |
| 73 | }; |
| 74 | }; |
| 75 | |
| 76 | vsbr2: vsbr2 { |
| 77 | compatible = "regulator-npcm845"; |
| 78 | regulator-name = "vr2"; |
| 79 | regulator-min-microvolt = <1800000>; |
| 80 | regulator-max-microvolt = <3300000>; |
| 81 | regulator-always-on; |
| 82 | }; |
| 83 | |
| 84 | vsbv8: vsbv8 { |
| 85 | compatible = "regulator-npcm845"; |
| 86 | regulator-name = "v8"; |
| 87 | regulator-min-microvolt = <1800000>; |
| 88 | regulator-max-microvolt = <3300000>; |
| 89 | regulator-always-on; |
| 90 | }; |
| 91 | |
| 92 | vsbv5: vsbv5 { |
| 93 | compatible = "regulator-npcm845"; |
| 94 | regulator-name = "v5"; |
| 95 | regulator-min-microvolt = <1800000>; |
| 96 | regulator-max-microvolt = <3300000>; |
| 97 | regulator-always-on; |
| 98 | }; |
| 99 | |
| 100 | }; |
| 101 | |
| 102 | &serial0 { |
| 103 | status = "okay"; |
| 104 | }; |
| 105 | |
| 106 | &watchdog1 { |
| 107 | status = "okay"; |
| 108 | }; |
| 109 | |
| 110 | &fiu0 { |
| 111 | status = "okay"; |
| 112 | pinctrl-names = "default"; |
| 113 | pinctrl-0 = <&spi0cs1_pins>; |
| 114 | spi-nor@0 { |
| 115 | compatible = "jedec,spi-nor"; |
| 116 | reg = <0>; |
| 117 | spi-max-frequency = <25000000>; |
| 118 | }; |
| 119 | spi_flash@1 { |
| 120 | compatible = "jedec,spi-nor"; |
| 121 | reg = <1>; |
| 122 | spi-max-frequency = <25000000>; |
| 123 | }; |
| 124 | }; |
| 125 | |
| 126 | &fiu1 { |
| 127 | status = "okay"; |
| 128 | spi-nor@0 { |
| 129 | compatible = "jedec,spi-nor"; |
| 130 | reg = <0>; |
| 131 | spi-max-frequency = <25000000>; |
| 132 | }; |
| 133 | }; |
| 134 | |
| 135 | &fiu3 { |
| 136 | pinctrl-0 = <&spi3_pins>, <&spi3quad_pins>; |
| 137 | status = "okay"; |
| 138 | vqspi-supply = <&vsbv5>; |
| 139 | vqspi-microvolt = <3300000>; |
| 140 | spi-nor@0 { |
| 141 | compatible = "jedec,spi-nor"; |
| 142 | reg = <0>; |
| 143 | spi-max-frequency = <25000000>; |
| 144 | }; |
| 145 | }; |
| 146 | |
| 147 | &fiux { |
| 148 | nuvoton,spix-mode; |
| 149 | status = "okay"; |
| 150 | }; |
| 151 | |
| 152 | &pspi { |
| 153 | status = "okay"; |
| 154 | }; |
| 155 | |
| 156 | &usbphy1 { |
| 157 | status = "okay"; |
| 158 | }; |
| 159 | |
| 160 | &usbphy2 { |
| 161 | status = "okay"; |
| 162 | }; |
| 163 | |
| 164 | &usbphy3 { |
| 165 | status = "okay"; |
| 166 | }; |
| 167 | |
| 168 | &udc0 { |
| 169 | status = "okay"; |
| 170 | phys = <&usbphy1 NPCM_UDC0_7>; |
| 171 | }; |
| 172 | |
| 173 | &ehci1 { |
| 174 | status = "okay"; |
| 175 | phys = <&usbphy2 NPCM_USBH1>; |
| 176 | }; |
| 177 | |
| 178 | &udc8 { |
| 179 | status = "okay"; |
| 180 | phys = <&usbphy3 NPCM_UDC8>; |
| 181 | }; |
| 182 | |
| 183 | &rng { |
| 184 | status = "okay"; |
| 185 | }; |
| 186 | |
| 187 | &aes { |
| 188 | status = "okay"; |
| 189 | }; |
| 190 | |
| 191 | &sha { |
| 192 | status = "okay"; |
| 193 | }; |
| 194 | |
| 195 | &otp { |
| 196 | status = "okay"; |
| 197 | }; |
| 198 | |
| 199 | &pinctrl { |
| 200 | pinctrl-names = "default"; |
| 201 | pinctrl-0 = < |
| 202 | &spix_pins |
| 203 | &r1_pins |
| 204 | &r1en_pins |
| 205 | &r1oen_pins |
| 206 | &r2_pins |
| 207 | &r2en_pins |
| 208 | &r2oen_pins |
| 209 | &gpio234_pins |
| 210 | &gpio61_pins |
| 211 | &gpio46_pins |
| 212 | &gpio54_pins |
| 213 | &gpio55_pins |
| 214 | &gpio121_pins |
| 215 | &gpio108_pins |
| 216 | &gpio109_pins |
| 217 | &gpio183_pins |
| 218 | &gpio184_pins |
| 219 | &gpio189_pins |
| 220 | &gpio92_pins |
| 221 | &gpio35_pins |
| 222 | &gpio36_pins |
| 223 | &gpio62_pins |
| 224 | &gpio45_pins |
| 225 | &gpio83_pins |
| 226 | &gpio144_pins |
| 227 | &gpio145_pins |
| 228 | &gpio146_pins |
| 229 | &gpio159_pins |
| 230 | &gpio127_pins |
| 231 | &gpio15_pins |
| 232 | >; |
| 233 | }; |