2020-06-12 13:37:47 +10:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2020 Pete Johanson
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
#include <st/f3/stm32f303Xc.dtsi>
|
2021-03-25 12:54:41 +11:00
|
|
|
#include <st/f3/stm32f303c(b-c)tx-pinctrl.dtsi>
|
2020-06-12 13:37:47 +10:00
|
|
|
#include "arduino_pro_micro_pins.dtsi"
|
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "QMK Proton C";
|
|
|
|
compatible = "qmk,proton_c", "st,stm32f303";
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
zephyr,sram = &sram0;
|
|
|
|
zephyr,flash = &flash0;
|
|
|
|
};
|
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
led: led_0 {
|
|
|
|
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
|
|
|
|
label = "User LED";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-03-25 12:54:41 +11:00
|
|
|
&usart1 {
|
|
|
|
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&spi2 {
|
|
|
|
pinctrl-0 = <&spi2_sck_pb13 &spi2_miso_pb14 &spi2_mosi_pb15>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&i2c1 {
|
|
|
|
pinctrl-0 = <&i2c1_scl_pb6 &i2c1_sda_pb7>;
|
|
|
|
};
|
|
|
|
|
2020-06-12 13:37:47 +10:00
|
|
|
&usb {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&rtc {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&flash0 {
|
|
|
|
/*
|
|
|
|
* 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>;
|
|
|
|
|
|
|
|
/* Set 6Kb of storage at the end of the 256Kb of flash */
|
|
|
|
storage_partition: partition@3e800 {
|
|
|
|
label = "storage";
|
|
|
|
reg = <0x0003e800 0x00001800>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|