|
| 1 | +/* |
| 2 | +* |
| 3 | +* Copyright (c) 2024 Kyle Brown |
| 4 | +* SPDX-License-Identifier: MIT |
| 5 | +* |
| 6 | +*/ |
| 7 | + |
| 8 | +/dts-v1/; |
| 9 | +#include <nordic/nrf52840_qiaa.dtsi> |
| 10 | + |
| 11 | +#include <dt-bindings/zmk/matrix_transform.h> |
| 12 | +#include <layouts/kata0510/lily58.dtsi> |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | +/ { |
| 17 | + model = "BLELUE"; |
| 18 | + compatible = "blelu"; |
| 19 | + |
| 20 | + chosen { |
| 21 | + zephyr,code-partition = &code_partition; |
| 22 | + zephyr,sram = &sram0; |
| 23 | + zephyr,flash = &flash0; |
| 24 | + zmk,kscan = &kscan0; |
| 25 | + zmk,display = &epd; |
| 26 | + zephyr,console = &cdc_acm_uart; |
| 27 | + zmk,matrix-transform = &default_transform; |
| 28 | + }; |
| 29 | + |
| 30 | + default_transform: keymap_transform_0 { |
| 31 | + compatible = "zmk,matrix-transform"; |
| 32 | + columns = <16>; |
| 33 | + rows = <5>; |
| 34 | +// | SW6 | SW5 | SW4 | SW3 | SW2 | SW1 | | SW1 | SW2 | SW3 | SW4 | SW5 | SW6 | |
| 35 | +// | SW12 | SW11 | SW10 | SW9 | SW8 | SW7 | | SW7 | SW8 | SW9 | SW10 | SW11 | SW12 | |
| 36 | +// | SW18 | SW17 | SW16 | SW15 | SW14 | SW13 | | SW13 | SW14 | SW15 | SW16 | SW17 | SW18 | |
| 37 | +// | SW24 | SW23 | SW22 | SW21 | SW20 | SW19 | SW25 | | SW25 | SW19 | SW20 | SW21 | SW22 | SW23 | SW24 | |
| 38 | +// | SW29 | SW28 | SW27 | SW26 | | SW26 | SW27 | SW28 | SW29 | |
| 39 | + map = < |
| 40 | +RC(0,0) RC(0,1) RC(0,2) RC(0,3) RC(0,4) RC(0,5) RC(0,6) RC(0,7) RC(0,8) RC(0,9) RC(0,10) RC(0,11) |
| 41 | +RC(1,0) RC(1,1) RC(1,2) RC(1,3) RC(1,4) RC(1,5) RC(1,6) RC(1,7) RC(1,8) RC(1,9) RC(1,10) RC(1,11) |
| 42 | +RC(2,0) RC(2,1) RC(2,2) RC(2,3) RC(2,4) RC(2,5) RC(2,6) RC(2,7) RC(2,8) RC(2,9) RC(2,10) RC(2,11) |
| 43 | +RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(4,5) RC(4,6) RC(3,6) RC(3,7) RC(3,8) RC(3,9) RC(3,10) RC(3,11) |
| 44 | + RC(4,1) RC(4,2) RC(4,3) RC(4,4) RC(4,7) RC(4,8) RC(4,9) RC(4,10) |
| 45 | + >; |
| 46 | + }; |
| 47 | +}; |
| 48 | +&kata0510_lily58_layout { |
| 49 | + transform = <&default_transform>; |
| 50 | + kscan = <&kscan0>; |
| 51 | +}; |
| 52 | + |
| 53 | +&adc { |
| 54 | + status = "okay"; |
| 55 | +}; |
| 56 | + |
| 57 | +&gpiote { |
| 58 | + status = "okay"; |
| 59 | +}; |
| 60 | + |
| 61 | +&gpio0 { |
| 62 | + status = "okay"; |
| 63 | +}; |
| 64 | + |
| 65 | +&gpio1 { |
| 66 | + status = "okay"; |
| 67 | +}; |
| 68 | + |
| 69 | +&usbd { |
| 70 | + status = "okay"; |
| 71 | + cdc_acm_uart: cdc_acm_uart { |
| 72 | + compatible = "zephyr,cdc-acm-uart"; |
| 73 | + }; |
| 74 | +}; |
| 75 | + |
| 76 | +&flash0 { |
| 77 | + /* |
| 78 | + * For more information, see: |
| 79 | + * http://docs.zephyrproject.org/latest/devices/dts/flash_partitions.html |
| 80 | + */ |
| 81 | + partitions { |
| 82 | + compatible = "fixed-partitions"; |
| 83 | + #address-cells = <1>; |
| 84 | + #size-cells = <1>; |
| 85 | + |
| 86 | + sd_partition: partition@0 { |
| 87 | + label = "mbr"; |
| 88 | + reg = <0x00000000 0x00001000>; |
| 89 | + }; |
| 90 | + code_partition: partition@1000 { |
| 91 | + label = "code_partition"; |
| 92 | + reg = <0x00001000 0x000d3000>; |
| 93 | + }; |
| 94 | + |
| 95 | + storage_partition: partition@d4000 { |
| 96 | + label = "storage"; |
| 97 | + reg = <0x000d4000 0x00020000>; |
| 98 | + }; |
| 99 | + |
| 100 | + boot_partition: partition@f4000 { |
| 101 | + label = "adafruit_boot"; |
| 102 | + reg = <0x000f4000 0x0000c000>; |
| 103 | + }; |
| 104 | + }; |
| 105 | +}; |
0 commit comments