2020-06-11 20:37:47 -07:00
|
|
|
/*
|
2022-02-21 20:26:34 -08:00
|
|
|
* Copyright (c) 2020 The ZMK Contributors
|
2020-06-11 20:37:47 -07:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
#include <st/f3/stm32f303Xc.dtsi>
|
2021-03-24 18:54:41 -07:00
|
|
|
#include <st/f3/stm32f303c(b-c)tx-pinctrl.dtsi>
|
2020-06-11 20:37:47 -07:00
|
|
|
#include "arduino_pro_micro_pins.dtsi"
|
|
|
|
|
|
|
|
/ {
|
2023-04-22 21:25:56 -07:00
|
|
|
model = "QMK Proton C";
|
|
|
|
compatible = "qmk,proton_c", "st,stm32f303";
|
2020-06-11 20:37:47 -07:00
|
|
|
|
2023-04-22 21:25:56 -07:00
|
|
|
chosen {
|
|
|
|
zephyr,sram = &sram0;
|
|
|
|
zephyr,flash = &flash0;
|
|
|
|
zephyr,console = &cdc_acm_uart0;
|
|
|
|
};
|
2022-02-21 20:26:34 -08:00
|
|
|
|
2023-04-22 21:25:56 -07:00
|
|
|
aliases {
|
|
|
|
led0 = &led;
|
|
|
|
};
|
2020-06-11 20:37:47 -07:00
|
|
|
|
2023-04-22 21:25:56 -07:00
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
led: led_0 {
|
|
|
|
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
};
|
2020-06-11 20:37:47 -07:00
|
|
|
};
|
|
|
|
|
2021-03-24 18:54:41 -07:00
|
|
|
&usart1 {
|
2023-04-22 21:25:56 -07:00
|
|
|
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
|
|
|
|
pinctrl-names = "default";
|
2021-03-24 18:54:41 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
&spi2 {
|
2023-04-22 21:25:56 -07:00
|
|
|
pinctrl-0 = <&spi2_sck_pb13 &spi2_miso_pb14 &spi2_mosi_pb15>;
|
|
|
|
pinctrl-names = "default";
|
2021-03-24 18:54:41 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
&i2c1 {
|
2023-04-22 21:25:56 -07:00
|
|
|
pinctrl-0 = <&i2c1_scl_pb6 &i2c1_sda_pb7>;
|
|
|
|
pinctrl-names = "default";
|
2022-02-21 20:26:34 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
&clk_hse {
|
2023-04-22 21:25:56 -07:00
|
|
|
status = "okay";
|
|
|
|
clock-frequency = <DT_FREQ_M(8)>;
|
2022-02-21 20:26:34 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
&pll {
|
2023-04-22 21:25:56 -07:00
|
|
|
prediv = <1>;
|
|
|
|
mul = <9>;
|
|
|
|
clocks = <&clk_hse>;
|
|
|
|
status = "okay";
|
2022-02-21 20:26:34 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
&rcc {
|
2023-04-22 21:25:56 -07:00
|
|
|
clocks = <&pll>;
|
|
|
|
clock-frequency = <DT_FREQ_M(72)>;
|
|
|
|
ahb-prescaler = <1>;
|
|
|
|
apb1-prescaler = <2>;
|
|
|
|
apb2-prescaler = <1>;
|
2021-03-24 18:54:41 -07:00
|
|
|
};
|
|
|
|
|
2020-06-11 20:37:47 -07:00
|
|
|
&usb {
|
2023-04-22 21:25:56 -07:00
|
|
|
pinctrl-0 = <&usb_dm_pa11 &usb_dp_pa12>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
status = "okay";
|
|
|
|
cdc_acm_uart0: cdc_acm_uart0 {
|
|
|
|
compatible = "zephyr,cdc-acm-uart";
|
|
|
|
};
|
2020-06-11 20:37:47 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
&rtc {
|
2023-04-22 21:25:56 -07:00
|
|
|
status = "okay";
|
2020-06-11 20:37:47 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
&flash0 {
|
2023-04-22 21:25:56 -07:00
|
|
|
/*
|
|
|
|
* For more information, see:
|
|
|
|
* http://docs.zephyrproject.org/latest/guides/dts/index.html#flash-partitions
|
|
|
|
*/
|
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
2020-06-11 20:37:47 -07:00
|
|
|
|
2023-04-22 21:25:56 -07:00
|
|
|
/* Set 6Kb of storage at the end of the 256Kb of flash */
|
|
|
|
storage_partition: partition@3e800 {
|
|
|
|
reg = <0x0003e800 0x00001800>;
|
|
|
|
};
|
|
|
|
};
|
2020-06-11 20:37:47 -07:00
|
|
|
};
|