// SPDX-License-Identifier: (GPL-2.0+ OR MIT) /* * at91-sama7g5ek.dts - Device Tree file for SAMA7G5-EK board * * Copyright (c) 2020 Microchip Technology Inc. and its subsidiaries * * Author: Eugen Hristev * Author: Claudiu Beznea * */ /dts-v1/; #include "sama7g5-pinfunc.h" #include "sama7g5.dtsi" #include #include #include #include / { model = "Microchip SAMA7G5-EK"; compatible = "microchip,sama7g5ek", "microchip,sama7g5", "microchip,sama7"; chosen { bootargs = "rw root=/dev/mmcblk1p2 rootfstype=ext4 rootwait"; stdout-path = "serial0:115200n8"; }; aliases { serial0 = &uart3; serial1 = &uart4; serial2 = &uart7; serial3 = &uart0; i2c0 = &i2c1; i2c1 = &i2c8; i2c2 = &i2c9; }; clocks { slow_xtal { clock-frequency = <32768>; }; main_xtal { clock-frequency = <24000000>; }; }; gpio-keys { compatible = "gpio-keys"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_key_gpio_default>; button { label = "PB_USER"; gpios = <&pioA PIN_PA12 GPIO_ACTIVE_LOW>; linux,code = ; wakeup-source; }; }; leds { compatible = "gpio-leds"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_led_gpio_default>; status = "okay"; /* Conflict with pwm. */ red_led { label = "red"; gpios = <&pioA PIN_PB8 GPIO_ACTIVE_HIGH>; }; green_led { label = "green"; gpios = <&pioA PIN_PA13 GPIO_ACTIVE_HIGH>; }; blue_led { label = "blue"; gpios = <&pioA PIN_PD20 GPIO_ACTIVE_HIGH>; linux,default-trigger = "heartbeat"; }; }; /* 512 M */ memory@60000000 { device_type = "memory"; reg = <0x60000000 0x20000000>; }; reg_5v: regulator-5v { compatible = "regulator-fixed"; regulator-name = "5V_MAIN"; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; regulator-always-on; }; sound: sound { compatible = "simple-audio-card"; simple-audio-card,name = "sama7g5ek audio"; #address-cells = <1>; #size-cells = <0>; simple-audio-card,dai-link@0 { reg = <0>; cpu { sound-dai = <&spdiftx>; }; codec { sound-dai = <&spdif_out>; }; }; simple-audio-card,dai-link@1 { reg = <1>; cpu { sound-dai = <&spdifrx>; }; codec { sound-dai = <&spdif_in>; }; }; }; spdif_in: spdif-in { #sound-dai-cells = <0>; compatible = "linux,spdif-dir"; }; spdif_out: spdif-out { #sound-dai-cells = <0>; compatible = "linux,spdif-dit"; }; }; &adc { vddana-supply = <&vddout25>; vref-supply = <&vddout25>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_mikrobus1_an_default &pinctrl_mikrobus2_an_default>; status = "okay"; }; &can0 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_can0_default>; status = "okay"; }; &can1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_can1_default>; status = "okay"; }; &cpu0 { cpu-supply = <&vddcpu>; }; &qspi0 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_qspi>; status = "okay"; flash@0 { #address-cells = <1>; #size-cells = <1>; compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <133000000>; spi-tx-bus-width = <8>; spi-rx-bus-width = <8>; m25p,fast-read; at91bootstrap@0 { label = "ospi: at91bootstrap"; reg = <0x0 0x40000>; }; bootloader@40000 { label = "ospi: bootloader"; reg = <0x40000 0xc0000>; }; bootloaderenvred@100000 { label = "ospi: bootloader env redundant"; reg = <0x100000 0x40000>; }; bootloaderenv@140000 { label = "ospi: bootloader env"; reg = <0x140000 0x40000>; }; dtb@180000 { label = "ospi: device tree"; reg = <0x180000 0x80000>; }; kernel@200000 { label = "ospi: kernel"; reg = <0x200000 0x600000>; }; rootfs@800000 { label = "ospi: rootfs"; reg = <0x800000 0x7800000>; }; }; }; &dma0 { status = "okay"; }; &dma1 { status = "okay"; }; &dma2 { status = "okay"; }; &flx0 { atmel,flexcom-mode = ; status = "disabled"; uart0: serial@200 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_flx0_default>; status = "disabled"; }; }; &flx1 { atmel,flexcom-mode = ; status = "okay"; i2c1: i2c@600 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c1_default>; i2c-analog-filter; i2c-digital-filter; i2c-digital-filter-width-ns = <35>; status = "okay"; power-monitor@10 { compatible = "microchip,pac1934"; reg = <0x10>; #address-cells = <1>; #size-cells = <0>; channel@1 { reg = <0x1>; shunt-resistor-micro-ohms = <10000>; label = "VDD3V3"; }; channel@2 { reg = <0x2>; shunt-resistor-micro-ohms = <10000>; label = "VDDIODDR"; }; channel@3 { reg = <0x3>; shunt-resistor-micro-ohms = <10000>; label = "VDDCORE"; }; channel@4 { reg = <0x4>; shunt-resistor-micro-ohms = <10000>; label = "VDDCPU"; }; }; pmic@5b { compatible = "microchip,mcp16502"; reg = <0x5b>; lvin-supply = <®_5v>; pvin1-supply = <®_5v>; pvin2-supply = <®_5v>; pvin3-supply = <®_5v>; pvin4-supply = <®_5v>; status = "okay"; regulators { vdd_3v3: VDD_IO { regulator-name = "VDD_IO"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-initial-mode = <2>; regulator-allowed-modes = <2>, <4>; regulator-always-on; regulator-state-standby { regulator-on-in-suspend; regulator-suspend-microvolt = <3300000>; regulator-mode = <4>; }; regulator-state-mem { regulator-off-in-suspend; regulator-mode = <4>; }; }; vddioddr: VDD_DDR { regulator-name = "VDD_DDR"; regulator-min-microvolt = <1350000>; regulator-max-microvolt = <1350000>; regulator-initial-mode = <2>; regulator-allowed-modes = <2>, <4>; regulator-always-on; regulator-state-standby { regulator-on-in-suspend; regulator-suspend-microvolt = <1350000>; regulator-mode = <4>; }; regulator-state-mem { regulator-on-in-suspend; regulator-suspend-microvolt = <1350000>; regulator-mode = <4>; }; }; vddcore: VDD_CORE { regulator-name = "VDD_CORE"; regulator-min-microvolt = <1150000>; regulator-max-microvolt = <1150000>; regulator-initial-mode = <2>; regulator-allowed-modes = <2>, <4>; regulator-always-on; regulator-state-standby { regulator-on-in-suspend; regulator-suspend-microvolt = <1150000>; regulator-mode = <4>; }; regulator-state-mem { regulator-off-in-suspend; regulator-mode = <4>; }; }; vddcpu: VDD_OTHER { regulator-name = "VDD_OTHER"; regulator-min-microvolt = <1050000>; regulator-max-microvolt = <1250000>; regulator-initial-mode = <2>; regulator-allowed-modes = <2>, <4>; regulator-ramp-delay = <3125>; regulator-always-on; regulator-state-standby { regulator-on-in-suspend; regulator-suspend-microvolt = <1050000>; regulator-mode = <4>; }; regulator-state-mem { regulator-off-in-suspend; regulator-mode = <4>; }; }; vldo1: LDO1 { regulator-name = "LDO1"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-always-on; regulator-state-standby { regulator-suspend-microvolt = <1800000>; regulator-on-in-suspend; }; regulator-state-mem { regulator-off-in-suspend; }; }; vldo2: LDO2 { regulator-name = "LDO2"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <3700000>; regulator-state-standby { regulator-suspend-microvolt = <1800000>; regulator-on-in-suspend; }; regulator-state-mem { regulator-off-in-suspend; }; }; }; }; }; }; &flx3 { atmel,flexcom-mode = ; status = "okay"; uart3: serial@200 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_flx3_default>; status = "okay"; }; }; &flx4 { atmel,flexcom-mode = ; status = "okay"; uart4: serial@200 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_flx4_default>; status = "okay"; }; }; &flx7 { atmel,flexcom-mode = ; status = "okay"; uart7: serial@200 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_flx7_default>; status = "okay"; }; }; &flx8 { atmel,flexcom-mode = ; status = "okay"; i2c8: i2c@600 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c8_default>; i2c-analog-filter; i2c-digital-filter; i2c-digital-filter-width-ns = <35>; status = "okay"; eeprom0: eeprom@52 { compatible = "microchip,24aa025e48"; reg = <0x52>; size = <256>; pagesize = <16>; vcc-supply = <&vdd_3v3>; nvmem-layout { compatible = "fixed-layout"; #address-cells = <1>; #size-cells = <1>; eeprom0_eui48: eui48@fa { reg = <0xfa 0x6>; }; }; }; eeprom1: eeprom@53 { compatible = "microchip,24aa025e48"; reg = <0x53>; size = <256>; pagesize = <16>; vcc-supply = <&vdd_3v3>; nvmem-layout { compatible = "fixed-layout"; #address-cells = <1>; #size-cells = <1>; eeprom1_eui48: eui48@fa { reg = <0xfa 0x6>; }; }; }; }; }; &flx9 { atmel,flexcom-mode = ; status = "okay"; i2c9: i2c@600 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c9_default>; i2c-analog-filter; i2c-digital-filter; i2c-digital-filter-width-ns = <35>; status = "okay"; }; }; &flx11 { atmel,flexcom-mode = ; status = "okay"; spi11: spi@400 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_mikrobus1_spi &pinctrl_mikrobus1_spi_cs>; status = "okay"; }; }; &gmac0 { #address-cells = <1>; #size-cells = <0>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gmac0_default &pinctrl_gmac0_mdio_default &pinctrl_gmac0_txck_default &pinctrl_gmac0_phy_irq>; phy-mode = "rgmii-id"; nvmem-cells = <&eeprom0_eui48>; nvmem-cell-names = "mac-address"; status = "okay"; ethernet-phy@7 { reg = <0x7>; interrupt-parent = <&pioA>; interrupts = ; }; }; &gmac1 { #address-cells = <1>; #size-cells = <0>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gmac1_default &pinctrl_gmac1_mdio_default &pinctrl_gmac1_phy_irq>; phy-mode = "rmii"; nvmem-cells = <&eeprom1_eui48>; nvmem-cell-names = "mac-address"; status = "okay"; /* Conflict with pdmc0. */ ethernet-phy@0 { reg = <0x0>; interrupt-parent = <&pioA>; interrupts = ; }; }; &i2s0 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2s0_default>; }; &pdmc0 { #sound-dai-cells = <0>; microchip,mic-pos = , /* MIC 1 */ , /* MIC 2 */ , /* MIC 3 */ ; /* MIC 4 */ status = "disabled"; /* Conflict with gmac1. */ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_pdmc0_default>; }; &pioA { pinctrl_can0_default: can0_default { pinmux = , ; bias-disable; }; pinctrl_can1_default: can1_default { pinmux = , ; bias-disable; }; pinctrl_flx0_default: flx0_default { pinmux = , , , ; bias-disable; }; pinctrl_flx3_default: flx3_default { pinmux = , ; bias-pull-up; }; pinctrl_flx4_default: flx4_default { pinmux = , ; bias-disable; }; pinctrl_flx7_default: flx7_default { pinmux = , ; bias-disable; }; pinctrl_gmac0_default: gmac0_default { pinmux = , , , , , , , , , , , ; slew-rate = <0>; bias-disable; }; pinctrl_gmac0_mdio_default: gmac0_mdio_default { pinmux = , ; bias-disable; }; pinctrl_gmac0_txck_default: gmac0_txck_default { pinmux = ; slew-rate = <0>; bias-pull-up; }; pinctrl_gmac0_phy_irq: gmac0_phy_irq { pinmux = ; bias-disable; }; pinctrl_gmac1_default: gmac1_default { pinmux = , , , , , , , ; slew-rate = <0>; bias-disable; }; pinctrl_gmac1_mdio_default: gmac1_mdio_default { pinmux = , ; bias-disable; }; pinctrl_gmac1_phy_irq: gmac1_phy_irq { pinmux = ; bias-disable; }; pinctrl_i2c1_default: i2c1_default { pinmux = , ; bias-disable; }; pinctrl_i2c8_default: i2c8_default { pinmux = , ; bias-disable; }; pinctrl_i2c9_default: i2c9_default { pinmux = , ; bias-disable; }; pinctrl_i2s0_default: i2s0_default { pinmux = , , , , ; bias-disable; }; pinctrl_key_gpio_default: key_gpio_default { pinmux = ; bias-pull-up; }; pinctrl_led_gpio_default: led_gpio_default { pinmux = , , ; bias-pull-up; }; pinctrl_mikrobus1_an_default: mikrobus1_an_default { pinmux = ; bias-disable; }; pinctrl_mikrobus2_an_default: mikrobus2_an_default { pinmux = ; bias-disable; }; pinctrl_mikrobus1_pwm2_default: mikrobus1_pwm2_default { pinmux = ; bias-disable; }; pinctrl_mikrobus2_pwm3_default: mikrobus2_pwm3_default { pinmux = ; bias-disable; }; pinctrl_mikrobus1_spi_cs: mikrobus1_spi_cs { pinmux = ; bias-disable; }; pinctrl_mikrobus1_spi: mikrobus1_spi { pinmux = , , ; bias-disable; }; pinctrl_pdmc0_default: pdmc0_default { pinmux = , , ; bias_disable; }; pinctrl_qspi: qspi { pinmux = , , , , , , , , , , , , ; bias-disable; slew-rate = <0>; atmel,drive-strength = ; }; pinctrl_sdmmc0_default: sdmmc0_default { cmd_data { pinmux = , , , , , , , , ; slew-rate = <0>; bias-pull-up; }; ck_cd_rstn_vddsel { pinmux = , , ; slew-rate = <0>; bias-pull-up; }; }; pinctrl_sdmmc1_default: sdmmc1_default { cmd_data { pinmux = , , , , ; slew-rate = <0>; bias-pull-up; }; ck_cd_rstn_vddsel { pinmux = , , , ; slew-rate = <0>; bias-pull-up; }; }; pinctrl_sdmmc2_default: sdmmc2_default { cmd_data { pinmux = , , , , ; slew-rate = <0>; bias-pull-up; }; ck { pinmux = ; slew-rate = <0>; bias-pull-up; }; }; pinctrl_spdifrx_default: spdifrx_default { pinmux = ; bias-disable; }; pinctrl_spdiftx_default: spdiftx_default { pinmux = ; bias-disable; }; }; &pwm { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_mikrobus1_pwm2_default &pinctrl_mikrobus2_pwm3_default>; status = "disabled"; /* Conflict with leds. */ }; &rtt { atmel,rtt-rtc-time-reg = <&gpbr 0x0>; }; &sdmmc0 { bus-width = <8>; non-removable; sdhci-caps-mask = <0x0 0x00200000>; vmmc-supply = <&vdd_3v3>; vqmmc-supply = <&vldo1>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_sdmmc0_default>; status = "okay"; }; &sdmmc1 { bus-width = <4>; no-1-8-v; sdhci-caps-mask = <0x0 0x00200000>; vmmc-supply = <&vdd_3v3>; vqmmc-supply = <&vdd_3v3>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_sdmmc1_default>; status = "okay"; }; &sdmmc2 { bus-width = <4>; no-1-8-v; sdhci-caps-mask = <0x0 0x00200000>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_sdmmc2_default>; }; &shdwc { debounce-delay-us = <976>; status = "okay"; input@0 { reg = <0>; }; }; &spdifrx { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_spdifrx_default>; status = "okay"; }; &spdiftx { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_spdiftx_default>; status = "okay"; }; &tcb0 { timer0: timer@0 { compatible = "atmel,tcb-timer"; reg = <0>; }; timer1: timer@1 { compatible = "atmel,tcb-timer"; reg = <1>; }; }; &trng { status = "okay"; }; &vddout25 { vin-supply = <&vdd_3v3>; status = "okay"; };