xref: /openbmc/linux/arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi (revision c900529f3d9161bfde5cca0754f83b4d3c3e0220)
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
34*98f3b667SBhavya Kapoor	mux0: mux-controller {
35*98f3b667SBhavya Kapoor		compatible = "gpio-mux";
36*98f3b667SBhavya Kapoor		#mux-state-cells = <1>;
37*98f3b667SBhavya Kapoor		mux-gpios = <&exp_som 1 GPIO_ACTIVE_HIGH>;
38*98f3b667SBhavya Kapoor	};
39*98f3b667SBhavya Kapoor
40*98f3b667SBhavya Kapoor	mux1: mux-controller {
41*98f3b667SBhavya Kapoor		compatible = "gpio-mux";
42*98f3b667SBhavya Kapoor		#mux-state-cells = <1>;
43*98f3b667SBhavya Kapoor		mux-gpios = <&exp_som 2 GPIO_ACTIVE_HIGH>;
44*98f3b667SBhavya Kapoor	};
45*98f3b667SBhavya Kapoor
46d502f852SAswath Govindraju	transceiver0: can-phy0 {
47d502f852SAswath Govindraju		/* standby pin has been grounded by default */
48d502f852SAswath Govindraju		compatible = "ti,tcan1042";
49d502f852SAswath Govindraju		#phy-cells = <0>;
50d502f852SAswath Govindraju		max-bitrate = <5000000>;
51d502f852SAswath Govindraju	};
52d502f852SAswath Govindraju};
53d502f852SAswath Govindraju
54bbabba4eSAswath Govindraju&wkup_pmx0 {
55a4956811STony Lindgren	mcu_fss0_ospi0_pins_default: mcu-fss0-ospi0-default-pins {
56bbabba4eSAswath Govindraju		pinctrl-single,pins = <
57bbabba4eSAswath Govindraju			J721S2_WKUP_IOPAD(0x000, PIN_OUTPUT, 0) /* (D19) MCU_OSPI0_CLK */
58bbabba4eSAswath Govindraju			J721S2_WKUP_IOPAD(0x02c, PIN_OUTPUT, 0) /* (F15) MCU_OSPI0_CSn0 */
59bbabba4eSAswath Govindraju			J721S2_WKUP_IOPAD(0x00c, PIN_INPUT, 0) /* (C19) MCU_OSPI0_D0 */
60bbabba4eSAswath Govindraju			J721S2_WKUP_IOPAD(0x010, PIN_INPUT, 0) /* (F16) MCU_OSPI0_D1 */
61bbabba4eSAswath Govindraju			J721S2_WKUP_IOPAD(0x014, PIN_INPUT, 0) /* (G15) MCU_OSPI0_D2 */
62bbabba4eSAswath Govindraju			J721S2_WKUP_IOPAD(0x018, PIN_INPUT, 0) /* (F18) MCU_OSPI0_D3 */
63bbabba4eSAswath Govindraju			J721S2_WKUP_IOPAD(0x01c, PIN_INPUT, 0) /* (E19) MCU_OSPI0_D4 */
64bbabba4eSAswath Govindraju			J721S2_WKUP_IOPAD(0x020, PIN_INPUT, 0) /* (G19) MCU_OSPI0_D5 */
65bbabba4eSAswath Govindraju			J721S2_WKUP_IOPAD(0x024, PIN_INPUT, 0) /* (F19) MCU_OSPI0_D6 */
66bbabba4eSAswath Govindraju			J721S2_WKUP_IOPAD(0x028, PIN_INPUT, 0) /* (F20) MCU_OSPI0_D7 */
67bbabba4eSAswath Govindraju			J721S2_WKUP_IOPAD(0x008, PIN_INPUT, 0) /* (E18) MCU_OSPI0_DQS */
68bbabba4eSAswath Govindraju			J721S2_WKUP_IOPAD(0x004, PIN_INPUT, 0) /* (E20) MCU_OSPI0_LBCLKO */
69bbabba4eSAswath Govindraju		>;
70bbabba4eSAswath Govindraju	};
71bbabba4eSAswath Govindraju};
72bbabba4eSAswath Govindraju
739d0350e8SNishanth Menon&wkup_pmx2 {
74a4956811STony Lindgren	wkup_i2c0_pins_default: wkup-i2c0-default-pins {
759d0350e8SNishanth Menon		pinctrl-single,pins = <
769d0350e8SNishanth Menon			J721S2_WKUP_IOPAD(0x98, PIN_INPUT, 0) /* (H24) WKUP_I2C0_SCL */
779d0350e8SNishanth Menon			J721S2_WKUP_IOPAD(0x9c, PIN_INPUT, 0) /* (H27) WKUP_I2C0_SDA */
789d0350e8SNishanth Menon		>;
799d0350e8SNishanth Menon	};
809d0350e8SNishanth Menon};
819d0350e8SNishanth Menon
82d502f852SAswath Govindraju&main_pmx0 {
83a4956811STony Lindgren	main_i2c0_pins_default: main-i2c0-default-pins {
84d502f852SAswath Govindraju		pinctrl-single,pins = <
85d502f852SAswath Govindraju			J721S2_IOPAD(0x0e0, PIN_INPUT_PULLUP, 0) /* (AH25) I2C0_SCL */
86d502f852SAswath Govindraju			J721S2_IOPAD(0x0e4, PIN_INPUT_PULLUP, 0) /* (AE24) I2C0_SDA */
87d502f852SAswath Govindraju		>;
88d502f852SAswath Govindraju	};
89d502f852SAswath Govindraju
90a4956811STony Lindgren	main_mcan16_pins_default: main-mcan16-default-pins {
91d502f852SAswath Govindraju		pinctrl-single,pins = <
92d502f852SAswath Govindraju			J721S2_IOPAD(0x028, PIN_INPUT, 0) /* (AB24) MCAN16_RX */
93d502f852SAswath Govindraju			J721S2_IOPAD(0x024, PIN_OUTPUT, 0) /* (Y28) MCAN16_TX */
94d502f852SAswath Govindraju		>;
95d502f852SAswath Govindraju	};
96d502f852SAswath Govindraju};
97d502f852SAswath Govindraju
989d0350e8SNishanth Menon&wkup_i2c0 {
999d0350e8SNishanth Menon	status = "okay";
1009d0350e8SNishanth Menon	pinctrl-names = "default";
1019d0350e8SNishanth Menon	pinctrl-0 = <&wkup_i2c0_pins_default>;
1029d0350e8SNishanth Menon	clock-frequency = <400000>;
1039d0350e8SNishanth Menon
1049d0350e8SNishanth Menon	eeprom@50 {
1059d0350e8SNishanth Menon		/* CAV24C256WE-GT3 */
1069d0350e8SNishanth Menon		compatible = "atmel,24c256";
1079d0350e8SNishanth Menon		reg = <0x50>;
1089d0350e8SNishanth Menon	};
1099d0350e8SNishanth Menon};
1109d0350e8SNishanth Menon
111d502f852SAswath Govindraju&main_i2c0 {
1120aef5131SAndrew Davis	status = "okay";
113d502f852SAswath Govindraju	pinctrl-names = "default";
114d502f852SAswath Govindraju	pinctrl-0 = <&main_i2c0_pins_default>;
115d502f852SAswath Govindraju	clock-frequency = <400000>;
116d502f852SAswath Govindraju
117d502f852SAswath Govindraju	exp_som: gpio@21 {
118d502f852SAswath Govindraju		compatible = "ti,tca6408";
119d502f852SAswath Govindraju		reg = <0x21>;
120d502f852SAswath Govindraju		gpio-controller;
121d502f852SAswath Govindraju		#gpio-cells = <2>;
122d502f852SAswath Govindraju		gpio-line-names = "USB2.0_MUX_SEL", "CANUART_MUX1_SEL0",
123d502f852SAswath Govindraju				  "CANUART_MUX2_SEL0", "CANUART_MUX_SEL1",
124d502f852SAswath Govindraju				  "GPIO_RGMII1_RST", "GPIO_eDP_ENABLE",
125d502f852SAswath Govindraju				   "GPIO_LIN_EN", "CAN_STB";
126d502f852SAswath Govindraju	};
127d502f852SAswath Govindraju};
128d502f852SAswath Govindraju
129d502f852SAswath Govindraju&main_mcan16 {
13006639b8aSAndrew Davis	status = "okay";
131d502f852SAswath Govindraju	pinctrl-0 = <&main_mcan16_pins_default>;
132d502f852SAswath Govindraju	pinctrl-names = "default";
133d502f852SAswath Govindraju	phys = <&transceiver0>;
134d502f852SAswath Govindraju};
135bbabba4eSAswath Govindraju
136bbabba4eSAswath Govindraju&ospi0 {
137bbabba4eSAswath Govindraju	status = "okay";
138bbabba4eSAswath Govindraju	pinctrl-names = "default";
139bbabba4eSAswath Govindraju	pinctrl-0 = <&mcu_fss0_ospi0_pins_default>;
140bbabba4eSAswath Govindraju
141bbabba4eSAswath Govindraju	flash@0 {
142bbabba4eSAswath Govindraju		compatible = "jedec,spi-nor";
143bbabba4eSAswath Govindraju		reg = <0x0>;
144bbabba4eSAswath Govindraju		spi-tx-bus-width = <8>;
145bbabba4eSAswath Govindraju		spi-rx-bus-width = <8>;
146bbabba4eSAswath Govindraju		spi-max-frequency = <25000000>;
147bbabba4eSAswath Govindraju		cdns,tshsl-ns = <60>;
148bbabba4eSAswath Govindraju		cdns,tsd2d-ns = <60>;
149bbabba4eSAswath Govindraju		cdns,tchsh-ns = <60>;
150bbabba4eSAswath Govindraju		cdns,tslch-ns = <60>;
151bbabba4eSAswath Govindraju		cdns,read-delay = <4>;
152bbabba4eSAswath Govindraju	};
153bbabba4eSAswath Govindraju};
154