Skip to content

Commit

Permalink
arm64: dts: mt8183: add scp node
Browse files Browse the repository at this point in the history
Add scp node to mt8183 and mt8183-evb

Signed-off-by: Erin Lo <[email protected]>
Signed-off-by: Pi-Hsun Shih <[email protected]>
Signed-off-by: Eddie Huang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
[mb: squashed both patches]
Signed-off-by: Matthias Brugger <[email protected]>
  • Loading branch information
EddieHuangMTK authored and mbgg committed Sep 10, 2020
1 parent 9d95547 commit 1652dbf
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
11 changes: 11 additions & 0 deletions arch/arm64/boot/dts/mediatek/mt8183-evb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,17 @@
chosen {
stdout-path = "serial0:921600n8";
};

reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
ranges;
scp_mem_reserved: scp_mem_region {
compatible = "shared-dma-pool";
reg = <0 0x50000000 0 0x2900000>;
no-map;
};
};
};

&auxadc {
Expand Down
30 changes: 30 additions & 0 deletions arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,18 @@
regulator-max-microvolt = <3300000>;
};

reserved_memory: reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
ranges;

scp_mem_reserved: scp_mem_region {
compatible = "shared-dma-pool";
reg = <0 0x50000000 0 0x2900000>;
no-map;
};
};

max98357a: codec0 {
compatible = "maxim,max98357a";
sdmode-gpios = <&pio 175 0>;
Expand Down Expand Up @@ -524,6 +536,13 @@
};
};

scp_pins: scp {
pins_scp_uart {
pinmux = <PINMUX_GPIO110__FUNC_TP_URXD1_AO>,
<PINMUX_GPIO112__FUNC_TP_UTXD1_AO>;
};
};

spi0_pins: spi0 {
pins_spi{
pinmux = <PINMUX_GPIO85__FUNC_SPI0_MI>,
Expand Down Expand Up @@ -651,6 +670,17 @@
};
};

&scp {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&scp_pins>;

cros_ec {
compatible = "google,cros-ec-rpmsg";
mtk,rpmsg-name = "cros-ec-rpmsg";
};
};

&soc_data {
status = "okay";
};
Expand Down
12 changes: 12 additions & 0 deletions arch/arm64/boot/dts/mediatek/mt8183.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,18 @@
clock-names = "spi", "wrap";
};

scp: scp@10500000 {
compatible = "mediatek,mt8183-scp";
reg = <0 0x10500000 0 0x80000>,
<0 0x105c0000 0 0x19080>;
reg-names = "sram", "cfg";
interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&infracfg CLK_INFRA_SCPSYS>;
clock-names = "main";
memory-region = <&scp_mem_reserved>;
status = "disabled";
};

systimer: timer@10017000 {
compatible = "mediatek,mt8183-timer",
"mediatek,mt6765-timer";
Expand Down

0 comments on commit 1652dbf

Please sign in to comment.