1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 2 /* 3 * Copyright (c) 2023 BayLibre, SAS. 3 * Copyright (c) 2023 BayLibre, SAS. 4 * Author: Jerome Brunet <jbrunet@baylibre.com> 4 * Author: Jerome Brunet <jbrunet@baylibre.com> 5 */ 5 */ 6 6 7 #include <dt-bindings/clock/g12a-clkc.h> 7 #include <dt-bindings/clock/g12a-clkc.h> 8 #include <dt-bindings/input/input.h> 8 #include <dt-bindings/input/input.h> 9 #include <dt-bindings/leds/common.h> 9 #include <dt-bindings/leds/common.h> 10 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/gpio/gpio.h> 11 #include <dt-bindings/gpio/meson-g12a-gpio.h> 11 #include <dt-bindings/gpio/meson-g12a-gpio.h> 12 #include <dt-bindings/sound/meson-g12a-toacode 12 #include <dt-bindings/sound/meson-g12a-toacodec.h> 13 #include <dt-bindings/sound/meson-g12a-tohdmit 13 #include <dt-bindings/sound/meson-g12a-tohdmitx.h> 14 14 15 / { 15 / { 16 aliases { 16 aliases { 17 serial0 = &uart_AO; 17 serial0 = &uart_AO; 18 ethernet0 = ðmac; 18 ethernet0 = ðmac; 19 spi0 = &spifc; 19 spi0 = &spifc; 20 }; 20 }; 21 21 22 memory@0 { 22 memory@0 { 23 device_type = "memory"; 23 device_type = "memory"; 24 reg = <0x0 0x0 0x0 0x80000000> 24 reg = <0x0 0x0 0x0 0x80000000>; 25 }; 25 }; 26 26 27 chosen { 27 chosen { 28 stdout-path = "serial0:115200n 28 stdout-path = "serial0:115200n8"; 29 }; 29 }; 30 30 31 dioo2133: audio-amplifier-0 { 31 dioo2133: audio-amplifier-0 { 32 compatible = "simple-audio-amp 32 compatible = "simple-audio-amplifier"; 33 enable-gpios = <&gpio GPIOX_0 33 enable-gpios = <&gpio GPIOX_0 GPIO_ACTIVE_HIGH>; 34 VCC-supply = <&vcc_5v>; 34 VCC-supply = <&vcc_5v>; 35 sound-name-prefix = "10U2"; 35 sound-name-prefix = "10U2"; 36 }; 36 }; 37 37 38 /* TOFIX: handle CVBS_DET on SARADC ch 38 /* TOFIX: handle CVBS_DET on SARADC channel 0 */ 39 cvbs-connector { 39 cvbs-connector { 40 compatible = "composite-video- 40 compatible = "composite-video-connector"; 41 41 42 port { 42 port { 43 cvbs_connector_in: end 43 cvbs_connector_in: endpoint { 44 remote-endpoin 44 remote-endpoint = <&cvbs_vdac_out>; 45 }; 45 }; 46 }; 46 }; 47 }; 47 }; 48 48 49 emmc_pwrseq: emmc-pwrseq { 49 emmc_pwrseq: emmc-pwrseq { 50 compatible = "mmc-pwrseq-emmc" 50 compatible = "mmc-pwrseq-emmc"; 51 reset-gpios = <&gpio BOOT_12 G 51 reset-gpios = <&gpio BOOT_12 GPIO_ACTIVE_LOW>; 52 }; 52 }; 53 53 54 hdmi-connector { 54 hdmi-connector { 55 compatible = "hdmi-connector"; 55 compatible = "hdmi-connector"; 56 type = "a"; 56 type = "a"; 57 57 58 port { 58 port { 59 hdmi_connector_in: end 59 hdmi_connector_in: endpoint { 60 remote-endpoin 60 remote-endpoint = <&hdmi_tx_tmds_out>; 61 }; 61 }; 62 }; 62 }; 63 }; 63 }; 64 64 65 led-blue { 65 led-blue { 66 compatible = "pwm-leds"; 66 compatible = "pwm-leds"; 67 67 68 led { 68 led { 69 color = <LED_COLOR_ID_ 69 color = <LED_COLOR_ID_BLUE>; 70 function = LED_FUNCTIO 70 function = LED_FUNCTION_ACTIVITY; 71 linux,default-trigger 71 linux,default-trigger = "heartbeat"; 72 max-brightness = <255> 72 max-brightness = <255>; 73 pwms = <&pwm_ab 1 1250 73 pwms = <&pwm_ab 1 1250 0>; 74 active-low; 74 active-low; 75 }; 75 }; 76 }; 76 }; 77 77 78 led-green { 78 led-green { 79 compatible = "pwm-leds"; 79 compatible = "pwm-leds"; 80 80 81 led { 81 led { 82 color = <LED_COLOR_ID_ 82 color = <LED_COLOR_ID_GREEN>; 83 function = LED_FUNCTIO 83 function = LED_FUNCTION_STATUS; 84 linux,default-trigger 84 linux,default-trigger = "default-on"; 85 max-brightness = <255> 85 max-brightness = <255>; 86 pwms = <&pwm_cd 1 1250 86 pwms = <&pwm_cd 1 1250 0>; 87 active-low; 87 active-low; 88 }; 88 }; 89 }; 89 }; 90 90 91 led-orange { 91 led-orange { 92 compatible = "gpio-leds"; 92 compatible = "gpio-leds"; 93 93 94 led { 94 led { 95 color = <LED_COLOR_ID_ 95 color = <LED_COLOR_ID_AMBER>; 96 function = LED_FUNCTIO 96 function = LED_FUNCTION_STANDBY; 97 gpios = <&gpio GPIOX_6 97 gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>; 98 panic-indicator; 98 panic-indicator; 99 }; 99 }; 100 }; 100 }; 101 101 102 dc_in: regulator-dc-in { 102 dc_in: regulator-dc-in { 103 compatible = "regulator-fixed" 103 compatible = "regulator-fixed"; 104 regulator-name = "5V_IN"; 104 regulator-name = "5V_IN"; 105 regulator-min-microvolt = <500 105 regulator-min-microvolt = <5000000>; 106 regulator-max-microvolt = <500 106 regulator-max-microvolt = <5000000>; 107 regulator-always-on; 107 regulator-always-on; 108 }; 108 }; 109 109 110 flash_1v8: regulator-flash-1v8 { 110 flash_1v8: regulator-flash-1v8 { 111 compatible = "regulator-fixed" 111 compatible = "regulator-fixed"; 112 regulator-name = "FLASH_1V8"; 112 regulator-name = "FLASH_1V8"; 113 regulator-min-microvolt = <180 113 regulator-min-microvolt = <1800000>; 114 regulator-max-microvolt = <180 114 regulator-max-microvolt = <1800000>; 115 regulator-always-on; 115 regulator-always-on; 116 vin-supply = <&vcc_3v3>; 116 vin-supply = <&vcc_3v3>; 117 }; 117 }; 118 118 119 vcc_card: regulator-vcc-card { 119 vcc_card: regulator-vcc-card { 120 compatible = "regulator-fixed" 120 compatible = "regulator-fixed"; 121 regulator-name = "VCC_CARD"; 121 regulator-name = "VCC_CARD"; 122 regulator-min-microvolt = <330 122 regulator-min-microvolt = <3300000>; 123 regulator-max-microvolt = <330 123 regulator-max-microvolt = <3300000>; 124 vin-supply = <&vddao_3v3>; 124 vin-supply = <&vddao_3v3>; 125 gpio = <&gpio GPIOX_2 (GPIO_AC 125 gpio = <&gpio GPIOX_2 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; 126 enable-active-high; 126 enable-active-high; 127 gpio-open-drain; 127 gpio-open-drain; 128 }; 128 }; 129 129 130 vcc_3v3: regulator-vcc-3v3 { 130 vcc_3v3: regulator-vcc-3v3 { 131 compatible = "regulator-fixed" 131 compatible = "regulator-fixed"; 132 regulator-name = "VCC_3V3"; 132 regulator-name = "VCC_3V3"; 133 regulator-min-microvolt = <330 133 regulator-min-microvolt = <3300000>; 134 regulator-max-microvolt = <330 134 regulator-max-microvolt = <3300000>; 135 regulator-always-on; 135 regulator-always-on; 136 vin-supply = <&vddao_3v3>; 136 vin-supply = <&vddao_3v3>; 137 137 138 /* FIXME: controlled by TEST_N 138 /* FIXME: controlled by TEST_N */ 139 }; 139 }; 140 140 141 vcc_5v: regulator-vcc-5v { 141 vcc_5v: regulator-vcc-5v { 142 compatible = "regulator-fixed" 142 compatible = "regulator-fixed"; 143 regulator-name = "VCC_5V"; 143 regulator-name = "VCC_5V"; 144 regulator-min-microvolt = <500 144 regulator-min-microvolt = <5000000>; 145 regulator-max-microvolt = <500 145 regulator-max-microvolt = <5000000>; 146 regulator-always-on; 146 regulator-always-on; 147 vin-supply = <&dc_in>; 147 vin-supply = <&dc_in>; 148 gpio = <&gpio GPIOH_8 (GPIO_AC 148 gpio = <&gpio GPIOH_8 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; 149 enable-active-high; 149 enable-active-high; 150 gpio-open-drain; 150 gpio-open-drain; 151 }; 151 }; 152 152 153 vddao_3v3: regulator-vddao-3v3 { 153 vddao_3v3: regulator-vddao-3v3 { 154 compatible = "regulator-fixed" 154 compatible = "regulator-fixed"; 155 regulator-name = "VDDAO_3V3"; 155 regulator-name = "VDDAO_3V3"; 156 regulator-min-microvolt = <330 156 regulator-min-microvolt = <3300000>; 157 regulator-max-microvolt = <330 157 regulator-max-microvolt = <3300000>; 158 regulator-always-on; 158 regulator-always-on; 159 vin-supply = <&dc_in>; 159 vin-supply = <&dc_in>; 160 }; 160 }; 161 161 162 vddcpu_b: regulator-vddcpu-b { 162 vddcpu_b: regulator-vddcpu-b { 163 compatible = "pwm-regulator"; 163 compatible = "pwm-regulator"; 164 regulator-name = "VDDCPU_B"; 164 regulator-name = "VDDCPU_B"; 165 regulator-min-microvolt = <730 165 regulator-min-microvolt = <730000>; 166 regulator-max-microvolt = <101 166 regulator-max-microvolt = <1011000>; 167 regulator-boot-on; 167 regulator-boot-on; 168 regulator-always-on; 168 regulator-always-on; 169 pwm-supply = <&dc_in>; 169 pwm-supply = <&dc_in>; 170 pwms = <&pwm_AO_cd 1 1250 0>; 170 pwms = <&pwm_AO_cd 1 1250 0>; 171 pwm-dutycycle-range = <100 0>; 171 pwm-dutycycle-range = <100 0>; 172 }; 172 }; 173 173 174 vddio_ao18: regulator-vddio-ao18 { 174 vddio_ao18: regulator-vddio-ao18 { 175 compatible = "regulator-fixed" 175 compatible = "regulator-fixed"; 176 regulator-name = "VDDIO_AO18"; 176 regulator-name = "VDDIO_AO18"; 177 regulator-min-microvolt = <180 177 regulator-min-microvolt = <1800000>; 178 regulator-max-microvolt = <180 178 regulator-max-microvolt = <1800000>; 179 regulator-always-on; 179 regulator-always-on; 180 vin-supply = <&vddao_3v3>; 180 vin-supply = <&vddao_3v3>; 181 }; 181 }; 182 182 183 vddio_c: regulator-vddio-c { 183 vddio_c: regulator-vddio-c { 184 compatible = "regulator-gpio"; 184 compatible = "regulator-gpio"; 185 regulator-name = "VDDIO_C"; 185 regulator-name = "VDDIO_C"; 186 regulator-min-microvolt = <180 186 regulator-min-microvolt = <1800000>; 187 regulator-max-microvolt = <330 187 regulator-max-microvolt = <3300000>; 188 regulator-settling-time-up-us 188 regulator-settling-time-up-us = <200>; 189 regulator-settling-time-down-u 189 regulator-settling-time-down-us = <50000>; 190 vin-supply = <&vddao_3v3>; 190 vin-supply = <&vddao_3v3>; 191 gpios = <&gpio GPIOX_4 GPIO_AC 191 gpios = <&gpio GPIOX_4 GPIO_ACTIVE_HIGH>; 192 states = <3300000 0>, 192 states = <3300000 0>, 193 <1800000 1>; 193 <1800000 1>; 194 }; 194 }; 195 195 196 sound { 196 sound { 197 compatible = "amlogic,axg-soun 197 compatible = "amlogic,axg-sound-card"; 198 audio-widgets = "Line", "Lineo 198 audio-widgets = "Line", "Lineout"; 199 audio-aux-devs = <&tdmout_a>, 199 audio-aux-devs = <&tdmout_a>, <&tdmout_b>, <&tdmout_c>, 200 <&tdmin_a>, < 200 <&tdmin_a>, <&tdmin_b>, <&tdmin_c>, 201 <&dioo2133>; 201 <&dioo2133>; 202 202 203 clocks = <&clkc CLKID_MPLL2>, 203 clocks = <&clkc CLKID_MPLL2>, 204 <&clkc CLKID_MPLL0>, 204 <&clkc CLKID_MPLL0>, 205 <&clkc CLKID_MPLL1>; 205 <&clkc CLKID_MPLL1>; 206 206 207 assigned-clocks = <&clkc CLKID 207 assigned-clocks = <&clkc CLKID_MPLL2>, 208 <&clkc CLKID 208 <&clkc CLKID_MPLL0>, 209 <&clkc CLKID 209 <&clkc CLKID_MPLL1>; 210 assigned-clock-parents = <0>, 210 assigned-clock-parents = <0>, <0>, <0>; 211 assigned-clock-rates = <294912 211 assigned-clock-rates = <294912000>, 212 <270950 212 <270950400>, 213 <393216 213 <393216000>; 214 214 215 dai-link-0 { 215 dai-link-0 { 216 sound-dai = <&frddr_a> 216 sound-dai = <&frddr_a>; 217 }; 217 }; 218 218 219 dai-link-1 { 219 dai-link-1 { 220 sound-dai = <&frddr_b> 220 sound-dai = <&frddr_b>; 221 }; 221 }; 222 222 223 dai-link-2 { 223 dai-link-2 { 224 sound-dai = <&frddr_c> 224 sound-dai = <&frddr_c>; 225 }; 225 }; 226 226 227 dai-link-3 { 227 dai-link-3 { 228 sound-dai = <&toddr_a> 228 sound-dai = <&toddr_a>; 229 }; 229 }; 230 230 231 dai-link-4 { 231 dai-link-4 { 232 sound-dai = <&toddr_b> 232 sound-dai = <&toddr_b>; 233 }; 233 }; 234 234 235 dai-link-5 { 235 dai-link-5 { 236 sound-dai = <&toddr_c> 236 sound-dai = <&toddr_c>; 237 }; 237 }; 238 238 239 /* 239 /* 240 * Audio setup: The 40 pins he 240 * Audio setup: The 40 pins header provides access to 2 TDMs, 241 * SPDIF In/Out and PDM inputs 241 * SPDIF In/Out and PDM inputs. 242 * - TDM A: 2 lanes 242 * - TDM A: 2 lanes 243 * D0: 40/X9 243 * D0: 40/X9 244 * D1: 38/X8 244 * D1: 38/X8 245 * BCLK: 12/X11 245 * BCLK: 12/X11 246 * FS: 35/X10 246 * FS: 35/X10 247 * - TDM B: 4 lanes 247 * - TDM B: 4 lanes 248 * D0: 37/A3 248 * D0: 37/A3 249 * D1: 16/A4 249 * D1: 16/A4 250 * D2: 18/A5 or 7/AO6 250 * D2: 18/A5 or 7/AO6 251 * D3: 22/A6 or 21/H5 251 * D3: 22/A6 or 21/H5 252 * BCLK: 29/A1 or 8/AO8 252 * BCLK: 29/A1 or 8/AO8 253 * FS: 31/A2 or 11/AO7 253 * FS: 31/A2 or 11/AO7 254 * - 2 Master Clocks: 254 * - 2 Master Clocks: 255 * MCLK0: 15/A0 or 10/AO9 255 * MCLK0: 15/A0 or 10/AO9 256 * MCLK1: 33/X15 256 * MCLK1: 33/X15 257 * - SPDIF: 257 * - SPDIF: 258 * OUT: 32/A11 258 * OUT: 32/A11 259 * IN: 21/H5 259 * IN: 21/H5 260 * - PDM Input: 260 * - PDM Input: 261 * DO: 13/A8 261 * DO: 13/A8 262 * D1: 26/A9 262 * D1: 26/A9 263 * D2: 22/A6 263 * D2: 22/A6 264 * D3: 18/A5 264 * D3: 18/A5 265 * DCLK: 36/A7 265 * DCLK: 36/A7 266 * 266 * 267 * TDM C is not usable on the 267 * TDM C is not usable on the 40 pins connector so it is 268 * setup for the HDMI 4 lanes 268 * setup for the HDMI 4 lanes i2s. 269 * 269 * 270 * No pinctrl is enabled by de 270 * No pinctrl is enabled by default to preserve the 271 * genericity of the 40 pins h 271 * genericity of the 40 pins header. Many configurations are 272 * possible based on the desir 272 * possible based on the desired use case. Please adjust TDM 273 * masks, clock setups and pin 273 * masks, clock setups and pinctrl accordingly. 274 */ 274 */ 275 275 276 dai-link-6 { 276 dai-link-6 { 277 sound-dai = <&tdmif_a> 277 sound-dai = <&tdmif_a>; 278 dai-format = "dsp_a"; 278 dai-format = "dsp_a"; 279 dai-tdm-slot-tx-mask-0 279 dai-tdm-slot-tx-mask-0 = <1 1>; 280 mclk-fs = <256>; 280 mclk-fs = <256>; 281 281 282 codec-0 { 282 codec-0 { 283 sound-dai = <& 283 sound-dai = <&tohdmitx TOHDMITX_I2S_IN_A>; 284 }; 284 }; 285 285 286 codec-1 { 286 codec-1 { 287 sound-dai = <& 287 sound-dai = <&toacodec TOACODEC_IN_A>; 288 }; 288 }; 289 }; 289 }; 290 290 291 dai-link-7 { 291 dai-link-7 { 292 sound-dai = <&tdmif_b> 292 sound-dai = <&tdmif_b>; 293 dai-format = "i2s"; 293 dai-format = "i2s"; 294 dai-tdm-slot-tx-mask-0 294 dai-tdm-slot-tx-mask-0 = <1 1>; 295 dai-tdm-slot-rx-mask-1 295 dai-tdm-slot-rx-mask-1 = <1 1>; 296 mclk-fs = <256>; 296 mclk-fs = <256>; 297 297 298 codec-0 { 298 codec-0 { 299 sound-dai = <& 299 sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>; 300 }; 300 }; 301 301 302 codec-1 { 302 codec-1 { 303 sound-dai = <& 303 sound-dai = <&toacodec TOACODEC_IN_B>; 304 }; 304 }; 305 }; 305 }; 306 306 307 dai-link-8 { 307 dai-link-8 { 308 sound-dai = <&tdmif_c> 308 sound-dai = <&tdmif_c>; 309 dai-format = "i2s"; 309 dai-format = "i2s"; 310 dai-tdm-slot-tx-mask-0 310 dai-tdm-slot-tx-mask-0 = <1 1>; 311 dai-tdm-slot-tx-mask-1 311 dai-tdm-slot-tx-mask-1 = <1 1>; 312 dai-tdm-slot-tx-mask-2 312 dai-tdm-slot-tx-mask-2 = <1 1>; 313 dai-tdm-slot-tx-mask-3 313 dai-tdm-slot-tx-mask-3 = <1 1>; 314 mclk-fs = <256>; 314 mclk-fs = <256>; 315 315 316 codec-0 { 316 codec-0 { 317 sound-dai = <& 317 sound-dai = <&tohdmitx TOHDMITX_I2S_IN_C>; 318 }; 318 }; 319 319 320 codec-1 { 320 codec-1 { 321 sound-dai = <& 321 sound-dai = <&toacodec TOACODEC_IN_C>; 322 }; 322 }; 323 }; 323 }; 324 324 325 dai-link-9 { 325 dai-link-9 { 326 sound-dai = <&tohdmitx 326 sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>; 327 327 328 codec { 328 codec { 329 sound-dai = <& 329 sound-dai = <&hdmi_tx>; 330 }; 330 }; 331 }; 331 }; 332 332 333 dai-link-10 { 333 dai-link-10 { 334 sound-dai = <&toacodec 334 sound-dai = <&toacodec TOACODEC_OUT>; 335 335 336 codec { 336 codec { 337 sound-dai = <& 337 sound-dai = <&acodec>; 338 }; 338 }; 339 }; 339 }; 340 }; 340 }; 341 }; 341 }; 342 342 343 &acodec { 343 &acodec { 344 status = "okay"; 344 status = "okay"; 345 AVDD-supply = <&vddio_ao18>; 345 AVDD-supply = <&vddio_ao18>; 346 }; 346 }; 347 347 348 &arb { 348 &arb { 349 status = "okay"; 349 status = "okay"; 350 }; 350 }; 351 351 352 &cecb_AO { 352 &cecb_AO { 353 status = "okay"; 353 status = "okay"; 354 pinctrl-0 = <&cec_ao_b_h_pins>; 354 pinctrl-0 = <&cec_ao_b_h_pins>; 355 pinctrl-names = "default"; 355 pinctrl-names = "default"; 356 hdmi-phandle = <&hdmi_tx>; 356 hdmi-phandle = <&hdmi_tx>; 357 }; 357 }; 358 358 359 &clkc_audio { 359 &clkc_audio { 360 status = "okay"; 360 status = "okay"; 361 }; 361 }; 362 362 363 &cvbs_vdac_port { 363 &cvbs_vdac_port { 364 cvbs_vdac_out: endpoint { 364 cvbs_vdac_out: endpoint { 365 remote-endpoint = <&cvbs_conne 365 remote-endpoint = <&cvbs_connector_in>; 366 }; 366 }; 367 }; 367 }; 368 368 369 &dwc3 { 369 &dwc3 { 370 #address-cells = <1>; 370 #address-cells = <1>; 371 #size-cells = <0>; 371 #size-cells = <0>; 372 372 373 hub: hub@1 { 373 hub: hub@1 { 374 compatible = "usb5e3,626"; 374 compatible = "usb5e3,626"; 375 reg = <1>; 375 reg = <1>; 376 reset-gpios = <&gpio GPIOC_7 ( 376 reset-gpios = <&gpio GPIOC_7 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>; 377 vdd-supply = <&vcc_5v>; 377 vdd-supply = <&vcc_5v>; 378 }; 378 }; 379 }; 379 }; 380 380 381 ðmac { 381 ðmac { 382 pinctrl-0 = <ð_pins>, <ð_rgmii_p 382 pinctrl-0 = <ð_pins>, <ð_rgmii_pins>, <ð_phy_irq_pins>; 383 pinctrl-names = "default"; 383 pinctrl-names = "default"; 384 status = "okay"; 384 status = "okay"; 385 phy-mode = "rgmii"; 385 phy-mode = "rgmii"; 386 phy-handle = <&external_phy>; 386 phy-handle = <&external_phy>; 387 amlogic,tx-delay-ns = <2>; 387 amlogic,tx-delay-ns = <2>; 388 }; 388 }; 389 389 390 &ext_mdio { 390 &ext_mdio { 391 external_phy: ethernet-phy@0 { 391 external_phy: ethernet-phy@0 { 392 /* Realtek RTL8211F (0x001cc91 392 /* Realtek RTL8211F (0x001cc916) */ 393 reg = <0>; 393 reg = <0>; 394 max-speed = <1000>; 394 max-speed = <1000>; 395 395 396 reset-assert-us = <100000>; 396 reset-assert-us = <100000>; 397 reset-deassert-us = <100000>; 397 reset-deassert-us = <100000>; 398 reset-gpios = <&gpio GPIOZ_15 398 reset-gpios = <&gpio GPIOZ_15 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>; 399 399 400 interrupt-parent = <&gpio_intc 400 interrupt-parent = <&gpio_intc>; 401 /* MAC_INTR on GPIOZ_14 */ 401 /* MAC_INTR on GPIOZ_14 */ 402 interrupts = <26 IRQ_TYPE_LEVE 402 interrupts = <26 IRQ_TYPE_LEVEL_LOW>; 403 }; 403 }; 404 }; 404 }; 405 405 406 &frddr_a { 406 &frddr_a { 407 status = "okay"; 407 status = "okay"; 408 }; 408 }; 409 409 410 &frddr_b { 410 &frddr_b { 411 status = "okay"; 411 status = "okay"; 412 }; 412 }; 413 413 414 &frddr_c { 414 &frddr_c { 415 status = "okay"; 415 status = "okay"; 416 }; 416 }; 417 417 418 &hdmi_tx { 418 &hdmi_tx { 419 status = "okay"; 419 status = "okay"; 420 pinctrl-0 = <&hdmitx_hpd_pins>, <&hdmi 420 pinctrl-0 = <&hdmitx_hpd_pins>, <&hdmitx_ddc_pins>; 421 pinctrl-names = "default"; 421 pinctrl-names = "default"; 422 hdmi-supply = <&vcc_5v>; 422 hdmi-supply = <&vcc_5v>; 423 }; 423 }; 424 424 425 &hdmi_tx_tmds_port { 425 &hdmi_tx_tmds_port { 426 hdmi_tx_tmds_out: endpoint { 426 hdmi_tx_tmds_out: endpoint { 427 remote-endpoint = <&hdmi_conne 427 remote-endpoint = <&hdmi_connector_in>; 428 }; 428 }; 429 }; 429 }; 430 430 431 &ir { 431 &ir { 432 status = "okay"; 432 status = "okay"; 433 pinctrl-0 = <&remote_input_ao_pins>; 433 pinctrl-0 = <&remote_input_ao_pins>; 434 pinctrl-names = "default"; 434 pinctrl-names = "default"; 435 }; 435 }; 436 436 437 &periphs_pinctrl { 437 &periphs_pinctrl { 438 spi_cs_disable_pins: spi-cs-disable { 438 spi_cs_disable_pins: spi-cs-disable { 439 mux { 439 mux { 440 groups = "BOOT_14"; 440 groups = "BOOT_14"; 441 function = "gpio_perip 441 function = "gpio_periphs"; 442 bias-disable; 442 bias-disable; 443 output-high; 443 output-high; 444 }; 444 }; 445 }; 445 }; 446 446 447 eth_phy_irq_pins: eth-phy-irq { 447 eth_phy_irq_pins: eth-phy-irq { 448 mux { 448 mux { 449 groups = "GPIOZ_14"; 449 groups = "GPIOZ_14"; 450 function = "gpio_perip 450 function = "gpio_periphs"; 451 bias-pull-up; 451 bias-pull-up; 452 output-disable; 452 output-disable; 453 }; 453 }; 454 }; 454 }; 455 }; 455 }; 456 456 457 &pwm_AO_cd { 457 &pwm_AO_cd { 458 status = "okay"; 458 status = "okay"; 459 pinctrl-0 = <&pwm_ao_d_e_pins>; 459 pinctrl-0 = <&pwm_ao_d_e_pins>; 460 pinctrl-names = "default"; 460 pinctrl-names = "default"; 461 clocks = <&xtal>; 461 clocks = <&xtal>; 462 clock-names = "clkin1"; 462 clock-names = "clkin1"; 463 }; 463 }; 464 464 465 &pwm_ab { 465 &pwm_ab { 466 status = "okay"; 466 status = "okay"; 467 pinctrl-0 = <&pwm_b_x7_pins>; 467 pinctrl-0 = <&pwm_b_x7_pins>; 468 pinctrl-names = "default"; 468 pinctrl-names = "default"; 469 clocks = <&xtal>; 469 clocks = <&xtal>; 470 clock-names = "clkin1"; 470 clock-names = "clkin1"; 471 }; 471 }; 472 472 473 &pwm_cd { 473 &pwm_cd { 474 status = "okay"; 474 status = "okay"; 475 pinctrl-0 = <&pwm_d_x3_pins>; 475 pinctrl-0 = <&pwm_d_x3_pins>; 476 pinctrl-names = "default"; 476 pinctrl-names = "default"; 477 clocks = <&xtal>; 477 clocks = <&xtal>; 478 clock-names = "clkin1"; 478 clock-names = "clkin1"; 479 }; 479 }; 480 480 481 &saradc { 481 &saradc { 482 status = "okay"; 482 status = "okay"; 483 vref-supply = <&vddio_ao18>; 483 vref-supply = <&vddio_ao18>; 484 }; 484 }; 485 485 486 /* SD card */ 486 /* SD card */ 487 &sd_emmc_b { 487 &sd_emmc_b { 488 status = "okay"; 488 status = "okay"; 489 pinctrl-0 = <&sdcard_c_pins>; 489 pinctrl-0 = <&sdcard_c_pins>; 490 pinctrl-1 = <&sdcard_clk_gate_c_pins>; 490 pinctrl-1 = <&sdcard_clk_gate_c_pins>; 491 pinctrl-names = "default", "clk-gate"; 491 pinctrl-names = "default", "clk-gate"; 492 492 493 bus-width = <4>; 493 bus-width = <4>; 494 cap-sd-highspeed; 494 cap-sd-highspeed; 495 sd-uhs-sdr12; 495 sd-uhs-sdr12; 496 sd-uhs-sdr25; 496 sd-uhs-sdr25; 497 sd-uhs-sdr50; 497 sd-uhs-sdr50; 498 sd-uhs-sdr104; 498 sd-uhs-sdr104; 499 max-frequency = <200000000>; 499 max-frequency = <200000000>; 500 disable-wp; 500 disable-wp; 501 501 502 cd-gpios = <&gpio GPIOC_6 GPIO_ACTIVE_ 502 cd-gpios = <&gpio GPIOC_6 GPIO_ACTIVE_LOW>; 503 vmmc-supply = <&vcc_card>; 503 vmmc-supply = <&vcc_card>; 504 vqmmc-supply = <&vddio_c>; 504 vqmmc-supply = <&vddio_c>; 505 }; 505 }; 506 506 507 /* 507 /* 508 * EMMC_D4, EMMC_D5, EMMC_D6 and EMMC_D7 pins 508 * EMMC_D4, EMMC_D5, EMMC_D6 and EMMC_D7 pins are shared between SPI NOR CS 509 * and eMMC Data 4 to 7 pins. 509 * and eMMC Data 4 to 7 pins. 510 * Replace emmc_data_8b_pins to emmc_data_4b_p 510 * Replace emmc_data_8b_pins to emmc_data_4b_pins from sd_emmc_c pinctrl-0, 511 * and change bus-width to 4 then spifc can be 511 * and change bus-width to 4 then spifc can be enabled. 512 */ 512 */ 513 &sd_emmc_c { 513 &sd_emmc_c { 514 status = "okay"; 514 status = "okay"; 515 pinctrl-0 = <&emmc_ctrl_pins>, <&emmc_ 515 pinctrl-0 = <&emmc_ctrl_pins>, <&emmc_data_8b_pins>, <&emmc_ds_pins>, 516 <&spi_cs_disable_pins>; 516 <&spi_cs_disable_pins>; 517 pinctrl-1 = <&emmc_clk_gate_pins>; 517 pinctrl-1 = <&emmc_clk_gate_pins>; 518 pinctrl-names = "default", "clk-gate"; 518 pinctrl-names = "default", "clk-gate"; 519 519 520 bus-width = <8>; 520 bus-width = <8>; 521 cap-mmc-highspeed; 521 cap-mmc-highspeed; 522 mmc-hs200-1_8v; 522 mmc-hs200-1_8v; 523 max-frequency = <200000000>; 523 max-frequency = <200000000>; 524 disable-wp; 524 disable-wp; 525 525 526 mmc-pwrseq = <&emmc_pwrseq>; 526 mmc-pwrseq = <&emmc_pwrseq>; 527 vmmc-supply = <&vcc_3v3>; 527 vmmc-supply = <&vcc_3v3>; 528 vqmmc-supply = <&flash_1v8>; 528 vqmmc-supply = <&flash_1v8>; 529 }; 529 }; 530 530 531 &spifc { 531 &spifc { 532 status = "disabled"; 532 status = "disabled"; 533 pinctrl-0 = <&nor_pins>; 533 pinctrl-0 = <&nor_pins>; 534 pinctrl-names = "default"; 534 pinctrl-names = "default"; 535 cs-gpios = <&gpio BOOT_14 GPIO_ACTIVE_ 535 cs-gpios = <&gpio BOOT_14 GPIO_ACTIVE_LOW>; 536 536 537 w25lq128d: flash@0 { 537 w25lq128d: flash@0 { 538 compatible = "jedec,spi-nor"; 538 compatible = "jedec,spi-nor"; 539 reg = <0>; 539 reg = <0>; 540 #address-cells = <1>; 540 #address-cells = <1>; 541 #size-cells = <1>; 541 #size-cells = <1>; 542 spi-max-frequency = <80000000> 542 spi-max-frequency = <80000000>; 543 }; 543 }; 544 }; 544 }; 545 545 546 &tdmif_a { 546 &tdmif_a { 547 status = "okay"; 547 status = "okay"; 548 }; 548 }; 549 549 550 &tdmif_b { 550 &tdmif_b { 551 status = "okay"; 551 status = "okay"; 552 }; 552 }; 553 553 554 &tdmif_c { 554 &tdmif_c { 555 status = "okay"; 555 status = "okay"; 556 }; 556 }; 557 557 558 &tdmin_a { 558 &tdmin_a { 559 status = "okay"; 559 status = "okay"; 560 }; 560 }; 561 561 562 &tdmin_b { 562 &tdmin_b { 563 status = "okay"; 563 status = "okay"; 564 }; 564 }; 565 565 566 &tdmin_c { 566 &tdmin_c { 567 status = "okay"; 567 status = "okay"; 568 }; 568 }; 569 569 570 &tdmout_a { 570 &tdmout_a { 571 status = "okay"; 571 status = "okay"; 572 }; 572 }; 573 573 574 &tdmout_b { 574 &tdmout_b { 575 status = "okay"; 575 status = "okay"; 576 }; 576 }; 577 577 578 &tdmout_c { 578 &tdmout_c { 579 status = "okay"; 579 status = "okay"; 580 }; 580 }; 581 581 582 &toacodec { 582 &toacodec { 583 status = "okay"; 583 status = "okay"; 584 }; 584 }; 585 585 586 &toddr_a { 586 &toddr_a { 587 status = "okay"; 587 status = "okay"; 588 }; 588 }; 589 589 590 &toddr_b { 590 &toddr_b { 591 status = "okay"; 591 status = "okay"; 592 }; 592 }; 593 593 594 &toddr_c { 594 &toddr_c { 595 status = "okay"; 595 status = "okay"; 596 }; 596 }; 597 597 598 &tohdmitx { 598 &tohdmitx { 599 status = "okay"; 599 status = "okay"; 600 }; 600 }; 601 601 602 &uart_AO { 602 &uart_AO { 603 status = "okay"; 603 status = "okay"; 604 pinctrl-0 = <&uart_ao_a_pins>; 604 pinctrl-0 = <&uart_ao_a_pins>; 605 pinctrl-names = "default"; 605 pinctrl-names = "default"; 606 }; 606 }; 607 607 608 &usb2_phy1 { 608 &usb2_phy1 { 609 phy-supply = <&dc_in>; 609 phy-supply = <&dc_in>; 610 }; 610 }; 611 611 612 &usb3_pcie_phy { 612 &usb3_pcie_phy { 613 phy-supply = <&vcc_5v>; 613 phy-supply = <&vcc_5v>; 614 }; 614 }; 615 615 616 &usb { 616 &usb { 617 status = "okay"; 617 status = "okay"; 618 }; 618 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.