1*ae5de77eSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*ae5de77eSEmmanuel Vadot%YAML 1.2 3*ae5de77eSEmmanuel Vadot--- 4*ae5de77eSEmmanuel Vadot$id: http://devicetree.org/schemas/media/amlogic,c3-mipi-adapter.yaml# 5*ae5de77eSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*ae5de77eSEmmanuel Vadot 7*ae5de77eSEmmanuel Vadottitle: Amlogic C3 MIPI adapter receiver 8*ae5de77eSEmmanuel Vadot 9*ae5de77eSEmmanuel Vadotmaintainers: 10*ae5de77eSEmmanuel Vadot - Keke Li <keke.li@amlogic.com> 11*ae5de77eSEmmanuel Vadot 12*ae5de77eSEmmanuel Vadotdescription: 13*ae5de77eSEmmanuel Vadot MIPI adapter is used to convert the MIPI CSI-2 data 14*ae5de77eSEmmanuel Vadot into an ISP supported data format. 15*ae5de77eSEmmanuel Vadot 16*ae5de77eSEmmanuel Vadotproperties: 17*ae5de77eSEmmanuel Vadot compatible: 18*ae5de77eSEmmanuel Vadot enum: 19*ae5de77eSEmmanuel Vadot - amlogic,c3-mipi-adapter 20*ae5de77eSEmmanuel Vadot 21*ae5de77eSEmmanuel Vadot reg: 22*ae5de77eSEmmanuel Vadot maxItems: 3 23*ae5de77eSEmmanuel Vadot 24*ae5de77eSEmmanuel Vadot reg-names: 25*ae5de77eSEmmanuel Vadot items: 26*ae5de77eSEmmanuel Vadot - const: top 27*ae5de77eSEmmanuel Vadot - const: fd 28*ae5de77eSEmmanuel Vadot - const: rd 29*ae5de77eSEmmanuel Vadot 30*ae5de77eSEmmanuel Vadot power-domains: 31*ae5de77eSEmmanuel Vadot maxItems: 1 32*ae5de77eSEmmanuel Vadot 33*ae5de77eSEmmanuel Vadot clocks: 34*ae5de77eSEmmanuel Vadot maxItems: 2 35*ae5de77eSEmmanuel Vadot 36*ae5de77eSEmmanuel Vadot clock-names: 37*ae5de77eSEmmanuel Vadot items: 38*ae5de77eSEmmanuel Vadot - const: vapb 39*ae5de77eSEmmanuel Vadot - const: isp0 40*ae5de77eSEmmanuel Vadot 41*ae5de77eSEmmanuel Vadot ports: 42*ae5de77eSEmmanuel Vadot $ref: /schemas/graph.yaml#/properties/ports 43*ae5de77eSEmmanuel Vadot 44*ae5de77eSEmmanuel Vadot properties: 45*ae5de77eSEmmanuel Vadot port@0: 46*ae5de77eSEmmanuel Vadot $ref: /schemas/graph.yaml#/properties/port 47*ae5de77eSEmmanuel Vadot description: input port node. 48*ae5de77eSEmmanuel Vadot 49*ae5de77eSEmmanuel Vadot port@1: 50*ae5de77eSEmmanuel Vadot $ref: /schemas/graph.yaml#/properties/port 51*ae5de77eSEmmanuel Vadot description: output port node. 52*ae5de77eSEmmanuel Vadot 53*ae5de77eSEmmanuel Vadot required: 54*ae5de77eSEmmanuel Vadot - port@0 55*ae5de77eSEmmanuel Vadot - port@1 56*ae5de77eSEmmanuel Vadot 57*ae5de77eSEmmanuel Vadotrequired: 58*ae5de77eSEmmanuel Vadot - compatible 59*ae5de77eSEmmanuel Vadot - reg 60*ae5de77eSEmmanuel Vadot - reg-names 61*ae5de77eSEmmanuel Vadot - power-domains 62*ae5de77eSEmmanuel Vadot - clocks 63*ae5de77eSEmmanuel Vadot - clock-names 64*ae5de77eSEmmanuel Vadot - ports 65*ae5de77eSEmmanuel Vadot 66*ae5de77eSEmmanuel VadotadditionalProperties: false 67*ae5de77eSEmmanuel Vadot 68*ae5de77eSEmmanuel Vadotexamples: 69*ae5de77eSEmmanuel Vadot - | 70*ae5de77eSEmmanuel Vadot #include <dt-bindings/clock/amlogic,c3-peripherals-clkc.h> 71*ae5de77eSEmmanuel Vadot #include <dt-bindings/power/amlogic,c3-pwrc.h> 72*ae5de77eSEmmanuel Vadot 73*ae5de77eSEmmanuel Vadot soc { 74*ae5de77eSEmmanuel Vadot #address-cells = <2>; 75*ae5de77eSEmmanuel Vadot #size-cells = <2>; 76*ae5de77eSEmmanuel Vadot 77*ae5de77eSEmmanuel Vadot adap: adap@ff010000 { 78*ae5de77eSEmmanuel Vadot compatible = "amlogic,c3-mipi-adapter"; 79*ae5de77eSEmmanuel Vadot reg = <0x0 0xff010000 0x0 0x100>, 80*ae5de77eSEmmanuel Vadot <0x0 0xff01b000 0x0 0x100>, 81*ae5de77eSEmmanuel Vadot <0x0 0xff01d000 0x0 0x200>; 82*ae5de77eSEmmanuel Vadot reg-names = "top", "fd", "rd"; 83*ae5de77eSEmmanuel Vadot power-domains = <&pwrc PWRC_C3_ISP_TOP_ID>; 84*ae5de77eSEmmanuel Vadot clocks = <&clkc_periphs CLKID_VAPB>, 85*ae5de77eSEmmanuel Vadot <&clkc_periphs CLKID_ISP0>; 86*ae5de77eSEmmanuel Vadot clock-names = "vapb", "isp0"; 87*ae5de77eSEmmanuel Vadot assigned-clocks = <&clkc_periphs CLKID_VAPB>, 88*ae5de77eSEmmanuel Vadot <&clkc_periphs CLKID_ISP0>; 89*ae5de77eSEmmanuel Vadot assigned-clock-rates = <0>, <400000000>; 90*ae5de77eSEmmanuel Vadot 91*ae5de77eSEmmanuel Vadot ports { 92*ae5de77eSEmmanuel Vadot #address-cells = <1>; 93*ae5de77eSEmmanuel Vadot #size-cells = <0>; 94*ae5de77eSEmmanuel Vadot 95*ae5de77eSEmmanuel Vadot port@0 { 96*ae5de77eSEmmanuel Vadot reg = <0>; 97*ae5de77eSEmmanuel Vadot c3_adap_in: endpoint { 98*ae5de77eSEmmanuel Vadot remote-endpoint = <&c3_mipi_csi_out>; 99*ae5de77eSEmmanuel Vadot }; 100*ae5de77eSEmmanuel Vadot }; 101*ae5de77eSEmmanuel Vadot 102*ae5de77eSEmmanuel Vadot port@1 { 103*ae5de77eSEmmanuel Vadot reg = <1>; 104*ae5de77eSEmmanuel Vadot c3_adap_out: endpoint { 105*ae5de77eSEmmanuel Vadot remote-endpoint = <&c3_isp_in>; 106*ae5de77eSEmmanuel Vadot }; 107*ae5de77eSEmmanuel Vadot }; 108*ae5de77eSEmmanuel Vadot }; 109*ae5de77eSEmmanuel Vadot }; 110*ae5de77eSEmmanuel Vadot }; 111*ae5de77eSEmmanuel Vadot... 112