xref: /openbmc/linux/arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi (revision bbabba4ece74c51b98e7c8dbd8fa4725d0ae9baf)
1d502f852SAswath Govindraju// SPDX-License-Identifier: GPL-2.0
2d502f852SAswath Govindraju/*
3d502f852SAswath Govindraju * SoM: https://www.ti.com/lit/zip/sprr439
4d502f852SAswath Govindraju *
5d502f852SAswath Govindraju * Copyright (C) 2021 Texas Instruments Incorporated - https://www.ti.com/
6d502f852SAswath Govindraju */
7d502f852SAswath Govindraju
8d502f852SAswath Govindraju/dts-v1/;
9d502f852SAswath Govindraju
10d502f852SAswath Govindraju#include "k3-j721s2.dtsi"
11d502f852SAswath Govindraju#include <dt-bindings/gpio/gpio.h>
12d502f852SAswath Govindraju
13d502f852SAswath Govindraju/ {
14d502f852SAswath Govindraju	memory@80000000 {
15d502f852SAswath Govindraju		device_type = "memory";
16d502f852SAswath Govindraju		/* 16 GB RAM */
17d502f852SAswath Govindraju		reg = <0x00 0x80000000 0x00 0x80000000>,
18d502f852SAswath Govindraju		      <0x08 0x80000000 0x03 0x80000000>;
19d502f852SAswath Govindraju	};
20d502f852SAswath Govindraju
21d502f852SAswath Govindraju	/* Reserving memory regions still pending */
22d502f852SAswath Govindraju	reserved_memory: reserved-memory {
23d502f852SAswath Govindraju		#address-cells = <2>;
24d502f852SAswath Govindraju		#size-cells = <2>;
25d502f852SAswath Govindraju		ranges;
26d502f852SAswath Govindraju
27d502f852SAswath Govindraju		secure_ddr: optee@9e800000 {
28d502f852SAswath Govindraju			reg = <0x00 0x9e800000 0x00 0x01800000>;
29d502f852SAswath Govindraju			alignment = <0x1000>;
30d502f852SAswath Govindraju			no-map;
31d502f852SAswath Govindraju		};
32d502f852SAswath Govindraju	};
33d502f852SAswath Govindraju
34d502f852SAswath Govindraju	transceiver0: can-phy0 {
35d502f852SAswath Govindraju		/* standby pin has been grounded by default */
36d502f852SAswath Govindraju		compatible = "ti,tcan1042";
37d502f852SAswath Govindraju		#phy-cells = <0>;
38d502f852SAswath Govindraju		max-bitrate = <5000000>;
39d502f852SAswath Govindraju	};
40d502f852SAswath Govindraju};
41d502f852SAswath Govindraju
42*bbabba4eSAswath Govindraju&wkup_pmx0 {
43*bbabba4eSAswath Govindraju	mcu_fss0_ospi0_pins_default: mcu-fss0-ospi0-pins-default {
44*bbabba4eSAswath Govindraju		pinctrl-single,pins = <
45*bbabba4eSAswath Govindraju			J721S2_WKUP_IOPAD(0x000, PIN_OUTPUT, 0) /* (D19) MCU_OSPI0_CLK */
46*bbabba4eSAswath Govindraju			J721S2_WKUP_IOPAD(0x02c, PIN_OUTPUT, 0) /* (F15) MCU_OSPI0_CSn0 */
47*bbabba4eSAswath Govindraju			J721S2_WKUP_IOPAD(0x030, PIN_OUTPUT, 0) /* (G17) MCU_OSPI0_CSn1 */
48*bbabba4eSAswath Govindraju			J721S2_WKUP_IOPAD(0x038, PIN_OUTPUT, 0) /* (F14) MCU_OSPI0_CSn2 */
49*bbabba4eSAswath Govindraju			J721S2_WKUP_IOPAD(0x03c, PIN_OUTPUT, 0) /* (F17) MCU_OSPI0_CSn3 */
50*bbabba4eSAswath Govindraju			J721S2_WKUP_IOPAD(0x00c, PIN_INPUT, 0) /* (C19) MCU_OSPI0_D0 */
51*bbabba4eSAswath Govindraju			J721S2_WKUP_IOPAD(0x010, PIN_INPUT, 0) /* (F16) MCU_OSPI0_D1 */
52*bbabba4eSAswath Govindraju			J721S2_WKUP_IOPAD(0x014, PIN_INPUT, 0) /* (G15) MCU_OSPI0_D2 */
53*bbabba4eSAswath Govindraju			J721S2_WKUP_IOPAD(0x018, PIN_INPUT, 0) /* (F18) MCU_OSPI0_D3 */
54*bbabba4eSAswath Govindraju			J721S2_WKUP_IOPAD(0x01c, PIN_INPUT, 0) /* (E19) MCU_OSPI0_D4 */
55*bbabba4eSAswath Govindraju			J721S2_WKUP_IOPAD(0x020, PIN_INPUT, 0) /* (G19) MCU_OSPI0_D5 */
56*bbabba4eSAswath Govindraju			J721S2_WKUP_IOPAD(0x024, PIN_INPUT, 0) /* (F19) MCU_OSPI0_D6 */
57*bbabba4eSAswath Govindraju			J721S2_WKUP_IOPAD(0x028, PIN_INPUT, 0) /* (F20) MCU_OSPI0_D7 */
58*bbabba4eSAswath Govindraju			J721S2_WKUP_IOPAD(0x008, PIN_INPUT, 0) /* (E18) MCU_OSPI0_DQS */
59*bbabba4eSAswath Govindraju			J721S2_WKUP_IOPAD(0x004, PIN_INPUT, 0) /* (E20) MCU_OSPI0_LBCLKO */
60*bbabba4eSAswath Govindraju		>;
61*bbabba4eSAswath Govindraju	};
62*bbabba4eSAswath Govindraju};
63*bbabba4eSAswath Govindraju
64d502f852SAswath Govindraju&main_pmx0 {
65d502f852SAswath Govindraju	main_i2c0_pins_default: main-i2c0-pins-default {
66d502f852SAswath Govindraju		pinctrl-single,pins = <
67d502f852SAswath Govindraju			J721S2_IOPAD(0x0e0, PIN_INPUT_PULLUP, 0) /* (AH25) I2C0_SCL */
68d502f852SAswath Govindraju			J721S2_IOPAD(0x0e4, PIN_INPUT_PULLUP, 0) /* (AE24) I2C0_SDA */
69d502f852SAswath Govindraju		>;
70d502f852SAswath Govindraju	};
71d502f852SAswath Govindraju
72d502f852SAswath Govindraju	main_mcan16_pins_default: main-mcan16-pins-default {
73d502f852SAswath Govindraju		pinctrl-single,pins = <
74d502f852SAswath Govindraju			J721S2_IOPAD(0x028, PIN_INPUT, 0) /* (AB24) MCAN16_RX */
75d502f852SAswath Govindraju			J721S2_IOPAD(0x024, PIN_OUTPUT, 0) /* (Y28) MCAN16_TX */
76d502f852SAswath Govindraju		>;
77d502f852SAswath Govindraju	};
78d502f852SAswath Govindraju};
79d502f852SAswath Govindraju
80d502f852SAswath Govindraju&main_i2c0 {
810aef5131SAndrew Davis	status = "okay";
82d502f852SAswath Govindraju	pinctrl-names = "default";
83d502f852SAswath Govindraju	pinctrl-0 = <&main_i2c0_pins_default>;
84d502f852SAswath Govindraju	clock-frequency = <400000>;
85d502f852SAswath Govindraju
86d502f852SAswath Govindraju	exp_som: gpio@21 {
87d502f852SAswath Govindraju		compatible = "ti,tca6408";
88d502f852SAswath Govindraju		reg = <0x21>;
89d502f852SAswath Govindraju		gpio-controller;
90d502f852SAswath Govindraju		#gpio-cells = <2>;
91d502f852SAswath Govindraju		gpio-line-names = "USB2.0_MUX_SEL", "CANUART_MUX1_SEL0",
92d502f852SAswath Govindraju				  "CANUART_MUX2_SEL0", "CANUART_MUX_SEL1",
93d502f852SAswath Govindraju				  "GPIO_RGMII1_RST", "GPIO_eDP_ENABLE",
94d502f852SAswath Govindraju				   "GPIO_LIN_EN", "CAN_STB";
95d502f852SAswath Govindraju	};
96d502f852SAswath Govindraju};
97d502f852SAswath Govindraju
98d502f852SAswath Govindraju&main_mcan16 {
9906639b8aSAndrew Davis	status = "okay";
100d502f852SAswath Govindraju	pinctrl-0 = <&main_mcan16_pins_default>;
101d502f852SAswath Govindraju	pinctrl-names = "default";
102d502f852SAswath Govindraju	phys = <&transceiver0>;
103d502f852SAswath Govindraju};
104*bbabba4eSAswath Govindraju
105*bbabba4eSAswath Govindraju&ospi0 {
106*bbabba4eSAswath Govindraju	status = "okay";
107*bbabba4eSAswath Govindraju	pinctrl-names = "default";
108*bbabba4eSAswath Govindraju	pinctrl-0 = <&mcu_fss0_ospi0_pins_default>;
109*bbabba4eSAswath Govindraju
110*bbabba4eSAswath Govindraju	flash@0 {
111*bbabba4eSAswath Govindraju		compatible = "jedec,spi-nor";
112*bbabba4eSAswath Govindraju		reg = <0x0>;
113*bbabba4eSAswath Govindraju		spi-tx-bus-width = <8>;
114*bbabba4eSAswath Govindraju		spi-rx-bus-width = <8>;
115*bbabba4eSAswath Govindraju		spi-max-frequency = <25000000>;
116*bbabba4eSAswath Govindraju		cdns,tshsl-ns = <60>;
117*bbabba4eSAswath Govindraju		cdns,tsd2d-ns = <60>;
118*bbabba4eSAswath Govindraju		cdns,tchsh-ns = <60>;
119*bbabba4eSAswath Govindraju		cdns,tslch-ns = <60>;
120*bbabba4eSAswath Govindraju		cdns,read-delay = <4>;
121*bbabba4eSAswath Govindraju	};
122*bbabba4eSAswath Govindraju};
123