Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64: dts: ti: k3-j7200-som-p0: Add nodes for OSPI0

TI J7200 has the Cadence OSPI controller for interfacing with OSPI
flashes. Add its node to allow using SPI flashes.

Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Vignesh Raghavendra <vigneshr@ti.com>
Link: https://lore.kernel.org/r/20210305153926.3479-4-p.yadav@ti.com

authored by

Pratyush Yadav and committed by
Nishanth Menon
efbdf2e9 7c172b30

+53
+17
arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi
··· 269 269 #size-cells = <1>; 270 270 mux-controls = <&hbmc_mux 0>; 271 271 }; 272 + 273 + ospi0: spi@47040000 { 274 + compatible = "ti,am654-ospi"; 275 + reg = <0x0 0x47040000 0x0 0x100>, 276 + <0x5 0x00000000 0x1 0x0000000>; 277 + interrupts = <GIC_SPI 840 IRQ_TYPE_LEVEL_HIGH>; 278 + cdns,fifo-depth = <256>; 279 + cdns,fifo-width = <4>; 280 + cdns,trigger-address = <0x0>; 281 + clocks = <&k3_clks 103 0>; 282 + assigned-clocks = <&k3_clks 103 0>; 283 + assigned-clock-parents = <&k3_clks 103 2>; 284 + assigned-clock-rates = <166666666>; 285 + power-domains = <&k3_pds 103 TI_SCI_PD_EXCLUSIVE>; 286 + #address-cells = <1>; 287 + #size-cells = <0>; 288 + }; 272 289 }; 273 290 274 291 tscadc0: tscadc@40200000 {
+36
arch/arm64/boot/dts/ti/k3-j7200-som-p0.dtsi
··· 100 100 J721E_WKUP_IOPAD(0x28, PIN_INPUT, 1) /* (A7) MCU_OSPI0_D7.MCU_HYPERBUS0_DQ7 */ 101 101 >; 102 102 }; 103 + 104 + mcu_fss0_ospi0_pins_default: mcu-fss0-ospi0-pins-default { 105 + pinctrl-single,pins = < 106 + J721E_WKUP_IOPAD(0x0000, PIN_OUTPUT, 0) /* MCU_OSPI0_CLK */ 107 + J721E_WKUP_IOPAD(0x002c, PIN_OUTPUT, 0) /* MCU_OSPI0_CSn0 */ 108 + J721E_WKUP_IOPAD(0x000c, PIN_INPUT, 0) /* MCU_OSPI0_D0 */ 109 + J721E_WKUP_IOPAD(0x0010, PIN_INPUT, 0) /* MCU_OSPI0_D1 */ 110 + J721E_WKUP_IOPAD(0x0014, PIN_INPUT, 0) /* MCU_OSPI0_D2 */ 111 + J721E_WKUP_IOPAD(0x0018, PIN_INPUT, 0) /* MCU_OSPI0_D3 */ 112 + J721E_WKUP_IOPAD(0x001c, PIN_INPUT, 0) /* MCU_OSPI0_D4 */ 113 + J721E_WKUP_IOPAD(0x0020, PIN_INPUT, 0) /* MCU_OSPI0_D5 */ 114 + J721E_WKUP_IOPAD(0x0024, PIN_INPUT, 0) /* MCU_OSPI0_D6 */ 115 + J721E_WKUP_IOPAD(0x0028, PIN_INPUT, 0) /* MCU_OSPI0_D7 */ 116 + J721E_WKUP_IOPAD(0x0008, PIN_INPUT, 0) /* MCU_OSPI0_DQS */ 117 + >; 118 + }; 103 119 }; 104 120 105 121 &main_pmx0 { ··· 249 233 "CANUART_MUX2_SEL0", "CANUART_MUX_SEL1", 250 234 "UART/LIN_MUX_SEL", "TRC_D17/AUDIO_REFCLK_SEL", 251 235 "GPIO_LIN_EN", "CAN_STB"; 236 + }; 237 + }; 238 + 239 + &ospi0 { 240 + pinctrl-names = "default"; 241 + pinctrl-0 = <&mcu_fss0_ospi0_pins_default>; 242 + 243 + flash@0{ 244 + compatible = "jedec,spi-nor"; 245 + reg = <0x0>; 246 + spi-tx-bus-width = <8>; 247 + spi-rx-bus-width = <8>; 248 + spi-max-frequency = <25000000>; 249 + cdns,tshsl-ns = <60>; 250 + cdns,tsd2d-ns = <60>; 251 + cdns,tchsh-ns = <60>; 252 + cdns,tslch-ns = <60>; 253 + cdns,read-delay = <4>; 254 + #address-cells = <1>; 255 + #size-cells = <1>; 252 256 }; 253 257 };