setup CI/CD for kernel development - added CodeQL for code scanning - every pr is built as an image and is available for 30days on https://oklinux.dev - tagged and released on github for now Signed-off-by: sevki <s@sevki.io>
513 lines
8.4 KiB
Text
513 lines
8.4 KiB
Text
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
|
|
/*
|
|
* Copyright 2020 Google LLC
|
|
*/
|
|
|
|
#include "mt8183-kukui.dtsi"
|
|
#include <dt-bindings/input/gpio-keys.h>
|
|
|
|
/ {
|
|
ppvarn_lcd: ppvarn-lcd {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "ppvarn_lcd";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&ppvarn_lcd_en>;
|
|
|
|
enable-active-high;
|
|
|
|
gpio = <&pio 66 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
ppvarp_lcd: ppvarp-lcd {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "ppvarp_lcd";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&ppvarp_lcd_en>;
|
|
|
|
enable-active-high;
|
|
|
|
gpio = <&pio 166 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
pp1800_lcd: pp1800-lcd {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "pp1800_lcd";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pp1800_lcd_en>;
|
|
|
|
enable-active-high;
|
|
|
|
gpio = <&pio 36 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
gpio-keys {
|
|
compatible = "gpio-keys";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pen_eject>;
|
|
|
|
switch-pen-insert {
|
|
label = "Pen Insert";
|
|
/* Insert = low, eject = high */
|
|
gpios = <&pio 6 GPIO_ACTIVE_LOW>;
|
|
linux,code = <SW_PEN_INSERTED>;
|
|
linux,input-type = <EV_SW>;
|
|
wakeup-event-action = <EV_ACT_DEASSERTED>;
|
|
wakeup-source;
|
|
};
|
|
};
|
|
};
|
|
|
|
&bluetooth {
|
|
firmware-name = "nvm_00440302_i2s_eu.bin";
|
|
};
|
|
|
|
&i2c0 {
|
|
status = "okay";
|
|
|
|
touchscreen: touchscreen@10 {
|
|
compatible = "hid-over-i2c";
|
|
reg = <0x10>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&open_touch>;
|
|
|
|
interrupt-parent = <&pio>;
|
|
interrupts = <155 IRQ_TYPE_EDGE_FALLING>;
|
|
|
|
post-power-on-delay-ms = <10>;
|
|
hid-descr-addr = <0x0001>;
|
|
};
|
|
};
|
|
|
|
&mt6358_vcama2_reg {
|
|
regulator-min-microvolt = <2800000>;
|
|
regulator-max-microvolt = <2800000>;
|
|
};
|
|
|
|
&i2c2 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&i2c2_pins>;
|
|
status = "okay";
|
|
clock-frequency = <400000>;
|
|
vbus-supply = <&mt6358_vcamio_reg>;
|
|
|
|
eeprom@58 {
|
|
compatible = "atmel,24c32";
|
|
reg = <0x58>;
|
|
pagesize = <32>;
|
|
vcc-supply = <&mt6358_vcama2_reg>;
|
|
};
|
|
|
|
sensor_main: sensor_main@10 {
|
|
status = "okay";
|
|
compatible = "ovti,ov8856";
|
|
reg = <0x10>;
|
|
|
|
clocks = <&topckgen CLK_TOP_MUX_CAMTG>,
|
|
<&topckgen CLK_TOP_UNIVP_192M_D8>;
|
|
clock-names = "xvclk", "freq_mux";
|
|
clock-frequency = <19200000>;
|
|
|
|
assigned-clocks = <&topckgen CLK_TOP_MUX_CAMTG>,
|
|
<&topckgen CLK_TOP_UNIVP_192M_D8>;
|
|
assigned-clock-parents = <&topckgen CLK_TOP_UNIVP_192M_D8>;
|
|
assigned-clock-rates = <0>, <24000000>;
|
|
|
|
reset-gpios = <&pio 111 GPIO_ACTIVE_LOW>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&camera_pins_cam0>;
|
|
|
|
avdd-supply = <&mt6358_vcama2_reg>;
|
|
dvdd-supply = <&mt6358_vcamd_reg>;
|
|
dovdd-supply = <&mt6358_vcamio_reg>;
|
|
|
|
lens-focus = <&camera_main_af>;
|
|
|
|
port {
|
|
ov8856_endpoint: endpoint {
|
|
clock-lanes = <0>;
|
|
clock-noncontinuous;
|
|
data-lanes = <1 2 3 4>;
|
|
link-frequencies = /bits/ 64 <360000000 180000000>;
|
|
remote-endpoint = <&seninf_port0_endpoint>;
|
|
};
|
|
};
|
|
};
|
|
|
|
camera_main_af: camera_main_af@c {
|
|
compatible = "dongwoon,dw9768";
|
|
reg = <0x0c>;
|
|
|
|
vin-supply = <&mt6358_vcamio_reg>;
|
|
vdd-supply = <&mt6358_vcama2_reg>;
|
|
};
|
|
};
|
|
|
|
&i2c4 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&i2c4_pins>;
|
|
status = "okay";
|
|
clock-frequency = <400000>;
|
|
vbus-supply = <&mt6358_vcn18_reg>;
|
|
|
|
eeprom@50 {
|
|
compatible = "atmel,24c32";
|
|
reg = <0x50>;
|
|
pagesize = <32>;
|
|
vcc-supply = <&mt6358_vcn18_reg>;
|
|
};
|
|
|
|
sensor_sub: sensor_sub@3d {
|
|
status = "okay";
|
|
compatible = "ovti,ov02a10";
|
|
reg = <0x3d>;
|
|
|
|
clocks = <&topckgen CLK_TOP_MUX_CAMTG2>,
|
|
<&topckgen CLK_TOP_UNIVP_192M_D8>;
|
|
clock-names = "eclk", "freq_mux";
|
|
clock-frequency = <24000000>;
|
|
rotation = <180>;
|
|
|
|
assigned-clocks = <&topckgen CLK_TOP_MUX_CAMTG2>,
|
|
<&topckgen CLK_TOP_UNIVP_192M_D8>;
|
|
assigned-clock-parents = <&topckgen CLK_TOP_UNIVP_192M_D8>;
|
|
assigned-clock-rates = <0>, <24000000>;
|
|
|
|
powerdown-gpios = <&pio 107 GPIO_ACTIVE_HIGH>;
|
|
reset-gpios = <&pio 109 GPIO_ACTIVE_LOW>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&camera_pins_cam1>;
|
|
|
|
avdd-supply = <&mt6358_vcama1_reg>;
|
|
dvdd-supply = <&mt6358_vcn18_reg>;
|
|
dovdd-supply = <&mt6358_vcamio_reg>;
|
|
|
|
port {
|
|
ov02a10_endpoint: endpoint {
|
|
data-lanes = <1>;
|
|
ovti,mipi-clock-voltage = <3>;
|
|
link-frequencies = /bits/ 64 <390000000>;
|
|
remote-endpoint = <&seninf_port1_endpoint>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&mipi_tx0 {
|
|
drive-strength-microamp = <5800>;
|
|
};
|
|
|
|
&pio {
|
|
/* 192 lines */
|
|
gpio-line-names =
|
|
"SPI_AP_EC_CS_L",
|
|
"SPI_AP_EC_MOSI",
|
|
"SPI_AP_EC_CLK",
|
|
"I2S3_DO",
|
|
"USB_PD_INT_ODL",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"IT6505_HPD_L",
|
|
"I2S3_TDM_D3",
|
|
"SOC_I2C6_1V8_SCL",
|
|
"SOC_I2C6_1V8_SDA",
|
|
"DPI_D0",
|
|
"DPI_D1",
|
|
"DPI_D2",
|
|
"DPI_D3",
|
|
"DPI_D4",
|
|
"DPI_D5",
|
|
"DPI_D6",
|
|
"DPI_D7",
|
|
"DPI_D8",
|
|
"DPI_D9",
|
|
"DPI_D10",
|
|
"DPI_D11",
|
|
"DPI_HSYNC",
|
|
"DPI_VSYNC",
|
|
"DPI_DE",
|
|
"DPI_CK",
|
|
"AP_MSDC1_CLK",
|
|
"AP_MSDC1_DAT3",
|
|
"AP_MSDC1_CMD",
|
|
"AP_MSDC1_DAT0",
|
|
"AP_MSDC1_DAT2",
|
|
"AP_MSDC1_DAT1",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"OTG_EN",
|
|
"DRVBUS",
|
|
"DISP_PWM",
|
|
"DSI_TE",
|
|
"LCM_RST_1V8",
|
|
"AP_CTS_WIFI_RTS",
|
|
"AP_RTS_WIFI_CTS",
|
|
"SOC_I2C5_1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C",
|
|
"I2S_PMIC",
|
|
"I2S_PMIC",
|
|
"I2S_PMIC",
|
|
"I2S_PMIC",
|
|
"I2S_PMIC",
|
|
"I2S_PMIC",
|
|
"I2S_PMIC",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
/*
|
|
* AP_FLASH_WP_L is crossystem ABI. Rev1 schematics
|
|
* call it BIOS_FLASH_WP_R_L.
|
|
*/
|
|
"AP_FLASH_WP_L",
|
|
"EC_AP_INT_ODL",
|
|
"IT6505_INT_ODL",
|
|
"H1_INT_OD_L",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"AP_SPI_FLASH_MISO",
|
|
"AP_SPI_FLASH_CS_L",
|
|
"AP_SPI_FLASH_MOSI",
|
|
"AP_SPI_FLASH_CLK",
|
|
"DA7219_IRQ",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"";
|
|
|
|
ppvarp_lcd_en: ppvarp-lcd-en {
|
|
pins1 {
|
|
pinmux = <PINMUX_GPIO66__FUNC_GPIO66>;
|
|
output-low;
|
|
};
|
|
};
|
|
|
|
ppvarn_lcd_en: ppvarn-lcd-en {
|
|
pins1 {
|
|
pinmux = <PINMUX_GPIO166__FUNC_GPIO166>;
|
|
output-low;
|
|
};
|
|
};
|
|
|
|
pp1800_lcd_en: pp1800-lcd-en {
|
|
pins1 {
|
|
pinmux = <PINMUX_GPIO36__FUNC_GPIO36>;
|
|
output-low;
|
|
};
|
|
};
|
|
|
|
open_touch: open_touch {
|
|
irq_pin {
|
|
pinmux = <PINMUX_GPIO155__FUNC_GPIO155>;
|
|
input-enable;
|
|
bias-pull-up;
|
|
};
|
|
|
|
rst_pin {
|
|
pinmux = <PINMUX_GPIO156__FUNC_GPIO156>;
|
|
|
|
/*
|
|
* The pen driver doesn't currently support driving
|
|
* this reset line. By specifying output-high here
|
|
* we're relying on the fact that this pin has a default
|
|
* pulldown at boot (which makes sure the pen was in
|
|
* reset if it was powered) and then we set it high here
|
|
* to take it out of reset. Better would be if the pen
|
|
* driver could control this and we could remove
|
|
* "output-high" here.
|
|
*/
|
|
output-high;
|
|
};
|
|
};
|
|
|
|
pen_eject: peneject {
|
|
pen_eject {
|
|
pinmux = <PINMUX_GPIO6__FUNC_GPIO6>;
|
|
input-enable;
|
|
/* External pull-up. */
|
|
bias-disable;
|
|
};
|
|
};
|
|
};
|
|
|
|
&cros_ec {
|
|
keyboard-controller {
|
|
compatible = "google,cros-ec-keyb-switches";
|
|
};
|
|
};
|
|
|
|
&qca_wifi {
|
|
qcom,ath10k-calibration-variant = "GO_KAKADU";
|
|
};
|
|
|
|
&seninf {
|
|
status = "okay";
|
|
|
|
ports {
|
|
port@0 {
|
|
reg = <0>;
|
|
|
|
seninf_port0_endpoint: endpoint {
|
|
clock-lanes = <2>;
|
|
clock-noncontinuous;
|
|
data-lanes = <0 1 3 4>;
|
|
link-frequencies = /bits/ 64 <360000000 180000000>;
|
|
remote-endpoint = <&ov8856_endpoint>;
|
|
};
|
|
};
|
|
|
|
port@1 {
|
|
reg = <1>;
|
|
|
|
seninf_port1_endpoint: endpoint {
|
|
data-lanes = <1>;
|
|
remote-endpoint = <&ov02a10_endpoint>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&camera_pins_cam0 {
|
|
pins_reset {
|
|
pinmux = <PINMUX_GPIO111__FUNC_GPIO111>;
|
|
output-low;
|
|
};
|
|
};
|
|
|
|
&camera_pins_cam1 {
|
|
pins_powerdown {
|
|
pinmux = <PINMUX_GPIO107__FUNC_GPIO107>;
|
|
output-high;
|
|
};
|
|
|
|
pins_reset {
|
|
pinmux = <PINMUX_GPIO109__FUNC_GPIO109>;
|
|
output-low;
|
|
};
|
|
};
|
|
|
|
&panel {
|
|
status = "okay";
|
|
compatible = "boe,tv105wum-nw0";
|
|
};
|