summaryrefslogtreecommitdiff
path: root/zephyr/dts/bindings/emul/zephyr,tcs3400-emul.yaml
blob: 8c33331b7a2e9552e7cb72bb6a40a16740878ce9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

description: Zephyr ALS TCS3400 light sensor i2c emulator

compatible: "zephyr,tcs3400-emul"

include: base.yaml

properties:
    device-id:
        type: string
        required: false
        enum:
          - TCS340015_DEVICE_ID
          - TCS340037_DEVICE_ID
        default: TCS340015_DEVICE_ID
        description: Device ID that is set in the register.

    revision:
        type: int
        required: false
        default: 0
        description: Wafer die revision level that is set in the register.

    error-on-ro-write:
        type: boolean
        description:
          Flag indicating if error should be generated when read only register
          is being written.

    error-on-reserved-bit-write:
        type: boolean
        description:
          Flag indicating if error should be generated when reserved bit
          is being written.

    error-on-msb-first-access:
        type: boolean
        description:
          Flag indicating if error should be generated when MSB register of
          accelerometer value is accessed before LSB and shadowing is enabled
          at the same time.