1c66ec88fSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0 2c66ec88fSEmmanuel Vadot/* 3c66ec88fSEmmanuel Vadot * Copyright (c) 2019 BayLibre SAS. 4c66ec88fSEmmanuel Vadot * Author: Jerome Brunet <jbrunet@baylibre.com> 5c66ec88fSEmmanuel Vadot */ 6c66ec88fSEmmanuel Vadot 7c66ec88fSEmmanuel Vadot/* Libretech Amlogic GX PC form factor - AKA: Tartiflette */ 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadot#include <dt-bindings/input/input.h> 10c66ec88fSEmmanuel Vadot#include <dt-bindings/leds/common.h> 11c66ec88fSEmmanuel Vadot#include <dt-bindings/sound/meson-aiu.h> 12c66ec88fSEmmanuel Vadot 13c66ec88fSEmmanuel Vadot/ { 14c66ec88fSEmmanuel Vadot adc-keys { 15c66ec88fSEmmanuel Vadot compatible = "adc-keys"; 16c66ec88fSEmmanuel Vadot io-channels = <&saradc 0>; 17c66ec88fSEmmanuel Vadot io-channel-names = "buttons"; 18c66ec88fSEmmanuel Vadot keyup-threshold-microvolt = <1800000>; 19c66ec88fSEmmanuel Vadot 20cb7aa33aSEmmanuel Vadot button-update { 21c66ec88fSEmmanuel Vadot label = "update"; 22c66ec88fSEmmanuel Vadot linux,code = <KEY_VENDOR>; 23c66ec88fSEmmanuel Vadot press-threshold-microvolt = <1300000>; 24c66ec88fSEmmanuel Vadot }; 25c66ec88fSEmmanuel Vadot }; 26c66ec88fSEmmanuel Vadot 27c66ec88fSEmmanuel Vadot aliases { 28c66ec88fSEmmanuel Vadot serial0 = &uart_AO; 29c66ec88fSEmmanuel Vadot ethernet0 = ðmac; 30c66ec88fSEmmanuel Vadot spi0 = &spifc; 31c66ec88fSEmmanuel Vadot }; 32c66ec88fSEmmanuel Vadot 33c66ec88fSEmmanuel Vadot dio2133: analog-amplifier { 34c66ec88fSEmmanuel Vadot compatible = "simple-audio-amplifier"; 35c66ec88fSEmmanuel Vadot sound-name-prefix = "AU2"; 36c66ec88fSEmmanuel Vadot VCC-supply = <&vcc5v>; 37c66ec88fSEmmanuel Vadot enable-gpios = <&gpio GPIOH_5 GPIO_ACTIVE_HIGH>; 38c66ec88fSEmmanuel Vadot }; 39c66ec88fSEmmanuel Vadot 40c66ec88fSEmmanuel Vadot chosen { 41c66ec88fSEmmanuel Vadot stdout-path = "serial0:115200n8"; 42c66ec88fSEmmanuel Vadot }; 43c66ec88fSEmmanuel Vadot 44c66ec88fSEmmanuel Vadot cvbs-connector { 45c66ec88fSEmmanuel Vadot compatible = "composite-video-connector"; 46c66ec88fSEmmanuel Vadot status = "disabled"; 47c66ec88fSEmmanuel Vadot 48c66ec88fSEmmanuel Vadot port { 49c66ec88fSEmmanuel Vadot cvbs_connector_in: endpoint { 50c66ec88fSEmmanuel Vadot remote-endpoint = <&cvbs_vdac_out>; 51c66ec88fSEmmanuel Vadot }; 52c66ec88fSEmmanuel Vadot }; 53c66ec88fSEmmanuel Vadot }; 54c66ec88fSEmmanuel Vadot 55c66ec88fSEmmanuel Vadot emmc_pwrseq: emmc-pwrseq { 56c66ec88fSEmmanuel Vadot compatible = "mmc-pwrseq-emmc"; 57c66ec88fSEmmanuel Vadot reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>; 58c66ec88fSEmmanuel Vadot }; 59c66ec88fSEmmanuel Vadot 60c66ec88fSEmmanuel Vadot hdmi-connector { 61c66ec88fSEmmanuel Vadot compatible = "hdmi-connector"; 62c66ec88fSEmmanuel Vadot type = "a"; 63c66ec88fSEmmanuel Vadot 64c66ec88fSEmmanuel Vadot port { 65c66ec88fSEmmanuel Vadot hdmi_connector_in: endpoint { 66c66ec88fSEmmanuel Vadot remote-endpoint = <&hdmi_tx_tmds_out>; 67c66ec88fSEmmanuel Vadot }; 68c66ec88fSEmmanuel Vadot }; 69c66ec88fSEmmanuel Vadot }; 70c66ec88fSEmmanuel Vadot 71c66ec88fSEmmanuel Vadot gpio-keys-polled { 72c66ec88fSEmmanuel Vadot compatible = "gpio-keys-polled"; 73c66ec88fSEmmanuel Vadot poll-interval = <100>; 74c66ec88fSEmmanuel Vadot 75c66ec88fSEmmanuel Vadot power-button { 76c66ec88fSEmmanuel Vadot label = "power"; 77c66ec88fSEmmanuel Vadot linux,code = <KEY_POWER>; 78c66ec88fSEmmanuel Vadot gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_LOW>; 79c66ec88fSEmmanuel Vadot }; 80c66ec88fSEmmanuel Vadot }; 81c66ec88fSEmmanuel Vadot 82c66ec88fSEmmanuel Vadot memory@0 { 83c66ec88fSEmmanuel Vadot device_type = "memory"; 84c66ec88fSEmmanuel Vadot reg = <0x0 0x0 0x0 0x80000000>; 85c66ec88fSEmmanuel Vadot }; 86c66ec88fSEmmanuel Vadot 8701950c46SEmmanuel Vadot ao_5v: regulator-ao-5v { 88c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 89c66ec88fSEmmanuel Vadot regulator-name = "AO_5V"; 90c66ec88fSEmmanuel Vadot regulator-min-microvolt = <5000000>; 91c66ec88fSEmmanuel Vadot regulator-max-microvolt = <5000000>; 92c66ec88fSEmmanuel Vadot vin-supply = <&dc_in>; 93c66ec88fSEmmanuel Vadot regulator-always-on; 94c66ec88fSEmmanuel Vadot }; 95c66ec88fSEmmanuel Vadot 9601950c46SEmmanuel Vadot dc_in: regulator-dc-in { 97c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 98c66ec88fSEmmanuel Vadot regulator-name = "DC_IN"; 99c66ec88fSEmmanuel Vadot regulator-min-microvolt = <5000000>; 100c66ec88fSEmmanuel Vadot regulator-max-microvolt = <5000000>; 101c66ec88fSEmmanuel Vadot regulator-always-on; 102c66ec88fSEmmanuel Vadot }; 103c66ec88fSEmmanuel Vadot 104c66ec88fSEmmanuel Vadot leds { 105c66ec88fSEmmanuel Vadot compatible = "gpio-leds"; 106c66ec88fSEmmanuel Vadot 107c66ec88fSEmmanuel Vadot led-green { 108c66ec88fSEmmanuel Vadot color = <LED_COLOR_ID_GREEN>; 109c66ec88fSEmmanuel Vadot function = LED_FUNCTION_DISK_ACTIVITY; 110c66ec88fSEmmanuel Vadot gpios = <&gpio_ao GPIOAO_9 GPIO_ACTIVE_HIGH>; 111c66ec88fSEmmanuel Vadot linux,default-trigger = "disk-activity"; 112c66ec88fSEmmanuel Vadot }; 113c66ec88fSEmmanuel Vadot 114c66ec88fSEmmanuel Vadot led-blue { 115c66ec88fSEmmanuel Vadot color = <LED_COLOR_ID_BLUE>; 116c66ec88fSEmmanuel Vadot function = LED_FUNCTION_STATUS; 117c66ec88fSEmmanuel Vadot gpios = <&gpio GPIODV_28 GPIO_ACTIVE_HIGH>; 118c66ec88fSEmmanuel Vadot linux,default-trigger = "heartbeat"; 119c66ec88fSEmmanuel Vadot panic-indicator; 120c66ec88fSEmmanuel Vadot }; 121c66ec88fSEmmanuel Vadot }; 122c66ec88fSEmmanuel Vadot 12301950c46SEmmanuel Vadot vcc_card: regulator-vcc-card { 124c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 125c66ec88fSEmmanuel Vadot regulator-name = "VCC_CARD"; 126c66ec88fSEmmanuel Vadot regulator-min-microvolt = <3300000>; 127c66ec88fSEmmanuel Vadot regulator-max-microvolt = <3300000>; 128c66ec88fSEmmanuel Vadot vin-supply = <&vddio_ao3v3>; 129c66ec88fSEmmanuel Vadot 130c66ec88fSEmmanuel Vadot gpio = <&gpio GPIODV_4 GPIO_ACTIVE_HIGH>; 131c66ec88fSEmmanuel Vadot enable-active-high; 132c66ec88fSEmmanuel Vadot }; 133c66ec88fSEmmanuel Vadot 134c66ec88fSEmmanuel Vadot vcc5v: regulator-vcc5v { 135c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 136c66ec88fSEmmanuel Vadot regulator-name = "VCC5V"; 137c66ec88fSEmmanuel Vadot regulator-min-microvolt = <5000000>; 138c66ec88fSEmmanuel Vadot regulator-max-microvolt = <5000000>; 139c66ec88fSEmmanuel Vadot vin-supply = <&ao_5v>; 140c66ec88fSEmmanuel Vadot 141c66ec88fSEmmanuel Vadot gpio = <&gpio GPIOH_3 GPIO_OPEN_DRAIN>; 142c66ec88fSEmmanuel Vadot }; 143c66ec88fSEmmanuel Vadot 14401950c46SEmmanuel Vadot vddio_ao18: regulator-vddio-ao18 { 145c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 146c66ec88fSEmmanuel Vadot regulator-name = "VDDIO_AO18"; 147c66ec88fSEmmanuel Vadot regulator-min-microvolt = <1800000>; 148c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1800000>; 149c66ec88fSEmmanuel Vadot vin-supply = <&ao_5v>; 150c66ec88fSEmmanuel Vadot regulator-always-on; 151c66ec88fSEmmanuel Vadot }; 152c66ec88fSEmmanuel Vadot 15301950c46SEmmanuel Vadot vddio_ao3v3: regulator-vddio-ao3v3 { 154c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 155c66ec88fSEmmanuel Vadot regulator-name = "VDDIO_AO3V3"; 156c66ec88fSEmmanuel Vadot regulator-min-microvolt = <3300000>; 157c66ec88fSEmmanuel Vadot regulator-max-microvolt = <3300000>; 158c66ec88fSEmmanuel Vadot vin-supply = <&ao_5v>; 159c66ec88fSEmmanuel Vadot regulator-always-on; 160c66ec88fSEmmanuel Vadot }; 161c66ec88fSEmmanuel Vadot 16201950c46SEmmanuel Vadot vddio_boot: regulator-vddio-boot { 163c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 164c66ec88fSEmmanuel Vadot regulator-name = "VDDIO_BOOT"; 165c66ec88fSEmmanuel Vadot regulator-min-microvolt = <1800000>; 166c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1800000>; 167c66ec88fSEmmanuel Vadot vin-supply = <&vddio_ao3v3>; 168c66ec88fSEmmanuel Vadot regulator-always-on; 169c66ec88fSEmmanuel Vadot }; 170c66ec88fSEmmanuel Vadot 171c66ec88fSEmmanuel Vadot vddio_card: regulator-vddio-card { 172c66ec88fSEmmanuel Vadot compatible = "regulator-gpio"; 173c66ec88fSEmmanuel Vadot regulator-name = "VDDIO_CARD"; 174c66ec88fSEmmanuel Vadot regulator-min-microvolt = <1800000>; 175c66ec88fSEmmanuel Vadot regulator-max-microvolt = <3300000>; 176c66ec88fSEmmanuel Vadot 177c66ec88fSEmmanuel Vadot gpios = <&gpio GPIODV_5 GPIO_ACTIVE_HIGH>; 178c66ec88fSEmmanuel Vadot gpios-states = <0>; 179c66ec88fSEmmanuel Vadot 180c66ec88fSEmmanuel Vadot states = <3300000 0>, 181c66ec88fSEmmanuel Vadot <1800000 1>; 182c66ec88fSEmmanuel Vadot 183c66ec88fSEmmanuel Vadot regulator-settling-time-up-us = <200>; 184c66ec88fSEmmanuel Vadot regulator-settling-time-down-us = <50000>; 185c66ec88fSEmmanuel Vadot }; 186c66ec88fSEmmanuel Vadot 187c66ec88fSEmmanuel Vadot sound { 188c66ec88fSEmmanuel Vadot compatible = "amlogic,gx-sound-card"; 1895def4c47SEmmanuel Vadot model = "LIBRETECH-PC"; 190c66ec88fSEmmanuel Vadot audio-aux-devs = <&dio2133>; 191c66ec88fSEmmanuel Vadot audio-widgets = "Speaker", "7J4-14 LEFT", 192c66ec88fSEmmanuel Vadot "Speaker", "7J4-11 RIGHT"; 193c66ec88fSEmmanuel Vadot audio-routing = "AU2 INL", "ACODEC LOLN", 194c66ec88fSEmmanuel Vadot "AU2 INR", "ACODEC LORN", 195c66ec88fSEmmanuel Vadot "7J4-14 LEFT", "AU2 OUTL", 196c66ec88fSEmmanuel Vadot "7J4-11 RIGHT", "AU2 OUTR"; 197*b2d2a78aSEmmanuel Vadot clocks = <&clkc CLKID_MPLL0>, 198*b2d2a78aSEmmanuel Vadot <&clkc CLKID_MPLL1>, 199*b2d2a78aSEmmanuel Vadot <&clkc CLKID_MPLL2>; 200*b2d2a78aSEmmanuel Vadot 201c66ec88fSEmmanuel Vadot assigned-clocks = <&clkc CLKID_MPLL0>, 202c66ec88fSEmmanuel Vadot <&clkc CLKID_MPLL1>, 203c66ec88fSEmmanuel Vadot <&clkc CLKID_MPLL2>; 204c66ec88fSEmmanuel Vadot assigned-clock-parents = <0>, <0>, <0>; 205c66ec88fSEmmanuel Vadot assigned-clock-rates = <294912000>, 206c66ec88fSEmmanuel Vadot <270950400>, 207c66ec88fSEmmanuel Vadot <393216000>; 208c66ec88fSEmmanuel Vadot 209c66ec88fSEmmanuel Vadot dai-link-0 { 210c66ec88fSEmmanuel Vadot sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>; 211c66ec88fSEmmanuel Vadot }; 212c66ec88fSEmmanuel Vadot 213c66ec88fSEmmanuel Vadot dai-link-1 { 214c66ec88fSEmmanuel Vadot sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>; 215c66ec88fSEmmanuel Vadot dai-format = "i2s"; 216c66ec88fSEmmanuel Vadot mclk-fs = <256>; 217c66ec88fSEmmanuel Vadot 218c66ec88fSEmmanuel Vadot codec-0 { 219c66ec88fSEmmanuel Vadot sound-dai = <&aiu AIU_HDMI CTRL_I2S>; 220c66ec88fSEmmanuel Vadot }; 221c66ec88fSEmmanuel Vadot 222c66ec88fSEmmanuel Vadot codec-1 { 223c66ec88fSEmmanuel Vadot sound-dai = <&aiu AIU_ACODEC CTRL_I2S>; 224c66ec88fSEmmanuel Vadot }; 225c66ec88fSEmmanuel Vadot }; 226c66ec88fSEmmanuel Vadot 227c66ec88fSEmmanuel Vadot dai-link-2 { 228c66ec88fSEmmanuel Vadot sound-dai = <&aiu AIU_HDMI CTRL_OUT>; 229c66ec88fSEmmanuel Vadot 230c66ec88fSEmmanuel Vadot codec-0 { 231c66ec88fSEmmanuel Vadot sound-dai = <&hdmi_tx>; 232c66ec88fSEmmanuel Vadot }; 233c66ec88fSEmmanuel Vadot }; 234c66ec88fSEmmanuel Vadot 235c66ec88fSEmmanuel Vadot dai-link-3 { 236c66ec88fSEmmanuel Vadot sound-dai = <&aiu AIU_ACODEC CTRL_OUT>; 237c66ec88fSEmmanuel Vadot 238c66ec88fSEmmanuel Vadot codec-0 { 239c66ec88fSEmmanuel Vadot sound-dai = <&acodec>; 240c66ec88fSEmmanuel Vadot }; 241c66ec88fSEmmanuel Vadot }; 242c66ec88fSEmmanuel Vadot }; 243c66ec88fSEmmanuel Vadot}; 244c66ec88fSEmmanuel Vadot 245c66ec88fSEmmanuel Vadot&acodec { 246c66ec88fSEmmanuel Vadot AVDD-supply = <&vddio_ao18>; 247c66ec88fSEmmanuel Vadot status = "okay"; 248c66ec88fSEmmanuel Vadot}; 249c66ec88fSEmmanuel Vadot 250c66ec88fSEmmanuel Vadot&aiu { 251c66ec88fSEmmanuel Vadot status = "okay"; 252c66ec88fSEmmanuel Vadot}; 253c66ec88fSEmmanuel Vadot 254c66ec88fSEmmanuel Vadot&cec_AO { 255c66ec88fSEmmanuel Vadot pinctrl-0 = <&ao_cec_pins>; 256c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 257c66ec88fSEmmanuel Vadot hdmi-phandle = <&hdmi_tx>; 258c66ec88fSEmmanuel Vadot status = "okay"; 259c66ec88fSEmmanuel Vadot}; 260c66ec88fSEmmanuel Vadot 261c66ec88fSEmmanuel Vadot&cvbs_vdac_port { 262c66ec88fSEmmanuel Vadot cvbs_vdac_out: endpoint { 263c66ec88fSEmmanuel Vadot remote-endpoint = <&cvbs_connector_in>; 264c66ec88fSEmmanuel Vadot }; 265c66ec88fSEmmanuel Vadot}; 266c66ec88fSEmmanuel Vadot 267c66ec88fSEmmanuel Vadotðmac { 268c66ec88fSEmmanuel Vadot pinctrl-0 = <ð_pins>, <ð_phy_irq_pins>; 269c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 270c66ec88fSEmmanuel Vadot phy-handle = <&external_phy>; 271c66ec88fSEmmanuel Vadot amlogic,tx-delay-ns = <2>; 272c66ec88fSEmmanuel Vadot phy-mode = "rgmii"; 273c66ec88fSEmmanuel Vadot status = "okay"; 274c66ec88fSEmmanuel Vadot}; 275c66ec88fSEmmanuel Vadot 276c66ec88fSEmmanuel Vadot&external_mdio { 277c66ec88fSEmmanuel Vadot external_phy: ethernet-phy@0 { 278c66ec88fSEmmanuel Vadot reg = <0>; 279c66ec88fSEmmanuel Vadot max-speed = <1000>; 280c66ec88fSEmmanuel Vadot reset-assert-us = <10000>; 281c66ec88fSEmmanuel Vadot reset-deassert-us = <30000>; 282c66ec88fSEmmanuel Vadot reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>; 283c66ec88fSEmmanuel Vadot interrupt-parent = <&gpio_intc>; 284c66ec88fSEmmanuel Vadot interrupts = <25 IRQ_TYPE_LEVEL_LOW>; 285c66ec88fSEmmanuel Vadot }; 286c66ec88fSEmmanuel Vadot}; 287c66ec88fSEmmanuel Vadot 288c66ec88fSEmmanuel Vadot&pinctrl_periphs { 289c66ec88fSEmmanuel Vadot /* 290c66ec88fSEmmanuel Vadot * Make sure the reset pin of the usb HUB is driven high to take 291c66ec88fSEmmanuel Vadot * it out of reset. 292c66ec88fSEmmanuel Vadot */ 293c66ec88fSEmmanuel Vadot usb1_rst_pins: usb1_rst_irq { 294c66ec88fSEmmanuel Vadot mux { 295c66ec88fSEmmanuel Vadot groups = "GPIODV_3"; 296c66ec88fSEmmanuel Vadot function = "gpio_periphs"; 297c66ec88fSEmmanuel Vadot bias-disable; 298c66ec88fSEmmanuel Vadot output-high; 299c66ec88fSEmmanuel Vadot }; 300c66ec88fSEmmanuel Vadot }; 301c66ec88fSEmmanuel Vadot 302c66ec88fSEmmanuel Vadot /* Make sure the phy irq pin is properly configured as input */ 303c66ec88fSEmmanuel Vadot eth_phy_irq_pins: eth_phy_irq { 304c66ec88fSEmmanuel Vadot mux { 305c66ec88fSEmmanuel Vadot groups = "GPIOZ_15"; 306c66ec88fSEmmanuel Vadot function = "gpio_periphs"; 307c66ec88fSEmmanuel Vadot bias-disable; 308c66ec88fSEmmanuel Vadot output-disable; 309c66ec88fSEmmanuel Vadot }; 310c66ec88fSEmmanuel Vadot }; 311c66ec88fSEmmanuel Vadot}; 312c66ec88fSEmmanuel Vadot 313c66ec88fSEmmanuel Vadot&hdmi_tx { 314c66ec88fSEmmanuel Vadot pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>; 315c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 316c66ec88fSEmmanuel Vadot hdmi-supply = <&vcc5v>; 317c66ec88fSEmmanuel Vadot status = "okay"; 318c66ec88fSEmmanuel Vadot}; 319c66ec88fSEmmanuel Vadot 320c66ec88fSEmmanuel Vadot&hdmi_tx_tmds_port { 321c66ec88fSEmmanuel Vadot hdmi_tx_tmds_out: endpoint { 322c66ec88fSEmmanuel Vadot remote-endpoint = <&hdmi_connector_in>; 323c66ec88fSEmmanuel Vadot }; 324c66ec88fSEmmanuel Vadot}; 325c66ec88fSEmmanuel Vadot 326c66ec88fSEmmanuel Vadot&ir { 327c66ec88fSEmmanuel Vadot pinctrl-0 = <&remote_input_ao_pins>; 328c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 329c66ec88fSEmmanuel Vadot status = "okay"; 330c66ec88fSEmmanuel Vadot}; 331c66ec88fSEmmanuel Vadot 332c66ec88fSEmmanuel Vadot&i2c_C { 333c66ec88fSEmmanuel Vadot pinctrl-0 = <&i2c_c_dv18_pins>; 334c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 335c66ec88fSEmmanuel Vadot status = "okay"; 336c66ec88fSEmmanuel Vadot 337c66ec88fSEmmanuel Vadot rtc: rtc@51 { 338c66ec88fSEmmanuel Vadot reg = <0x51>; 339c66ec88fSEmmanuel Vadot compatible = "nxp,pcf8563"; 340c66ec88fSEmmanuel Vadot #clock-cells = <0>; 341c66ec88fSEmmanuel Vadot clock-output-names = "rtc_clkout"; 342c66ec88fSEmmanuel Vadot }; 343c66ec88fSEmmanuel Vadot}; 344c66ec88fSEmmanuel Vadot 345c66ec88fSEmmanuel Vadot&pwm_AO_ab { 346c66ec88fSEmmanuel Vadot pinctrl-0 = <&pwm_ao_a_3_pins>; 347c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 348c66ec88fSEmmanuel Vadot clocks = <&clkc CLKID_FCLK_DIV4>; 349c66ec88fSEmmanuel Vadot clock-names = "clkin0"; 350c66ec88fSEmmanuel Vadot status = "okay"; 351c66ec88fSEmmanuel Vadot}; 352c66ec88fSEmmanuel Vadot 353c66ec88fSEmmanuel Vadot&pwm_ab { 354c66ec88fSEmmanuel Vadot pinctrl-0 = <&pwm_b_pins>; 355c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 356c66ec88fSEmmanuel Vadot clocks = <&clkc CLKID_FCLK_DIV4>; 357c66ec88fSEmmanuel Vadot clock-names = "clkin0"; 358c66ec88fSEmmanuel Vadot status = "okay"; 359c66ec88fSEmmanuel Vadot}; 360c66ec88fSEmmanuel Vadot 361c66ec88fSEmmanuel Vadot&pwm_ef { 362c66ec88fSEmmanuel Vadot pinctrl-0 = <&pwm_e_pins>, <&pwm_f_clk_pins>; 363c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 364c66ec88fSEmmanuel Vadot clocks = <&clkc CLKID_FCLK_DIV4>; 365c66ec88fSEmmanuel Vadot clock-names = "clkin0"; 366c66ec88fSEmmanuel Vadot status = "okay"; 367c66ec88fSEmmanuel Vadot}; 368c66ec88fSEmmanuel Vadot 369c66ec88fSEmmanuel Vadot&saradc { 370c66ec88fSEmmanuel Vadot vref-supply = <&vddio_ao18>; 371c66ec88fSEmmanuel Vadot status = "okay"; 372c66ec88fSEmmanuel Vadot}; 373c66ec88fSEmmanuel Vadot 374c66ec88fSEmmanuel Vadot/* SD card */ 375c66ec88fSEmmanuel Vadot&sd_emmc_b { 376c66ec88fSEmmanuel Vadot pinctrl-0 = <&sdcard_pins>; 377c66ec88fSEmmanuel Vadot pinctrl-1 = <&sdcard_clk_gate_pins>; 378c66ec88fSEmmanuel Vadot pinctrl-names = "default", "clk-gate"; 379c66ec88fSEmmanuel Vadot 380c66ec88fSEmmanuel Vadot bus-width = <4>; 381c66ec88fSEmmanuel Vadot cap-sd-highspeed; 382c66ec88fSEmmanuel Vadot sd-uhs-sdr12; 383c66ec88fSEmmanuel Vadot sd-uhs-sdr25; 384c66ec88fSEmmanuel Vadot sd-uhs-sdr50; 385c66ec88fSEmmanuel Vadot sd-uhs-ddr50; 386c66ec88fSEmmanuel Vadot max-frequency = <200000000>; 387c66ec88fSEmmanuel Vadot disable-wp; 388c66ec88fSEmmanuel Vadot 389c66ec88fSEmmanuel Vadot cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>; 390c66ec88fSEmmanuel Vadot 391c66ec88fSEmmanuel Vadot vmmc-supply = <&vcc_card>; 392c66ec88fSEmmanuel Vadot vqmmc-supply = <&vddio_card>; 393c66ec88fSEmmanuel Vadot 394c66ec88fSEmmanuel Vadot status = "okay"; 395c66ec88fSEmmanuel Vadot}; 396c66ec88fSEmmanuel Vadot 397c66ec88fSEmmanuel Vadot/* eMMC */ 398c66ec88fSEmmanuel Vadot&sd_emmc_c { 399c66ec88fSEmmanuel Vadot pinctrl-0 = <&emmc_pins>; 400c66ec88fSEmmanuel Vadot pinctrl-1 = <&emmc_clk_gate_pins>; 401c66ec88fSEmmanuel Vadot pinctrl-names = "default", "clk-gate"; 402c66ec88fSEmmanuel Vadot 403c66ec88fSEmmanuel Vadot bus-width = <8>; 404c66ec88fSEmmanuel Vadot cap-mmc-highspeed; 405c66ec88fSEmmanuel Vadot mmc-ddr-1_8v; 406c66ec88fSEmmanuel Vadot mmc-hs200-1_8v; 407c66ec88fSEmmanuel Vadot max-frequency = <200000000>; 408c66ec88fSEmmanuel Vadot disable-wp; 409c66ec88fSEmmanuel Vadot 410c66ec88fSEmmanuel Vadot mmc-pwrseq = <&emmc_pwrseq>; 411c66ec88fSEmmanuel Vadot vmmc-supply = <&vddio_ao3v3>; 412c66ec88fSEmmanuel Vadot vqmmc-supply = <&vddio_boot>; 413c66ec88fSEmmanuel Vadot 414c66ec88fSEmmanuel Vadot status = "okay"; 415c66ec88fSEmmanuel Vadot}; 416c66ec88fSEmmanuel Vadot 417c66ec88fSEmmanuel Vadot&spifc { 418c66ec88fSEmmanuel Vadot pinctrl-0 = <&nor_pins>; 419c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 420c66ec88fSEmmanuel Vadot status = "okay"; 421c66ec88fSEmmanuel Vadot 422d5b0e70fSEmmanuel Vadot gd25lq128: flash@0 { 423c66ec88fSEmmanuel Vadot compatible = "jedec,spi-nor"; 424c66ec88fSEmmanuel Vadot #address-cells = <1>; 425c66ec88fSEmmanuel Vadot #size-cells = <1>; 426c66ec88fSEmmanuel Vadot reg = <0>; 427c66ec88fSEmmanuel Vadot spi-max-frequency = <12000000>; 428c66ec88fSEmmanuel Vadot }; 429c66ec88fSEmmanuel Vadot}; 430c66ec88fSEmmanuel Vadot 431c66ec88fSEmmanuel Vadot&uart_AO { 432c66ec88fSEmmanuel Vadot pinctrl-0 = <&uart_ao_a_pins>; 433c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 434c66ec88fSEmmanuel Vadot status = "okay"; 435c66ec88fSEmmanuel Vadot}; 436c66ec88fSEmmanuel Vadot 437c66ec88fSEmmanuel Vadot&usb { 438c66ec88fSEmmanuel Vadot status = "okay"; 439c66ec88fSEmmanuel Vadot dr_mode = "host"; 440c66ec88fSEmmanuel Vadot}; 441c66ec88fSEmmanuel Vadot 442c66ec88fSEmmanuel Vadot&usb2_phy0 { 443c66ec88fSEmmanuel Vadot pinctrl-0 = <&usb1_rst_pins>; 444c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 445c66ec88fSEmmanuel Vadot phy-supply = <&vcc5v>; 446c66ec88fSEmmanuel Vadot}; 447c66ec88fSEmmanuel Vadot 448c66ec88fSEmmanuel Vadot&usb2_phy1 { 449c66ec88fSEmmanuel Vadot phy-supply = <&vcc5v>; 450c66ec88fSEmmanuel Vadot}; 451