1// 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> 12#include "ipq5332.dtsi" 13 14/ { 15 aliases { 16 serial0 = &blsp1_uart0; 17 }; 18 19 chosen { 20 stdout-path = "serial0"; 21 }; 22 23 gpio-keys { 24 compatible = "gpio-keys"; 25 pinctrl-0 = <&gpio_keys_default>; 26 pinctrl-names = "default"; 27 28 button-wps { 29 label = "wps"; 30 linux,code = <KEY_WPS_BUTTON>; 31 gpios = <&tlmm 35 GPIO_ACTIVE_LOW>; 32 debounce-interval = <60>; 33 }; 34 }; 35 36 leds { 37 compatible = "gpio-leds"; 38 pinctrl-0 = <&gpio_leds_default>; 39 pinctrl-names = "default"; 40 41 led-0 { 42 gpios = <&tlmm 36 GPIO_ACTIVE_HIGH>; 43 linux,default-trigger = "phy0tx"; 44 default-state = "off"; 45 }; 46 }; 47}; 48 49&blsp1_uart0 { 50 pinctrl-0 = <&serial_0_pins>; 51 pinctrl-names = "default"; 52 status = "okay"; 53}; 54 55&sleep_clk { 56 clock-frequency = <32000>; 57}; 58 59&xo_board { 60 clock-frequency = <24000000>; 61}; 62 63/* PINCTRL */ 64&tlmm { 65 gpio_keys_default: gpio-keys-default-state { 66 pins = "gpio35"; 67 function = "gpio"; 68 drive-strength = <8>; 69 bias-pull-up; 70 }; 71 72 gpio_leds_default: gpio-leds-default-state { 73 pins = "gpio36"; 74 function = "gpio"; 75 drive-strength = <8>; 76 bias-pull-down; 77 }; 78}; 79