forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dt-bindings: i2c: Convert imx lpi2c to json-schema
Convert the i.MX LPI2C binding to DT schema format using json-schema Signed-off-by: Anson Huang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Herring <[email protected]>
- Loading branch information
1 parent
67a69da
commit c217cf8
Showing
2 changed files
with
47 additions
and
20 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/i2c/i2c-imx-lpi2c.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Freescale Low Power Inter IC (LPI2C) for i.MX | ||
|
||
maintainers: | ||
- Anson Huang <[email protected]> | ||
|
||
properties: | ||
compatible: | ||
enum: | ||
- fsl,imx7ulp-lpi2c | ||
- fsl,imx8qxp-lpi2c | ||
- fsl,imx8qm-lpi2c | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
interrupts: | ||
maxItems: 1 | ||
|
||
clocks: | ||
maxItems: 1 | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- interrupts | ||
- clocks | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/clock/imx7ulp-clock.h> | ||
#include <dt-bindings/interrupt-controller/arm-gic.h> | ||
lpi2c7@40a50000 { | ||
compatible = "fsl,imx7ulp-lpi2c"; | ||
reg = <0x40A50000 0x10000>; | ||
interrupt-parent = <&intc>; | ||
interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; | ||
clocks = <&clks IMX7ULP_CLK_LPI2C7>; | ||
}; |