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 <dt-bindings/leds/common.h> 13 #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 { 43 color = <LED_COLOR_ID_GREEN>; 44 function = LED_FUNCTION_WLAN; 45 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 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.