Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [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/media/cec/st,stih-cec.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: STMicroelectronics STIH4xx HDMI CEC |
| 8 | |
| 9 | maintainers: |
| 10 | - Alain Volmat <alain.volmat@foss.st.com> |
| 11 | |
| 12 | allOf: |
| 13 | - $ref: cec-common.yaml# |
| 14 | |
| 15 | properties: |
| 16 | compatible: |
| 17 | const: st,stih-cec |
| 18 | |
| 19 | clocks: |
| 20 | maxItems: 1 |
| 21 | |
| 22 | clock-names: |
| 23 | items: |
| 24 | - const: cec-clk |
| 25 | |
| 26 | interrupts: |
| 27 | maxItems: 1 |
| 28 | |
| 29 | interrupt-names: |
| 30 | items: |
| 31 | - const: cec-irq |
| 32 | |
| 33 | resets: |
| 34 | maxItems: 1 |
| 35 | |
| 36 | reg: |
| 37 | maxItems: 1 |
| 38 | |
| 39 | required: |
| 40 | - compatible |
| 41 | - clocks |
| 42 | - hdmi-phandle |
| 43 | - interrupts |
| 44 | - resets |
| 45 | - reg |
| 46 | |
| 47 | unevaluatedProperties: false |
| 48 | |
| 49 | examples: |
| 50 | - | |
| 51 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 52 | #include <dt-bindings/reset/stih407-resets.h> |
| 53 | |
| 54 | cec@94a087c { |
| 55 | compatible = "st,stih-cec"; |
| 56 | reg = <0x94a087c 0x64>; |
| 57 | |
| 58 | clocks = <&clk_sysin>; |
| 59 | clock-names = "cec-clk"; |
| 60 | hdmi-phandle = <&sti_hdmi>; |
| 61 | interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>; |
| 62 | interrupt-names = "cec-irq"; |
| 63 | pinctrl-names = "default"; |
| 64 | pinctrl-0 = <&pinctrl_cec0_default>; |
| 65 | resets = <&softreset STIH407_LPM_SOFTRESET>; |
| 66 | }; |