Loading...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 | /* * Copyright (c) 2020 Yestin Sun * * SPDX-License-Identifier: Apache-2.0 */ #include <st/l5/stm32l562Xe.dtsi> #include <st/l5/stm32l562qeixq-pinctrl.dtsi> #include "arduino_r3_connector.dtsi" / { leds { compatible = "gpio-leds"; red_led_9: led_9 { gpios = <&gpiod 3 GPIO_ACTIVE_LOW>; label = "User LD9"; }; green_led_10: led_10 { gpios = <&gpiog 12 GPIO_ACTIVE_LOW>; label = "User LD10"; }; }; gpio_keys { compatible = "gpio-keys"; user_button: button { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>; }; }; power-states { stop0: state0 { compatible = "zephyr,power-state"; power-state-name = "suspend-to-idle"; substate-id = <1>; min-residency-us = <100>; }; stop1: state1 { compatible = "zephyr,power-state"; power-state-name = "suspend-to-idle"; substate-id = <2>; min-residency-us = <500>; }; stop2: state2 { compatible = "zephyr,power-state"; power-state-name = "suspend-to-idle"; substate-id = <3>; min-residency-us = <900>; }; }; }; &clk_msi { status = "okay"; msi-range = <6>; msi-pll-mode; }; &clk_lse { status = "okay"; }; &pll { div-m = <1>; mul-n = <55>; div-p = <7>; div-q = <2>; div-r = <2>; clocks = <&clk_msi>; status = "okay"; }; &rcc { clocks = <&pll>; clock-frequency = <DT_FREQ_M(110)>; ahb-prescaler = <1>; apb1-prescaler = <1>; apb2-prescaler = <1>; }; &usart1 { current-speed = <115200>; status = "okay"; }; &usart3 { pinctrl-0 = <&usart3_tx_pc10 &usart3_rx_pc11>; current-speed = <115200>; status = "okay"; }; &i2c1 { pinctrl-0 = <&i2c1_scl_pb6 &i2c1_sda_pb7>; status = "okay"; clock-frequency = <I2C_BITRATE_FAST>; lsm6dso@6a { compatible = "st,lsm6dso"; reg = <0x6a>; irq-gpios = <&gpiof 3 GPIO_ACTIVE_HIGH>; label = "LSM6DSO"; }; }; &rng { status = "okay"; }; &spi1 { pinctrl-0 = <&spi1_sck_pg2 &spi1_miso_pg3 &spi1_mosi_pg4>; cs-gpios = <&gpiog 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; status = "okay"; spbtle-rf@0 { compatible = "zephyr,bt-hci-spi"; reg = <0>; irq-gpios = <&gpiog 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; reset-gpios = <&gpiog 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; spi-max-frequency = <2000000>; label = "SPBTLE-RF"; }; }; &timers2 { status = "okay"; pwm2: pwm { status = "okay"; pinctrl-0 = <&tim2_ch1_pa0>; }; }; &dac1 { status = "okay"; pinctrl-0 = <&dac1_out1_pa4>; }; &adc1 { pinctrl-0 = <&adc1_in13_pc4>; status = "okay"; }; &spi3 { pinctrl-0 = <&spi3_sck_pg9 &spi3_mosi_pb5 &spi3_miso_pb4>; cs-gpios = <&gpioe 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; status = "okay"; }; |