xref: /freebsd-src/sys/contrib/device-tree/src/arm64/qcom/ipq5332-rdp442.dts (revision 8d13bc63c0e1d50bc9e47ac1f26329c999bfecf0)
1f126890aSEmmanuel Vadot// SPDX-License-Identifier: BSD-3-Clause
2f126890aSEmmanuel Vadot/*
3f126890aSEmmanuel Vadot * IPQ5332 RDP442 board device tree source
4f126890aSEmmanuel Vadot *
5f126890aSEmmanuel Vadot * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
6f126890aSEmmanuel Vadot */
7f126890aSEmmanuel Vadot
8f126890aSEmmanuel Vadot/dts-v1/;
9f126890aSEmmanuel Vadot
10*aa1a8ff2SEmmanuel Vadot#include "ipq5332-rdp-common.dtsi"
11f126890aSEmmanuel Vadot
12f126890aSEmmanuel Vadot/ {
13f126890aSEmmanuel Vadot	model = "Qualcomm Technologies, Inc. IPQ5332 MI01.3";
14f126890aSEmmanuel Vadot	compatible = "qcom,ipq5332-ap-mi01.3", "qcom,ipq5332";
15f126890aSEmmanuel Vadot};
16f126890aSEmmanuel Vadot
17f126890aSEmmanuel Vadot&blsp1_i2c1 {
18f126890aSEmmanuel Vadot	clock-frequency = <400000>;
19f126890aSEmmanuel Vadot	pinctrl-0 = <&i2c_1_pins>;
20f126890aSEmmanuel Vadot	pinctrl-names = "default";
21f126890aSEmmanuel Vadot	status = "okay";
22f126890aSEmmanuel Vadot};
23f126890aSEmmanuel Vadot
24f126890aSEmmanuel Vadot&blsp1_spi0 {
25f126890aSEmmanuel Vadot	pinctrl-0 = <&spi_0_data_clk_pins &spi_0_cs_pins>;
26f126890aSEmmanuel Vadot	pinctrl-names = "default";
27f126890aSEmmanuel Vadot	status = "okay";
28f126890aSEmmanuel Vadot
29f126890aSEmmanuel Vadot	flash@0 {
30f126890aSEmmanuel Vadot		compatible = "micron,n25q128a11", "jedec,spi-nor";
31f126890aSEmmanuel Vadot		reg = <0>;
32f126890aSEmmanuel Vadot		#address-cells = <1>;
33f126890aSEmmanuel Vadot		#size-cells = <1>;
34f126890aSEmmanuel Vadot		spi-max-frequency = <50000000>;
35f126890aSEmmanuel Vadot	};
36f126890aSEmmanuel Vadot};
37f126890aSEmmanuel Vadot
38f126890aSEmmanuel Vadot&sdhc {
39f126890aSEmmanuel Vadot	bus-width = <4>;
40f126890aSEmmanuel Vadot	max-frequency = <192000000>;
41f126890aSEmmanuel Vadot	mmc-ddr-1_8v;
42f126890aSEmmanuel Vadot	mmc-hs200-1_8v;
43f126890aSEmmanuel Vadot	non-removable;
44f126890aSEmmanuel Vadot	pinctrl-0 = <&sdc_default_state>;
45f126890aSEmmanuel Vadot	pinctrl-names = "default";
46f126890aSEmmanuel Vadot	status = "okay";
47f126890aSEmmanuel Vadot};
48f126890aSEmmanuel Vadot
49f126890aSEmmanuel Vadot&tlmm {
50f126890aSEmmanuel Vadot	i2c_1_pins: i2c-1-state {
51f126890aSEmmanuel Vadot		pins = "gpio29", "gpio30";
52f126890aSEmmanuel Vadot		function = "blsp1_i2c0";
53f126890aSEmmanuel Vadot		drive-strength = <8>;
54f126890aSEmmanuel Vadot		bias-pull-up;
55f126890aSEmmanuel Vadot	};
56f126890aSEmmanuel Vadot
57f126890aSEmmanuel Vadot	sdc_default_state: sdc-default-state {
58f126890aSEmmanuel Vadot		clk-pins {
59f126890aSEmmanuel Vadot			pins = "gpio13";
60f126890aSEmmanuel Vadot			function = "sdc_clk";
61f126890aSEmmanuel Vadot			drive-strength = <8>;
62f126890aSEmmanuel Vadot			bias-disable;
63f126890aSEmmanuel Vadot		};
64f126890aSEmmanuel Vadot
65f126890aSEmmanuel Vadot		cmd-pins {
66f126890aSEmmanuel Vadot			pins = "gpio12";
67f126890aSEmmanuel Vadot			function = "sdc_cmd";
68f126890aSEmmanuel Vadot			drive-strength = <8>;
69f126890aSEmmanuel Vadot			bias-pull-up;
70f126890aSEmmanuel Vadot		};
71f126890aSEmmanuel Vadot
72f126890aSEmmanuel Vadot		data-pins {
73f126890aSEmmanuel Vadot			pins = "gpio8", "gpio9", "gpio10", "gpio11";
74f126890aSEmmanuel Vadot			function = "sdc_data";
75f126890aSEmmanuel Vadot			drive-strength = <8>;
76f126890aSEmmanuel Vadot			bias-pull-up;
77f126890aSEmmanuel Vadot		};
78f126890aSEmmanuel Vadot	};
79f126890aSEmmanuel Vadot
80f126890aSEmmanuel Vadot	spi_0_data_clk_pins: spi-0-data-clk-state {
81f126890aSEmmanuel Vadot		pins = "gpio14", "gpio15", "gpio16";
82f126890aSEmmanuel Vadot		function = "blsp0_spi";
83f126890aSEmmanuel Vadot		drive-strength = <2>;
84f126890aSEmmanuel Vadot		bias-pull-down;
85f126890aSEmmanuel Vadot	};
86f126890aSEmmanuel Vadot
87f126890aSEmmanuel Vadot	spi_0_cs_pins: spi-0-cs-state {
88f126890aSEmmanuel Vadot		pins = "gpio17";
89f126890aSEmmanuel Vadot		function = "blsp0_spi";
90f126890aSEmmanuel Vadot		drive-strength = <2>;
91f126890aSEmmanuel Vadot		bias-pull-up;
92f126890aSEmmanuel Vadot	};
93f126890aSEmmanuel Vadot};
94