summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTyler Wang <tyler.wang@quanta.corp-partner.google.com>2022-05-16 13:43:43 +0800
committerFelix Held <felix-coreboot@felixheld.de>2022-06-07 23:44:16 +0000
commit20b58bc882c40b80584cb0d035acbda8daf95ed0 (patch)
treec61c30b4ece16a39a1db83af850f57b6f7a4968b /src
parent124c418ccf4d0e786d2a5718920bf9cea79a9097 (diff)
mb/google/nissa/var/craask: Add MIPI camera settings
Add OVTI8856 information for craask BUG=b:232656913 TEST=Build and boot on craask Signed-off-by: Tyler Wang <tyler.wang@quanta.corp-partner.google.com> Change-Id: Ice490f31e9ab8fffff6a7a5d24f769efea91188d Reviewed-on: https://review.coreboot.org/c/coreboot/+/64376 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Reka Norman <rekanorman@chromium.org> Reviewed-by: Kangheui Won <khwon@chromium.org>
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/google/brya/variants/craask/overridetree.cb48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/mainboard/google/brya/variants/craask/overridetree.cb b/src/mainboard/google/brya/variants/craask/overridetree.cb
index 55fc1e4056..812a1bc111 100644
--- a/src/mainboard/google/brya/variants/craask/overridetree.cb
+++ b/src/mainboard/google/brya/variants/craask/overridetree.cb
@@ -7,6 +7,7 @@ fw_config
field WFC 2 3
option WFC_ABSENT 0
option WFC_MIPI_OVTI5675 1
+ option WFC_MIPI_OVTI8856 2
end
field STYLUS 4
option STYLUS_ABSENT 0
@@ -60,6 +61,7 @@ chip soc/intel/alderlake
device generic 0 on end
end
probe WFC WFC_MIPI_OVTI5675
+ probe WFC WFC_MIPI_OVTI8856
end
device ref i2c1 on
chip drivers/i2c/hid
@@ -190,6 +192,50 @@ chip soc/intel/alderlake
end
end
chip drivers/intel/mipi_camera
+ register "acpi_hid" = ""OVTI8856""
+ register "acpi_uid" = "0"
+ register "acpi_name" = ""CAM0""
+ register "chip_name" = ""Ov 8856 Camera""
+ register "device_type" = "INTEL_ACPI_CAMERA_SENSOR"
+ register "has_power_resource" = "1"
+
+ register "ssdb.lanes_used" = "2"
+ register "ssdb.link_used" = "1"
+ register "ssdb.vcm_type" = "0x0C"
+ register "vcm_name" = ""VCM0""
+ register "num_freq_entries" = "2"
+ register "link_freq[0]" = "720000000"
+ register "link_freq[1]" = "360000000"
+ register "remote_name" = ""IPU0""
+
+ #Controls
+ register "clk_panel.clks[0].clknum" = "IMGCLKOUT_3"
+ register "clk_panel.clks[0].freq" = "FREQ_19_2_MHZ"
+
+ register "gpio_panel.gpio[0].gpio_num" = "GPP_D15" # EN_PP2800_WCAM_X
+ register "gpio_panel.gpio[1].gpio_num" = "GPP_D16" # EN_PP1800_PP1200_WCAM_X
+ register "gpio_panel.gpio[2].gpio_num" = "GPP_D3" # WCAM_RST_L
+
+ #_ON
+ register "on_seq.ops_cnt" = "5"
+ register "on_seq.ops[0]" = "SEQ_OPS_CLK_ENABLE(0, 0)"
+ register "on_seq.ops[1]" = "SEQ_OPS_GPIO_ENABLE(0, 5)"
+ register "on_seq.ops[2]" = "SEQ_OPS_GPIO_ENABLE(1, 5)"
+ register "on_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(2, 5)"
+ register "on_seq.ops[4]" = "SEQ_OPS_GPIO_ENABLE(2, 5)"
+
+ #_OFF
+ register "off_seq.ops_cnt" = "4"
+ register "off_seq.ops[0]" = "SEQ_OPS_CLK_DISABLE(0, 0)"
+ register "off_seq.ops[1]" = "SEQ_OPS_GPIO_DISABLE(2, 0)"
+ register "off_seq.ops[2]" = "SEQ_OPS_GPIO_DISABLE(1, 0)"
+ register "off_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(0, 0)"
+
+ device i2c 10 on
+ probe WFC WFC_MIPI_OVTI8856
+ end
+ end
+ chip drivers/intel/mipi_camera
register "acpi_uid" = "3"
register "acpi_name" = ""VCM0""
register "chip_name" = ""DW AF DAC""
@@ -200,6 +246,7 @@ chip soc/intel/alderlake
device i2c 0C on
probe WFC WFC_MIPI_OVTI5675
+ probe WFC WFC_MIPI_OVTI8856
end
end
chip drivers/intel/mipi_camera
@@ -219,6 +266,7 @@ chip soc/intel/alderlake
device i2c 50 on
probe WFC WFC_MIPI_OVTI5675
+ probe WFC WFC_MIPI_OVTI8856
end
end
end