Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / examples / lighting-app / nrfconnect / boards / nrf52840dk_nrf52840.overlay
1 /*
2  *    Copyright (c) 2021 Project CHIP Authors
3  *
4  *    Licensed under the Apache License, Version 2.0 (the "License");
5  *    you may not use this file except in compliance with the License.
6  *    You may obtain a copy of the License at
7  *
8  *        http://www.apache.org/licenses/LICENSE-2.0
9  *
10  *    Unless required by applicable law or agreed to in writing, software
11  *    distributed under the License is distributed on an "AS IS" BASIS,
12  *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  *    See the License for the specific language governing permissions and
14  *    limitations under the License.
15  */
16
17 / {
18
19         /*
20         * In some default configurations within the nRF Connect SDK,
21         * e.g. on nRF52840, the chosen zephyr,entropy node is &cryptocell.
22         * This devicetree overlay ensures that default is overridden wherever it
23         * is set, as this application uses the RNG node for entropy exclusively.
24         */
25
26         chosen {
27                 zephyr,entropy = &rng;
28         };
29
30         /*
31         * By default, PWM module is only configured for led0 (LED1 on the board).
32         * The lighting-app, however, uses LED2 to show the state of the lighting,
33         * including its brightness level.
34         */
35         aliases {
36                 pwm-led1 = &pwm_led1;
37         };
38
39         pwmleds {
40                 pwm_led1: pwm_led_1 {
41                         pwms = < &pwm0 0xe >;
42                 };
43         };
44
45 };
46
47 &pwm0 {
48         ch1-pin = < 0xe >;
49         ch1-inverted;
50 };