[Fire Android Development] michaelehoward1986:
Old Files are they useful

hey I have stumbled across an old file from Oct 2017 from when I was hunting around for a Chinese rom file the files called devicetree-rebasing-master.tar.gz it has a buunch of mtk files in there alot like this one: MediaTek SCPSYS

===============

The System Control Processor System (SCPSYS) has several power management

related tasks in the system. The tasks include thermal measurement, dynamic

voltage frequency scaling (DVFS), interrupt filter and lowlevel sleep control.

The System Power Manager (SPM) inside the SCPSYS is for the MTCMOS power

domain control.

The driver implements the Generic PM domain bindings described in

power/power_domain.txt. It provides the power domains defined in

- include/dt-bindings/power/mt8173-power.h

- include/dt-bindings/power/mt6797-power.h

- include/dt-bindings/power/mt2701-power.h

- include/dt-bindings/power/mt7622-power.h

Required properties:

- compatible: Should be one of:

- "mediatek,mt2701-scpsys"

- "mediatek,mt6797-scpsys"

- "mediatek,mt7622-scpsys"

- "mediatek,mt8173-scpsys"

- #power-domain-cells: Must be 1

- reg: Address range of the SCPSYS unit

- infracfg: must contain a phandle to the infracfg controller

- clock, clock-names: clocks according to the common clock binding.

These are clocks which hardware needs to be

enabled before enabling certain power domains.

Required clocks for MT2701: "mm", "mfg", "ethif"

Required clocks for MT6797: "mm", "mfg", "vdec"

Required clocks for MT7622: "hif_sel"

Required clocks for MT8173: "mm", "mfg", "venc", "venc_lt"

Optional properties:

- vdec-supply: Power supply for the vdec power domain

- venc-supply: Power supply for the venc power domain

- isp-supply: Power supply for the isp power domain

- mm-supply: Power supply for the mm power domain

- venc_lt-supply: Power supply for the venc_lt power domain

- audio-supply: Power supply for the audio power domain

- usb-supply: Power supply for the usb power domain

- mfg_async-supply: Power supply for the mfg_async power domain

- mfg_2d-supply: Power supply for the mfg_2d power domain

- mfg-supply: Power supply for the mfg power domain

looking to learn more as well as need to unbrick fire 8 2016 black screen and fire 7 2015 black screen

---------- Post added at 09:45 AM ---------- Previous post was at 09:37 AM ----------

MediaTek PMIC Wrapper Driver

This document describes the binding for the MediaTek PMIC wrapper.

On MediaTek SoCs the PMIC is connected via SPI. The SPI master interface

is not directly visible to the CPU, but only through the PMIC wrapper

inside the SoC. The communication between the SoC and the PMIC can

optionally be encrypted. Also a non standard Dual IO SPI mode can be

used to increase speed.

IP Pairing

on MT8135 the pins of some SoC internal peripherals can be on the PMIC.

The signals of these pins are routed over the SPI bus using the pwrap

bridge. In the binding description below the properties needed for bridging

are marked with "IP Pairing". These are optional on SoCs which do not support

IP Pairing

* Mediatek Universal Asynchronous Receiver/Transmitter (UART)

Required properties:

- compatible should contain:

* "mediatek,mt2701-uart" for MT2701 compatible UARTS

* "mediatek,mt2712-uart" for MT2712 compatible UARTS

* "mediatek,mt6580-uart" for MT6580 compatible UARTS

* "mediatek,mt6582-uart" for MT6582 compatible UARTS

* "mediatek,mt6589-uart" for MT6589 compatible UARTS

* "mediatek,mt6755-uart" for MT6755 compatible UARTS

* "mediatek,mt6795-uart" for MT6795 compatible UARTS

* "mediatek,mt6797-uart" for MT6797 compatible UARTS

* "mediatek,mt7622-uart" for MT7622 compatible UARTS

* "mediatek,mt7623-uart" for MT7623 compatible UARTS

* "mediatek,mt8127-uart" for MT8127 compatible UARTS

* "mediatek,mt8135-uart" for MT8135 compatible UARTS

* "mediatek,mt8173-uart" for MT8173 compatible UARTS

* "mediatek,mt6577-uart" for MT6577 and all of the above

- reg: The base address of the UART register bank.

- interrupts: A single interrupt specifier.

* Mediatek 27xx cirq

In Mediatek SOCs, the CIRQ is a low power interrupt controller designed to

work outside MCUSYS which comprises with Cortex-Ax cores,CCI and GIC.

The external interrupts (outside MCUSYS) will feed through CIRQ and connect

to GIC in MCUSYS. When CIRQ is enabled, it will record the edge-sensitive

interrupts and generate a pulse signal to parent interrupt controller when

flush command is executed. With CIRQ, MCUSYS can be completely turned off

to improve the system power consumption without losing interrupts.

Required properties:

- compatible: should be one of

- "mediatek,mt2701-cirq" for mt2701 CIRQ

- "mediatek,mt8135-cirq" for mt8135 CIRQ

- "mediatek,mt8173-cirq" for mt8173 CIRQ

and "mediatek,cirq" as a fallback.

- interrupt-controller : Identifies the node as an interrupt controller.

- #interrupt-cells : Use the same format as specified by GIC in arm,gic.txt.

- interrupt-parent: phandle of irq parent for cirq. The parent must

use the same interrupt-cells format as GIC.

- reg: Physical base address of the cirq registers and length of memory

mapped region.

- mediatek,ext-irq-range: Identifies external irq number range in different

SOCs.

+Mediatek MT65xx/MT67xx/MT81xx sysirq

Mediatek SOCs sysirq support controllable irq inverter for each GIC SPI

interrupt.

Required properties:

- compatible: should be

"mediatek,mt8173-sysirq", "mediatek,mt6577-sysirq": for MT8173

"mediatek,mt8135-sysirq", "mediatek,mt6577-sysirq": for MT8135

"mediatek,mt8127-sysirq", "mediatek,mt6577-sysirq": for MT8127

"mediatek,mt7622-sysirq", "mediatek,mt6577-sysirq": for MT7622

"mediatek,mt6795-sysirq", "mediatek,mt6577-sysirq": for MT6795

"mediatek,mt6797-sysirq", "mediatek,mt6577-sysirq": for MT6797

"mediatek,mt6755-sysirq", "mediatek,mt6577-sysirq": for MT6755

"mediatek,mt6592-sysirq", "mediatek,mt6577-sysirq": for MT6592

"mediatek,mt6589-sysirq", "mediatek,mt6577-sysirq": for MT6589

"mediatek,mt6582-sysirq", "mediatek,mt6577-sysirq": for MT6582

"mediatek,mt6580-sysirq", "mediatek,mt6577-sysirq": for MT6580

"mediatek,mt6577-sysirq": for MT6577

"mediatek,mt2712-sysirq", "mediatek,mt6577-sysirq": for MT2712

"mediatek,mt2701-sysirq", "mediatek,mt6577-sysirq": for MT2701

- interrupt-controller : Identifies the node as an interrupt controller

- #interrupt-cells : Use the same format as specified by GIC in arm,gic.txt.

- interrupt-parent: phandle of irq parent for sysirq. The parent must

use the same interrupt-cells format as GIC.

- reg: Physical base address of the intpol registers and length of memory

mapped region. Could be multiple bases here. Ex: mt6797 needs 2 reg, others

need 1.

these are just pieces of some of them