summaryrefslogtreecommitdiff
path: root/zephyr/program/herobrine/hoglin/project.overlay
blob: dd192d22f9fd48cd03e6c42cce103e9f1eec7a63 (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
55
56
57
58
59
60
61
62
63
64
/* 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>;
		/* a duplicate of the <&gpio_usb_c0_pd_int_odl> node in
		 * "named-gpios". This is the Zephyr preferred style,
		 * the "named-gpios" node will be dealt with at a later date.
		 */
		irq-gpios = <&gpioe 0 GPIO_ACTIVE_LOW>;
	};
};

&i2c2_0 {
	/delete-node/ ps8xxx@b;
	tcpc_port1: ps8xxx@1b {
		compatible = "parade,ps8xxx";
		reg = <0x1b>;
		/* a duplicate of the <&gpio_usb_c1_pd_int_odl> node in
		 * "named-gpios". This is the Zephyr preferred style,
		 * the "named-gpios" node will be dealt with at a later date.
		 */
		irq-gpios = <&gpiof 5 GPIO_ACTIVE_LOW>;
	};
};