summaryrefslogtreecommitdiff
path: root/zephyr/program/herobrine/hoglin/project.overlay
blob: e37a325654184b62af6b1380725ce7f4663a53d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/* 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.
 */

/* Herobrine program common DTS includes */
#include "../adc.dtsi"
#include "../common.dtsi"
#include "../i2c.dtsi"
#include "../interrupts.dtsi"
#include "../keyboard.dtsi"
#include "../default_gpio_pinctrl.dtsi"
#include "../usbc.dtsi"
#include "../switchcap.dtsi"

/* Hoglin project DTS includes*/
#include "gpio.dtsi"
#include "led_pins.dtsi"
#include "led_policy.dtsi"
#include "motionsense.dtsi"

/* hoglin overrides follow... */
/* battery overrides */
/ {
	batteries {
		default_battery: 7c01 {
			compatible = "ganfeng,7c01", "battery-smart";
		};
	};

};

/* switchcap overrides */
&{/switchcap} {
	/delete-property/ power-good-pin;
	poff-delay-ms = <550>;
};

/* i2c overrides */
&i2c1_0 {
	/delete-node/ ps8xxx@b;
	tcpc_port0: ps8xxx@1b {
		compatible = "parade,ps8xxx";
		reg = <0x1b>;
	};
};

&i2c2_0 {
	/delete-node/ ps8xxx@b;
	tcpc_port1: ps8xxx@1b {
		compatible = "parade,ps8xxx";
		reg = <0x1b>;
	};
};