1 // SPDX-License-Identifier: GPL-2.0-only 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* 2 /* 3 * Copyright (C) 2017 Texas Instruments Incorp 3 * Copyright (C) 2017 Texas Instruments Incorporated - https://www.ti.com/ 4 */ 4 */ 5 5 6 #include "dra74-ipu-dsp-common.dtsi" 6 #include "dra74-ipu-dsp-common.dtsi" 7 #include <dt-bindings/gpio/gpio.h> 7 #include <dt-bindings/gpio/gpio.h> 8 #include <dt-bindings/clock/ti-dra7-atl.h> 8 #include <dt-bindings/clock/ti-dra7-atl.h> 9 #include <dt-bindings/input/input.h> 9 #include <dt-bindings/input/input.h> 10 10 11 / { 11 / { 12 chosen { 12 chosen { 13 stdout-path = &uart1; 13 stdout-path = &uart1; 14 }; 14 }; 15 15 16 extcon_usb1: extcon_usb1 { 16 extcon_usb1: extcon_usb1 { 17 compatible = "linux,extcon-usb 17 compatible = "linux,extcon-usb-gpio"; 18 id-gpios = <&pcf_gpio_21 1 GPI 18 id-gpios = <&pcf_gpio_21 1 GPIO_ACTIVE_HIGH>; 19 }; 19 }; 20 20 21 extcon_usb2: extcon_usb2 { 21 extcon_usb2: extcon_usb2 { 22 compatible = "linux,extcon-usb 22 compatible = "linux,extcon-usb-gpio"; 23 id-gpios = <&pcf_gpio_21 2 GPI 23 id-gpios = <&pcf_gpio_21 2 GPIO_ACTIVE_HIGH>; 24 }; 24 }; 25 25 26 sound0: sound0 { 26 sound0: sound0 { 27 compatible = "simple-audio-car 27 compatible = "simple-audio-card"; 28 simple-audio-card,name = "DRA7 28 simple-audio-card,name = "DRA7xx-EVM"; 29 simple-audio-card,widgets = 29 simple-audio-card,widgets = 30 "Headphone", "Headphon 30 "Headphone", "Headphone Jack", 31 "Line", "Line Out", 31 "Line", "Line Out", 32 "Microphone", "Mic Jac 32 "Microphone", "Mic Jack", 33 "Line", "Line In"; 33 "Line", "Line In"; 34 simple-audio-card,routing = 34 simple-audio-card,routing = 35 "Headphone Jack", 35 "Headphone Jack", "HPLOUT", 36 "Headphone Jack", 36 "Headphone Jack", "HPROUT", 37 "Line Out", 37 "Line Out", "LLOUT", 38 "Line Out", 38 "Line Out", "RLOUT", 39 "MIC3L", 39 "MIC3L", "Mic Jack", 40 "MIC3R", 40 "MIC3R", "Mic Jack", 41 "Mic Jack", 41 "Mic Jack", "Mic Bias", 42 "LINE1L", 42 "LINE1L", "Line In", 43 "LINE1R", 43 "LINE1R", "Line In"; 44 simple-audio-card,format = "ds 44 simple-audio-card,format = "dsp_b"; 45 simple-audio-card,bitclock-mas 45 simple-audio-card,bitclock-master = <&sound0_master>; 46 simple-audio-card,frame-master 46 simple-audio-card,frame-master = <&sound0_master>; 47 simple-audio-card,bitclock-inv 47 simple-audio-card,bitclock-inversion; 48 48 49 sound0_master: simple-audio-ca 49 sound0_master: simple-audio-card,cpu { 50 sound-dai = <&mcasp3>; 50 sound-dai = <&mcasp3>; 51 system-clock-frequency 51 system-clock-frequency = <5644800>; 52 }; 52 }; 53 53 54 simple-audio-card,codec { 54 simple-audio-card,codec { 55 sound-dai = <&tlv320ai 55 sound-dai = <&tlv320aic3106>; 56 clocks = <&atl_clkin2_ 56 clocks = <&atl_clkin2_ck>; 57 }; 57 }; 58 }; 58 }; 59 59 60 leds { 60 leds { 61 compatible = "gpio-leds"; 61 compatible = "gpio-leds"; 62 led0 { 62 led0 { 63 label = "dra7:usr1"; 63 label = "dra7:usr1"; 64 gpios = <&pcf_lcd 4 GP 64 gpios = <&pcf_lcd 4 GPIO_ACTIVE_LOW>; 65 default-state = "off"; 65 default-state = "off"; 66 }; 66 }; 67 67 68 led1 { 68 led1 { 69 label = "dra7:usr2"; 69 label = "dra7:usr2"; 70 gpios = <&pcf_lcd 5 GP 70 gpios = <&pcf_lcd 5 GPIO_ACTIVE_LOW>; 71 default-state = "off"; 71 default-state = "off"; 72 }; 72 }; 73 73 74 led2 { 74 led2 { 75 label = "dra7:usr3"; 75 label = "dra7:usr3"; 76 gpios = <&pcf_lcd 6 GP 76 gpios = <&pcf_lcd 6 GPIO_ACTIVE_LOW>; 77 default-state = "off"; 77 default-state = "off"; 78 }; 78 }; 79 79 80 led3 { 80 led3 { 81 label = "dra7:usr4"; 81 label = "dra7:usr4"; 82 gpios = <&pcf_lcd 7 GP 82 gpios = <&pcf_lcd 7 GPIO_ACTIVE_LOW>; 83 default-state = "off"; 83 default-state = "off"; 84 }; 84 }; 85 }; 85 }; 86 86 87 gpio_keys { 87 gpio_keys { 88 compatible = "gpio-keys"; 88 compatible = "gpio-keys"; 89 #address-cells = <1>; 89 #address-cells = <1>; 90 #size-cells = <0>; 90 #size-cells = <0>; 91 autorepeat; 91 autorepeat; 92 92 93 USER1 { 93 USER1 { 94 label = "btnUser1"; 94 label = "btnUser1"; 95 linux,code = <BTN_0>; 95 linux,code = <BTN_0>; 96 gpios = <&pcf_lcd 2 GP 96 gpios = <&pcf_lcd 2 GPIO_ACTIVE_LOW>; 97 }; 97 }; 98 98 99 USER2 { 99 USER2 { 100 label = "btnUser2"; 100 label = "btnUser2"; 101 linux,code = <BTN_1>; 101 linux,code = <BTN_1>; 102 gpios = <&pcf_lcd 3 GP 102 gpios = <&pcf_lcd 3 GPIO_ACTIVE_LOW>; 103 }; 103 }; 104 }; 104 }; 105 }; 105 }; 106 106 107 &i2c3 { 107 &i2c3 { 108 status = "okay"; 108 status = "okay"; 109 clock-frequency = <400000>; 109 clock-frequency = <400000>; 110 }; 110 }; 111 111 112 &mcspi1 { 112 &mcspi1 { 113 status = "okay"; 113 status = "okay"; 114 }; 114 }; 115 115 116 &mcspi2 { 116 &mcspi2 { 117 status = "okay"; 117 status = "okay"; 118 }; 118 }; 119 119 120 &uart1 { 120 &uart1 { 121 status = "okay"; 121 status = "okay"; 122 interrupts-extended = <&crossbar_mpu G 122 interrupts-extended = <&crossbar_mpu GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>, 123 <&dra7_pmx_core 123 <&dra7_pmx_core 0x3e0>; 124 }; 124 }; 125 125 126 &uart2 { 126 &uart2 { 127 status = "okay"; 127 status = "okay"; 128 }; 128 }; 129 129 130 &uart3 { 130 &uart3 { 131 status = "okay"; 131 status = "okay"; 132 }; 132 }; 133 133 134 &qspi { 134 &qspi { 135 status = "okay"; 135 status = "okay"; 136 136 137 spi-max-frequency = <76800000>; 137 spi-max-frequency = <76800000>; 138 flash@0 { 138 flash@0 { 139 compatible = "s25fl256s1"; 139 compatible = "s25fl256s1"; 140 spi-max-frequency = <76800000> 140 spi-max-frequency = <76800000>; 141 reg = <0>; 141 reg = <0>; 142 spi-tx-bus-width = <1>; 142 spi-tx-bus-width = <1>; 143 spi-rx-bus-width = <4>; 143 spi-rx-bus-width = <4>; 144 #address-cells = <1>; 144 #address-cells = <1>; 145 #size-cells = <1>; 145 #size-cells = <1>; 146 146 147 /* MTD partition table. 147 /* MTD partition table. 148 * The ROM checks the first fo 148 * The ROM checks the first four physical blocks 149 * for a valid file to boot an 149 * for a valid file to boot and the flash here is 150 * 64KiB block size. 150 * 64KiB block size. 151 */ 151 */ 152 partition@0 { 152 partition@0 { 153 label = "QSPI.SPL"; 153 label = "QSPI.SPL"; 154 reg = <0x00000000 0x00 154 reg = <0x00000000 0x00010000>; 155 }; 155 }; 156 partition@1 { 156 partition@1 { 157 label = "QSPI.SPL.back 157 label = "QSPI.SPL.backup1"; 158 reg = <0x00010000 0x00 158 reg = <0x00010000 0x00010000>; 159 }; 159 }; 160 partition@2 { 160 partition@2 { 161 label = "QSPI.SPL.back 161 label = "QSPI.SPL.backup2"; 162 reg = <0x00020000 0x00 162 reg = <0x00020000 0x00010000>; 163 }; 163 }; 164 partition@3 { 164 partition@3 { 165 label = "QSPI.SPL.back 165 label = "QSPI.SPL.backup3"; 166 reg = <0x00030000 0x00 166 reg = <0x00030000 0x00010000>; 167 }; 167 }; 168 partition@4 { 168 partition@4 { 169 label = "QSPI.u-boot"; 169 label = "QSPI.u-boot"; 170 reg = <0x00040000 0x00 170 reg = <0x00040000 0x00100000>; 171 }; 171 }; 172 partition@5 { 172 partition@5 { 173 label = "QSPI.u-boot-s 173 label = "QSPI.u-boot-spl-os"; 174 reg = <0x00140000 0x00 174 reg = <0x00140000 0x00080000>; 175 }; 175 }; 176 partition@6 { 176 partition@6 { 177 label = "QSPI.u-boot-e 177 label = "QSPI.u-boot-env"; 178 reg = <0x001c0000 0x00 178 reg = <0x001c0000 0x00010000>; 179 }; 179 }; 180 partition@7 { 180 partition@7 { 181 label = "QSPI.u-boot-e 181 label = "QSPI.u-boot-env.backup1"; 182 reg = <0x001d0000 0x00 182 reg = <0x001d0000 0x0010000>; 183 }; 183 }; 184 partition@8 { 184 partition@8 { 185 label = "QSPI.kernel"; 185 label = "QSPI.kernel"; 186 reg = <0x001e0000 0x08 186 reg = <0x001e0000 0x0800000>; 187 }; 187 }; 188 partition@9 { 188 partition@9 { 189 label = "QSPI.file-sys 189 label = "QSPI.file-system"; 190 reg = <0x009e0000 0x01 190 reg = <0x009e0000 0x01620000>; 191 }; 191 }; 192 }; 192 }; 193 }; 193 }; 194 194 195 &omap_dwc3_1 { 195 &omap_dwc3_1 { 196 extcon = <&extcon_usb1>; 196 extcon = <&extcon_usb1>; 197 }; 197 }; 198 198 199 &usb1 { 199 &usb1 { 200 dr_mode = "otg"; 200 dr_mode = "otg"; 201 extcon = <&extcon_usb1>; 201 extcon = <&extcon_usb1>; 202 }; 202 }; 203 203 204 &omap_dwc3_2 { 204 &omap_dwc3_2 { 205 extcon = <&extcon_usb2>; 205 extcon = <&extcon_usb2>; 206 }; 206 }; 207 207 208 &usb2 { 208 &usb2 { 209 dr_mode = "host"; 209 dr_mode = "host"; 210 extcon = <&extcon_usb2>; 210 extcon = <&extcon_usb2>; 211 }; 211 }; 212 212 213 &atl { 213 &atl { 214 assigned-clocks = <&abe_dpll_sys_clk_m 214 assigned-clocks = <&abe_dpll_sys_clk_mux>, 215 <&atl_clkctrl DRA7_A 215 <&atl_clkctrl DRA7_ATL_ATL_CLKCTRL 26>, 216 <&dpll_abe_ck>, 216 <&dpll_abe_ck>, 217 <&dpll_abe_m2x2_ck>, 217 <&dpll_abe_m2x2_ck>, 218 <&atl_clkin2_ck>; 218 <&atl_clkin2_ck>; 219 assigned-clock-parents = <&sys_clkin2> 219 assigned-clock-parents = <&sys_clkin2>, <&dpll_abe_m2_ck>; 220 assigned-clock-rates = <0>, <0>, <1806 220 assigned-clock-rates = <0>, <0>, <180633600>, <361267200>, <5644800>; 221 221 222 status = "okay"; 222 status = "okay"; 223 223 224 atl2 { 224 atl2 { 225 bws = <DRA7_ATL_WS_MCASP2_FSX> 225 bws = <DRA7_ATL_WS_MCASP2_FSX>; 226 aws = <DRA7_ATL_WS_MCASP3_FSX> 226 aws = <DRA7_ATL_WS_MCASP3_FSX>; 227 }; 227 }; 228 }; 228 }; 229 229 230 &mcasp3 { 230 &mcasp3 { 231 #sound-dai-cells = <0>; 231 #sound-dai-cells = <0>; 232 232 233 assigned-clocks = <&l4per2_clkctrl DRA 233 assigned-clocks = <&l4per2_clkctrl DRA7_L4PER2_MCASP3_CLKCTRL 24>; 234 assigned-clock-parents = <&atl_clkin2_ 234 assigned-clock-parents = <&atl_clkin2_ck>; 235 235 236 status = "okay"; 236 status = "okay"; 237 237 238 op-mode = <0>; /* MCASP_IIS_M 238 op-mode = <0>; /* MCASP_IIS_MODE */ 239 tdm-slots = <2>; 239 tdm-slots = <2>; 240 /* 4 serializer */ 240 /* 4 serializer */ 241 serial-dir = < /* 0: INACTIVE, 1: TX, 241 serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */ 242 1 2 0 0 242 1 2 0 0 243 >; 243 >; 244 tx-num-evt = <32>; 244 tx-num-evt = <32>; 245 rx-num-evt = <32>; 245 rx-num-evt = <32>; 246 }; 246 }; 247 247 248 &pcie1_rc { 248 &pcie1_rc { 249 status = "okay"; 249 status = "okay"; 250 }; 250 }; 251 251 252 &mmc4 { 252 &mmc4 { 253 bus-width = <4>; 253 bus-width = <4>; 254 cap-power-off-card; 254 cap-power-off-card; 255 keep-power-in-suspend; 255 keep-power-in-suspend; 256 non-removable; 256 non-removable; 257 #address-cells = <1>; 257 #address-cells = <1>; 258 #size-cells = <0>; 258 #size-cells = <0>; 259 wifi@2 { 259 wifi@2 { 260 compatible = "ti,wl1835"; 260 compatible = "ti,wl1835"; 261 reg = <2>; 261 reg = <2>; 262 interrupt-parent = <&gpio5>; 262 interrupt-parent = <&gpio5>; 263 interrupts = <7 IRQ_TYPE_EDGE_ 263 interrupts = <7 IRQ_TYPE_EDGE_RISING>; 264 }; 264 }; 265 }; 265 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.