diff options
author | Pete Johanson <peter@peterjohanson.com> | 2020-06-11 23:37:47 -0400 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2020-06-11 23:37:47 -0400 |
commit | 7614e7e52bd2fbed9d878e1618363586fb44385d (patch) | |
tree | 00e83d92593b5e0dfddf0ca1e26207a251f4f83e /app/boards/arm/proton_c/proton_c.dts | |
parent | 488bcc4656d1378856e7f9e6b9fe186dfb302509 (diff) |
Initial work on Proton-C board definition.
Diffstat (limited to 'app/boards/arm/proton_c/proton_c.dts')
-rw-r--r-- | app/boards/arm/proton_c/proton_c.dts | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/app/boards/arm/proton_c/proton_c.dts b/app/boards/arm/proton_c/proton_c.dts new file mode 100644 index 0000000..2ec57ad --- /dev/null +++ b/app/boards/arm/proton_c/proton_c.dts @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2020 Pete Johanson + * + * SPDX-License-Identifier: MIT + */ + +/dts-v1/; +#include <st/f3/stm32f303Xc.dtsi> +#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"; + }; + }; +}; + +&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>; + }; + }; +}; |