1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Copyright (c) 2023 Rockchip Electronics Co., Ltd. 4 * 5 */ 6 7/ { 8 vcc_mipicsi0: vcc-mipicsi0-regulator { 9 compatible = "regulator-fixed"; 10 gpio = <&gpio4 RK_PB4 GPIO_ACTIVE_HIGH>; 11 pinctrl-names = "default"; 12 pinctrl-0 = <&mipicsi0_pwr>; 13 regulator-name = "vcc_mipicsi0"; 14 enable-active-high; 15 regulator-always-on; 16 regulator-boot-on; 17 }; 18}; 19 20&csi2_dphy0 { 21 status = "okay"; 22 23 ports { 24 #address-cells = <1>; 25 #size-cells = <0>; 26 port@0 { 27 reg = <0>; 28 #address-cells = <1>; 29 #size-cells = <0>; 30 31 mipi_in_ucam0: endpoint@1 { 32 reg = <1>; 33 remote-endpoint = <&n4_out>; 34 data-lanes = <1 2 3 4>; 35 }; 36 }; 37 port@1 { 38 reg = <1>; 39 #address-cells = <1>; 40 #size-cells = <0>; 41 42 csidphy0_out: endpoint@0 { 43 reg = <0>; 44 remote-endpoint = <&mipi0_csi2_input>; 45 }; 46 }; 47 }; 48}; 49 50&i2c4 { 51 status = "okay"; 52 53 jaguar1: jaguar1@30 { 54 compatible = "jaguar1-v4l2"; 55 status = "okay"; 56 reg = <0x30>; 57 clocks = <&cru CLK_CAM0_OUT2IO>; 58 clock-names = "xvclk"; 59 pinctrl-names = "default"; 60 pinctrl-0 = <&camm0_clk0_out>; 61 pd-gpios = <&gpio3 RK_PC0 GPIO_ACTIVE_HIGH>; 62 rst-gpios = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>; 63 rockchip,camera-module-index = <0>; 64 rockchip,camera-module-facing = "back"; 65 rockchip,camera-module-name = "jaguar1"; 66 rockchip,camera-module-lens-name = "jaguar1"; 67 rockchip,default_rect= <1920 1080>; // default resolution 68 port { 69 n4_out: endpoint { 70 remote-endpoint = <&mipi_in_ucam0>; 71 data-lanes = <1 2 3 4>; 72 }; 73 }; 74 }; 75}; 76 77&csi2_dphy0_hw { 78 status = "okay"; 79}; 80 81&mipi0_csi2 { 82 status = "okay"; 83 84 ports { 85 #address-cells = <1>; 86 #size-cells = <0>; 87 88 port@0 { 89 reg = <0>; 90 #address-cells = <1>; 91 #size-cells = <0>; 92 93 mipi0_csi2_input: endpoint@1 { 94 reg = <1>; 95 remote-endpoint = <&csidphy0_out>; 96 }; 97 }; 98 99 port@1 { 100 reg = <1>; 101 #address-cells = <1>; 102 #size-cells = <0>; 103 104 mipi0_csi2_output: endpoint@0 { 105 reg = <0>; 106 remote-endpoint = <&cif_mipi_in0>; 107 }; 108 }; 109 }; 110}; 111 112&rkcif { 113 status = "okay"; 114 rockchip,android-usb-camerahal-enable; 115}; 116 117&rkcif_mipi_lvds { 118 status = "okay"; 119 120 port { 121 cif_mipi_in0: endpoint { 122 remote-endpoint = <&mipi0_csi2_output>; 123 }; 124 }; 125}; 126 127&rkcif_mmu { 128 status = "okay"; 129}; 130 131&pinctrl { 132 cam { 133 mipicsi0_pwr: mipicsi0-pwr { 134 rockchip,pins = 135 /* camera power en */ 136 <4 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>; 137 }; 138 }; 139}; 140 141