1 // SPDX-License-Identifier: GPL-2.0-or-later O 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 2 /* 2 /* 3 * Copyright 2022 Toradex 3 * Copyright 2022 Toradex 4 */ 4 */ 5 5 >> 6 #include "imx8mm-verdin-dahlia.dtsi" >> 7 6 / { 8 / { 7 sound_card: sound-card { 9 sound_card: sound-card { 8 compatible = "simple-audio-car 10 compatible = "simple-audio-card"; 9 simple-audio-card,bitclock-mas 11 simple-audio-card,bitclock-master = <&dailink_master>; 10 simple-audio-card,format = "i2 12 simple-audio-card,format = "i2s"; 11 simple-audio-card,frame-master 13 simple-audio-card,frame-master = <&dailink_master>; 12 simple-audio-card,mclk-fs = <2 14 simple-audio-card,mclk-fs = <256>; 13 simple-audio-card,name = "verd !! 15 simple-audio-card,name = "imx8mm-nau8822"; 14 simple-audio-card,routing = 16 simple-audio-card,routing = 15 "Headphones", "LHP", 17 "Headphones", "LHP", 16 "Headphones", "RHP", 18 "Headphones", "RHP", 17 "Speaker", "LSPK", 19 "Speaker", "LSPK", 18 "Speaker", "RSPK", 20 "Speaker", "RSPK", 19 "Line Out", "AUXOUT1", 21 "Line Out", "AUXOUT1", 20 "Line Out", "AUXOUT2", 22 "Line Out", "AUXOUT2", 21 "LAUX", "Line In", 23 "LAUX", "Line In", 22 "RAUX", "Line In", 24 "RAUX", "Line In", 23 "LMICP", "Mic In", 25 "LMICP", "Mic In", 24 "RMICP", "Mic In"; 26 "RMICP", "Mic In"; 25 simple-audio-card,widgets = 27 simple-audio-card,widgets = 26 "Headphones", "Headpho 28 "Headphones", "Headphones", 27 "Line Out", "Line Out" 29 "Line Out", "Line Out", 28 "Speaker", "Speaker", 30 "Speaker", "Speaker", 29 "Microphone", "Mic In" 31 "Microphone", "Mic In", 30 "Line", "Line In"; 32 "Line", "Line In"; 31 33 32 dailink_master: simple-audio-c 34 dailink_master: simple-audio-card,codec { 33 clocks = <&clk IMX8MM_ 35 clocks = <&clk IMX8MM_CLK_SAI2_ROOT>; 34 sound-dai = <&nau8822_ 36 sound-dai = <&nau8822_1a>; 35 }; 37 }; 36 38 37 simple-audio-card,cpu { 39 simple-audio-card,cpu { 38 sound-dai = <&sai2>; 40 sound-dai = <&sai2>; 39 }; 41 }; 40 }; 42 }; 41 }; 43 }; 42 44 43 /* Verdin SPI_1 */ << 44 &ecspi2 { << 45 status = "okay"; << 46 }; << 47 << 48 /* EEPROM on display adapter boards */ << 49 &eeprom_display_adapter { << 50 status = "okay"; << 51 }; << 52 << 53 /* EEPROM on Verdin Development board */ << 54 &eeprom_carrier_board { << 55 status = "okay"; << 56 }; << 57 << 58 &fec1 { << 59 status = "okay"; << 60 }; << 61 << 62 /* Verdin QSPI_1 */ << 63 &flexspi { << 64 status = "okay"; << 65 }; << 66 << 67 /* Current measurement into module VCC */ << 68 &hwmon { << 69 status = "okay"; << 70 }; << 71 << 72 &hwmon_temp { << 73 vs-supply = <®_1p8v>; << 74 status = "okay"; << 75 }; << 76 << 77 &i2c3 { << 78 status = "okay"; << 79 }; << 80 << 81 &gpio5 { << 82 pinctrl-names = "default"; << 83 pinctrl-0 = <&pinctrl_ctrl_sleep_moci> << 84 }; << 85 << 86 &gpio_expander_21 { 45 &gpio_expander_21 { 87 status = "okay"; 46 status = "okay"; 88 }; 47 }; 89 48 90 /* Verdin I2C_1 */ 49 /* Verdin I2C_1 */ 91 &i2c4 { 50 &i2c4 { 92 status = "okay"; << 93 << 94 /* Audio Codec */ 51 /* Audio Codec */ 95 nau8822_1a: audio-codec@1a { 52 nau8822_1a: audio-codec@1a { 96 compatible = "nuvoton,nau8822" 53 compatible = "nuvoton,nau8822"; 97 reg = <0x1a>; 54 reg = <0x1a>; 98 #sound-dai-cells = <0>; << 99 }; 55 }; 100 }; 56 }; 101 57 102 /* Verdin PCIE_1 */ << 103 &pcie0 { << 104 status = "okay"; << 105 }; << 106 << 107 &pcie_phy { << 108 status = "okay"; << 109 }; << 110 << 111 /* Verdin PWM_3_DSI */ << 112 &pwm1 { << 113 status = "okay"; << 114 }; << 115 << 116 /* Verdin PWM_1 */ << 117 &pwm2 { << 118 status = "okay"; << 119 }; << 120 << 121 /* Verdin PWM_2 */ << 122 &pwm3 { << 123 status = "okay"; << 124 }; << 125 << 126 /* Verdin I2S_1 */ << 127 &sai2 { << 128 status = "okay"; << 129 }; << 130 << 131 /* Verdin UART_3 */ << 132 &uart1 { << 133 status = "okay"; << 134 }; << 135 << 136 /* Verdin UART_1, connector X50 through RS485 58 /* Verdin UART_1, connector X50 through RS485 transceiver */ 137 &uart2 { 59 &uart2 { 138 linux,rs485-enabled-at-boot-time; 60 linux,rs485-enabled-at-boot-time; 139 rs485-rts-active-low; 61 rs485-rts-active-low; 140 rs485-rx-during-tx; 62 rs485-rx-during-tx; 141 status = "okay"; << 142 }; << 143 << 144 /* Verdin UART_2 */ << 145 &uart3 { << 146 status = "okay"; << 147 }; << 148 << 149 /* Verdin USB_1 */ << 150 &usbotg1 { << 151 disable-over-current; << 152 status = "okay"; << 153 }; << 154 << 155 /* Verdin USB_2 */ << 156 &usbotg2 { << 157 disable-over-current; << 158 status = "okay"; << 159 }; 63 }; 160 64 161 /* Limit frequency on dev board due to long tr 65 /* Limit frequency on dev board due to long traces and bad signal integrity */ 162 &usdhc2 { 66 &usdhc2 { 163 max-frequency = <100000000>; 67 max-frequency = <100000000>; 164 status = "okay"; << 165 }; 68 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.