184943d6fSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 284943d6fSEmmanuel Vadot/* 384943d6fSEmmanuel Vadot * Copyright (c) 2023 BayLibre, SAS. 484943d6fSEmmanuel Vadot * Author: Jerome Brunet <jbrunet@baylibre.com> 584943d6fSEmmanuel Vadot */ 684943d6fSEmmanuel Vadot 784943d6fSEmmanuel Vadot#include <dt-bindings/clock/g12a-clkc.h> 884943d6fSEmmanuel Vadot#include <dt-bindings/input/input.h> 984943d6fSEmmanuel Vadot#include <dt-bindings/leds/common.h> 1084943d6fSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h> 1184943d6fSEmmanuel Vadot#include <dt-bindings/gpio/meson-g12a-gpio.h> 1284943d6fSEmmanuel Vadot#include <dt-bindings/sound/meson-g12a-toacodec.h> 1384943d6fSEmmanuel Vadot#include <dt-bindings/sound/meson-g12a-tohdmitx.h> 1484943d6fSEmmanuel Vadot 1584943d6fSEmmanuel Vadot/ { 1684943d6fSEmmanuel Vadot aliases { 1784943d6fSEmmanuel Vadot serial0 = &uart_AO; 1884943d6fSEmmanuel Vadot ethernet0 = ðmac; 1984943d6fSEmmanuel Vadot spi0 = &spifc; 2084943d6fSEmmanuel Vadot }; 2184943d6fSEmmanuel Vadot 2284943d6fSEmmanuel Vadot memory@0 { 2384943d6fSEmmanuel Vadot device_type = "memory"; 2484943d6fSEmmanuel Vadot reg = <0x0 0x0 0x0 0x80000000>; 2584943d6fSEmmanuel Vadot }; 2684943d6fSEmmanuel Vadot 2784943d6fSEmmanuel Vadot chosen { 2884943d6fSEmmanuel Vadot stdout-path = "serial0:115200n8"; 2984943d6fSEmmanuel Vadot }; 3084943d6fSEmmanuel Vadot 3184943d6fSEmmanuel Vadot dioo2133: audio-amplifier-0 { 3284943d6fSEmmanuel Vadot compatible = "simple-audio-amplifier"; 3384943d6fSEmmanuel Vadot enable-gpios = <&gpio GPIOX_0 GPIO_ACTIVE_HIGH>; 3484943d6fSEmmanuel Vadot VCC-supply = <&vcc_5v>; 3584943d6fSEmmanuel Vadot sound-name-prefix = "10U2"; 3684943d6fSEmmanuel Vadot }; 3784943d6fSEmmanuel Vadot 3884943d6fSEmmanuel Vadot /* TOFIX: handle CVBS_DET on SARADC channel 0 */ 3984943d6fSEmmanuel Vadot cvbs-connector { 4084943d6fSEmmanuel Vadot compatible = "composite-video-connector"; 4184943d6fSEmmanuel Vadot 4284943d6fSEmmanuel Vadot port { 4384943d6fSEmmanuel Vadot cvbs_connector_in: endpoint { 4484943d6fSEmmanuel Vadot remote-endpoint = <&cvbs_vdac_out>; 4584943d6fSEmmanuel Vadot }; 4684943d6fSEmmanuel Vadot }; 4784943d6fSEmmanuel Vadot }; 4884943d6fSEmmanuel Vadot 4984943d6fSEmmanuel Vadot emmc_pwrseq: emmc-pwrseq { 5084943d6fSEmmanuel Vadot compatible = "mmc-pwrseq-emmc"; 5184943d6fSEmmanuel Vadot reset-gpios = <&gpio BOOT_12 GPIO_ACTIVE_LOW>; 5284943d6fSEmmanuel Vadot }; 5384943d6fSEmmanuel Vadot 5484943d6fSEmmanuel Vadot hdmi-connector { 5584943d6fSEmmanuel Vadot compatible = "hdmi-connector"; 5684943d6fSEmmanuel Vadot type = "a"; 5784943d6fSEmmanuel Vadot 5884943d6fSEmmanuel Vadot port { 5984943d6fSEmmanuel Vadot hdmi_connector_in: endpoint { 6084943d6fSEmmanuel Vadot remote-endpoint = <&hdmi_tx_tmds_out>; 6184943d6fSEmmanuel Vadot }; 6284943d6fSEmmanuel Vadot }; 6384943d6fSEmmanuel Vadot }; 6484943d6fSEmmanuel Vadot 6584943d6fSEmmanuel Vadot led-blue { 6684943d6fSEmmanuel Vadot compatible = "pwm-leds"; 6784943d6fSEmmanuel Vadot 6884943d6fSEmmanuel Vadot led { 6984943d6fSEmmanuel Vadot color = <LED_COLOR_ID_BLUE>; 7084943d6fSEmmanuel Vadot function = LED_FUNCTION_ACTIVITY; 7184943d6fSEmmanuel Vadot linux,default-trigger = "heartbeat"; 7284943d6fSEmmanuel Vadot max-brightness = <255>; 7384943d6fSEmmanuel Vadot pwms = <&pwm_ab 1 1250 0>; 7484943d6fSEmmanuel Vadot active-low; 7584943d6fSEmmanuel Vadot }; 7684943d6fSEmmanuel Vadot }; 7784943d6fSEmmanuel Vadot 7884943d6fSEmmanuel Vadot led-green { 7984943d6fSEmmanuel Vadot compatible = "pwm-leds"; 8084943d6fSEmmanuel Vadot 8184943d6fSEmmanuel Vadot led { 8284943d6fSEmmanuel Vadot color = <LED_COLOR_ID_GREEN>; 8384943d6fSEmmanuel Vadot function = LED_FUNCTION_STATUS; 8484943d6fSEmmanuel Vadot linux,default-trigger = "default-on"; 8584943d6fSEmmanuel Vadot max-brightness = <255>; 8684943d6fSEmmanuel Vadot pwms = <&pwm_cd 1 1250 0>; 8784943d6fSEmmanuel Vadot active-low; 8884943d6fSEmmanuel Vadot }; 8984943d6fSEmmanuel Vadot }; 9084943d6fSEmmanuel Vadot 9184943d6fSEmmanuel Vadot led-orange { 9284943d6fSEmmanuel Vadot compatible = "gpio-leds"; 9384943d6fSEmmanuel Vadot 9484943d6fSEmmanuel Vadot led { 9584943d6fSEmmanuel Vadot color = <LED_COLOR_ID_AMBER>; 9684943d6fSEmmanuel Vadot function = LED_FUNCTION_STANDBY; 9784943d6fSEmmanuel Vadot gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>; 9884943d6fSEmmanuel Vadot panic-indicator; 9984943d6fSEmmanuel Vadot }; 10084943d6fSEmmanuel Vadot }; 10184943d6fSEmmanuel Vadot 10284943d6fSEmmanuel Vadot dc_in: regulator-dc-in { 10384943d6fSEmmanuel Vadot compatible = "regulator-fixed"; 10484943d6fSEmmanuel Vadot regulator-name = "5V_IN"; 10584943d6fSEmmanuel Vadot regulator-min-microvolt = <5000000>; 10684943d6fSEmmanuel Vadot regulator-max-microvolt = <5000000>; 10784943d6fSEmmanuel Vadot regulator-always-on; 10884943d6fSEmmanuel Vadot }; 10984943d6fSEmmanuel Vadot 11084943d6fSEmmanuel Vadot flash_1v8: regulator-flash-1v8 { 11184943d6fSEmmanuel Vadot compatible = "regulator-fixed"; 11284943d6fSEmmanuel Vadot regulator-name = "FLASH_1V8"; 11384943d6fSEmmanuel Vadot regulator-min-microvolt = <1800000>; 11484943d6fSEmmanuel Vadot regulator-max-microvolt = <1800000>; 11584943d6fSEmmanuel Vadot regulator-always-on; 11684943d6fSEmmanuel Vadot vin-supply = <&vcc_3v3>; 11784943d6fSEmmanuel Vadot }; 11884943d6fSEmmanuel Vadot 11984943d6fSEmmanuel Vadot vcc_card: regulator-vcc-card { 12084943d6fSEmmanuel Vadot compatible = "regulator-fixed"; 12184943d6fSEmmanuel Vadot regulator-name = "VCC_CARD"; 12284943d6fSEmmanuel Vadot regulator-min-microvolt = <3300000>; 12384943d6fSEmmanuel Vadot regulator-max-microvolt = <3300000>; 12484943d6fSEmmanuel Vadot vin-supply = <&vddao_3v3>; 12584943d6fSEmmanuel Vadot gpio = <&gpio GPIOX_2 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; 12684943d6fSEmmanuel Vadot enable-active-high; 12784943d6fSEmmanuel Vadot gpio-open-drain; 12884943d6fSEmmanuel Vadot }; 12984943d6fSEmmanuel Vadot 13084943d6fSEmmanuel Vadot vcc_3v3: regulator-vcc-3v3 { 13184943d6fSEmmanuel Vadot compatible = "regulator-fixed"; 13284943d6fSEmmanuel Vadot regulator-name = "VCC_3V3"; 13384943d6fSEmmanuel Vadot regulator-min-microvolt = <3300000>; 13484943d6fSEmmanuel Vadot regulator-max-microvolt = <3300000>; 13584943d6fSEmmanuel Vadot regulator-always-on; 13684943d6fSEmmanuel Vadot vin-supply = <&vddao_3v3>; 13784943d6fSEmmanuel Vadot 13884943d6fSEmmanuel Vadot /* FIXME: controlled by TEST_N */ 13984943d6fSEmmanuel Vadot }; 14084943d6fSEmmanuel Vadot 14184943d6fSEmmanuel Vadot vcc_5v: regulator-vcc-5v { 14284943d6fSEmmanuel Vadot compatible = "regulator-fixed"; 14384943d6fSEmmanuel Vadot regulator-name = "VCC_5V"; 14484943d6fSEmmanuel Vadot regulator-min-microvolt = <5000000>; 14584943d6fSEmmanuel Vadot regulator-max-microvolt = <5000000>; 14684943d6fSEmmanuel Vadot regulator-always-on; 14784943d6fSEmmanuel Vadot vin-supply = <&dc_in>; 14884943d6fSEmmanuel Vadot gpio = <&gpio GPIOH_8 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; 14984943d6fSEmmanuel Vadot enable-active-high; 15084943d6fSEmmanuel Vadot gpio-open-drain; 15184943d6fSEmmanuel Vadot }; 15284943d6fSEmmanuel Vadot 15301950c46SEmmanuel Vadot vddao_3v3: regulator-vddao-3v3 { 15484943d6fSEmmanuel Vadot compatible = "regulator-fixed"; 15584943d6fSEmmanuel Vadot regulator-name = "VDDAO_3V3"; 15684943d6fSEmmanuel Vadot regulator-min-microvolt = <3300000>; 15784943d6fSEmmanuel Vadot regulator-max-microvolt = <3300000>; 15884943d6fSEmmanuel Vadot regulator-always-on; 15984943d6fSEmmanuel Vadot vin-supply = <&dc_in>; 16084943d6fSEmmanuel Vadot }; 16184943d6fSEmmanuel Vadot 16284943d6fSEmmanuel Vadot vddcpu_b: regulator-vddcpu-b { 16384943d6fSEmmanuel Vadot compatible = "pwm-regulator"; 16484943d6fSEmmanuel Vadot regulator-name = "VDDCPU_B"; 16584943d6fSEmmanuel Vadot regulator-min-microvolt = <730000>; 16684943d6fSEmmanuel Vadot regulator-max-microvolt = <1011000>; 16784943d6fSEmmanuel Vadot regulator-boot-on; 16884943d6fSEmmanuel Vadot regulator-always-on; 16984943d6fSEmmanuel Vadot pwm-supply = <&dc_in>; 17084943d6fSEmmanuel Vadot pwms = <&pwm_AO_cd 1 1250 0>; 17184943d6fSEmmanuel Vadot pwm-dutycycle-range = <100 0>; 17284943d6fSEmmanuel Vadot }; 17384943d6fSEmmanuel Vadot 17401950c46SEmmanuel Vadot vddio_ao18: regulator-vddio-ao18 { 17584943d6fSEmmanuel Vadot compatible = "regulator-fixed"; 17684943d6fSEmmanuel Vadot regulator-name = "VDDIO_AO18"; 17784943d6fSEmmanuel Vadot regulator-min-microvolt = <1800000>; 17884943d6fSEmmanuel Vadot regulator-max-microvolt = <1800000>; 17984943d6fSEmmanuel Vadot regulator-always-on; 18084943d6fSEmmanuel Vadot vin-supply = <&vddao_3v3>; 18184943d6fSEmmanuel Vadot }; 18284943d6fSEmmanuel Vadot 18301950c46SEmmanuel Vadot vddio_c: regulator-vddio-c { 18484943d6fSEmmanuel Vadot compatible = "regulator-gpio"; 18584943d6fSEmmanuel Vadot regulator-name = "VDDIO_C"; 18684943d6fSEmmanuel Vadot regulator-min-microvolt = <1800000>; 18784943d6fSEmmanuel Vadot regulator-max-microvolt = <3300000>; 18884943d6fSEmmanuel Vadot regulator-settling-time-up-us = <200>; 18984943d6fSEmmanuel Vadot regulator-settling-time-down-us = <50000>; 19084943d6fSEmmanuel Vadot vin-supply = <&vddao_3v3>; 19184943d6fSEmmanuel Vadot gpios = <&gpio GPIOX_4 GPIO_ACTIVE_HIGH>; 19284943d6fSEmmanuel Vadot states = <3300000 0>, 19384943d6fSEmmanuel Vadot <1800000 1>; 19484943d6fSEmmanuel Vadot }; 19584943d6fSEmmanuel Vadot 19684943d6fSEmmanuel Vadot sound { 19784943d6fSEmmanuel Vadot compatible = "amlogic,axg-sound-card"; 19884943d6fSEmmanuel Vadot audio-widgets = "Line", "Lineout"; 19984943d6fSEmmanuel Vadot audio-aux-devs = <&tdmout_a>, <&tdmout_b>, <&tdmout_c>, 20084943d6fSEmmanuel Vadot <&tdmin_a>, <&tdmin_b>, <&tdmin_c>, 20184943d6fSEmmanuel Vadot <&dioo2133>; 20284943d6fSEmmanuel Vadot 203*b2d2a78aSEmmanuel Vadot clocks = <&clkc CLKID_MPLL2>, 204*b2d2a78aSEmmanuel Vadot <&clkc CLKID_MPLL0>, 205*b2d2a78aSEmmanuel Vadot <&clkc CLKID_MPLL1>; 206*b2d2a78aSEmmanuel Vadot 20784943d6fSEmmanuel Vadot assigned-clocks = <&clkc CLKID_MPLL2>, 20884943d6fSEmmanuel Vadot <&clkc CLKID_MPLL0>, 20984943d6fSEmmanuel Vadot <&clkc CLKID_MPLL1>; 21084943d6fSEmmanuel Vadot assigned-clock-parents = <0>, <0>, <0>; 21184943d6fSEmmanuel Vadot assigned-clock-rates = <294912000>, 21284943d6fSEmmanuel Vadot <270950400>, 21384943d6fSEmmanuel Vadot <393216000>; 21484943d6fSEmmanuel Vadot 21584943d6fSEmmanuel Vadot dai-link-0 { 21684943d6fSEmmanuel Vadot sound-dai = <&frddr_a>; 21784943d6fSEmmanuel Vadot }; 21884943d6fSEmmanuel Vadot 21984943d6fSEmmanuel Vadot dai-link-1 { 22084943d6fSEmmanuel Vadot sound-dai = <&frddr_b>; 22184943d6fSEmmanuel Vadot }; 22284943d6fSEmmanuel Vadot 22384943d6fSEmmanuel Vadot dai-link-2 { 22484943d6fSEmmanuel Vadot sound-dai = <&frddr_c>; 22584943d6fSEmmanuel Vadot }; 22684943d6fSEmmanuel Vadot 22784943d6fSEmmanuel Vadot dai-link-3 { 22884943d6fSEmmanuel Vadot sound-dai = <&toddr_a>; 22984943d6fSEmmanuel Vadot }; 23084943d6fSEmmanuel Vadot 23184943d6fSEmmanuel Vadot dai-link-4 { 23284943d6fSEmmanuel Vadot sound-dai = <&toddr_b>; 23384943d6fSEmmanuel Vadot }; 23484943d6fSEmmanuel Vadot 23584943d6fSEmmanuel Vadot dai-link-5 { 23684943d6fSEmmanuel Vadot sound-dai = <&toddr_c>; 23784943d6fSEmmanuel Vadot }; 23884943d6fSEmmanuel Vadot 23984943d6fSEmmanuel Vadot /* 24084943d6fSEmmanuel Vadot * Audio setup: The 40 pins header provides access to 2 TDMs, 24184943d6fSEmmanuel Vadot * SPDIF In/Out and PDM inputs. 24284943d6fSEmmanuel Vadot * - TDM A: 2 lanes 24384943d6fSEmmanuel Vadot * D0: 40/X9 24484943d6fSEmmanuel Vadot * D1: 38/X8 24584943d6fSEmmanuel Vadot * BCLK: 12/X11 24684943d6fSEmmanuel Vadot * FS: 35/X10 24784943d6fSEmmanuel Vadot * - TDM B: 4 lanes 24884943d6fSEmmanuel Vadot * D0: 37/A3 24984943d6fSEmmanuel Vadot * D1: 16/A4 25084943d6fSEmmanuel Vadot * D2: 18/A5 or 7/AO6 25184943d6fSEmmanuel Vadot * D3: 22/A6 or 21/H5 25284943d6fSEmmanuel Vadot * BCLK: 29/A1 or 8/AO8 25384943d6fSEmmanuel Vadot * FS: 31/A2 or 11/AO7 25484943d6fSEmmanuel Vadot * - 2 Master Clocks: 25584943d6fSEmmanuel Vadot * MCLK0: 15/A0 or 10/AO9 25684943d6fSEmmanuel Vadot * MCLK1: 33/X15 25784943d6fSEmmanuel Vadot * - SPDIF: 25884943d6fSEmmanuel Vadot * OUT: 32/A11 25984943d6fSEmmanuel Vadot * IN: 21/H5 26084943d6fSEmmanuel Vadot * - PDM Input: 26184943d6fSEmmanuel Vadot * DO: 13/A8 26284943d6fSEmmanuel Vadot * D1: 26/A9 26384943d6fSEmmanuel Vadot * D2: 22/A6 26484943d6fSEmmanuel Vadot * D3: 18/A5 26584943d6fSEmmanuel Vadot * DCLK: 36/A7 26684943d6fSEmmanuel Vadot * 26784943d6fSEmmanuel Vadot * TDM C is not usable on the 40 pins connector so it is 26884943d6fSEmmanuel Vadot * setup for the HDMI 4 lanes i2s. 26984943d6fSEmmanuel Vadot * 27084943d6fSEmmanuel Vadot * No pinctrl is enabled by default to preserve the 27184943d6fSEmmanuel Vadot * genericity of the 40 pins header. Many configurations are 27284943d6fSEmmanuel Vadot * possible based on the desired use case. Please adjust TDM 27384943d6fSEmmanuel Vadot * masks, clock setups and pinctrl accordingly. 27484943d6fSEmmanuel Vadot */ 27584943d6fSEmmanuel Vadot 27684943d6fSEmmanuel Vadot dai-link-6 { 27784943d6fSEmmanuel Vadot sound-dai = <&tdmif_a>; 27884943d6fSEmmanuel Vadot dai-format = "dsp_a"; 27984943d6fSEmmanuel Vadot dai-tdm-slot-tx-mask-0 = <1 1>; 28084943d6fSEmmanuel Vadot mclk-fs = <256>; 28184943d6fSEmmanuel Vadot 28284943d6fSEmmanuel Vadot codec-0 { 28384943d6fSEmmanuel Vadot sound-dai = <&tohdmitx TOHDMITX_I2S_IN_A>; 28484943d6fSEmmanuel Vadot }; 28584943d6fSEmmanuel Vadot 28684943d6fSEmmanuel Vadot codec-1 { 28784943d6fSEmmanuel Vadot sound-dai = <&toacodec TOACODEC_IN_A>; 28884943d6fSEmmanuel Vadot }; 28984943d6fSEmmanuel Vadot }; 29084943d6fSEmmanuel Vadot 29184943d6fSEmmanuel Vadot dai-link-7 { 29284943d6fSEmmanuel Vadot sound-dai = <&tdmif_b>; 29384943d6fSEmmanuel Vadot dai-format = "i2s"; 29484943d6fSEmmanuel Vadot dai-tdm-slot-tx-mask-0 = <1 1>; 29584943d6fSEmmanuel Vadot dai-tdm-slot-rx-mask-1 = <1 1>; 29684943d6fSEmmanuel Vadot mclk-fs = <256>; 29784943d6fSEmmanuel Vadot 29884943d6fSEmmanuel Vadot codec-0 { 29984943d6fSEmmanuel Vadot sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>; 30084943d6fSEmmanuel Vadot }; 30184943d6fSEmmanuel Vadot 30284943d6fSEmmanuel Vadot codec-1 { 30384943d6fSEmmanuel Vadot sound-dai = <&toacodec TOACODEC_IN_B>; 30484943d6fSEmmanuel Vadot }; 30584943d6fSEmmanuel Vadot }; 30684943d6fSEmmanuel Vadot 30784943d6fSEmmanuel Vadot dai-link-8 { 30884943d6fSEmmanuel Vadot sound-dai = <&tdmif_c>; 30984943d6fSEmmanuel Vadot dai-format = "i2s"; 31084943d6fSEmmanuel Vadot dai-tdm-slot-tx-mask-0 = <1 1>; 31184943d6fSEmmanuel Vadot dai-tdm-slot-tx-mask-1 = <1 1>; 31284943d6fSEmmanuel Vadot dai-tdm-slot-tx-mask-2 = <1 1>; 31384943d6fSEmmanuel Vadot dai-tdm-slot-tx-mask-3 = <1 1>; 31484943d6fSEmmanuel Vadot mclk-fs = <256>; 31584943d6fSEmmanuel Vadot 31684943d6fSEmmanuel Vadot codec-0 { 31784943d6fSEmmanuel Vadot sound-dai = <&tohdmitx TOHDMITX_I2S_IN_C>; 31884943d6fSEmmanuel Vadot }; 31984943d6fSEmmanuel Vadot 32084943d6fSEmmanuel Vadot codec-1 { 32184943d6fSEmmanuel Vadot sound-dai = <&toacodec TOACODEC_IN_C>; 32284943d6fSEmmanuel Vadot }; 32384943d6fSEmmanuel Vadot }; 32484943d6fSEmmanuel Vadot 32584943d6fSEmmanuel Vadot dai-link-9 { 32684943d6fSEmmanuel Vadot sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>; 32784943d6fSEmmanuel Vadot 32884943d6fSEmmanuel Vadot codec { 32984943d6fSEmmanuel Vadot sound-dai = <&hdmi_tx>; 33084943d6fSEmmanuel Vadot }; 33184943d6fSEmmanuel Vadot }; 33284943d6fSEmmanuel Vadot 33384943d6fSEmmanuel Vadot dai-link-10 { 33484943d6fSEmmanuel Vadot sound-dai = <&toacodec TOACODEC_OUT>; 33584943d6fSEmmanuel Vadot 33684943d6fSEmmanuel Vadot codec { 33784943d6fSEmmanuel Vadot sound-dai = <&acodec>; 33884943d6fSEmmanuel Vadot }; 33984943d6fSEmmanuel Vadot }; 34084943d6fSEmmanuel Vadot }; 34184943d6fSEmmanuel Vadot}; 34284943d6fSEmmanuel Vadot 34384943d6fSEmmanuel Vadot&acodec { 34484943d6fSEmmanuel Vadot status = "okay"; 34584943d6fSEmmanuel Vadot AVDD-supply = <&vddio_ao18>; 34684943d6fSEmmanuel Vadot}; 34784943d6fSEmmanuel Vadot 34884943d6fSEmmanuel Vadot&arb { 34984943d6fSEmmanuel Vadot status = "okay"; 35084943d6fSEmmanuel Vadot}; 35184943d6fSEmmanuel Vadot 35284943d6fSEmmanuel Vadot&cecb_AO { 35384943d6fSEmmanuel Vadot status = "okay"; 35484943d6fSEmmanuel Vadot pinctrl-0 = <&cec_ao_b_h_pins>; 35584943d6fSEmmanuel Vadot pinctrl-names = "default"; 35684943d6fSEmmanuel Vadot hdmi-phandle = <&hdmi_tx>; 35784943d6fSEmmanuel Vadot}; 35884943d6fSEmmanuel Vadot 35984943d6fSEmmanuel Vadot&clkc_audio { 36084943d6fSEmmanuel Vadot status = "okay"; 36184943d6fSEmmanuel Vadot}; 36284943d6fSEmmanuel Vadot 36384943d6fSEmmanuel Vadot&cvbs_vdac_port { 36484943d6fSEmmanuel Vadot cvbs_vdac_out: endpoint { 36584943d6fSEmmanuel Vadot remote-endpoint = <&cvbs_connector_in>; 36684943d6fSEmmanuel Vadot }; 36784943d6fSEmmanuel Vadot}; 36884943d6fSEmmanuel Vadot 36984943d6fSEmmanuel Vadot&dwc3 { 37084943d6fSEmmanuel Vadot #address-cells = <1>; 37184943d6fSEmmanuel Vadot #size-cells = <0>; 37284943d6fSEmmanuel Vadot 37384943d6fSEmmanuel Vadot hub: hub@1 { 37484943d6fSEmmanuel Vadot compatible = "usb5e3,626"; 37584943d6fSEmmanuel Vadot reg = <1>; 37684943d6fSEmmanuel Vadot reset-gpios = <&gpio GPIOC_7 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>; 37784943d6fSEmmanuel Vadot vdd-supply = <&vcc_5v>; 37884943d6fSEmmanuel Vadot }; 37984943d6fSEmmanuel Vadot}; 38084943d6fSEmmanuel Vadot 38184943d6fSEmmanuel Vadotðmac { 38284943d6fSEmmanuel Vadot pinctrl-0 = <ð_pins>, <ð_rgmii_pins>, <ð_phy_irq_pins>; 38384943d6fSEmmanuel Vadot pinctrl-names = "default"; 38484943d6fSEmmanuel Vadot status = "okay"; 38584943d6fSEmmanuel Vadot phy-mode = "rgmii"; 38684943d6fSEmmanuel Vadot phy-handle = <&external_phy>; 38784943d6fSEmmanuel Vadot amlogic,tx-delay-ns = <2>; 38884943d6fSEmmanuel Vadot}; 38984943d6fSEmmanuel Vadot 39084943d6fSEmmanuel Vadot&ext_mdio { 39184943d6fSEmmanuel Vadot external_phy: ethernet-phy@0 { 39284943d6fSEmmanuel Vadot /* Realtek RTL8211F (0x001cc916) */ 39384943d6fSEmmanuel Vadot reg = <0>; 39484943d6fSEmmanuel Vadot max-speed = <1000>; 39584943d6fSEmmanuel Vadot 39684943d6fSEmmanuel Vadot reset-assert-us = <100000>; 39784943d6fSEmmanuel Vadot reset-deassert-us = <100000>; 39884943d6fSEmmanuel Vadot reset-gpios = <&gpio GPIOZ_15 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>; 39984943d6fSEmmanuel Vadot 40084943d6fSEmmanuel Vadot interrupt-parent = <&gpio_intc>; 40184943d6fSEmmanuel Vadot /* MAC_INTR on GPIOZ_14 */ 40284943d6fSEmmanuel Vadot interrupts = <26 IRQ_TYPE_LEVEL_LOW>; 40384943d6fSEmmanuel Vadot }; 40484943d6fSEmmanuel Vadot}; 40584943d6fSEmmanuel Vadot 40684943d6fSEmmanuel Vadot&frddr_a { 40784943d6fSEmmanuel Vadot status = "okay"; 40884943d6fSEmmanuel Vadot}; 40984943d6fSEmmanuel Vadot 41084943d6fSEmmanuel Vadot&frddr_b { 41184943d6fSEmmanuel Vadot status = "okay"; 41284943d6fSEmmanuel Vadot}; 41384943d6fSEmmanuel Vadot 41484943d6fSEmmanuel Vadot&frddr_c { 41584943d6fSEmmanuel Vadot status = "okay"; 41684943d6fSEmmanuel Vadot}; 41784943d6fSEmmanuel Vadot 41884943d6fSEmmanuel Vadot&hdmi_tx { 41984943d6fSEmmanuel Vadot status = "okay"; 42084943d6fSEmmanuel Vadot pinctrl-0 = <&hdmitx_hpd_pins>, <&hdmitx_ddc_pins>; 42184943d6fSEmmanuel Vadot pinctrl-names = "default"; 42284943d6fSEmmanuel Vadot hdmi-supply = <&vcc_5v>; 42384943d6fSEmmanuel Vadot}; 42484943d6fSEmmanuel Vadot 42584943d6fSEmmanuel Vadot&hdmi_tx_tmds_port { 42684943d6fSEmmanuel Vadot hdmi_tx_tmds_out: endpoint { 42784943d6fSEmmanuel Vadot remote-endpoint = <&hdmi_connector_in>; 42884943d6fSEmmanuel Vadot }; 42984943d6fSEmmanuel Vadot}; 43084943d6fSEmmanuel Vadot 43184943d6fSEmmanuel Vadot&ir { 43284943d6fSEmmanuel Vadot status = "okay"; 43384943d6fSEmmanuel Vadot pinctrl-0 = <&remote_input_ao_pins>; 43484943d6fSEmmanuel Vadot pinctrl-names = "default"; 43584943d6fSEmmanuel Vadot}; 43684943d6fSEmmanuel Vadot 43784943d6fSEmmanuel Vadot&periphs_pinctrl { 43884943d6fSEmmanuel Vadot spi_cs_disable_pins: spi-cs-disable { 43984943d6fSEmmanuel Vadot mux { 44084943d6fSEmmanuel Vadot groups = "BOOT_14"; 44184943d6fSEmmanuel Vadot function = "gpio_periphs"; 44284943d6fSEmmanuel Vadot bias-disable; 44384943d6fSEmmanuel Vadot output-high; 44484943d6fSEmmanuel Vadot }; 44584943d6fSEmmanuel Vadot }; 44684943d6fSEmmanuel Vadot 44784943d6fSEmmanuel Vadot eth_phy_irq_pins: eth-phy-irq { 44884943d6fSEmmanuel Vadot mux { 44984943d6fSEmmanuel Vadot groups = "GPIOZ_14"; 45084943d6fSEmmanuel Vadot function = "gpio_periphs"; 45184943d6fSEmmanuel Vadot bias-pull-up; 45284943d6fSEmmanuel Vadot output-disable; 45384943d6fSEmmanuel Vadot }; 45484943d6fSEmmanuel Vadot }; 45584943d6fSEmmanuel Vadot}; 45684943d6fSEmmanuel Vadot 45784943d6fSEmmanuel Vadot&pwm_AO_cd { 45884943d6fSEmmanuel Vadot status = "okay"; 45984943d6fSEmmanuel Vadot pinctrl-0 = <&pwm_ao_d_e_pins>; 46084943d6fSEmmanuel Vadot pinctrl-names = "default"; 46184943d6fSEmmanuel Vadot clocks = <&xtal>; 46284943d6fSEmmanuel Vadot clock-names = "clkin1"; 46384943d6fSEmmanuel Vadot}; 46484943d6fSEmmanuel Vadot 46584943d6fSEmmanuel Vadot&pwm_ab { 46684943d6fSEmmanuel Vadot status = "okay"; 46784943d6fSEmmanuel Vadot pinctrl-0 = <&pwm_b_x7_pins>; 46884943d6fSEmmanuel Vadot pinctrl-names = "default"; 46984943d6fSEmmanuel Vadot clocks = <&xtal>; 47084943d6fSEmmanuel Vadot clock-names = "clkin1"; 47184943d6fSEmmanuel Vadot}; 47284943d6fSEmmanuel Vadot 47384943d6fSEmmanuel Vadot&pwm_cd { 47484943d6fSEmmanuel Vadot status = "okay"; 47584943d6fSEmmanuel Vadot pinctrl-0 = <&pwm_d_x3_pins>; 47684943d6fSEmmanuel Vadot pinctrl-names = "default"; 47784943d6fSEmmanuel Vadot clocks = <&xtal>; 47884943d6fSEmmanuel Vadot clock-names = "clkin1"; 47984943d6fSEmmanuel Vadot}; 48084943d6fSEmmanuel Vadot 48184943d6fSEmmanuel Vadot&saradc { 48284943d6fSEmmanuel Vadot status = "okay"; 48384943d6fSEmmanuel Vadot vref-supply = <&vddio_ao18>; 48484943d6fSEmmanuel Vadot}; 48584943d6fSEmmanuel Vadot 48684943d6fSEmmanuel Vadot/* SD card */ 48784943d6fSEmmanuel Vadot&sd_emmc_b { 48884943d6fSEmmanuel Vadot status = "okay"; 48984943d6fSEmmanuel Vadot pinctrl-0 = <&sdcard_c_pins>; 49084943d6fSEmmanuel Vadot pinctrl-1 = <&sdcard_clk_gate_c_pins>; 49184943d6fSEmmanuel Vadot pinctrl-names = "default", "clk-gate"; 49284943d6fSEmmanuel Vadot 49384943d6fSEmmanuel Vadot bus-width = <4>; 49484943d6fSEmmanuel Vadot cap-sd-highspeed; 49584943d6fSEmmanuel Vadot sd-uhs-sdr12; 49684943d6fSEmmanuel Vadot sd-uhs-sdr25; 49784943d6fSEmmanuel Vadot sd-uhs-sdr50; 49884943d6fSEmmanuel Vadot sd-uhs-sdr104; 49984943d6fSEmmanuel Vadot max-frequency = <200000000>; 50084943d6fSEmmanuel Vadot disable-wp; 50184943d6fSEmmanuel Vadot 50284943d6fSEmmanuel Vadot cd-gpios = <&gpio GPIOC_6 GPIO_ACTIVE_LOW>; 50384943d6fSEmmanuel Vadot vmmc-supply = <&vcc_card>; 50484943d6fSEmmanuel Vadot vqmmc-supply = <&vddio_c>; 50584943d6fSEmmanuel Vadot}; 50684943d6fSEmmanuel Vadot 50784943d6fSEmmanuel Vadot/* 50884943d6fSEmmanuel Vadot * EMMC_D4, EMMC_D5, EMMC_D6 and EMMC_D7 pins are shared between SPI NOR CS 50984943d6fSEmmanuel Vadot * and eMMC Data 4 to 7 pins. 51084943d6fSEmmanuel Vadot * Replace emmc_data_8b_pins to emmc_data_4b_pins from sd_emmc_c pinctrl-0, 51184943d6fSEmmanuel Vadot * and change bus-width to 4 then spifc can be enabled. 51284943d6fSEmmanuel Vadot */ 51384943d6fSEmmanuel Vadot&sd_emmc_c { 51484943d6fSEmmanuel Vadot status = "okay"; 51584943d6fSEmmanuel Vadot pinctrl-0 = <&emmc_ctrl_pins>, <&emmc_data_8b_pins>, <&emmc_ds_pins>, 51684943d6fSEmmanuel Vadot <&spi_cs_disable_pins>; 51784943d6fSEmmanuel Vadot pinctrl-1 = <&emmc_clk_gate_pins>; 51884943d6fSEmmanuel Vadot pinctrl-names = "default", "clk-gate"; 51984943d6fSEmmanuel Vadot 52084943d6fSEmmanuel Vadot bus-width = <8>; 52184943d6fSEmmanuel Vadot cap-mmc-highspeed; 52284943d6fSEmmanuel Vadot mmc-hs200-1_8v; 52384943d6fSEmmanuel Vadot max-frequency = <200000000>; 52484943d6fSEmmanuel Vadot disable-wp; 52584943d6fSEmmanuel Vadot 52684943d6fSEmmanuel Vadot mmc-pwrseq = <&emmc_pwrseq>; 52784943d6fSEmmanuel Vadot vmmc-supply = <&vcc_3v3>; 52884943d6fSEmmanuel Vadot vqmmc-supply = <&flash_1v8>; 52984943d6fSEmmanuel Vadot}; 53084943d6fSEmmanuel Vadot 53184943d6fSEmmanuel Vadot&spifc { 53284943d6fSEmmanuel Vadot status = "disabled"; 53384943d6fSEmmanuel Vadot pinctrl-0 = <&nor_pins>; 53484943d6fSEmmanuel Vadot pinctrl-names = "default"; 53584943d6fSEmmanuel Vadot cs-gpios = <&gpio BOOT_14 GPIO_ACTIVE_LOW>; 53684943d6fSEmmanuel Vadot 53784943d6fSEmmanuel Vadot w25lq128d: flash@0 { 53884943d6fSEmmanuel Vadot compatible = "jedec,spi-nor"; 53984943d6fSEmmanuel Vadot reg = <0>; 54084943d6fSEmmanuel Vadot #address-cells = <1>; 54184943d6fSEmmanuel Vadot #size-cells = <1>; 54284943d6fSEmmanuel Vadot spi-max-frequency = <80000000>; 54384943d6fSEmmanuel Vadot }; 54484943d6fSEmmanuel Vadot}; 54584943d6fSEmmanuel Vadot 54684943d6fSEmmanuel Vadot&tdmif_a { 54784943d6fSEmmanuel Vadot status = "okay"; 54884943d6fSEmmanuel Vadot}; 54984943d6fSEmmanuel Vadot 55084943d6fSEmmanuel Vadot&tdmif_b { 55184943d6fSEmmanuel Vadot status = "okay"; 55284943d6fSEmmanuel Vadot}; 55384943d6fSEmmanuel Vadot 55484943d6fSEmmanuel Vadot&tdmif_c { 55584943d6fSEmmanuel Vadot status = "okay"; 55684943d6fSEmmanuel Vadot}; 55784943d6fSEmmanuel Vadot 55884943d6fSEmmanuel Vadot&tdmin_a { 55984943d6fSEmmanuel Vadot status = "okay"; 56084943d6fSEmmanuel Vadot}; 56184943d6fSEmmanuel Vadot 56284943d6fSEmmanuel Vadot&tdmin_b { 56384943d6fSEmmanuel Vadot status = "okay"; 56484943d6fSEmmanuel Vadot}; 56584943d6fSEmmanuel Vadot 56684943d6fSEmmanuel Vadot&tdmin_c { 56784943d6fSEmmanuel Vadot status = "okay"; 56884943d6fSEmmanuel Vadot}; 56984943d6fSEmmanuel Vadot 57084943d6fSEmmanuel Vadot&tdmout_a { 57184943d6fSEmmanuel Vadot status = "okay"; 57284943d6fSEmmanuel Vadot}; 57384943d6fSEmmanuel Vadot 57484943d6fSEmmanuel Vadot&tdmout_b { 57584943d6fSEmmanuel Vadot status = "okay"; 57684943d6fSEmmanuel Vadot}; 57784943d6fSEmmanuel Vadot 57884943d6fSEmmanuel Vadot&tdmout_c { 57984943d6fSEmmanuel Vadot status = "okay"; 58084943d6fSEmmanuel Vadot}; 58184943d6fSEmmanuel Vadot 58284943d6fSEmmanuel Vadot&toacodec { 58384943d6fSEmmanuel Vadot status = "okay"; 58484943d6fSEmmanuel Vadot}; 58584943d6fSEmmanuel Vadot 58684943d6fSEmmanuel Vadot&toddr_a { 58784943d6fSEmmanuel Vadot status = "okay"; 58884943d6fSEmmanuel Vadot}; 58984943d6fSEmmanuel Vadot 59084943d6fSEmmanuel Vadot&toddr_b { 59184943d6fSEmmanuel Vadot status = "okay"; 59284943d6fSEmmanuel Vadot}; 59384943d6fSEmmanuel Vadot 59484943d6fSEmmanuel Vadot&toddr_c { 59584943d6fSEmmanuel Vadot status = "okay"; 59684943d6fSEmmanuel Vadot}; 59784943d6fSEmmanuel Vadot 59884943d6fSEmmanuel Vadot&tohdmitx { 59984943d6fSEmmanuel Vadot status = "okay"; 60084943d6fSEmmanuel Vadot}; 60184943d6fSEmmanuel Vadot 60284943d6fSEmmanuel Vadot&uart_AO { 60384943d6fSEmmanuel Vadot status = "okay"; 60484943d6fSEmmanuel Vadot pinctrl-0 = <&uart_ao_a_pins>; 60584943d6fSEmmanuel Vadot pinctrl-names = "default"; 60684943d6fSEmmanuel Vadot}; 60784943d6fSEmmanuel Vadot 60884943d6fSEmmanuel Vadot&usb2_phy1 { 60984943d6fSEmmanuel Vadot phy-supply = <&dc_in>; 61084943d6fSEmmanuel Vadot}; 61184943d6fSEmmanuel Vadot 61284943d6fSEmmanuel Vadot&usb3_pcie_phy { 61384943d6fSEmmanuel Vadot phy-supply = <&vcc_5v>; 61484943d6fSEmmanuel Vadot}; 61584943d6fSEmmanuel Vadot 61684943d6fSEmmanuel Vadot&usb { 61784943d6fSEmmanuel Vadot status = "okay"; 61884943d6fSEmmanuel Vadot}; 619