18c2ecf20Sopenharmony_ciSamsung S5C73M3 8Mp camera ISP 28c2ecf20Sopenharmony_ci------------------------------ 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ciThe S5C73M3 camera ISP supports MIPI CSI-2 and parallel (ITU-R BT.656) video 58c2ecf20Sopenharmony_cidata busses. The I2C bus is the main control bus and additionally the SPI bus 68c2ecf20Sopenharmony_ciis used, mostly for transferring the firmware to and from the device. Two 78c2ecf20Sopenharmony_cislave device nodes corresponding to these control bus interfaces are required 88c2ecf20Sopenharmony_ciand should be placed under respective bus controller nodes. 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ciI2C slave device node 118c2ecf20Sopenharmony_ci--------------------- 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ciRequired properties: 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci- compatible : "samsung,s5c73m3"; 168c2ecf20Sopenharmony_ci- reg : I2C slave address of the sensor; 178c2ecf20Sopenharmony_ci- vdd-int-supply : digital power supply (1.2V); 188c2ecf20Sopenharmony_ci- vdda-supply : analog power supply (1.2V); 198c2ecf20Sopenharmony_ci- vdd-reg-supply : regulator input power supply (2.8V); 208c2ecf20Sopenharmony_ci- vddio-host-supply : host I/O power supply (1.8V to 2.8V); 218c2ecf20Sopenharmony_ci- vddio-cis-supply : CIS I/O power supply (1.2V to 1.8V); 228c2ecf20Sopenharmony_ci- vdd-af-supply : lens power supply (2.8V); 238c2ecf20Sopenharmony_ci- xshutdown-gpios : specifier of GPIO connected to the XSHUTDOWN pin; 248c2ecf20Sopenharmony_ci- standby-gpios : specifier of GPIO connected to the STANDBY pin; 258c2ecf20Sopenharmony_ci- clocks : should contain list of phandle and clock specifier pairs 268c2ecf20Sopenharmony_ci according to common clock bindings for the clocks described 278c2ecf20Sopenharmony_ci in the clock-names property; 288c2ecf20Sopenharmony_ci- clock-names : should contain "cis_extclk" entry for the CIS_EXTCLK clock; 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ciOptional properties: 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_ci- clock-frequency : the frequency at which the "cis_extclk" clock should be 338c2ecf20Sopenharmony_ci configured to operate, in Hz; if this property is not 348c2ecf20Sopenharmony_ci specified default 24 MHz value will be used. 358c2ecf20Sopenharmony_ci 368c2ecf20Sopenharmony_ciThe common video interfaces bindings (see video-interfaces.txt) should be used 378c2ecf20Sopenharmony_cito specify link from the S5C73M3 to an external image data receiver. The S5C73M3 388c2ecf20Sopenharmony_cidevice node should contain one 'port' child node with an 'endpoint' subnode for 398c2ecf20Sopenharmony_cithis purpose. The data link from a raw image sensor to the S5C73M3 can be 408c2ecf20Sopenharmony_cisimilarly specified, but it is optional since the S5C73M3 ISP and a raw image 418c2ecf20Sopenharmony_cisensor are usually inseparable and form a hybrid module. 428c2ecf20Sopenharmony_ci 438c2ecf20Sopenharmony_ciFollowing properties are valid for the endpoint node(s): 448c2ecf20Sopenharmony_ci 458c2ecf20Sopenharmony_ciendpoint subnode 468c2ecf20Sopenharmony_ci---------------- 478c2ecf20Sopenharmony_ci 488c2ecf20Sopenharmony_ci- data-lanes : (optional) specifies MIPI CSI-2 data lanes as covered in 498c2ecf20Sopenharmony_ci video-interfaces.txt. This sensor doesn't support data lane remapping 508c2ecf20Sopenharmony_ci and physical lane indexes in subsequent elements of the array should 518c2ecf20Sopenharmony_ci be only consecutive ascending values. 528c2ecf20Sopenharmony_ci 538c2ecf20Sopenharmony_ciSPI device node 548c2ecf20Sopenharmony_ci--------------- 558c2ecf20Sopenharmony_ci 568c2ecf20Sopenharmony_ciRequired properties: 578c2ecf20Sopenharmony_ci 588c2ecf20Sopenharmony_ci- compatible : "samsung,s5c73m3"; 598c2ecf20Sopenharmony_ci 608c2ecf20Sopenharmony_ciFor more details see description of the SPI busses bindings 618c2ecf20Sopenharmony_ci(../spi/spi-bus.txt) and bindings of a specific bus controller. 628c2ecf20Sopenharmony_ci 638c2ecf20Sopenharmony_ciExample: 648c2ecf20Sopenharmony_ci 658c2ecf20Sopenharmony_cii2c@138a000000 { 668c2ecf20Sopenharmony_ci ... 678c2ecf20Sopenharmony_ci s5c73m3@3c { 688c2ecf20Sopenharmony_ci compatible = "samsung,s5c73m3"; 698c2ecf20Sopenharmony_ci reg = <0x3c>; 708c2ecf20Sopenharmony_ci vdd-int-supply = <&buck9_reg>; 718c2ecf20Sopenharmony_ci vdda-supply = <&ldo17_reg>; 728c2ecf20Sopenharmony_ci vdd-reg-supply = <&cam_io_reg>; 738c2ecf20Sopenharmony_ci vddio-host-supply = <&ldo18_reg>; 748c2ecf20Sopenharmony_ci vddio-cis-supply = <&ldo9_reg>; 758c2ecf20Sopenharmony_ci vdd-af-supply = <&cam_af_reg>; 768c2ecf20Sopenharmony_ci clock-frequency = <24000000>; 778c2ecf20Sopenharmony_ci clocks = <&clk 0>; 788c2ecf20Sopenharmony_ci clock-names = "cis_extclk"; 798c2ecf20Sopenharmony_ci reset-gpios = <&gpf1 3 1>; 808c2ecf20Sopenharmony_ci standby-gpios = <&gpm0 1 1>; 818c2ecf20Sopenharmony_ci port { 828c2ecf20Sopenharmony_ci s5c73m3_ep: endpoint { 838c2ecf20Sopenharmony_ci remote-endpoint = <&csis0_ep>; 848c2ecf20Sopenharmony_ci data-lanes = <1 2 3 4>; 858c2ecf20Sopenharmony_ci }; 868c2ecf20Sopenharmony_ci }; 878c2ecf20Sopenharmony_ci }; 888c2ecf20Sopenharmony_ci}; 898c2ecf20Sopenharmony_ci 908c2ecf20Sopenharmony_cispi@1392000 { 918c2ecf20Sopenharmony_ci ... 928c2ecf20Sopenharmony_ci s5c73m3_spi: s5c73m3@0 { 938c2ecf20Sopenharmony_ci compatible = "samsung,s5c73m3"; 948c2ecf20Sopenharmony_ci reg = <0>; 958c2ecf20Sopenharmony_ci ... 968c2ecf20Sopenharmony_ci }; 978c2ecf20Sopenharmony_ci}; 98