Skip to content

Commit 6b51892

Browse files
Anurag Duttanmenon
authored andcommitted
arm64: dts: ti: k3-j7200: Add node to disable loopback connection
CTRLMMR_MCU_SPI1_CTRL register controls if MCU_SPI1 is directly connected to SPI3 in the MAIN Domain (default) or if MCU_SPI1 and SPI3 are independently pinned out. By default, the field SPI1_LINKDIS (Bit 0) is set to 0h. In order to disable the direct connection, the SPI1_LINKDIS (Bit 0) needs to be set to 1h. Model this functionality as a "reg-mux" device and based on the idle-state property, enable/disable the connection bewtween MCU_SPI1 and MAIN_SPI3. The register field description has been referred from J7200 TRM [1] (Table 5-517. CTRLMMR_MCU_SPI1_CTRL Register Field Descriptions). [1] https://www.ti.com/lit/pdf/spruiu1 Signed-off-by: Anurag Dutta <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Nishanth Menon <[email protected]>
1 parent b48888c commit 6b51892

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

arch/arm64/boot/dts/ti/k3-j7200-common-proc-board.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,10 @@
409409
<J7200_SERDES0_LANE2_QSGMII_LANE1>, <J7200_SERDES0_LANE3_IP4_UNUSED>;
410410
};
411411

412+
&mcu_spi1 {
413+
mux-controls = <&spi1_linkdis 0>;
414+
};
415+
412416
&usb_serdes_mux {
413417
idle-states = <1>; /* USB0 to SERDES lane 3 */
414418
bootph-all;

arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,13 @@
184184
reg = <0x4040 0x4>;
185185
#phy-cells = <1>;
186186
};
187+
188+
spi1_linkdis: mux-controller@4060 {
189+
compatible = "reg-mux";
190+
reg = <0x4060 0x4>;
191+
#mux-control-cells = <1>;
192+
mux-reg-masks = <0x0 0x1>;
193+
};
187194
};
188195

189196
wkup_conf: bus@43000000 {

0 commit comments

Comments
 (0)