mb/google/nissa/var/xivu: Add MIPI WFC support
Add MIPI WFC based on schematics BUG=b:236576117, b:235446911 BRANCH=None TEST=emerge-nissa coreboot Signed-off-by: Ian Feng <ian_feng@compal.corp-partner.google.com> Change-Id: I85bd2ba187729a55c00369b218ca0414e0162b9e Reviewed-on: https://review.coreboot.org/c/coreboot/+/65334 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kangheui Won <khwon@chromium.org>
This commit is contained in:
parent
d8bc94edd7
commit
1307ce8366
|
@ -255,3 +255,4 @@ config BOARD_GOOGLE_XIVU
|
||||||
select BOARD_GOOGLE_BASEBOARD_NISSA
|
select BOARD_GOOGLE_BASEBOARD_NISSA
|
||||||
select DRIVERS_GENERIC_GPIO_KEYS
|
select DRIVERS_GENERIC_GPIO_KEYS
|
||||||
select DRIVERS_GENESYSLOGIC_GL9750
|
select DRIVERS_GENESYSLOGIC_GL9750
|
||||||
|
select DRIVERS_INTEL_MIPI_CAMERA
|
||||||
|
|
|
@ -23,11 +23,24 @@ chip soc/intel/alderlake
|
||||||
#| | required to set up a BAR |
|
#| | required to set up a BAR |
|
||||||
#| | for TPM communication |
|
#| | for TPM communication |
|
||||||
#| I2C1 | Touchscreen |
|
#| I2C1 | Touchscreen |
|
||||||
#| I2C2 | |
|
#| I2C2 | WCAM |
|
||||||
#| I2C3 | Audio |
|
#| I2C3 | Audio |
|
||||||
#| I2C5 | Trackpad |
|
#| I2C5 | Trackpad |
|
||||||
#+-------------------+---------------------------+
|
#+-------------------+---------------------------+
|
||||||
device domain 0 on
|
device domain 0 on
|
||||||
|
device ref ipu on
|
||||||
|
chip drivers/intel/mipi_camera
|
||||||
|
register "acpi_uid" = "0x50000"
|
||||||
|
register "acpi_name" = ""IPU0""
|
||||||
|
register "device_type" = "INTEL_ACPI_CAMERA_CIO2"
|
||||||
|
|
||||||
|
register "cio2_num_ports" = "1"
|
||||||
|
register "cio2_lanes_used" = "{4}" # 4 CSI Camera lanes are used
|
||||||
|
register "cio2_lane_endpoint[0]" = ""^I2C2.CAM0""
|
||||||
|
register "cio2_prt[0]" = "2"
|
||||||
|
device generic 0 on end
|
||||||
|
end
|
||||||
|
end
|
||||||
device ref i2c1 on
|
device ref i2c1 on
|
||||||
chip drivers/i2c/hid
|
chip drivers/i2c/hid
|
||||||
register "generic.hid" = ""ELAN9008""
|
register "generic.hid" = ""ELAN9008""
|
||||||
|
@ -63,6 +76,78 @@ chip soc/intel/alderlake
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
device ref i2c2 on
|
||||||
|
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 "ssdb.lanes_used" = "4"
|
||||||
|
register "ssdb.link_used" = "1"
|
||||||
|
register "ssdb.vcm_type" = "0x0C"
|
||||||
|
register "vcm_name" = ""VCM0""
|
||||||
|
register "num_freq_entries" = "2"
|
||||||
|
register "link_freq[0]" = "360000000"
|
||||||
|
register "link_freq[1]" = "180000000"
|
||||||
|
register "remote_name" = ""IPU0""
|
||||||
|
|
||||||
|
register "has_power_resource" = "1"
|
||||||
|
#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 36 on end
|
||||||
|
end
|
||||||
|
chip drivers/intel/mipi_camera
|
||||||
|
register "acpi_uid" = "3"
|
||||||
|
register "acpi_name" = ""VCM0""
|
||||||
|
register "chip_name" = ""DW AF DAC""
|
||||||
|
register "device_type" = "INTEL_ACPI_CAMERA_VCM"
|
||||||
|
|
||||||
|
register "pr0" = ""\\_SB.PCI0.I2C2.CAM0.PRIC""
|
||||||
|
register "vcm_compat" = ""dongwoon,dw9714""
|
||||||
|
|
||||||
|
device i2c 0C on end
|
||||||
|
end
|
||||||
|
chip drivers/intel/mipi_camera
|
||||||
|
register "acpi_hid" = "ACPI_DT_NAMESPACE_HID"
|
||||||
|
register "acpi_uid" = "1"
|
||||||
|
register "acpi_name" = ""NVM0""
|
||||||
|
register "chip_name" = ""GT24C08""
|
||||||
|
register "device_type" = "INTEL_ACPI_CAMERA_NVM"
|
||||||
|
|
||||||
|
register "pr0" = ""\\_SB.PCI0.I2C2.CAM0.PRIC""
|
||||||
|
|
||||||
|
register "nvm_size" = "0x2000"
|
||||||
|
register "nvm_pagesize" = "1"
|
||||||
|
register "nvm_readonly" = "1"
|
||||||
|
register "nvm_width" = "0x10"
|
||||||
|
register "nvm_compat" = ""atmel,24c08""
|
||||||
|
|
||||||
|
device i2c 50 on end
|
||||||
|
end
|
||||||
|
end
|
||||||
device ref i2c3 on
|
device ref i2c3 on
|
||||||
chip drivers/i2c/generic
|
chip drivers/i2c/generic
|
||||||
register "hid" = ""RTL5682""
|
register "hid" = ""RTL5682""
|
||||||
|
|
Loading…
Reference in New Issue