blob: b37ae7749083f43f482231c1de9f99ac28ea2b66 [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * IPQ5332 RDP board common 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>
Tom Rini93743d22024-04-01 09:08:13 -040012#include <dt-bindings/leds/common.h>
Tom Rini53633a82024-02-29 12:33:36 -050013#include "ipq5332.dtsi"
14
15/ {
16 aliases {
17 serial0 = &blsp1_uart0;
18 };
19
20 chosen {
21 stdout-path = "serial0";
22 };
23
24 gpio-keys {
25 compatible = "gpio-keys";
26 pinctrl-0 = <&gpio_keys_default>;
27 pinctrl-names = "default";
28
29 button-wps {
30 label = "wps";
31 linux,code = <KEY_WPS_BUTTON>;
32 gpios = <&tlmm 35 GPIO_ACTIVE_LOW>;
33 debounce-interval = <60>;
34 };
35 };
36
37 leds {
38 compatible = "gpio-leds";
39 pinctrl-0 = <&gpio_leds_default>;
40 pinctrl-names = "default";
41
42 led-0 {
Tom Rini93743d22024-04-01 09:08:13 -040043 color = <LED_COLOR_ID_GREEN>;
44 function = LED_FUNCTION_WLAN;
Tom Rini53633a82024-02-29 12:33:36 -050045 gpios = <&tlmm 36 GPIO_ACTIVE_HIGH>;
46 linux,default-trigger = "phy0tx";
47 default-state = "off";
48 };
49 };
50};
51
52&blsp1_uart0 {
53 pinctrl-0 = <&serial_0_pins>;
54 pinctrl-names = "default";
55 status = "okay";
56};
57
58&sleep_clk {
59 clock-frequency = <32000>;
60};
61
62&xo_board {
63 clock-frequency = <24000000>;
64};
65
66/* PINCTRL */
67&tlmm {
68 gpio_keys_default: gpio-keys-default-state {
69 pins = "gpio35";
70 function = "gpio";
71 drive-strength = <8>;
72 bias-pull-up;
73 };
74
75 gpio_leds_default: gpio-leds-default-state {
76 pins = "gpio36";
77 function = "gpio";
78 drive-strength = <8>;
79 bias-pull-down;
80 };
81};