| 1 |
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/board/fsl,fpga-qixis-i2c.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: Freescale on-board FPGA connected on I2C bus |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Frank Li <[email protected]> |
| 11 |
|
| 12 |
properties: |
| 13 |
compatible: |
| 14 |
oneOf: |
| 15 |
- items: |
| 16 |
- enum: |
| 17 |
- fsl,bsc9132qds-fpga |
| 18 |
- const: fsl,fpga-qixis-i2c |
| 19 |
- items: |
| 20 |
- enum: |
| 21 |
- fsl,ls1028aqds-fpga |
| 22 |
- fsl,lx2160aqds-fpga |
| 23 |
- const: fsl,fpga-qixis-i2c |
| 24 |
- const: simple-mfd |
| 25 |
- const: fsl,lx2160ardb-fpga |
| 26 |
|
| 27 |
"#address-cells": |
| 28 |
const: 1 |
| 29 |
|
| 30 |
"#size-cells": |
| 31 |
const: 0 |
| 32 |
|
| 33 |
interrupts: |
| 34 |
maxItems: 1 |
| 35 |
|
| 36 |
reg: |
| 37 |
maxItems: 1 |
| 38 |
|
| 39 |
mux-controller: |
| 40 |
$ref: /schemas/mux/reg-mux.yaml |
| 41 |
|
| 42 |
patternProperties: |
| 43 |
"^gpio@[0-9a-f]+$": |
| 44 |
type: object |
| 45 |
additionalProperties: true |
| 46 |
|
| 47 |
properties: |
| 48 |
compatible: |
| 49 |
contains: |
| 50 |
enum: |
| 51 |
- fsl,lx2160ardb-fpga-gpio-sfp |
| 52 |
|
| 53 |
required: |
| 54 |
- compatible |
| 55 |
- reg |
| 56 |
|
| 57 |
allOf: |
| 58 |
- if: |
| 59 |
properties: |
| 60 |
compatible: |
| 61 |
contains: |
| 62 |
enum: |
| 63 |
- fsl,lx2160ardb-fpga |
| 64 |
then: |
| 65 |
required: |
| 66 |
- "#address-cells" |
| 67 |
- "#size-cells" |
| 68 |
else: |
| 69 |
properties: |
| 70 |
"#address-cells": false |
| 71 |
"#size-cells": false |
| 72 |
|
| 73 |
additionalProperties: false |
| 74 |
|
| 75 |
examples: |
| 76 |
- | |
| 77 |
i2c { |
| 78 |
#address-cells = <1>; |
| 79 |
#size-cells = <0>; |
| 80 |
|
| 81 |
board-control@66 { |
| 82 |
compatible = "fsl,bsc9132qds-fpga", "fsl,fpga-qixis-i2c"; |
| 83 |
reg = <0x66>; |
| 84 |
}; |
| 85 |
}; |
| 86 |
|
| 87 |
- | |
| 88 |
i2c { |
| 89 |
#address-cells = <1>; |
| 90 |
#size-cells = <0>; |
| 91 |
|
| 92 |
board-control@66 { |
| 93 |
compatible = "fsl,ls1028aqds-fpga", "fsl,fpga-qixis-i2c", |
| 94 |
"simple-mfd"; |
| 95 |
reg = <0x66>; |
| 96 |
|
| 97 |
mux-controller { |
| 98 |
compatible = "reg-mux"; |
| 99 |
#mux-control-cells = <1>; |
| 100 |
mux-reg-masks = <0x54 0xf0>; /* 0: reg 0x54, bits 7:4 */ |
| 101 |
}; |
| 102 |
}; |
| 103 |
}; |
| 104 |
|
| 105 |
- | |
| 106 |
i2c { |
| 107 |
#address-cells = <1>; |
| 108 |
#size-cells = <0>; |
| 109 |
|
| 110 |
board-control@66 { |
| 111 |
compatible = "fsl,lx2160ardb-fpga"; |
| 112 |
reg = <0x66>; |
| 113 |
#address-cells = <1>; |
| 114 |
#size-cells = <0>; |
| 115 |
|
| 116 |
gpio@19 { |
| 117 |
compatible = "fsl,lx2160ardb-fpga-gpio-sfp"; |
| 118 |
reg = <0x19>; |
| 119 |
gpio-controller; |
| 120 |
#gpio-cells = <2>; |
| 121 |
gpio-line-names = |
| 122 |
"SFP2_TX_EN", "", |
| 123 |
"", "", |
| 124 |
"SFP2_RX_LOS", "SFP2_TX_FAULT", |
| 125 |
"", "SFP2_MOD_ABS"; |
| 126 |
}; |
| 127 |
}; |
| 128 |
}; |