1// SPDX-License-Identifier: GPL-2.0
2/*
3 * SoM: https://www.ti.com/lit/zip/sprr439
4 *
5 * Copyright (C) 2021 Texas Instruments Incorporated - https://www.ti.com/
6 */
7
8/dts-v1/;
9
10#include "k3-j721s2.dtsi"
11#include <dt-bindings/gpio/gpio.h>
12
13/ {
14	memory@80000000 {
15		device_type = "memory";
16		/* 16 GB RAM */
17		reg = <0x00 0x80000000 0x00 0x80000000>,
18		      <0x08 0x80000000 0x03 0x80000000>;
19	};
20
21	/* Reserving memory regions still pending */
22	reserved_memory: reserved-memory {
23		#address-cells = <2>;
24		#size-cells = <2>;
25		ranges;
26
27		secure_ddr: optee@9e800000 {
28			reg = <0x00 0x9e800000 0x00 0x01800000>;
29			alignment = <0x1000>;
30			no-map;
31		};
32	};
33
34	transceiver0: can-phy0 {
35		/* standby pin has been grounded by default */
36		compatible = "ti,tcan1042";
37		#phy-cells = <0>;
38		max-bitrate = <5000000>;
39	};
40};
41
42&main_pmx0 {
43	main_i2c0_pins_default: main-i2c0-pins-default {
44		pinctrl-single,pins = <
45			J721S2_IOPAD(0x0e0, PIN_INPUT_PULLUP, 0) /* (AH25) I2C0_SCL */
46			J721S2_IOPAD(0x0e4, PIN_INPUT_PULLUP, 0) /* (AE24) I2C0_SDA */
47		>;
48	};
49
50	main_mcan16_pins_default: main-mcan16-pins-default {
51		pinctrl-single,pins = <
52			J721S2_IOPAD(0x028, PIN_INPUT, 0) /* (AB24) MCAN16_RX */
53			J721S2_IOPAD(0x024, PIN_OUTPUT, 0) /* (Y28) MCAN16_TX */
54		>;
55	};
56};
57
58&main_i2c0 {
59	status = "okay";
60	pinctrl-names = "default";
61	pinctrl-0 = <&main_i2c0_pins_default>;
62	clock-frequency = <400000>;
63
64	exp_som: gpio@21 {
65		compatible = "ti,tca6408";
66		reg = <0x21>;
67		gpio-controller;
68		#gpio-cells = <2>;
69		gpio-line-names = "USB2.0_MUX_SEL", "CANUART_MUX1_SEL0",
70				  "CANUART_MUX2_SEL0", "CANUART_MUX_SEL1",
71				  "GPIO_RGMII1_RST", "GPIO_eDP_ENABLE",
72				   "GPIO_LIN_EN", "CAN_STB";
73	};
74};
75
76&main_mcan16 {
77	status = "okay";
78	pinctrl-0 = <&main_mcan16_pins_default>;
79	pinctrl-names = "default";
80	phys = <&transceiver0>;
81};
82