/* 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. */ #include #include "../i2c.dtsi" / { named-gpios { /* Frostflow-specific GPIO customizations */ }; named-temp-sensors { compatible = "cros-ec,temp-sensors"; temp_soc: soc-pct2075 { temp_host_high = <75>; temp_host_halt = <80>; temp_host_release_high = <65>; temp_host_release_halt = <70>; power-good-pin = <&gpio_pg_pwr_s5>; sensor = <&soc_pct2075>; }; temp_amb: amb-pct2075 { temp_host_high = <65>; temp_host_halt = <70>; temp_host_release_high = <55>; temp_host_release_halt = <60>; temp_fan_off = <32>; temp_fan_max = <45>; power-good-pin = <&gpio_pg_pwr_s5>; sensor = <&amb_pct2075>; }; }; /* Rotation matrices for motion sensors. */ motionsense-rotation-ref { compatible = "cros-ec,motionsense-rotation-ref"; lid_rot_ref: lid-rotation-ref { mat33 = <1 0 0 0 1 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"; }; fan_steps_clamshell: fan-steps-clamshell { compatible = "cros-ec,fan-steps"; level_0 { temp_on = <(-1) (-1) (-1) (-1) 31>; temp_off = <(-1) (-1) (-1) (-1) 99>; rpm_target = <0>; }; level_1 { temp_on = <(-1) (-1) (-1) (-1) 32>; temp_off = <(-1) (-1) (-1) (-1) 30>; rpm_target = <2600>; }; level_2 { temp_on = <(-1) (-1) (-1) (-1) 34>; temp_off = <(-1) (-1) (-1) (-1) 31>; rpm_target = <2900>; }; level_3 { temp_on = <(-1) (-1) (-1) (-1) 36>; temp_off = <(-1) (-1) (-1) (-1) 33>; rpm_target = <3600>; }; level_4 { temp_on = <(-1) (-1) (-1) (-1) 38>; temp_off = <(-1) (-1) (-1) (-1) 35>; rpm_target = <4200>; }; level_5 { temp_on = <(-1) (-1) (-1) (-1) 45>; temp_off = <(-1) (-1) (-1) (-1) 37>; rpm_target = <4600>; }; }; fan_steps_tablet: fan-steps-tablet { compatible = "cros-ec,fan-steps"; level_0 { temp_on = <(-1) (-1) (-1) (-1) 31>; temp_off = <(-1) (-1) (-1) (-1) 99>; rpm_target = <0>; }; level_1 { temp_on = <(-1) (-1) (-1) (-1) 32>; temp_off = <(-1) (-1) (-1) (-1) 30>; rpm_target = <2600>; }; level_2 { temp_on = <(-1) (-1) (-1) (-1) 34>; temp_off = <(-1) (-1) (-1) (-1) 31>; rpm_target = <2900>; }; level_3 { temp_on = <(-1) (-1) (-1) (-1) 36>; temp_off = <(-1) (-1) (-1) (-1) 33>; rpm_target = <3600>; }; level_4 { temp_on = <(-1) (-1) (-1) (-1) 38>; temp_off = <(-1) (-1) (-1) (-1) 35>; rpm_target = <4200>; }; level_5 { temp_on = <(-1) (-1) (-1) (-1) 45>; temp_off = <(-1) (-1) (-1) (-1) 37>; rpm_target = <4600>; }; }; }; &i2c1_0 { ppc_port1: nx20p348x@71 { compatible = "nxp,nx20p348x"; status = "okay"; reg = <0x71>; }; ps8818_port1: ps8818@28 { compatible = "parade,ps8818"; reg = <0x28>; flags = <(USB_MUX_FLAG_RESETS_IN_G3)>; board-set = "board_c1_ps8818_mux_set"; }; }; &i2c4_1 { charger: isl9241@9 { compatible = "intersil,isl9241"; status = "okay"; reg = <0x9>; }; }; &amd_fp6_port0 { board-set = "board_c0_amd_fp6_mux_set"; }; &usbc_port0 { ppc = <&ppc_port0>; usb-mux-chain-0 { compatible = "cros-ec,usb-mux-chain"; usb-muxes = <&amd_fp6_port0>; }; }; &usbc_port1 { ppc = <&ppc_port1>; usb-mux-chain-1-ps8818 { compatible = "cros-ec,usb-mux-chain"; usb-muxes = <&amd_fp6_port1 &ps8818_port1>; }; }; &cros_kb_raw { 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 &kso13_gp04 &kso14_gp82 >; }; &temp_sensor_charger { temp_host_high = <75>; temp_host_halt = <80>; temp_host_release_high = <65>; temp_host_release_halt = <70>; }; &temp_sensor_memory { temp_host_high = <75>; temp_host_halt = <80>; temp_host_release_high = <65>; temp_host_release_halt = <70>; }; &temp_sensor_cpu { /delete-property/ temp_host_high; /delete-property/ temp_host_halt; /delete-property/ temp_host_release_high; /delete-property/ temp_fan_off; /delete-property/ temp_fan_max; }; &fan0 { pwms = <&pwm0 0 PWM_KHZ(25) PWM_POLARITY_NORMAL>; rpm_min = <2400>; rpm_start = <2600>; rpm_max = <4600>; };