2023-04-01 01:57:56 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2023 Intel Corporation
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "skeleton.dtsi"
|
|
|
|
#include <dt-bindings/interrupt-controller/intel-ioapic.h>
|
2023-07-31 21:18:53 +08:00
|
|
|
#include <dt-bindings/i2c/i2c.h>
|
2023-04-01 01:57:56 +08:00
|
|
|
#include <mem.h>
|
|
|
|
|
|
|
|
/ {
|
2023-04-17 15:00:12 +08:00
|
|
|
power-states {
|
|
|
|
d0i0: d0i0 {
|
|
|
|
compatible = "zephyr,power-state";
|
|
|
|
power-state-name = "runtime-idle";
|
|
|
|
min-residency-us = <500>;
|
|
|
|
substate-id = <1>;
|
|
|
|
};
|
|
|
|
|
|
|
|
d0i1: d0i1 {
|
|
|
|
compatible = "zephyr,power-state";
|
|
|
|
power-state-name = "suspend-to-idle";
|
|
|
|
min-residency-us = <2000>;
|
|
|
|
substate-id = <2>;
|
|
|
|
};
|
|
|
|
|
|
|
|
d0i2: d0i2 {
|
|
|
|
compatible = "zephyr,power-state";
|
|
|
|
power-state-name = "suspend-to-ram";
|
|
|
|
min-residency-us = <4000>;
|
|
|
|
substate-id = <3>;
|
|
|
|
};
|
|
|
|
|
|
|
|
d0i3: d0i3 {
|
|
|
|
compatible = "zephyr,power-state";
|
|
|
|
power-state-name = "suspend-to-disk";
|
|
|
|
min-residency-us = <3000000>;
|
|
|
|
substate-id = <4>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-04-01 01:57:56 +08:00
|
|
|
cpus {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
cpu0: cpu0@0 {
|
|
|
|
device_type = "cpu";
|
|
|
|
compatible = "intel,ish";
|
|
|
|
reg = <0>;
|
2023-04-17 15:00:12 +08:00
|
|
|
cpu-power-states = <&d0i0 &d0i1 &d0i2 &d0i3>;
|
2023-04-01 01:57:56 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
intc: ioapic@fec00000 {
|
|
|
|
compatible = "intel,ioapic";
|
2023-08-17 22:23:08 +08:00
|
|
|
#address-cells = <1>;
|
|
|
|
#interrupt-cells = <3>;
|
2023-08-18 20:17:27 +08:00
|
|
|
reg = <0xfec00000 0x1000>;
|
2023-04-01 01:57:56 +08:00
|
|
|
interrupt-controller;
|
|
|
|
};
|
|
|
|
|
2023-07-07 04:27:04 +08:00
|
|
|
intc_loapic: loapic@fee00000 {
|
|
|
|
compatible = "intel,loapic";
|
|
|
|
reg = <0xfee00000 0x1000>;
|
|
|
|
interrupt-controller;
|
|
|
|
#interrupt-cells = <3>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
};
|
|
|
|
|
2023-04-01 01:57:56 +08:00
|
|
|
sram: memory@ff200000 {
|
|
|
|
device_type = "memory";
|
|
|
|
compatible = "mmio-sram";
|
|
|
|
reg = <0xff200000 DT_SIZE_K(640)>;
|
|
|
|
};
|
|
|
|
|
2023-05-16 13:59:21 +08:00
|
|
|
aon: memory@ff800000 {
|
|
|
|
device_type = "memory";
|
|
|
|
compatible = "zephyr,memory-region", "mmio-sram";
|
|
|
|
reg = <0xff800000 DT_SIZE_K(8)>;
|
|
|
|
zephyr,memory-region = "AON";
|
|
|
|
};
|
|
|
|
|
2023-04-01 01:57:56 +08:00
|
|
|
soc {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
compatible = "simple-bus";
|
|
|
|
ranges;
|
|
|
|
|
|
|
|
hpet: hpet@4700000{
|
|
|
|
compatible = "intel,hpet";
|
|
|
|
reg = <0x04700000 0x400>;
|
|
|
|
interrupt-parent = <&intc>;
|
|
|
|
interrupts = <14 IRQ_TYPE_FIXED_LEVEL_HIGH 2>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
uart0: uart@8100000 {
|
|
|
|
compatible = "intel,sedi-uart";
|
|
|
|
reg = <0x08100000 0x1000>;
|
|
|
|
interrupt-parent = <&intc>;
|
|
|
|
interrupts = <23 IRQ_TYPE_LOWEST_EDGE_RISING 6>;
|
2023-07-29 09:06:40 +08:00
|
|
|
peripheral-id = <0>;
|
2023-04-01 01:57:56 +08:00
|
|
|
current-speed = <115200>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
2023-07-31 21:18:53 +08:00
|
|
|
|
|
|
|
i2c0: i2c@0 {
|
|
|
|
compatible = "intel,sedi-i2c";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <0x0 0x1000>;
|
|
|
|
peripheral-id = <0>;
|
|
|
|
interrupt-parent = <&intc>;
|
|
|
|
interrupts = <15 IRQ_TYPE_LOWEST_LEVEL_HIGH 2>;
|
|
|
|
clock-frequency = <I2C_BITRATE_FAST>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
i2c1: i2c@2000 {
|
|
|
|
compatible = "intel,sedi-i2c";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <0x00002000 0x1000>;
|
|
|
|
peripheral-id = <1>;
|
|
|
|
interrupt-parent = <&intc>;
|
|
|
|
interrupts = <16 IRQ_TYPE_LOWEST_LEVEL_HIGH 2>;
|
|
|
|
clock-frequency = <I2C_BITRATE_FAST>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
i2c2: i2c@4000 {
|
|
|
|
compatible = "intel,sedi-i2c";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <0x00004000 0x1000>;
|
|
|
|
peripheral-id = <2>;
|
|
|
|
interrupt-parent = <&intc>;
|
|
|
|
interrupts = <17 IRQ_TYPE_LOWEST_LEVEL_HIGH 2>;
|
|
|
|
clock-frequency = <I2C_BITRATE_FAST>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
2023-04-01 01:57:56 +08:00
|
|
|
};
|
|
|
|
};
|