Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /dts-v1/;
- /plugin/;
- #include <dt-bindings/gpio/gpio.h>
- #include <dt-bindings/pinctrl/rockchip.h>
- / {
- compatible = "rockchip,rk3399";
- fragment@0 {
- target = <&isp0_mmu>;
- __overlay__ {
- status = "okay";
- };
- };
- fragment@1 {
- target = <&mipi_dphy_rx0>;
- __overlay__ {
- status = "okay";
- };
- };
- fragment@2 {
- target = <&isp0>;
- __overlay__ {
- status = "okay";
- ports {
- port@0 {
- #address-cells = <1>;
- #size-cells = <0>;
- mipi_in_wcam: endpoint@0 {
- reg = <0>;
- remote-endpoint = <&wcam_out>;
- data-lanes = <1 2 3 4>;
- };
- };
- };
- };
- };
- fragment@3 {
- target = <&sdio0>;
- __overlay__ {
- status = "disabled";
- };
- };
- fragment@4 {
- target = <&i2c1>;
- __overlay__ {
- // https://github.com/friendlyarm/kernel-rockchip/blob/nanopi-r2-v5.15.y/arch/arm64/boot/dts/rockchip/rk3399-gru-scarlet.dtsi
- status = "okay";
- // 24M mclk is shared between world and user cameras
- pinctrl-0 = <&i2c1_xfer &test_clkout1>; // THIS CAUSES AN ERROR IF SDIO0 is not disabled;
- #address-cells = <1>;
- #size-cells = <0>;
- clock-frequency = <100000>;
- wcam: imx214@0c {
- compatible = "sony,imx214";
- reg = <0x0c>;
- vdddo-supply = <&vcc1v8_mipi>;
- vddd-supply = <&vcc1v2_mipi_dvdd>;
- vdda-supply = <&vcc2v8_mipi>;
- enable-gpios = <&gpio2 RK_PB4 GPIO_ACTIVE_HIGH>; // GPIO2_B4
- clocks = <&cru 169>;
- clock-names = "xvclk";
- port {
- wcam_out: endpoint {
- data-lanes = <1 2 3 4>;
- link-frequencies = /bits/ 64 <480000000>;
- remote-endpoint = <&mipi_in_wcam>;
- };
- };
- };
- };
- };
- fragment@5 {
- target = <&pinctrl>;
- __overlay__ {
- dvp {
- dvp_pwr_en: dvp-pwr-en {
- rockchip,pins = <1 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>;
- };
- };
- };
- };
- fragment@6 {
- target-path = "/";
- __overlay__ {
- vcc2v8_mipi: vcc2v8-mipi-regulator {
- compatible = "regulator-fixed";
- enable-active-high;
- gpio = <&gpio1 RK_PC7 GPIO_ACTIVE_HIGH>;
- pinctrl-names = "default";
- pinctrl-0 = <&dvp_pwr_en>;
- regulator-name = "vcc2v8_mipi";
- regulator-always-on;
- regulator-boot-on;
- regulator-min-microvolt = <2800000>;
- regulator-max-microvolt = <2800000>;
- startup-delay-us = <1000>;
- vin-supply = <&vcc5v0_sys>;
- };
- // turned on automatically as vcc2v8_mipi is turned on...
- vcc1v8_mipi: vcc1v8-mipi-regulator {
- compatible = "regulator-fixed";
- regulator-name = "vcc1v8_mipi";
- regulator-always-on;
- regulator-boot-on;
- regulator-min-microvolt = <1800000>;
- regulator-max-microvolt = <1800000>;
- startup-delay-us = <1000>;
- vin-supply = <&vcc3v3_sys>;
- };
- vcc2v8_mipi_af: vcc2v8-mipi-af-regulator {
- compatible = "regulator-fixed";
- regulator-name = "vcc2v8_mipi_af";
- regulator-always-on;
- regulator-boot-on;
- regulator-min-microvolt = <2800000>;
- regulator-max-microvolt = <2800000>;
- startup-delay-us = <1000>;
- vin-supply = <&vcc5v0_sys>;
- };
- vcc1v2_mipi_dvdd: vcc1v2-mipi-dvdd-regulator {
- compatible = "regulator-fixed";
- regulator-name = "vcc1v2_mipi_dvdd";
- regulator-always-on;
- regulator-boot-on;
- regulator-min-microvolt = <1200000>;
- regulator-max-microvolt = <1200000>;
- startup-delay-us = <1000>;
- vin-supply = <&vcc3v3_sys>;
- };
- };
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement