| // SPDX-License-Identifier: GPL-2.0 |
| /** |
| * Toshiba TC358867 expansion board for AM654-EVM. |
| * |
| * Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com/ |
| */ |
| |
| /dts-v1/; |
| /plugin/; |
| |
| #include <dt-bindings/gpio/gpio.h> |
| #include <dt-bindings/media/ds90ub9xx.h> |
| |
| / { |
| fragment@101 { |
| target-path = "/"; |
| |
| __overlay__ { |
| clk_cam_module_48M_fixed: fixed-clock-1-48M { |
| compatible = "fixed-clock"; |
| #clock-cells = <0>; |
| clock-frequency = <48000000>; |
| }; |
| |
| clk_cam_24M: fixed-clock-1-24M { |
| compatible = "fixed-factor-clock"; |
| clocks = <&clk_cam_module_48M_fixed>; |
| #clock-cells = <0>; |
| clock-div = <2>; |
| clock-mult = <1>; |
| }; |
| }; |
| }; |
| }; |
| |
| &ds90ub960_ports { |
| #address-cells = <1>; |
| #size-cells = <0>; |
| |
| /* FPDLink RX 1 */ |
| port@1 { |
| reg = <1>; |
| ds90ub960_fpd3_in: endpoint { |
| remote-endpoint = <&ub913_out>; |
| |
| serializer: remote-chip { |
| compatible = "ti,ds90ub913a-q1"; |
| |
| gpio-functions = <DS90_GPIO_FUNC_OUTPUT |
| DS90_GPIO_FUNC_OUTPUT |
| DS90_GPIO_FUNC_UNUSED |
| DS90_GPIO_FUNC_UNUSED>; |
| |
| gpio-controller; |
| #gpio-cells = <2>; |
| |
| ports { |
| #address-cells = <1>; |
| #size-cells = <0>; |
| |
| port@0 { |
| reg = <0>; |
| ub913_in: endpoint@0 { |
| remote-endpoint = <&sensor_out>; |
| }; |
| }; |
| |
| port@1 { |
| reg = <1>; |
| |
| ub913_out: endpoint@0 { |
| remote-endpoint = <&ds90ub960_fpd3_in>; |
| }; |
| }; |
| }; |
| }; |
| }; |
| }; |
| }; |
| |
| &ds90ub960_atr { |
| #address-cells = <1>; |
| #size-cells = <0>; |
| |
| i2c@1 { |
| reg = <1>; |
| #address-cells = <1>; |
| #size-cells = <0>; |
| |
| sensor@30 { |
| compatible = "ovti,ov10635"; |
| reg = <0x30>; |
| |
| clocks = <&clk_cam_24M>; |
| clock-names = "xvclk"; |
| |
| /* powerdown-gpios = <GPO0 from ser>; */ |
| /* framesync-gpios = <GPO1 from ser>; */ |
| |
| powerdown-gpios = <&serializer 0 GPIO_ACTIVE_HIGH>; |
| |
| /* Note: PCLK must be 96MHz */ |
| |
| #address-cells = <1>; |
| #size-cells = <0>; |
| |
| port@0 { |
| reg = <0>; |
| sensor_out: endpoint { |
| remote-endpoint = <&ub913_in>; |
| hsync-active = <1>; |
| vsync-active = <1>; |
| pclk-sample = <0>; |
| bus-width = <10>; |
| }; |
| }; |
| }; |
| }; |
| }; |