/* * Cameron Banna 2020 */ /dts-v1/; #include / { model = "retic1337_tkl"; compatible = "nice,nano"; chosen { zephyr,console = &uart0; zephyr,shell-uart = &uart0; zephyr,uart-mcumgr = &uart0; zephyr,bt-mon-uart = &uart0; zephyr,i2c0 = &i2c0; zephyr,i2c_0 = &i2c0; zephyr,bt-c2h-uart = &uart0; zephyr,sram = &sram0; zephyr,flash = &flash0; zephyr,code-partition = &slot0_partition; zmk,kscan = &kscan0; }; kscan0: kscan { compatible = "zmk,kscan-gpio-matrix"; label = "KSCAN"; diode-direction = "col2row"; row-gpios = <&gpio1 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> , <&gpio0 8 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> , <&gpio0 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> , <&gpio0 31 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> , <&gpio0 30 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> , <&gpio0 24 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> ; col-gpios = <&gpio1 14 GPIO_ACTIVE_HIGH> , <&gpio1 13 GPIO_ACTIVE_HIGH> , <&gpio1 12 GPIO_ACTIVE_HIGH> , <&gpio1 11 GPIO_ACTIVE_HIGH> , <&gpio1 15 GPIO_ACTIVE_HIGH> , <&gpio0 26 GPIO_ACTIVE_HIGH> , <&gpio0 25 GPIO_ACTIVE_HIGH> , <&gpio0 28 GPIO_ACTIVE_HIGH> , <&gpio0 29 GPIO_ACTIVE_HIGH> , <&gpio0 4 GPIO_ACTIVE_HIGH> , <&gpio0 5 GPIO_ACTIVE_HIGH> , <&gpio0 7 GPIO_ACTIVE_HIGH> , <&gpio1 8 GPIO_ACTIVE_HIGH> , <&gpio1 6 GPIO_ACTIVE_HIGH> , <&gpio1 10 GPIO_ACTIVE_HIGH> , <&gpio0 20 GPIO_ACTIVE_HIGH> , <&gpio1 7 GPIO_ACTIVE_HIGH> , <&gpio0 23 GPIO_ACTIVE_HIGH> ; }; ext-power { compatible = "zmk,ext-power-generic"; label = "EXT_POWER"; control-gpios = <&gpio1 4 (GPIO_ACTIVE_HIGH)>; }; leds { compatible = "gpio-leds"; led0_blue: led_0 { gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; label = "Blue LED 0"; }; }; pwmleds { compatible = "pwm-leds"; pwm_led0_blue: pwm_led_0 { pwms = <&pwm1 9>; label = "Blue PWM LED 0"; }; }; /* These aliases are provided for compatibility with samples */ aliases { led0 = &led0_blue; led0-blue = &led0_blue; pwm-led0 = &pwm_led0_blue; blue-pwm-led = &pwm_led0_blue; i2c0 = &i2c0; }; }; &adc { status = "okay"; }; &gpiote { status = "okay"; }; &gpio0 { status = "okay"; }; &gpio1 { status = "okay"; }; &uart0 { compatible = "nordic,nrf-uart"; current-speed = <115200>; status = "okay"; tx-pin = <13>; rx-pin = <32>; rts-pin = <2>; cts-pin = <3>; }; &i2c0 { compatible = "nordic,nrf-twi"; status = "okay"; sda-pin = <21>; scl-pin = <19>; clock-frequency = < I2C_BITRATE_STANDARD >; bq27441@55 { compatible = "ti,bq274xx"; label = "BATTERY"; reg = <0x55>; design-voltage = <3700>; design-capacity = <450>; taper-current = <45>; terminate-voltage = <3000>; }; }; &i2c1 { compatible = "nordic,nrf-twi"; status = "okay"; sda-pin = <15>; scl-pin = <17>; clock-frequency = < I2C_BITRATE_STANDARD >; is31fl3733a: is31fl3733@50 { compatible = "issi,is31fl3733"; label = "IS31FL3733A"; reg = <0x50>; }; is31fl3733b: is31fl3733@53 { compatible = "issi,is31fl3733"; label = "IS31FL3733B"; reg = <0x53>; }; }; &pwm0 { status = "okay"; ch0-pin = <41>; ch0-inverted; }; &flash0 { partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; boot_partition: partition@0 { label = "mcuboot"; reg = <0x000000000 0x0000C000>; }; slot0_partition: partition@c000 { label = "image-0"; reg = <0x0000C000 0x00067000>; }; slot1_partition: partition@73000 { label = "image-1"; reg = <0x00073000 0x00067000>; }; scratch_partition: partition@da000 { label = "image-scratch"; reg = <0x000da000 0x0001e000>; }; /* * The flash starting at 0x000f8000 and ending at * 0x000fffff is reserved for use by the application. */ /* * Storage partition will be used by FCB/LittleFS/NVS * if enabled. */ storage_partition: partition@f8000 { label = "storage"; reg = <0x000f8000 0x00008000>; }; }; }; &usbd { compatible = "nordic,nrf-usbd"; status = "okay"; };