|
58 | 58 | reg = <0>; |
59 | 59 | spi-max-frequency = <2000000>; |
60 | 60 | irq-gpios = <&gpio0 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; |
61 | | - cpi = <2560>; |
| 61 | + cpi = <1000>; |
62 | 62 | evt-type = <INPUT_EV_REL>; |
63 | 63 | x-input-code = <INPUT_REL_X>; |
64 | 64 | y-input-code = <INPUT_REL_Y>; |
|
80 | 80 | compatible = "zmk,input-listener"; |
81 | 81 | device = <&trackball>; |
82 | 82 |
|
| 83 | + input-processors = <&zip_xy_scaler 1 10>; |
| 84 | + |
83 | 85 | scroller { |
84 | 86 | layers = <3>; |
85 | 87 | input-processors = <&zip_xy_to_scroll_mapper>; |
|
89 | 91 |
|
90 | 92 |
|
91 | 93 | //RGB bus |
92 | | -&pinctrl { |
93 | | - spi3_default: spi3_default { |
94 | | - group1 { |
95 | | - psels = <NRF_PSEL(SPIM_MOSI, 0, 10)>; |
96 | | - }; |
97 | | - }; |
98 | | - |
99 | | - spi3_sleep: spi3_sleep { |
100 | | - group1 { |
101 | | - psels = <NRF_PSEL(SPIM_MOSI, 0, 10)>; |
102 | | - low-power-enable; |
103 | | - }; |
104 | | - }; |
105 | | -}; |
106 | | - |
107 | | -&spi3 { |
108 | | - compatible = "nordic,nrf-spim"; |
109 | | - status = "okay"; |
110 | | - |
111 | | - pinctrl-0 = <&spi3_default>; |
112 | | - pinctrl-1 = <&spi3_sleep>; |
113 | | - pinctrl-names = "default", "sleep"; |
114 | | - |
115 | | - led_strip: ws2812@0 { |
116 | | - compatible = "worldsemi,ws2812-spi"; |
117 | | - |
118 | | - /* SPI */ |
119 | | - reg = <0>; /* ignored, but necessary for SPI bindings */ |
120 | | - spi-max-frequency = <4000000>; |
121 | | - |
122 | | - /* WS2812 */ |
123 | | - chain-length = <27>; /* number of LEDs */ |
124 | | - spi-one-frame = <0x70>; |
125 | | - spi-zero-frame = <0x40>; |
126 | | - color-mapping = <LED_COLOR_ID_GREEN |
127 | | - LED_COLOR_ID_RED |
128 | | - LED_COLOR_ID_BLUE>; |
129 | | - }; |
130 | | -}; |
131 | | - |
| 94 | +//&pinctrl { |
| 95 | +// spi3_default: spi3_default { |
| 96 | +// group1 { |
| 97 | +// psels = <NRF_PSEL(SPIM_MOSI, 0, 10)>; |
| 98 | +// }; |
| 99 | +// }; |
| 100 | +// |
| 101 | +// spi3_sleep: spi3_sleep { |
| 102 | +// group1 { |
| 103 | +// psels = <NRF_PSEL(SPIM_MOSI, 0, 10)>; |
| 104 | +// low-power-enable; |
| 105 | +// }; |
| 106 | +// }; |
| 107 | +//}; |
| 108 | +// |
| 109 | +//&spi3 { |
| 110 | +// compatible = "nordic,nrf-spim"; |
| 111 | +// status = "okay"; |
| 112 | +// |
| 113 | +// pinctrl-0 = <&spi3_default>; |
| 114 | +// pinctrl-1 = <&spi3_sleep>; |
| 115 | +// pinctrl-names = "default", "sleep"; |
| 116 | +// |
| 117 | +// led_strip: ws2812@0 { |
| 118 | +// compatible = "worldsemi,ws2812-spi"; |
| 119 | +// |
| 120 | +// /* SPI */ |
| 121 | +// reg = <0>; /* ignored, but necessary for SPI bindings */ |
| 122 | +// spi-max-frequency = <4000000>; |
| 123 | +// |
| 124 | +// /* WS2812 */ |
| 125 | +// chain-length = <27>; /* number of LEDs */ |
| 126 | +// spi-one-frame = <0x70>; |
| 127 | +// spi-zero-frame = <0x40>; |
| 128 | +// color-mapping = <LED_COLOR_ID_GREEN |
| 129 | +// LED_COLOR_ID_RED |
| 130 | +// LED_COLOR_ID_BLUE>; |
| 131 | +// }; |
| 132 | +//}; |
| 133 | +// |
0 commit comments