dts: add isp & mipi dts
authorJiacheng Mei <jiacheng.mei@amlogic.com>
Thu, 7 Jun 2018 09:06:23 +0000 (17:06 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Fri, 29 Jun 2018 07:42:10 +0000 (00:42 -0700)
PD#165090: add isp & mipi dts

Change-Id: I98a46f48ddd62db40350f8717961c047b5230410
Signed-off-by: Jiacheng Mei <jiacheng.mei@amlogic.com>
arch/arm64/boot/dts/amlogic/g12b_a311d_skt.dts
arch/arm64/boot/dts/amlogic/mesong12b.dtsi

index 835cf28dcd6ad206efbc07f46be5bc12515e07f0..3040ff3c2dc7a4a86e6ab4e8b8b8e8453921c58e 100644 (file)
                        alignment = <0x0 0x400000>;
                        linux,contiguous-region;
                };
+
+               isp_cma_reserved:linux,isp_cma {
+                       compatible = "shared-dma-pool";
+                       reusable;
+                       status = "okay";
+                       size = <0x0 0x08000000>;
+                       alignment = <0x0 0x400000>;
+               };
+
+               adapt_cma_reserved:linux,adapt_cma {
+                       compatible = "shared-dma-pool";
+                       reusable;
+                       status = "okay";
+                       size = <0x0 0x03000000>;
+                       alignment = <0x0 0x400000>;
+               };
        };
        galcore {
                status = "okay";
                status = "okay";
        };
 
-
+       sensor: sensor {
+               compatible = "soc, sensor";
+               status = "okay";
+               pinctrl-names="default";
+               pinctrl-0=<&clk12_24_z_pins>;
+               clocks = <&clkc CLKID_24M>;
+               clock-names = "g12a_24m";
+               reset = <&gpio GPIOZ_12 GPIO_ACTIVE_HIGH>;
+       };
 }; /* end of / */
+&i2c2 {
+       status = "okay";
+       pinctrl-names="default";
+       pinctrl-0=<&i2c2_master_pins2>;
+       clock-frequency = <100000>; /* default 100k */
+       sensor-i2c@6c {
+               compatible = "arm, i2c-sensor";
+               reg = <0x6c>;
+               reg-names = "i2c-sensor";
+               slave-addr = <0x6c>;
+               reg-type = <2>;
+               reg-data-type = <1>;
+               link-device = <&phycsi>;
+       };
+};
+
+&isp {
+       status = "okay";
+       memory-region = <&isp_cma_reserved>;
+};
+
+&adapter {
+       status = "okay";
+       memory-region = <&adapt_cma_reserved>;
+};
 
 &meson_fb {
        status = "okay";
index 4496f1b8a47828e09fd3a6480fbbacfda013dc6a..7f16e0966a90feb84afba75278f3e6c2e6da165a 100644 (file)
                interrupts = <0 52 1>;
                interrupt-names = "ddr_bandwidth";
        };
+
+       isp: isp@ff140000 {
+               compatible = "arm, isp";
+               reg = <0x0 0xff140000 0x0 0x00040000>;
+               reg-names = "ISP";
+               interrupts = <0 142 4>;
+               interrupt-names = "ISP";
+               clocks = <&clkc CLKID_MIPI_ISP_CLK_COMP>,
+                       <&clkc CLKID_MIPI_CSI_PHY_CLK0_COMP>;
+               clock-names = "cts_mipi_isp_clk_composite",
+                       "cts_mipi_csi_phy_clk0_composite";
+       };
+
+       adapter: isp-adapter@ff650000 {
+               compatible = "amlogic, isp-adapter";
+               reg = <0x0 0xff650000 0x0 0x00006000>;
+               reg-names = "adapter";
+               interrupts = <0 179 0>;
+               interrupt-names = "adapter-irq";
+       };
+
+       phycsi: phy-csi@ff650000 {
+               compatible = "amlogic, phy-csi";
+               reg = <0x0 0xff650000 0x0 0x00002000>,
+                               <0x0 0xff652000 0x0 0x00002000>,
+                               <0x0 0xff63c300 0x0 0x00000100>,
+                               <0x0 0xff654000 0x0 0x00000100>,
+                               <0x0 0xff654400 0x0 0x00000100>;
+               reg-names = "csi2_phy0", "csi2_phy1", "aphy_reg",
+                                       "csi0_host", "csi1_host";
+               interrupts = <0 41 0>,
+                                       <0 42 0>,
+                                       <0 72 0>,
+                                       <0 74 0>,
+                                       <0 87 0>,
+                                       <0 88 0>;
+               interrupt-names = "phy0-irq",
+                                       "phy1-irq",
+                                       "csi-host0-intr2",
+                                       "csi-host0-intr1",
+                                       "csi-host1-intr2",
+                                       "csi-host1-intr1";
+               link-device = <&adapter>;
+       };
 };/* end of / */
 
 &pinctrl_aobus {
                };
        };
 
+       clk12_24_z_pins:clk12_24_z_pins {
+               mux {
+                       groups = "clk12_24_z";
+                       function = "clk12_24_ee";
+                       drive-strength = <3>;
+               };
+       };
+
        spicc0_pins_x: spicc0_pins_x {
                mux {
                        groups = "spi0_mosi_x",