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 | /* * Copyright (c) 2021 Tokita, Hiroshi <tokita.hiroshi@gmail.com> * * SPDX-License-Identifier: Apache-2.0 */ / { chosen { zephyr,console = &usart0; zephyr,shell-uart = &usart0; zephyr,sram = &sram0; zephyr,flash = &flash0; }; leds { compatible = "gpio-leds"; led_red: led_red { gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; label = "LED_R"; }; led_green: led_green { gpios = <&gpioa 1 GPIO_ACTIVE_LOW>; label = "LED_G"; }; led_blue: led_blue { gpios = <&gpioa 2 GPIO_ACTIVE_LOW>; label = "LED_B"; }; }; gpio_keys { compatible = "gpio-keys"; button_boot0: button_boot0 { label = "BUTTON_BOOT0"; gpios = <&gpioa 8 GPIO_ACTIVE_HIGH>; }; }; pwmleds { compatible = "pwm-leds"; /* NOTE: bridge TIMER1_CH1 and LED_GREEN (PA1) */ pwm_led_green: pwm_led_green { pwms = <&pwm1 1 PWM_MSEC(20) PWM_POLARITY_NORMAL>; label = "PWM_LED_G"; }; /* NOTE: bridge TIMER1_CH2 and LED_BLUE (PA2) */ pwm_led_blue: pwm_led_blue { pwms = <&pwm1 2 PWM_MSEC(20) PWM_POLARITY_NORMAL>; label = "PWM_LED_B"; }; }; aliases { led0 = &led_red; led1 = &led_green; led2 = &led_blue; pwm-led0 = &pwm_led_green; pwm-led1 = &pwm_led_blue; sw0 = &button_boot0; }; }; &gpioa { status = "okay"; }; &gpiob { status = "okay"; }; &gpioc { status = "okay"; }; &usart0 { status = "okay"; current-speed = <115200>; pinctrl-0 = <&usart0_default>; pinctrl-names = "default"; }; &timer1 { status = "okay"; prescaler = <4096>; pwm1: pwm { status = "okay"; pinctrl-0 = <&pwm1_default>; pinctrl-names = "default"; }; }; &dac { status = "okay"; pinctrl-0 = <&dac_default>; pinctrl-names = "default"; }; &spi1 { status = "okay"; pinctrl-0 = <&spi1_default>; pinctrl-names = "default"; cs-gpios = <&gpiob 12 GPIO_ACTIVE_LOW>; sdhc0: sdhc@0 { compatible = "zephyr,mmc-spi-slot"; reg = <0>; status = "okay"; label = "SDHC0"; spi-max-frequency = <24000000>; }; }; |