162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (C) 2014 Texas Instruments Incorporated - https://www.ti.com/
462306a36Sopenharmony_ci */
562306a36Sopenharmony_ci
662306a36Sopenharmony_ci/dts-v1/;
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci#include "am4372.dtsi"
962306a36Sopenharmony_ci#include <dt-bindings/pinctrl/am43xx.h>
1062306a36Sopenharmony_ci#include <dt-bindings/pwm/pwm.h>
1162306a36Sopenharmony_ci#include <dt-bindings/gpio/gpio.h>
1262306a36Sopenharmony_ci#include <dt-bindings/input/input.h>
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ci/ {
1562306a36Sopenharmony_ci	model = "TI AM437x Industrial Development Kit";
1662306a36Sopenharmony_ci	compatible = "ti,am437x-idk-evm","ti,am4372","ti,am43";
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_ci	chosen {
1962306a36Sopenharmony_ci		stdout-path = &uart0;
2062306a36Sopenharmony_ci	};
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_ci	v24_0d: fixed-regulator-v24_0d {
2362306a36Sopenharmony_ci		compatible = "regulator-fixed";
2462306a36Sopenharmony_ci		regulator-name = "V24_0D";
2562306a36Sopenharmony_ci		regulator-min-microvolt = <24000000>;
2662306a36Sopenharmony_ci		regulator-max-microvolt = <24000000>;
2762306a36Sopenharmony_ci		regulator-always-on;
2862306a36Sopenharmony_ci		regulator-boot-on;
2962306a36Sopenharmony_ci	};
3062306a36Sopenharmony_ci
3162306a36Sopenharmony_ci	v3_3d: fixed-regulator-v3_3d {
3262306a36Sopenharmony_ci		compatible = "regulator-fixed";
3362306a36Sopenharmony_ci		regulator-name = "V3_3D";
3462306a36Sopenharmony_ci		regulator-min-microvolt = <3300000>;
3562306a36Sopenharmony_ci		regulator-max-microvolt = <3300000>;
3662306a36Sopenharmony_ci		regulator-always-on;
3762306a36Sopenharmony_ci		regulator-boot-on;
3862306a36Sopenharmony_ci		vin-supply = <&v24_0d>;
3962306a36Sopenharmony_ci	};
4062306a36Sopenharmony_ci
4162306a36Sopenharmony_ci	vdd_corereg: fixed-regulator-vdd_corereg {
4262306a36Sopenharmony_ci		compatible = "regulator-fixed";
4362306a36Sopenharmony_ci		regulator-name = "VDD_COREREG";
4462306a36Sopenharmony_ci		regulator-min-microvolt = <1100000>;
4562306a36Sopenharmony_ci		regulator-max-microvolt = <1100000>;
4662306a36Sopenharmony_ci		regulator-always-on;
4762306a36Sopenharmony_ci		regulator-boot-on;
4862306a36Sopenharmony_ci		vin-supply = <&v24_0d>;
4962306a36Sopenharmony_ci	};
5062306a36Sopenharmony_ci
5162306a36Sopenharmony_ci	vdd_core: fixed-regulator-vdd_core {
5262306a36Sopenharmony_ci		compatible = "regulator-fixed";
5362306a36Sopenharmony_ci		regulator-name = "VDD_CORE";
5462306a36Sopenharmony_ci		regulator-min-microvolt = <1100000>;
5562306a36Sopenharmony_ci		regulator-max-microvolt = <1100000>;
5662306a36Sopenharmony_ci		regulator-always-on;
5762306a36Sopenharmony_ci		regulator-boot-on;
5862306a36Sopenharmony_ci		vin-supply = <&vdd_corereg>;
5962306a36Sopenharmony_ci	};
6062306a36Sopenharmony_ci
6162306a36Sopenharmony_ci	v1_8dreg: fixed-regulator-v1_8dreg {
6262306a36Sopenharmony_ci		compatible = "regulator-fixed";
6362306a36Sopenharmony_ci		regulator-name = "V1_8DREG";
6462306a36Sopenharmony_ci		regulator-min-microvolt = <1800000>;
6562306a36Sopenharmony_ci		regulator-max-microvolt = <1800000>;
6662306a36Sopenharmony_ci		regulator-always-on;
6762306a36Sopenharmony_ci		regulator-boot-on;
6862306a36Sopenharmony_ci		vin-supply = <&v24_0d>;
6962306a36Sopenharmony_ci	};
7062306a36Sopenharmony_ci
7162306a36Sopenharmony_ci	v1_8d: fixed-regulator-v1_8d {
7262306a36Sopenharmony_ci		compatible = "regulator-fixed";
7362306a36Sopenharmony_ci		regulator-name = "V1_8D";
7462306a36Sopenharmony_ci		regulator-min-microvolt = <1800000>;
7562306a36Sopenharmony_ci		regulator-max-microvolt = <1800000>;
7662306a36Sopenharmony_ci		regulator-always-on;
7762306a36Sopenharmony_ci		regulator-boot-on;
7862306a36Sopenharmony_ci		vin-supply = <&v1_8dreg>;
7962306a36Sopenharmony_ci	};
8062306a36Sopenharmony_ci
8162306a36Sopenharmony_ci	v1_5dreg: fixed-regulator-v1_5dreg {
8262306a36Sopenharmony_ci		compatible = "regulator-fixed";
8362306a36Sopenharmony_ci		regulator-name = "V1_5DREG";
8462306a36Sopenharmony_ci		regulator-min-microvolt = <1500000>;
8562306a36Sopenharmony_ci		regulator-max-microvolt = <1500000>;
8662306a36Sopenharmony_ci		regulator-always-on;
8762306a36Sopenharmony_ci		regulator-boot-on;
8862306a36Sopenharmony_ci		vin-supply = <&v24_0d>;
8962306a36Sopenharmony_ci	};
9062306a36Sopenharmony_ci
9162306a36Sopenharmony_ci	v1_5d: fixed-regulator-v1_5d {
9262306a36Sopenharmony_ci		compatible = "regulator-fixed";
9362306a36Sopenharmony_ci		regulator-name = "V1_5D";
9462306a36Sopenharmony_ci		regulator-min-microvolt = <1500000>;
9562306a36Sopenharmony_ci		regulator-max-microvolt = <1500000>;
9662306a36Sopenharmony_ci		regulator-always-on;
9762306a36Sopenharmony_ci		regulator-boot-on;
9862306a36Sopenharmony_ci		vin-supply = <&v1_5dreg>;
9962306a36Sopenharmony_ci	};
10062306a36Sopenharmony_ci
10162306a36Sopenharmony_ci	gpio_keys: gpio-keys {
10262306a36Sopenharmony_ci		compatible = "gpio-keys";
10362306a36Sopenharmony_ci		pinctrl-names = "default";
10462306a36Sopenharmony_ci		pinctrl-0 = <&gpio_keys_pins_default>;
10562306a36Sopenharmony_ci
10662306a36Sopenharmony_ci		switch-0 {
10762306a36Sopenharmony_ci			label = "power-button";
10862306a36Sopenharmony_ci			linux,code = <KEY_POWER>;
10962306a36Sopenharmony_ci			gpios = <&gpio4 2 GPIO_ACTIVE_LOW>;
11062306a36Sopenharmony_ci		};
11162306a36Sopenharmony_ci	};
11262306a36Sopenharmony_ci
11362306a36Sopenharmony_ci	/* fixed 32k external oscillator clock */
11462306a36Sopenharmony_ci	clk_32k_rtc: clk_32k_rtc {
11562306a36Sopenharmony_ci		#clock-cells = <0>;
11662306a36Sopenharmony_ci		compatible = "fixed-clock";
11762306a36Sopenharmony_ci		clock-frequency = <32768>;
11862306a36Sopenharmony_ci	};
11962306a36Sopenharmony_ci
12062306a36Sopenharmony_ci	leds-iio {
12162306a36Sopenharmony_ci		status = "disabled";
12262306a36Sopenharmony_ci		compatible = "gpio-leds";
12362306a36Sopenharmony_ci		led-out0 {
12462306a36Sopenharmony_ci			label = "out0";
12562306a36Sopenharmony_ci			gpios = <&tpic2810 0 GPIO_ACTIVE_HIGH>;
12662306a36Sopenharmony_ci			default-state = "off";
12762306a36Sopenharmony_ci		};
12862306a36Sopenharmony_ci
12962306a36Sopenharmony_ci		led-out1 {
13062306a36Sopenharmony_ci			label = "out1";
13162306a36Sopenharmony_ci			gpios = <&tpic2810 1 GPIO_ACTIVE_HIGH>;
13262306a36Sopenharmony_ci			default-state = "off";
13362306a36Sopenharmony_ci		};
13462306a36Sopenharmony_ci
13562306a36Sopenharmony_ci		led-out2 {
13662306a36Sopenharmony_ci			label = "out2";
13762306a36Sopenharmony_ci			gpios = <&tpic2810 2 GPIO_ACTIVE_HIGH>;
13862306a36Sopenharmony_ci			default-state = "off";
13962306a36Sopenharmony_ci		};
14062306a36Sopenharmony_ci
14162306a36Sopenharmony_ci		led-out3 {
14262306a36Sopenharmony_ci			label = "out3";
14362306a36Sopenharmony_ci			gpios = <&tpic2810 3 GPIO_ACTIVE_HIGH>;
14462306a36Sopenharmony_ci			default-state = "off";
14562306a36Sopenharmony_ci		};
14662306a36Sopenharmony_ci
14762306a36Sopenharmony_ci		led-out4 {
14862306a36Sopenharmony_ci			label = "out4";
14962306a36Sopenharmony_ci			gpios = <&tpic2810 4 GPIO_ACTIVE_HIGH>;
15062306a36Sopenharmony_ci			default-state = "off";
15162306a36Sopenharmony_ci		};
15262306a36Sopenharmony_ci
15362306a36Sopenharmony_ci		led-out5 {
15462306a36Sopenharmony_ci			label = "out5";
15562306a36Sopenharmony_ci			gpios = <&tpic2810 5 GPIO_ACTIVE_HIGH>;
15662306a36Sopenharmony_ci			default-state = "off";
15762306a36Sopenharmony_ci		};
15862306a36Sopenharmony_ci
15962306a36Sopenharmony_ci		led-out6 {
16062306a36Sopenharmony_ci			label = "out6";
16162306a36Sopenharmony_ci			gpios = <&tpic2810 6 GPIO_ACTIVE_HIGH>;
16262306a36Sopenharmony_ci			default-state = "off";
16362306a36Sopenharmony_ci		};
16462306a36Sopenharmony_ci
16562306a36Sopenharmony_ci		led-out7 {
16662306a36Sopenharmony_ci			label = "out7";
16762306a36Sopenharmony_ci			gpios = <&tpic2810 7 GPIO_ACTIVE_HIGH>;
16862306a36Sopenharmony_ci			default-state = "off";
16962306a36Sopenharmony_ci		};
17062306a36Sopenharmony_ci	};
17162306a36Sopenharmony_ci};
17262306a36Sopenharmony_ci
17362306a36Sopenharmony_ci&am43xx_pinmux {
17462306a36Sopenharmony_ci	gpio_keys_pins_default: gpio-keys-default-pins {
17562306a36Sopenharmony_ci		pinctrl-single,pins = <
17662306a36Sopenharmony_ci			AM4372_IOPAD(0x9b8, PIN_INPUT | MUX_MODE7)	/* cam0_field.gpio4_2 */
17762306a36Sopenharmony_ci		>;
17862306a36Sopenharmony_ci	};
17962306a36Sopenharmony_ci
18062306a36Sopenharmony_ci	i2c0_pins_default: i2c0-default-pins {
18162306a36Sopenharmony_ci		pinctrl-single,pins = <
18262306a36Sopenharmony_ci			AM4372_IOPAD(0x988, PIN_INPUT | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_sda.i2c0_sda */
18362306a36Sopenharmony_ci			AM4372_IOPAD(0x98c, PIN_INPUT | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_scl.i2c0_scl */
18462306a36Sopenharmony_ci		>;
18562306a36Sopenharmony_ci	};
18662306a36Sopenharmony_ci
18762306a36Sopenharmony_ci	i2c0_pins_sleep: i2c0-sleep-pins {
18862306a36Sopenharmony_ci		pinctrl-single,pins = <
18962306a36Sopenharmony_ci			AM4372_IOPAD(0x988, PIN_INPUT_PULLDOWN | MUX_MODE7)
19062306a36Sopenharmony_ci			AM4372_IOPAD(0x98c, PIN_INPUT_PULLDOWN | MUX_MODE7)
19162306a36Sopenharmony_ci		>;
19262306a36Sopenharmony_ci	};
19362306a36Sopenharmony_ci
19462306a36Sopenharmony_ci	i2c2_pins_default: i2c2-default-pins {
19562306a36Sopenharmony_ci		pinctrl-single,pins = <
19662306a36Sopenharmony_ci			AM4372_IOPAD(0x9e8, PIN_INPUT | SLEWCTRL_FAST | MUX_MODE3) /* cam1_data1.i2c2_scl */
19762306a36Sopenharmony_ci			AM4372_IOPAD(0x9ec, PIN_INPUT | SLEWCTRL_FAST | MUX_MODE3) /* cam1_data0.i2c2_sda */
19862306a36Sopenharmony_ci		>;
19962306a36Sopenharmony_ci	};
20062306a36Sopenharmony_ci
20162306a36Sopenharmony_ci	i2c2_pins_sleep: i2c2-sleep-pins {
20262306a36Sopenharmony_ci		pinctrl-single,pins = <
20362306a36Sopenharmony_ci			AM4372_IOPAD(0x9e8, PIN_INPUT_PULLDOWN | MUX_MODE7)
20462306a36Sopenharmony_ci			AM4372_IOPAD(0x9ec, PIN_INPUT_PULLDOWN | MUX_MODE7)
20562306a36Sopenharmony_ci		>;
20662306a36Sopenharmony_ci	};
20762306a36Sopenharmony_ci
20862306a36Sopenharmony_ci	mmc1_pins_default: mmc1-default-pins {
20962306a36Sopenharmony_ci		pinctrl-single,pins = <
21062306a36Sopenharmony_ci			AM4372_IOPAD(0x900, PIN_INPUT | MUX_MODE0) /* mmc0_clk.mmc0_clk */
21162306a36Sopenharmony_ci			AM4372_IOPAD(0x904, PIN_INPUT | MUX_MODE0) /* mmc0_cmd.mmc0_cmd */
21262306a36Sopenharmony_ci			AM4372_IOPAD(0x9f0, PIN_INPUT | MUX_MODE0) /* mmc0_dat3.mmc0_dat3 */
21362306a36Sopenharmony_ci			AM4372_IOPAD(0x9f4, PIN_INPUT | MUX_MODE0) /* mmc0_dat2.mmc0_dat2 */
21462306a36Sopenharmony_ci			AM4372_IOPAD(0x9f8, PIN_INPUT | MUX_MODE0) /* mmc0_dat1.mmc0_dat1 */
21562306a36Sopenharmony_ci			AM4372_IOPAD(0x9fc, PIN_INPUT | MUX_MODE0) /* mmc0_dat0.mmc0_dat0 */
21662306a36Sopenharmony_ci			AM4372_IOPAD(0x960, PIN_INPUT | MUX_MODE7) /* spi0_cs1.gpio0_6 */
21762306a36Sopenharmony_ci		>;
21862306a36Sopenharmony_ci	};
21962306a36Sopenharmony_ci
22062306a36Sopenharmony_ci	mmc1_pins_sleep: mmc1-sleep-pins {
22162306a36Sopenharmony_ci		pinctrl-single,pins = <
22262306a36Sopenharmony_ci			AM4372_IOPAD(0x900, PIN_INPUT_PULLDOWN | MUX_MODE7)
22362306a36Sopenharmony_ci			AM4372_IOPAD(0x904, PIN_INPUT_PULLDOWN | MUX_MODE7)
22462306a36Sopenharmony_ci			AM4372_IOPAD(0x9f0, PIN_INPUT_PULLDOWN | MUX_MODE7)
22562306a36Sopenharmony_ci			AM4372_IOPAD(0x9f4, PIN_INPUT_PULLDOWN | MUX_MODE7)
22662306a36Sopenharmony_ci			AM4372_IOPAD(0x9f8, PIN_INPUT_PULLDOWN | MUX_MODE7)
22762306a36Sopenharmony_ci			AM4372_IOPAD(0x9fc, PIN_INPUT_PULLDOWN | MUX_MODE7)
22862306a36Sopenharmony_ci			AM4372_IOPAD(0x960, PIN_INPUT_PULLDOWN | MUX_MODE7)
22962306a36Sopenharmony_ci		>;
23062306a36Sopenharmony_ci	};
23162306a36Sopenharmony_ci
23262306a36Sopenharmony_ci	spi1_pins_default: spi1-default-pins {
23362306a36Sopenharmony_ci		pinctrl-single,pins = <
23462306a36Sopenharmony_ci			AM4372_IOPAD(0x908, PIN_INPUT | MUX_MODE2)	/* mii1_col.spi1_sclk */
23562306a36Sopenharmony_ci			AM4372_IOPAD(0x910, PIN_INPUT | MUX_MODE2)	/* mii1_rx_er.spi1_d1 */
23662306a36Sopenharmony_ci			AM4372_IOPAD(0x944, PIN_OUTPUT | MUX_MODE2)	/* rmii1_ref_clk.spi1_cs0 */
23762306a36Sopenharmony_ci			AM4372_IOPAD(0x90c, PIN_OUTPUT | MUX_MODE7)	/* mii1_crs.gpio3_1 */
23862306a36Sopenharmony_ci		>;
23962306a36Sopenharmony_ci	};
24062306a36Sopenharmony_ci
24162306a36Sopenharmony_ci	spi1_pins_sleep: spi1-sleep-pins {
24262306a36Sopenharmony_ci		pinctrl-single,pins = <
24362306a36Sopenharmony_ci			AM4372_IOPAD(0x908, PIN_INPUT_PULLDOWN | MUX_MODE7)
24462306a36Sopenharmony_ci			AM4372_IOPAD(0x910, PIN_INPUT_PULLDOWN | MUX_MODE7)
24562306a36Sopenharmony_ci			AM4372_IOPAD(0x944, PIN_INPUT_PULLDOWN | MUX_MODE7)
24662306a36Sopenharmony_ci			AM4372_IOPAD(0x90c, PIN_INPUT_PULLDOWN | MUX_MODE7)
24762306a36Sopenharmony_ci		>;
24862306a36Sopenharmony_ci	};
24962306a36Sopenharmony_ci
25062306a36Sopenharmony_ci	ecap0_pins_default: backlight-default-pins {
25162306a36Sopenharmony_ci		pinctrl-single,pins = <
25262306a36Sopenharmony_ci			AM4372_IOPAD(0x964, PIN_OUTPUT | MUX_MODE0) /* ecap0_in_pwm0_out.ecap0_in_pwm0_out */
25362306a36Sopenharmony_ci		>;
25462306a36Sopenharmony_ci	};
25562306a36Sopenharmony_ci
25662306a36Sopenharmony_ci	cpsw_default: cpsw-default-pins {
25762306a36Sopenharmony_ci		pinctrl-single,pins = <
25862306a36Sopenharmony_ci			AM4372_IOPAD(0x92c, PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txclk.rgmii1_tclk */
25962306a36Sopenharmony_ci			AM4372_IOPAD(0x914, PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txen.rgmii1_tctl */
26062306a36Sopenharmony_ci			AM4372_IOPAD(0x928, PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txd0.rgmii1_td0 */
26162306a36Sopenharmony_ci			AM4372_IOPAD(0x924, PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txd1.rgmii1_td1 */
26262306a36Sopenharmony_ci			AM4372_IOPAD(0x920, PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txd0.rgmii1_td2 */
26362306a36Sopenharmony_ci			AM4372_IOPAD(0x91c, PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txd1.rgmii1_td3 */
26462306a36Sopenharmony_ci			AM4372_IOPAD(0x930, PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxclk.rmii1_rclk */
26562306a36Sopenharmony_ci			AM4372_IOPAD(0x918, PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxdv.rgmii1_rctl */
26662306a36Sopenharmony_ci			AM4372_IOPAD(0x940, PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxd0.rgmii1_rd0 */
26762306a36Sopenharmony_ci			AM4372_IOPAD(0x93c, PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxd1.rgmii1_rd1 */
26862306a36Sopenharmony_ci			AM4372_IOPAD(0x938, PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxd0.rgmii1_rd2 */
26962306a36Sopenharmony_ci			AM4372_IOPAD(0x934, PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxd1.rgmii1_rd3 */
27062306a36Sopenharmony_ci		>;
27162306a36Sopenharmony_ci	};
27262306a36Sopenharmony_ci
27362306a36Sopenharmony_ci	cpsw_sleep: cpsw-sleep-pins {
27462306a36Sopenharmony_ci		pinctrl-single,pins = <
27562306a36Sopenharmony_ci			AM4372_IOPAD(0x92c, PIN_INPUT_PULLDOWN | MUX_MODE7)
27662306a36Sopenharmony_ci			AM4372_IOPAD(0x914, PIN_INPUT_PULLDOWN | MUX_MODE7)
27762306a36Sopenharmony_ci			AM4372_IOPAD(0x928, PIN_INPUT_PULLDOWN | MUX_MODE7)
27862306a36Sopenharmony_ci			AM4372_IOPAD(0x924, PIN_INPUT_PULLDOWN | MUX_MODE7)
27962306a36Sopenharmony_ci			AM4372_IOPAD(0x920, PIN_INPUT_PULLDOWN | MUX_MODE7)
28062306a36Sopenharmony_ci			AM4372_IOPAD(0x91c, PIN_INPUT_PULLDOWN | MUX_MODE7)
28162306a36Sopenharmony_ci			AM4372_IOPAD(0x930, PIN_INPUT_PULLDOWN | MUX_MODE7)
28262306a36Sopenharmony_ci			AM4372_IOPAD(0x918, PIN_INPUT_PULLDOWN | MUX_MODE7)
28362306a36Sopenharmony_ci			AM4372_IOPAD(0x940, PIN_INPUT_PULLDOWN | MUX_MODE7)
28462306a36Sopenharmony_ci			AM4372_IOPAD(0x93c, PIN_INPUT_PULLDOWN | MUX_MODE7)
28562306a36Sopenharmony_ci			AM4372_IOPAD(0x938, PIN_INPUT_PULLDOWN | MUX_MODE7)
28662306a36Sopenharmony_ci			AM4372_IOPAD(0x934, PIN_INPUT_PULLDOWN | MUX_MODE7)
28762306a36Sopenharmony_ci		>;
28862306a36Sopenharmony_ci	};
28962306a36Sopenharmony_ci
29062306a36Sopenharmony_ci	davinci_mdio_default: davinci-mdio-default-pins {
29162306a36Sopenharmony_ci		pinctrl-single,pins = <
29262306a36Sopenharmony_ci			/* MDIO */
29362306a36Sopenharmony_ci			AM4372_IOPAD(0x948, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0)	/* mdio_data.mdio_data */
29462306a36Sopenharmony_ci			AM4372_IOPAD(0x94c, PIN_OUTPUT_PULLUP | MUX_MODE0)			/* mdio_clk.mdio_clk */
29562306a36Sopenharmony_ci		>;
29662306a36Sopenharmony_ci	};
29762306a36Sopenharmony_ci
29862306a36Sopenharmony_ci	davinci_mdio_sleep: davinci-mdio-sleep-pins {
29962306a36Sopenharmony_ci		pinctrl-single,pins = <
30062306a36Sopenharmony_ci			/* MDIO reset value */
30162306a36Sopenharmony_ci			AM4372_IOPAD(0x948, PIN_INPUT_PULLDOWN | MUX_MODE7)
30262306a36Sopenharmony_ci			AM4372_IOPAD(0x94c, PIN_INPUT_PULLDOWN | MUX_MODE7)
30362306a36Sopenharmony_ci		>;
30462306a36Sopenharmony_ci	};
30562306a36Sopenharmony_ci
30662306a36Sopenharmony_ci	qspi_pins_default: qspi-default-pins {
30762306a36Sopenharmony_ci		pinctrl-single,pins = <
30862306a36Sopenharmony_ci			AM4372_IOPAD(0x87c, PIN_OUTPUT_PULLUP | MUX_MODE3)	/* gpmc_csn0.qspi_csn */
30962306a36Sopenharmony_ci			AM4372_IOPAD(0x888, PIN_OUTPUT | MUX_MODE2)		/* gpmc_csn3.qspi_clk */
31062306a36Sopenharmony_ci			AM4372_IOPAD(0x890, PIN_INPUT_PULLUP | MUX_MODE3)	/* gpmc_advn_ale.qspi_d0 */
31162306a36Sopenharmony_ci			AM4372_IOPAD(0x894, PIN_INPUT_PULLUP | MUX_MODE3)	/* gpmc_oen_ren.qspi_d1 */
31262306a36Sopenharmony_ci			AM4372_IOPAD(0x898, PIN_INPUT_PULLUP | MUX_MODE3)	/* gpmc_wen.qspi_d2 */
31362306a36Sopenharmony_ci			AM4372_IOPAD(0x89c, PIN_INPUT_PULLUP | MUX_MODE3)	/* gpmc_be0n_cle.qspi_d3 */
31462306a36Sopenharmony_ci		>;
31562306a36Sopenharmony_ci	};
31662306a36Sopenharmony_ci
31762306a36Sopenharmony_ci	qspi_pins_sleep: qspi-sleep-pins {
31862306a36Sopenharmony_ci		pinctrl-single,pins = <
31962306a36Sopenharmony_ci			AM4372_IOPAD(0x87c, PIN_INPUT_PULLDOWN | MUX_MODE7)
32062306a36Sopenharmony_ci			AM4372_IOPAD(0x888, PIN_INPUT_PULLDOWN | MUX_MODE7)
32162306a36Sopenharmony_ci			AM4372_IOPAD(0x890, PIN_INPUT_PULLDOWN | MUX_MODE7)
32262306a36Sopenharmony_ci			AM4372_IOPAD(0x894, PIN_INPUT_PULLDOWN | MUX_MODE7)
32362306a36Sopenharmony_ci			AM4372_IOPAD(0x898, PIN_INPUT_PULLDOWN | MUX_MODE7)
32462306a36Sopenharmony_ci			AM4372_IOPAD(0x89c, PIN_INPUT_PULLDOWN | MUX_MODE7)
32562306a36Sopenharmony_ci		>;
32662306a36Sopenharmony_ci	};
32762306a36Sopenharmony_ci};
32862306a36Sopenharmony_ci
32962306a36Sopenharmony_ci&i2c0 {
33062306a36Sopenharmony_ci	status = "okay";
33162306a36Sopenharmony_ci	pinctrl-names = "default", "sleep";
33262306a36Sopenharmony_ci	pinctrl-0 = <&i2c0_pins_default>;
33362306a36Sopenharmony_ci	pinctrl-1 = <&i2c0_pins_sleep>;
33462306a36Sopenharmony_ci	clock-frequency = <400000>;
33562306a36Sopenharmony_ci
33662306a36Sopenharmony_ci	at24@50 {
33762306a36Sopenharmony_ci		compatible = "atmel,24c256";
33862306a36Sopenharmony_ci		pagesize = <64>;
33962306a36Sopenharmony_ci		reg = <0x50>;
34062306a36Sopenharmony_ci	};
34162306a36Sopenharmony_ci
34262306a36Sopenharmony_ci	tps: tps62362@60 {
34362306a36Sopenharmony_ci		compatible = "ti,tps62362";
34462306a36Sopenharmony_ci		reg = <0x60>;
34562306a36Sopenharmony_ci		regulator-name = "VDD_MPU";
34662306a36Sopenharmony_ci		regulator-min-microvolt = <950000>;
34762306a36Sopenharmony_ci		regulator-max-microvolt = <1330000>;
34862306a36Sopenharmony_ci		regulator-boot-on;
34962306a36Sopenharmony_ci		regulator-always-on;
35062306a36Sopenharmony_ci		ti,vsel0-state-high;
35162306a36Sopenharmony_ci		ti,vsel1-state-high;
35262306a36Sopenharmony_ci		vin-supply = <&v3_3d>;
35362306a36Sopenharmony_ci	};
35462306a36Sopenharmony_ci};
35562306a36Sopenharmony_ci
35662306a36Sopenharmony_ci&i2c2 {
35762306a36Sopenharmony_ci	status = "okay";
35862306a36Sopenharmony_ci	pinctrl-names = "default", "sleep";
35962306a36Sopenharmony_ci	pinctrl-0 = <&i2c2_pins_default>;
36062306a36Sopenharmony_ci	pinctrl-1 = <&i2c2_pins_sleep>;
36162306a36Sopenharmony_ci	clock-frequency = <100000>;
36262306a36Sopenharmony_ci
36362306a36Sopenharmony_ci	tpic2810: tpic2810@60 {
36462306a36Sopenharmony_ci		compatible = "ti,tpic2810";
36562306a36Sopenharmony_ci		reg = <0x60>;
36662306a36Sopenharmony_ci		gpio-controller;
36762306a36Sopenharmony_ci		#gpio-cells = <2>;
36862306a36Sopenharmony_ci	};
36962306a36Sopenharmony_ci};
37062306a36Sopenharmony_ci
37162306a36Sopenharmony_ci&spi1 {
37262306a36Sopenharmony_ci	status = "okay";
37362306a36Sopenharmony_ci	pinctrl-names = "default", "sleep";
37462306a36Sopenharmony_ci	pinctrl-0 = <&spi1_pins_default>;
37562306a36Sopenharmony_ci	pinctrl-1 = <&spi1_pins_sleep>;
37662306a36Sopenharmony_ci	ti,pindir-d0-out-d1-in;
37762306a36Sopenharmony_ci
37862306a36Sopenharmony_ci	sn65hvs882: sn65hvs882@0 {
37962306a36Sopenharmony_ci		compatible = "pisosr-gpio";
38062306a36Sopenharmony_ci		gpio-controller;
38162306a36Sopenharmony_ci		#gpio-cells = <2>;
38262306a36Sopenharmony_ci
38362306a36Sopenharmony_ci		load-gpios = <&gpio3 1 GPIO_ACTIVE_LOW>;
38462306a36Sopenharmony_ci
38562306a36Sopenharmony_ci		reg = <0>;
38662306a36Sopenharmony_ci		spi-max-frequency = <1000000>;
38762306a36Sopenharmony_ci		spi-cpol;
38862306a36Sopenharmony_ci	};
38962306a36Sopenharmony_ci};
39062306a36Sopenharmony_ci
39162306a36Sopenharmony_ci&epwmss0 {
39262306a36Sopenharmony_ci	status = "okay";
39362306a36Sopenharmony_ci};
39462306a36Sopenharmony_ci
39562306a36Sopenharmony_ci&ecap0 {
39662306a36Sopenharmony_ci	status = "okay";
39762306a36Sopenharmony_ci	pinctrl-names = "default";
39862306a36Sopenharmony_ci	pinctrl-0 = <&ecap0_pins_default>;
39962306a36Sopenharmony_ci};
40062306a36Sopenharmony_ci
40162306a36Sopenharmony_ci&gpio0 {
40262306a36Sopenharmony_ci	status = "okay";
40362306a36Sopenharmony_ci};
40462306a36Sopenharmony_ci
40562306a36Sopenharmony_ci&gpio1 {
40662306a36Sopenharmony_ci	status = "okay";
40762306a36Sopenharmony_ci};
40862306a36Sopenharmony_ci
40962306a36Sopenharmony_ci&gpio3 {
41062306a36Sopenharmony_ci	status = "okay";
41162306a36Sopenharmony_ci};
41262306a36Sopenharmony_ci
41362306a36Sopenharmony_ci&gpio4 {
41462306a36Sopenharmony_ci	status = "okay";
41562306a36Sopenharmony_ci};
41662306a36Sopenharmony_ci
41762306a36Sopenharmony_ci&gpio5 {
41862306a36Sopenharmony_ci	status = "okay";
41962306a36Sopenharmony_ci};
42062306a36Sopenharmony_ci
42162306a36Sopenharmony_ci&mmc1 {
42262306a36Sopenharmony_ci	status = "okay";
42362306a36Sopenharmony_ci	pinctrl-names = "default", "sleep";
42462306a36Sopenharmony_ci	pinctrl-0 = <&mmc1_pins_default>;
42562306a36Sopenharmony_ci	pinctrl-1 = <&mmc1_pins_sleep>;
42662306a36Sopenharmony_ci	vmmc-supply = <&v3_3d>;
42762306a36Sopenharmony_ci	bus-width = <4>;
42862306a36Sopenharmony_ci	cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
42962306a36Sopenharmony_ci};
43062306a36Sopenharmony_ci
43162306a36Sopenharmony_ci&qspi {
43262306a36Sopenharmony_ci	status = "okay";
43362306a36Sopenharmony_ci	pinctrl-names = "default", "sleep";
43462306a36Sopenharmony_ci	pinctrl-0 = <&qspi_pins_default>;
43562306a36Sopenharmony_ci	pinctrl-1 = <&qspi_pins_sleep>;
43662306a36Sopenharmony_ci
43762306a36Sopenharmony_ci	spi-max-frequency = <48000000>;
43862306a36Sopenharmony_ci	flash@0 {
43962306a36Sopenharmony_ci		compatible = "mx66l51235l";
44062306a36Sopenharmony_ci		spi-max-frequency = <48000000>;
44162306a36Sopenharmony_ci		reg = <0>;
44262306a36Sopenharmony_ci		spi-cpol;
44362306a36Sopenharmony_ci		spi-cpha;
44462306a36Sopenharmony_ci		spi-tx-bus-width = <1>;
44562306a36Sopenharmony_ci		spi-rx-bus-width = <4>;
44662306a36Sopenharmony_ci		#address-cells = <1>;
44762306a36Sopenharmony_ci		#size-cells = <1>;
44862306a36Sopenharmony_ci
44962306a36Sopenharmony_ci		/*
45062306a36Sopenharmony_ci		 * MTD partition table.  The ROM checks the first 512KiB for a
45162306a36Sopenharmony_ci		 * valid file to boot(XIP).
45262306a36Sopenharmony_ci		 */
45362306a36Sopenharmony_ci		partition@0 {
45462306a36Sopenharmony_ci			label = "QSPI.U_BOOT";
45562306a36Sopenharmony_ci			reg = <0x00000000 0x00080000>;
45662306a36Sopenharmony_ci		};
45762306a36Sopenharmony_ci		partition@1 {
45862306a36Sopenharmony_ci			label = "QSPI.U_BOOT.backup";
45962306a36Sopenharmony_ci			reg = <0x00080000 0x00080000>;
46062306a36Sopenharmony_ci		};
46162306a36Sopenharmony_ci		partition@2 {
46262306a36Sopenharmony_ci			label = "QSPI.U-BOOT-SPL_OS";
46362306a36Sopenharmony_ci			reg = <0x00100000 0x00010000>;
46462306a36Sopenharmony_ci		};
46562306a36Sopenharmony_ci		partition@3 {
46662306a36Sopenharmony_ci			label = "QSPI.U_BOOT_ENV";
46762306a36Sopenharmony_ci			reg = <0x00110000 0x00010000>;
46862306a36Sopenharmony_ci		};
46962306a36Sopenharmony_ci		partition@4 {
47062306a36Sopenharmony_ci			label = "QSPI.U-BOOT-ENV.backup";
47162306a36Sopenharmony_ci			reg = <0x00120000 0x00010000>;
47262306a36Sopenharmony_ci		};
47362306a36Sopenharmony_ci		partition@5 {
47462306a36Sopenharmony_ci			label = "QSPI.KERNEL";
47562306a36Sopenharmony_ci			reg = <0x00130000 0x0800000>;
47662306a36Sopenharmony_ci		};
47762306a36Sopenharmony_ci		partition@6 {
47862306a36Sopenharmony_ci			label = "QSPI.FILESYSTEM";
47962306a36Sopenharmony_ci			reg = <0x00930000 0x36D0000>;
48062306a36Sopenharmony_ci		};
48162306a36Sopenharmony_ci	};
48262306a36Sopenharmony_ci};
48362306a36Sopenharmony_ci
48462306a36Sopenharmony_ci&mac_sw {
48562306a36Sopenharmony_ci	pinctrl-names = "default", "sleep";
48662306a36Sopenharmony_ci	pinctrl-0 = <&cpsw_default>;
48762306a36Sopenharmony_ci	pinctrl-1 = <&cpsw_sleep>;
48862306a36Sopenharmony_ci	status = "okay";
48962306a36Sopenharmony_ci};
49062306a36Sopenharmony_ci
49162306a36Sopenharmony_ci&davinci_mdio_sw {
49262306a36Sopenharmony_ci	pinctrl-names = "default", "sleep";
49362306a36Sopenharmony_ci	pinctrl-0 = <&davinci_mdio_default>;
49462306a36Sopenharmony_ci	pinctrl-1 = <&davinci_mdio_sleep>;
49562306a36Sopenharmony_ci
49662306a36Sopenharmony_ci	ethphy0: ethernet-phy@0 {
49762306a36Sopenharmony_ci		reg = <0>;
49862306a36Sopenharmony_ci	};
49962306a36Sopenharmony_ci};
50062306a36Sopenharmony_ci
50162306a36Sopenharmony_ci&cpsw_port1 {
50262306a36Sopenharmony_ci	phy-handle = <&ethphy0>;
50362306a36Sopenharmony_ci	phy-mode = "rgmii-rxid";
50462306a36Sopenharmony_ci	ti,dual-emac-pvid = <1>;
50562306a36Sopenharmony_ci};
50662306a36Sopenharmony_ci
50762306a36Sopenharmony_ci&cpsw_port2 {
50862306a36Sopenharmony_ci	status = "disabled";
50962306a36Sopenharmony_ci};
51062306a36Sopenharmony_ci
51162306a36Sopenharmony_ci&rtc {
51262306a36Sopenharmony_ci	clocks = <&clk_32k_rtc>, <&clk_32768_ck>;
51362306a36Sopenharmony_ci	clock-names = "ext-clk", "int-clk";
51462306a36Sopenharmony_ci	status = "okay";
51562306a36Sopenharmony_ci};
51662306a36Sopenharmony_ci
51762306a36Sopenharmony_ci&wdt {
51862306a36Sopenharmony_ci	status = "okay";
51962306a36Sopenharmony_ci};
52062306a36Sopenharmony_ci
52162306a36Sopenharmony_ci&cpu {
52262306a36Sopenharmony_ci	cpu0-supply = <&tps>;
52362306a36Sopenharmony_ci};
52462306a36Sopenharmony_ci
52562306a36Sopenharmony_ci&cpu0_opp_table {
52662306a36Sopenharmony_ci	/*
52762306a36Sopenharmony_ci	 * Supply voltage supervisor on board will not allow opp50 so
52862306a36Sopenharmony_ci	 * disable it and set opp100 as suspend OPP.
52962306a36Sopenharmony_ci	 */
53062306a36Sopenharmony_ci	opp-50-300000000 {
53162306a36Sopenharmony_ci		/* opp50-300000000 */
53262306a36Sopenharmony_ci		status = "disabled";
53362306a36Sopenharmony_ci	};
53462306a36Sopenharmony_ci
53562306a36Sopenharmony_ci	opp-100-600000000 {
53662306a36Sopenharmony_ci		/* opp100-600000000 */
53762306a36Sopenharmony_ci		opp-suspend;
53862306a36Sopenharmony_ci	};
53962306a36Sopenharmony_ci};
54062306a36Sopenharmony_ci
54162306a36Sopenharmony_ci&pruss1_mdio {
54262306a36Sopenharmony_ci	status = "disabled";
54362306a36Sopenharmony_ci};
544