dts: add isp and galcore support to w400-buildroot [1/2]
authorJun Zhang <jun.zhang@amlogic.com>
Wed, 7 Nov 2018 07:59:16 +0000 (15:59 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Fri, 9 Nov 2018 07:41:08 +0000 (00:41 -0700)
PD#SWPL-1819

Problem:
lack of isp and galcore support in buildroot dts

Solution:
merge configurations from skt board

Verify:
local

Change-Id: I5936341fc24719f345c7707e16e692ae292ca6fe
Signed-off-by: Jun Zhang <jun.zhang@amlogic.com>
arch/arm64/boot/dts/amlogic/g12b_a311d_w400_buildroot.dts

index e135257..68f596f 100644 (file)
                        size = <0x0 0x04000000>;
                        alignment = <0x0 0x400000>;
                };
-       };
+               galcore_reserved:linux,galcore {
+                       compatible = "shared-dma-pool";
+                       reusable;
+                       size = <0x0 0x1000000>;
+                       alignment = <0x0 0x400000>;
+                       linux,contiguous-region;
+               };
 
+               isp_cma_reserved:linux,isp_cma {
+                       compatible = "shared-dma-pool";
+                       reusable;
+                       status = "okay";
+                       size = <0x0 0x1f000000>;
+                       alignment = <0x0 0x400000>;
+               };
+
+               adapt_cma_reserved:linux,adapt_cma {
+                       compatible = "shared-dma-pool";
+                       reusable;
+                       status = "okay";
+                       size = <0x0 0x03000000>;
+                       alignment = <0x0 0x400000>;
+               };
+               gdc_cma_reserved:linux,gdc_cma {
+                       compatible = "shared-dma-pool";
+                       reusable;
+                       status = "okay";
+                       size = <0x0 0x04000000>;
+                       alignment = <0x0 0x400000>;
+               };
+       };
+       galcore {
+               status = "okay";
+               memory-region = <&galcore_reserved>;
+       };
        gpioleds {
                compatible = "gpio-leds";
                status = "okay";
                status = "okay";
        };
 
+       sensor: sensor {
+               compatible = "soc, sensor";
+               status = "okay";
+               sensor-name = "imx290"; /*imx290;os08a10;imx227*/
+               pinctrl-names="default";
+               pinctrl-0=<&clk12_24_z_pins>;
+               clocks = <&clkc CLKID_24M>;
+               clock-names = "g12a_24m";
+               reset = <&gpio GPIOZ_12 GPIO_ACTIVE_HIGH>;
+       };
 
+       iq: iq {
+               compatible = "soc, iq";
+               status = "okay";
+               sensor-name = "imx290"; /*imx290;os08a10;imx227*/
+       };
 }; /* 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>;
+};
+
+&gdc {
+       status = "okay";
+       memory-region = <&gdc_cma_reserved>;
+};
+
 &meson_fb {
        status = "okay";
        display_size_default = <1920 1080 1920 2160 32>;
                status = "okay";
        };
 
+&i2c0 {
+       status = "okay";
+       pinctrl-names = "default";
+       pinctrl-0 = <&i2c0_master_pins2>;
+       clock-frequency = <400000>;
+
+       touchscreen@38 {
+               compatible = "focaltech,fts";
+               status = "disabled";
+               reg = <0x38>;
+               reset-gpio = <&gpio GPIOZ_9 GPIO_ACTIVE_HIGH>;
+               irq-gpio = <&gpio GPIOZ_3 GPIO_ACTIVE_HIGH>;
+               x_max = <720>;
+               y_max = <1280>;
+               max-touch-number = <10>;
+       };
+};
+
 &i2c3 {
        status = "okay";
        pinctrl-names="default";
                };
        };
 
+       clk12_24_z_pins:clk12_24_z_pins {
+               mux {
+                       groups = "clk12_24_z";
+                       function = "clk12_24_ee";
+                       drive-strength = <3>;
+               };
+       };
+
        tdmout_c:tdmout_c {
                mux { /* GPIOA_12, GPIOA_13, GPIOA_8, GPIOA_7*/
                        groups = "tdmc_sclk_a",
 };
 &ethmac {
        status = "okay";
+/*     //conflict with isp i2c
        pinctrl-names = "internal_eth_pins";
        pinctrl-0 = <&internal_eth_pins>;
+*/
        mc_val = <0x4be04>;
 
        internal_phy=<1>;
 &saradc {
        status = "okay";
 };
+
+&spicc1 {
+       status = "disabled";
+       pinctrl-names = "default";
+       pinctrl-0 = <&spicc1_pins>;
+       cs-gpios = <&gpio GPIOH_6 0>;
+};