1 # SPDX-License-Identifier: (GPL-2.0-only OR BS 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/display/bri 4 $id: http://devicetree.org/schemas/display/bridge/sil,sii9022.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: Silicon Image sii902x HDMI bridge 7 title: Silicon Image sii902x HDMI bridge 8 8 9 maintainers: 9 maintainers: 10 - Boris Brezillon <bbrezillon@kernel.org> 10 - Boris Brezillon <bbrezillon@kernel.org> 11 11 12 properties: 12 properties: 13 compatible: 13 compatible: 14 oneOf: 14 oneOf: 15 - items: 15 - items: 16 - enum: 16 - enum: 17 - sil,sii9022-cpi # CEC Programm 17 - sil,sii9022-cpi # CEC Programming Interface 18 - sil,sii9022-tpi # Transmitter 18 - sil,sii9022-tpi # Transmitter Programming Interface 19 - const: sil,sii9022 19 - const: sil,sii9022 20 - const: sil,sii9022 20 - const: sil,sii9022 21 21 22 reg: 22 reg: 23 maxItems: 1 23 maxItems: 1 24 24 25 interrupts: 25 interrupts: 26 maxItems: 1 26 maxItems: 1 27 description: Interrupt line used to inform 27 description: Interrupt line used to inform the host about hotplug events. 28 28 29 reset-gpios: 29 reset-gpios: 30 maxItems: 1 30 maxItems: 1 31 31 32 iovcc-supply: 32 iovcc-supply: 33 description: I/O Supply Voltage (1.8V or 3 33 description: I/O Supply Voltage (1.8V or 3.3V) 34 34 35 cvcc12-supply: 35 cvcc12-supply: 36 description: Digital Core Supply Voltage ( 36 description: Digital Core Supply Voltage (1.2V) 37 37 38 '#sound-dai-cells': 38 '#sound-dai-cells': 39 enum: [ 0, 1 ] 39 enum: [ 0, 1 ] 40 description: | 40 description: | 41 <0> if only I2S or S/PDIF pin is wired, 41 <0> if only I2S or S/PDIF pin is wired, 42 <1> if both are wired. 42 <1> if both are wired. 43 HDMI audio is configured only if this pr 43 HDMI audio is configured only if this property is found. 44 If HDMI audio is configured, the sii902x 44 If HDMI audio is configured, the sii902x device becomes an I2S and/or 45 S/PDIF audio codec component (e.g. a dig 45 S/PDIF audio codec component (e.g. a digital audio sink), that can be 46 used in configuring full audio devices w 46 used in configuring full audio devices with simple-card or 47 audio-graph-card bindings. See their bin 47 audio-graph-card bindings. See their binding documents on how to describe 48 the way the 48 the way the 49 sii902x device is connected to the rest 49 sii902x device is connected to the rest of the audio system: 50 Documentation/devicetree/bindings/sound/ 50 Documentation/devicetree/bindings/sound/simple-card.yaml 51 Documentation/devicetree/bindings/sound/ 51 Documentation/devicetree/bindings/sound/audio-graph-card.yaml 52 Note: In case of the audio-graph-card bi 52 Note: In case of the audio-graph-card binding the used port index should 53 be 3. 53 be 3. 54 54 55 sil,i2s-data-lanes: 55 sil,i2s-data-lanes: 56 $ref: /schemas/types.yaml#/definitions/uin 56 $ref: /schemas/types.yaml#/definitions/uint32-array 57 minItems: 1 57 minItems: 1 58 maxItems: 4 58 maxItems: 4 59 uniqueItems: true 59 uniqueItems: true 60 items: 60 items: 61 enum: [ 0, 1, 2, 3 ] 61 enum: [ 0, 1, 2, 3 ] 62 description: 62 description: 63 Each integer indicates which I2S pin is 63 Each integer indicates which I2S pin is connected to which audio FIFO. 64 The first integer selects the I2S audio 64 The first integer selects the I2S audio pin for the first audio FIFO#0 65 (HDMI channels 1&2), the second for FIFO 65 (HDMI channels 1&2), the second for FIFO#1 (HDMI channels 3&4), and so 66 on. There are 4 FIFOs and 4 I2S pins (SD 66 on. There are 4 FIFOs and 4 I2S pins (SD0 - SD3). Any I2S pin can be 67 connected to any FIFO, but there can be 67 connected to any FIFO, but there can be no gaps. E.g. an I2S pin must be 68 mapped to FIFO#0 and FIFO#1 before mappi 68 mapped to FIFO#0 and FIFO#1 before mapping a channel to FIFO#2. The 69 default value is <0>, describing SD0 pin 69 default value is <0>, describing SD0 pin being routed to HDMI audio 70 FIFO#0. 70 FIFO#0. 71 71 72 clocks: 72 clocks: 73 maxItems: 1 73 maxItems: 1 74 description: MCLK input. MCLK can be used 74 description: MCLK input. MCLK can be used to produce HDMI audio CTS values. 75 75 76 clock-names: 76 clock-names: 77 const: mclk 77 const: mclk 78 78 79 ports: 79 ports: 80 $ref: /schemas/graph.yaml#/properties/port 80 $ref: /schemas/graph.yaml#/properties/ports 81 81 82 properties: 82 properties: 83 port@0: 83 port@0: 84 $ref: /schemas/graph.yaml#/properties/ 84 $ref: /schemas/graph.yaml#/properties/port 85 description: Parallel RGB input port 85 description: Parallel RGB input port 86 86 87 port@1: 87 port@1: 88 $ref: /schemas/graph.yaml#/properties/ 88 $ref: /schemas/graph.yaml#/properties/port 89 description: HDMI output port 89 description: HDMI output port 90 90 91 port@3: 91 port@3: 92 $ref: /schemas/graph.yaml#/properties/ 92 $ref: /schemas/graph.yaml#/properties/port 93 description: Sound input port 93 description: Sound input port 94 94 95 required: 95 required: 96 - compatible 96 - compatible 97 - reg 97 - reg 98 98 99 additionalProperties: false 99 additionalProperties: false 100 100 101 examples: 101 examples: 102 - | 102 - | 103 i2c { 103 i2c { 104 #address-cells = <1>; 104 #address-cells = <1>; 105 #size-cells = <0>; 105 #size-cells = <0>; 106 106 107 hdmi-bridge@39 { 107 hdmi-bridge@39 { 108 compatible = "sil,sii9022"; 108 compatible = "sil,sii9022"; 109 reg = <0x39>; 109 reg = <0x39>; 110 reset-gpios = <&pioA 1 0>; 110 reset-gpios = <&pioA 1 0>; 111 iovcc-supply = <&v3v3_hdmi>; 111 iovcc-supply = <&v3v3_hdmi>; 112 cvcc12-supply = <&v1v2_hdmi>; 112 cvcc12-supply = <&v1v2_hdmi>; 113 113 114 #sound-dai-cells = <0>; 114 #sound-dai-cells = <0>; 115 sil,i2s-data-lanes = < 0 1 2 >; 115 sil,i2s-data-lanes = < 0 1 2 >; 116 clocks = <&mclk>; 116 clocks = <&mclk>; 117 clock-names = "mclk"; 117 clock-names = "mclk"; 118 118 119 ports { 119 ports { 120 #address-cells = <1>; 120 #address-cells = <1>; 121 #size-cells = <0>; 121 #size-cells = <0>; 122 122 123 port@0 { 123 port@0 { 124 reg = <0>; 124 reg = <0>; 125 bridge_in: endpoint { 125 bridge_in: endpoint { 126 remote-endpoint = <&dc 126 remote-endpoint = <&dc_out>; 127 }; 127 }; 128 }; 128 }; 129 }; 129 }; 130 }; 130 }; 131 }; 131 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.