|
| 1 | +/* |
| 2 | + * Copyright (c) 2024 Nordic Semiconductor ASA |
| 3 | + * Copyright (c) 2025 Ezurio LLC |
| 4 | + * |
| 5 | + * SPDX-License-Identifier: Apache-2.0 |
| 6 | + */ |
| 7 | + |
| 8 | +#include "bl54l15_dvk_nrf54l_10_15-pinctrl.dtsi" |
| 9 | + |
| 10 | +/ { |
| 11 | + leds { |
| 12 | + compatible = "gpio-leds"; |
| 13 | + led0: led_0 { |
| 14 | + gpios = <&gpio2 9 GPIO_ACTIVE_HIGH>; |
| 15 | + label = "Green LED 0"; |
| 16 | + }; |
| 17 | + led1: led_1 { |
| 18 | + gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>; |
| 19 | + label = "Green LED 1"; |
| 20 | + }; |
| 21 | + led2: led_2 { |
| 22 | + gpios = <&gpio2 7 GPIO_ACTIVE_HIGH>; |
| 23 | + label = "Green LED 2"; |
| 24 | + }; |
| 25 | + led3: led_3 { |
| 26 | + gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>; |
| 27 | + label = "Green LED 3"; |
| 28 | + }; |
| 29 | + }; |
| 30 | + |
| 31 | + pwmleds { |
| 32 | + compatible = "pwm-leds"; |
| 33 | + /* |
| 34 | + * PWM signal can be exposed on GPIO pin only within same domain. |
| 35 | + * There is only one domain which contains both PWM and GPIO: |
| 36 | + * PWM20/21/22 and GPIO Port P1. |
| 37 | + * Only LEDs connected to P1 can work with PWM, for example LED1. |
| 38 | + */ |
| 39 | + pwm_led1: pwm_led_1 { |
| 40 | + pwms = <&pwm20 0 PWM_MSEC(20) PWM_POLARITY_NORMAL>; |
| 41 | + }; |
| 42 | + }; |
| 43 | + |
| 44 | + buttons { |
| 45 | + compatible = "gpio-keys"; |
| 46 | + button0: button_0 { |
| 47 | + gpios = <&gpio1 13 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; |
| 48 | + label = "Push button 0"; |
| 49 | + zephyr,code = <INPUT_KEY_0>; |
| 50 | + }; |
| 51 | + button1: button_1 { |
| 52 | + gpios = <&gpio1 9 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; |
| 53 | + label = "Push button 1"; |
| 54 | + zephyr,code = <INPUT_KEY_1>; |
| 55 | + }; |
| 56 | + button2: button_2 { |
| 57 | + gpios = <&gpio1 8 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; |
| 58 | + label = "Push button 2"; |
| 59 | + zephyr,code = <INPUT_KEY_2>; |
| 60 | + }; |
| 61 | + button3: button_3 { |
| 62 | + gpios = <&gpio0 4 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; |
| 63 | + label = "Push button 3"; |
| 64 | + zephyr,code = <INPUT_KEY_3>; |
| 65 | + }; |
| 66 | + }; |
| 67 | + |
| 68 | + aliases { |
| 69 | + led0 = &led0; |
| 70 | + led1 = &led1; |
| 71 | + led2 = &led2; |
| 72 | + led3 = &led3; |
| 73 | + pwm-led0 = &pwm_led1; |
| 74 | + sw0 = &button0; |
| 75 | + sw1 = &button1; |
| 76 | + sw2 = &button2; |
| 77 | + sw3 = &button3; |
| 78 | + watchdog0 = &wdt31; |
| 79 | + }; |
| 80 | +}; |
| 81 | + |
| 82 | +&uart20 { |
| 83 | + current-speed = <115200>; |
| 84 | + pinctrl-0 = <&uart20_default>; |
| 85 | + pinctrl-1 = <&uart20_sleep>; |
| 86 | + pinctrl-names = "default", "sleep"; |
| 87 | +}; |
| 88 | + |
| 89 | +&uart30 { |
| 90 | + current-speed = <115200>; |
| 91 | + pinctrl-0 = <&uart30_default>; |
| 92 | + pinctrl-1 = <&uart30_sleep>; |
| 93 | + pinctrl-names = "default", "sleep"; |
| 94 | +}; |
| 95 | + |
| 96 | +&pwm20 { |
| 97 | + status = "okay"; |
| 98 | + pinctrl-0 = <&pwm20_default>; |
| 99 | + pinctrl-1 = <&pwm20_sleep>; |
| 100 | + pinctrl-names = "default", "sleep"; |
| 101 | +}; |
| 102 | + |
| 103 | +/* Get a node label for wi-fi spi to use in shield files */ |
| 104 | +wifi_spi: &spi22 {}; |
0 commit comments