Tom Rini | 6b642ac | 2024-10-01 12:20:28 -0600 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/i2c/nxp,lpc1788-i2c.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: NXP I2C controller for LPC2xxx/178x/18xx/43xx |
| 8 | |
| 9 | maintainers: |
| 10 | - Vladimir Zapolskiy <vz@mleia.com> |
| 11 | |
| 12 | allOf: |
| 13 | - $ref: /schemas/i2c/i2c-controller.yaml# |
| 14 | |
| 15 | properties: |
| 16 | compatible: |
| 17 | const: nxp,lpc1788-i2c |
| 18 | |
| 19 | reg: |
| 20 | maxItems: 1 |
| 21 | |
| 22 | interrupts: |
| 23 | maxItems: 1 |
| 24 | |
| 25 | clocks: |
| 26 | maxItems: 1 |
| 27 | |
| 28 | clock-frequency: |
| 29 | description: the desired I2C bus clock frequency in Hz |
| 30 | default: 100000 |
| 31 | |
| 32 | resets: |
| 33 | maxItems: 1 |
| 34 | |
| 35 | required: |
| 36 | - compatible |
| 37 | - reg |
| 38 | - interrupts |
| 39 | - clocks |
| 40 | |
| 41 | unevaluatedProperties: false |
| 42 | |
| 43 | examples: |
| 44 | - | |
| 45 | #include "dt-bindings/clock/lpc18xx-ccu.h" |
| 46 | |
| 47 | i2c@400a1000 { |
| 48 | compatible = "nxp,lpc1788-i2c"; |
| 49 | reg = <0x400a1000 0x1000>; |
| 50 | interrupts = <18>; |
| 51 | clocks = <&ccu1 CLK_APB1_I2C0>; |
| 52 | #address-cells = <1>; |
| 53 | #size-cells = <0>; |
| 54 | }; |