1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2c66ec88fSEmmanuel Vadot# Copyright 2019 BayLibre, SAS 3c66ec88fSEmmanuel Vadot%YAML 1.2 4c66ec88fSEmmanuel Vadot--- 5c66ec88fSEmmanuel Vadot$id: "http://devicetree.org/schemas/media/amlogic,meson-gx-ao-cec.yaml#" 6c66ec88fSEmmanuel Vadot$schema: "http://devicetree.org/meta-schemas/core.yaml#" 7c66ec88fSEmmanuel Vadot 8c66ec88fSEmmanuel Vadottitle: Amlogic Meson AO-CEC Controller 9c66ec88fSEmmanuel Vadot 10c66ec88fSEmmanuel Vadotmaintainers: 11*b97ee269SEmmanuel Vadot - Neil Armstrong <neil.armstrong@linaro.org> 12c66ec88fSEmmanuel Vadot 13c66ec88fSEmmanuel Vadotdescription: | 14c66ec88fSEmmanuel Vadot The Amlogic Meson AO-CEC module is present is Amlogic SoCs and its purpose is 15c66ec88fSEmmanuel Vadot to handle communication between HDMI connected devices over the CEC bus. 16c66ec88fSEmmanuel Vadot 17c66ec88fSEmmanuel Vadotproperties: 18c66ec88fSEmmanuel Vadot compatible: 19c66ec88fSEmmanuel Vadot enum: 20c66ec88fSEmmanuel Vadot - amlogic,meson-gx-ao-cec # GXBB, GXL, GXM, G12A and SM1 AO_CEC_A module 21c66ec88fSEmmanuel Vadot - amlogic,meson-g12a-ao-cec # G12A AO_CEC_B module 22c66ec88fSEmmanuel Vadot - amlogic,meson-sm1-ao-cec # SM1 AO_CEC_B module 23c66ec88fSEmmanuel Vadot 24c66ec88fSEmmanuel Vadot reg: 25c66ec88fSEmmanuel Vadot maxItems: 1 26c66ec88fSEmmanuel Vadot 27c66ec88fSEmmanuel Vadot clocks: 28c66ec88fSEmmanuel Vadot maxItems: 1 29c66ec88fSEmmanuel Vadot 30c66ec88fSEmmanuel Vadot clock-names: 31c66ec88fSEmmanuel Vadot maxItems: 1 32c66ec88fSEmmanuel Vadot 33c66ec88fSEmmanuel Vadot interrupts: 34c66ec88fSEmmanuel Vadot maxItems: 1 35c66ec88fSEmmanuel Vadot 36c66ec88fSEmmanuel Vadot hdmi-phandle: 37c66ec88fSEmmanuel Vadot description: phandle to the HDMI controller 38c66ec88fSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/phandle 39c66ec88fSEmmanuel Vadot 40c66ec88fSEmmanuel VadotallOf: 41c66ec88fSEmmanuel Vadot - if: 42c66ec88fSEmmanuel Vadot properties: 43c66ec88fSEmmanuel Vadot compatible: 44c66ec88fSEmmanuel Vadot contains: 45c66ec88fSEmmanuel Vadot enum: 46c66ec88fSEmmanuel Vadot - amlogic,meson-gx-ao-cec 47c66ec88fSEmmanuel Vadot 48c66ec88fSEmmanuel Vadot then: 49c66ec88fSEmmanuel Vadot properties: 50c66ec88fSEmmanuel Vadot clocks: 51c66ec88fSEmmanuel Vadot items: 52c66ec88fSEmmanuel Vadot - description: AO-CEC clock 53c66ec88fSEmmanuel Vadot 54c66ec88fSEmmanuel Vadot clock-names: 55c66ec88fSEmmanuel Vadot items: 56c66ec88fSEmmanuel Vadot - const: core 57c66ec88fSEmmanuel Vadot 58c66ec88fSEmmanuel Vadot - if: 59c66ec88fSEmmanuel Vadot properties: 60c66ec88fSEmmanuel Vadot compatible: 61c66ec88fSEmmanuel Vadot contains: 62c66ec88fSEmmanuel Vadot enum: 63c66ec88fSEmmanuel Vadot - amlogic,meson-g12a-ao-cec 64c66ec88fSEmmanuel Vadot - amlogic,meson-sm1-ao-cec 65c66ec88fSEmmanuel Vadot 66c66ec88fSEmmanuel Vadot then: 67c66ec88fSEmmanuel Vadot properties: 68c66ec88fSEmmanuel Vadot clocks: 69c66ec88fSEmmanuel Vadot items: 70c66ec88fSEmmanuel Vadot - description: AO-CEC clock generator source 71c66ec88fSEmmanuel Vadot 72c66ec88fSEmmanuel Vadot clock-names: 73c66ec88fSEmmanuel Vadot items: 74c66ec88fSEmmanuel Vadot - const: oscin 75c66ec88fSEmmanuel Vadot 76c66ec88fSEmmanuel Vadotrequired: 77c66ec88fSEmmanuel Vadot - compatible 78c66ec88fSEmmanuel Vadot - reg 79c66ec88fSEmmanuel Vadot - interrupts 80c66ec88fSEmmanuel Vadot - hdmi-phandle 81c66ec88fSEmmanuel Vadot - clocks 82c66ec88fSEmmanuel Vadot - clock-names 83c66ec88fSEmmanuel Vadot 84c66ec88fSEmmanuel VadotadditionalProperties: false 85c66ec88fSEmmanuel Vadot 86c66ec88fSEmmanuel Vadotexamples: 87c66ec88fSEmmanuel Vadot - | 88c66ec88fSEmmanuel Vadot cec_AO: cec@100 { 89c66ec88fSEmmanuel Vadot compatible = "amlogic,meson-gx-ao-cec"; 90c66ec88fSEmmanuel Vadot reg = <0x00100 0x14>; 91c66ec88fSEmmanuel Vadot interrupts = <199>; 92c66ec88fSEmmanuel Vadot clocks = <&clkc_cec>; 93c66ec88fSEmmanuel Vadot clock-names = "core"; 94c66ec88fSEmmanuel Vadot hdmi-phandle = <&hdmi_tx>; 95c66ec88fSEmmanuel Vadot }; 96