1// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * IPQ5332 RDP474 board device tree source
4 *
5 * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
6 */
7
8/dts-v1/;
9
10#include <dt-bindings/gpio/gpio.h>
11#include <dt-bindings/input/input.h>
12#include "ipq5332.dtsi"
13
14/ {
15	model = "Qualcomm Technologies, Inc. IPQ5332 MI01.9";
16	compatible = "qcom,ipq5332-ap-mi01.9", "qcom,ipq5332";
17
18	aliases {
19		serial0 = &blsp1_uart0;
20	};
21
22	chosen {
23		stdout-path = "serial0";
24	};
25
26	gpio-keys {
27		compatible = "gpio-keys";
28		pinctrl-0 = <&gpio_keys_default_state>;
29		pinctrl-names = "default";
30
31		button-wps {
32			label = "wps";
33			linux,code = <KEY_WPS_BUTTON>;
34			gpios = <&tlmm 35 GPIO_ACTIVE_LOW>;
35			linux,input-type = <1>;
36			debounce-interval = <60>;
37		};
38	};
39};
40
41&blsp1_uart0 {
42	pinctrl-0 = <&serial_0_pins>;
43	pinctrl-names = "default";
44	status = "okay";
45};
46
47&blsp1_i2c1 {
48	clock-frequency  = <400000>;
49	pinctrl-0 = <&i2c_1_pins>;
50	pinctrl-names = "default";
51	status = "okay";
52};
53
54&sdhc {
55	bus-width = <4>;
56	max-frequency = <192000000>;
57	mmc-ddr-1_8v;
58	mmc-hs200-1_8v;
59	non-removable;
60	pinctrl-0 = <&sdc_default_state>;
61	pinctrl-names = "default";
62	status = "okay";
63};
64
65&sleep_clk {
66	clock-frequency = <32000>;
67};
68
69&xo_board {
70	clock-frequency = <24000000>;
71};
72
73/* PINCTRL */
74
75&tlmm {
76	gpio_keys_default_state: gpio-keys-default-state {
77		pins = "gpio35";
78		function = "gpio";
79		drive-strength = <8>;
80		bias-pull-up;
81	};
82
83	i2c_1_pins: i2c-1-state {
84		pins = "gpio29", "gpio30";
85		function = "blsp1_i2c0";
86		drive-strength = <8>;
87		bias-pull-up;
88	};
89
90	sdc_default_state: sdc-default-state {
91		clk-pins {
92			pins = "gpio13";
93			function = "sdc_clk";
94			drive-strength = <8>;
95			bias-disable;
96		};
97
98		cmd-pins {
99			pins = "gpio12";
100			function = "sdc_cmd";
101			drive-strength = <8>;
102			bias-pull-up;
103		};
104
105		data-pins {
106			pins = "gpio8", "gpio9", "gpio10", "gpio11";
107			function = "sdc_data";
108			drive-strength = <8>;
109			bias-pull-up;
110		};
111	};
112};
113