/* Copyright 2022 The ChromiumOS Authors * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* Skyrim program common DTS includes */ #include "../adc.dtsi" #include "../fan.dtsi" #include "../gpio.dtsi" #include "../i2c.dtsi" #include "../interrupts.dtsi" #include "../keyboard.dtsi" #include "../usbc.dtsi" /* Markarth project DTS includes*/ #include "led_pins.dtsi" #include "led_policy.dtsi" #include "motionsense.dtsi" /* Markarth overrides follow... */ / { /* battery overrides */ batteries { default_battery: lgc_ap19b8m-2 { compatible = "lgc,ap19b8m-2", "battery-smart"; }; cosmx_ap20cbl-3 { compatible = "cosmx,ap20cbl-3", "battery-smart"; }; }; named-gpios { /* Markarth-specific GPIO customizations */ gpio_usb_c0_bc12_int_odl: usb_c0_bc12_int_odl { gpios = <&gpioa 4 GPIO_INPUT>; enum-name = "GPIO_USB_C0_BC12_INT_ODL"; }; gpio_usb_c1_bc12_int_odl: usb_c1_bc12_int_odl { gpios = <&gpio9 6 GPIO_INPUT>; enum-name = "GPIO_USB_C1_BC12_INT_ODL"; }; }; /* gpio-interrupts overrides */ gpio-interrupts { /delete-node/ usb_c0_bc12; /delete-node/ usb_c1_bc12; }; named-temp-sensors { compatible = "cros-ec,temp-sensors"; soc-f75303 { temp_host_high = <100>; temp_host_halt = <105>; temp_host_release_high = <80>; temp_host_release_halt = <80>; temp_fan_off = <35>; temp_fan_max = <70>; power-good-pin = <&gpio_pg_pwr_s5>; sensor = <&soc_f75303>; }; amb-f75303 { power-good-pin = <&gpio_pg_pwr_s5>; sensor = <&amb_f75303>; }; }; /* * Note this is expected to vary per-board, so we keep it in the overlay * files. */ markarth-fw-config { compatible = "cros-ec,cbi-fw-config"; form-factor { enum-name = "FW_FORM_FACTOR"; start = <0>; size = <1>; ff-clamshell { compatible = "cros-ec,cbi-fw-config-value"; enum-name = "FW_FF_CLAMSHELL"; value = <0>; }; ff-convertible { compatible = "cros-ec,cbi-fw-config-value"; enum-name = "FW_FF_CONVERTIBLE"; value = <1>; default; }; }; io-db { enum-name = "FW_IO_DB"; start = <6>; size = <2>; io-db-ps8811-ps8818 { compatible = "cros-ec,cbi-fw-config-value"; enum-name = "FW_IO_DB_PS8811_PS8818"; value = <0>; }; io-db-none-anx7483 { compatible = "cros-ec,cbi-fw-config-value"; enum-name = "FW_IO_DB_NONE_ANX7483"; value = <1>; default; }; }; /* * FW_CONFIG field to enable fan or not. */ fan { enum-name = "FW_FAN"; start = <10>; size = <1>; no-fan { compatible = "cros-ec,cbi-fw-config-value"; enum-name = "FW_FAN_NOT_PRESENT"; value = <0>; }; fan-present { compatible = "cros-ec,cbi-fw-config-value"; enum-name = "FW_FAN_PRESENT"; value = <1>; /* * Set as default so that unprovisioned * configs will run the fan regardless. */ default; }; }; }; /* Rotation matrices for motion sensors. */ motionsense-rotation-ref { compatible = "cros-ec,motionsense-rotation-ref"; lid_rot_ref: lid-rotation-ref { mat33 = <0 (-1) 0 1 0 0 0 0 1>; }; lid_rot_ref1: lid-rotation-ref1 { mat33 = <0 1 0 (-1) 0 0 0 0 1>; }; base_rot_ref: base-rotation-ref { mat33 = <0 1 0 (-1) 0 0 0 0 1>; }; }; ppc_port0: aoz1380 { compatible = "aoz,aoz1380"; status = "okay"; }; }; /* i2c overrides */ &i2c0_0 { /delete-node/ nx20p348x@71; /delete-node/ pi3usb9201@5f; }; &i2c1_0 { /delete-node/ pi3usb9201@5f; }; &i2c4_1 { /delete-node/ isl9538@9; }; /* usbc overrides */ &usbc_port0 { /delete-property/ bc12; /delete-property/ chg_alt; }; &usbc_port1 { /delete-property/ bc12; }; &i2c6_1 { /delete-node/ soc-pct2075@48; /delete-node/ amb-pct2075@4f; soc_f75303: soc-f75303@48 { compatible = "cros-ec,temp-sensor-f75303"; reg = <0x48>; }; amb_f75303: amb-f75303@4f { compatible = "cros-ec,temp-sensor-f75303"; reg = <0x4f>; }; }; &i2c_sensor { /delete-node/ enum-names; enum-names = "I2C_PORT_THERMAL"; }; &cros_kb_raw { status = "okay"; pinctrl-0 = < &ksi0_gp31 &ksi1_gp30 &ksi2_gp27 &ksi3_gp26 &ksi4_gp25 &ksi5_gp24 &ksi6_gp23 &ksi7_gp22 &kso00_gp21 &kso01_gp20 &kso03_gp16 &kso04_gp15 &kso05_gp14 &kso06_gp13 &kso07_gp12 &kso08_gp11 &kso09_gp10 &kso10_gp07 &kso11_gp06 &kso12_gp05 >; };