* [PATCH v4 1/2] arm64: dts: mediatek: mt8195: add efuse node and cells
@ 2022-06-17 7:23 Chunfeng Yun
2022-06-17 7:23 ` [PATCH v4 2/2] arm64: dts: mediatek: mt8195: enable usb remote wakeup Chunfeng Yun
2022-06-17 8:55 ` [PATCH v4 1/2] arm64: dts: mediatek: mt8195: add efuse node and cells Matthias Brugger
0 siblings, 2 replies; 3+ messages in thread
From: Chunfeng Yun @ 2022-06-17 7:23 UTC (permalink / raw)
To: Matthias Brugger
Cc: Rob Herring, Krzysztof Kozlowski, devicetree, linux-arm-kernel,
linux-mediatek, linux-kernel, Macpaul Lin,
AngeloGioacchino Del Regno, Chunfeng Yun
Add efuse node and cells used by t-phy to fix the bit shift issue
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tested-by: Macpaul Lin <macpaul.lin@mediatek.com>
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
---
v4: no changes
v3:
add reviewed-by and tested-by;
fix duplicated unit-address warning;
NOTE:
based on v5.18-next/dts64 of matthias.bgg's branch;
v2: no changes, just based on new mt8195.dtsi
---
arch/arm64/boot/dts/mediatek/mt8195.dtsi | 55 ++++++++++++++++++++++++
1 file changed, 55 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi b/arch/arm64/boot/dts/mediatek/mt8195.dtsi
index b57e620c2c72..d5bc4cf5f4ac 100644
--- a/arch/arm64/boot/dts/mediatek/mt8195.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8195.dtsi
@@ -691,6 +691,53 @@
status = "disabled";
};
+ efuse: efuse@11c10000 {
+ compatible = "mediatek,mt8195-efuse", "mediatek,efuse";
+ reg = <0 0x11c10000 0 0x1000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ u3_tx_imp_p0: usb3-tx-imp@184,1 {
+ reg = <0x184 0x1>;
+ bits = <0 5>;
+ };
+ u3_rx_imp_p0: usb3-rx-imp@184,2 {
+ reg = <0x184 0x2>;
+ bits = <5 5>;
+ };
+ u3_intr_p0: usb3-intr@185 {
+ reg = <0x185 0x1>;
+ bits = <2 6>;
+ };
+ comb_tx_imp_p1: usb3-tx-imp@186,1 {
+ reg = <0x186 0x1>;
+ bits = <0 5>;
+ };
+ comb_rx_imp_p1: usb3-rx-imp@186,2 {
+ reg = <0x186 0x2>;
+ bits = <5 5>;
+ };
+ comb_intr_p1: usb3-intr@187 {
+ reg = <0x187 0x1>;
+ bits = <2 6>;
+ };
+ u2_intr_p0: usb2-intr-p0@188,1 {
+ reg = <0x188 0x1>;
+ bits = <0 5>;
+ };
+ u2_intr_p1: usb2-intr-p1@188,2 {
+ reg = <0x188 0x2>;
+ bits = <5 5>;
+ };
+ u2_intr_p2: usb2-intr-p2@189,1 {
+ reg = <0x189 0x1>;
+ bits = <2 5>;
+ };
+ u2_intr_p3: usb2-intr-p3@189,2 {
+ reg = <0x189 0x2>;
+ bits = <7 5>;
+ };
+ };
+
u3phy2: t-phy@11c40000 {
compatible = "mediatek,mt8195-tphy", "mediatek,generic-tphy-v3";
#address-cells = <1>;
@@ -873,6 +920,10 @@
clocks = <&apmixedsys CLK_APMIXED_PLL_SSUSB26M>,
<&topckgen CLK_TOP_SSUSB_PHY_P1_REF>;
clock-names = "ref", "da_ref";
+ nvmem-cells = <&comb_intr_p1>,
+ <&comb_rx_imp_p1>,
+ <&comb_tx_imp_p1>;
+ nvmem-cell-names = "intr", "rx_imp", "tx_imp";
#phy-cells = <1>;
};
};
@@ -897,6 +948,10 @@
clocks = <&apmixedsys CLK_APMIXED_PLL_SSUSB26M>,
<&topckgen CLK_TOP_SSUSB_PHY_REF>;
clock-names = "ref", "da_ref";
+ nvmem-cells = <&u3_intr_p0>,
+ <&u3_rx_imp_p0>,
+ <&u3_tx_imp_p0>;
+ nvmem-cell-names = "intr", "rx_imp", "tx_imp";
#phy-cells = <1>;
};
};
--
2.18.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH v4 2/2] arm64: dts: mediatek: mt8195: enable usb remote wakeup
2022-06-17 7:23 [PATCH v4 1/2] arm64: dts: mediatek: mt8195: add efuse node and cells Chunfeng Yun
@ 2022-06-17 7:23 ` Chunfeng Yun
2022-06-17 8:55 ` [PATCH v4 1/2] arm64: dts: mediatek: mt8195: add efuse node and cells Matthias Brugger
1 sibling, 0 replies; 3+ messages in thread
From: Chunfeng Yun @ 2022-06-17 7:23 UTC (permalink / raw)
To: Matthias Brugger
Cc: Rob Herring, Krzysztof Kozlowski, devicetree, linux-arm-kernel,
linux-mediatek, linux-kernel, Macpaul Lin,
AngeloGioacchino Del Regno, Chunfeng Yun
Enable USB remote wakeup of all four xHCI controller
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tested-by: Macpaul Lin <macpaul.lin@mediatek.com>
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
---
v4: add tested-by Macpaul
v3: add reviewed-by AngeloGioacchino;
NOTE:
based on v5.18-next/dts64 of matthias.bgg's branch
v2: no changes, based on new version of mt8195.dtsi
---
arch/arm64/boot/dts/mediatek/mt8195.dtsi | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi b/arch/arm64/boot/dts/mediatek/mt8195.dtsi
index d5bc4cf5f4ac..3ad14e0e0956 100644
--- a/arch/arm64/boot/dts/mediatek/mt8195.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8195.dtsi
@@ -573,6 +573,8 @@
<&apmixedsys CLK_APMIXED_USB1PLL>,
<&infracfg_ao CLK_INFRA_AO_SSUSB_XHCI>;
clock-names = "sys_ck", "ref_ck", "mcu_ck", "xhci_ck";
+ mediatek,syscon-wakeup = <&pericfg 0x400 103>;
+ wakeup-source;
status = "disabled";
};
@@ -636,6 +638,8 @@
<&apmixedsys CLK_APMIXED_USB1PLL>,
<&pericfg_ao CLK_PERI_AO_SSUSB_1P_XHCI>;
clock-names = "sys_ck", "ref_ck", "mcu_ck","xhci_ck";
+ mediatek,syscon-wakeup = <&pericfg 0x400 104>;
+ wakeup-source;
status = "disabled";
};
@@ -655,6 +659,8 @@
<&topckgen CLK_TOP_SSUSB_P2_REF>,
<&pericfg_ao CLK_PERI_AO_SSUSB_2P_XHCI>;
clock-names = "sys_ck", "ref_ck", "xhci_ck";
+ mediatek,syscon-wakeup = <&pericfg 0x400 105>;
+ wakeup-source;
status = "disabled";
};
@@ -674,6 +680,8 @@
<&topckgen CLK_TOP_SSUSB_P3_REF>,
<&pericfg_ao CLK_PERI_AO_SSUSB_3P_XHCI>;
clock-names = "sys_ck", "ref_ck", "xhci_ck";
+ mediatek,syscon-wakeup = <&pericfg 0x400 106>;
+ wakeup-source;
status = "disabled";
};
--
2.18.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v4 1/2] arm64: dts: mediatek: mt8195: add efuse node and cells
2022-06-17 7:23 [PATCH v4 1/2] arm64: dts: mediatek: mt8195: add efuse node and cells Chunfeng Yun
2022-06-17 7:23 ` [PATCH v4 2/2] arm64: dts: mediatek: mt8195: enable usb remote wakeup Chunfeng Yun
@ 2022-06-17 8:55 ` Matthias Brugger
1 sibling, 0 replies; 3+ messages in thread
From: Matthias Brugger @ 2022-06-17 8:55 UTC (permalink / raw)
To: Chunfeng Yun
Cc: Rob Herring, Krzysztof Kozlowski, devicetree, linux-arm-kernel,
linux-mediatek, linux-kernel, Macpaul Lin,
AngeloGioacchino Del Regno
Series applied, thanks!
On 17/06/2022 09:23, Chunfeng Yun wrote:
> Add efuse node and cells used by t-phy to fix the bit shift issue
>
> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
> Tested-by: Macpaul Lin <macpaul.lin@mediatek.com>
> Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
> ---
> v4: no changes
>
> v3:
> add reviewed-by and tested-by;
> fix duplicated unit-address warning;
>
> NOTE:
> based on v5.18-next/dts64 of matthias.bgg's branch;
>
> v2: no changes, just based on new mt8195.dtsi
> ---
> arch/arm64/boot/dts/mediatek/mt8195.dtsi | 55 ++++++++++++++++++++++++
> 1 file changed, 55 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi b/arch/arm64/boot/dts/mediatek/mt8195.dtsi
> index b57e620c2c72..d5bc4cf5f4ac 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8195.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt8195.dtsi
> @@ -691,6 +691,53 @@
> status = "disabled";
> };
>
> + efuse: efuse@11c10000 {
> + compatible = "mediatek,mt8195-efuse", "mediatek,efuse";
> + reg = <0 0x11c10000 0 0x1000>;
> + #address-cells = <1>;
> + #size-cells = <1>;
> + u3_tx_imp_p0: usb3-tx-imp@184,1 {
> + reg = <0x184 0x1>;
> + bits = <0 5>;
> + };
> + u3_rx_imp_p0: usb3-rx-imp@184,2 {
> + reg = <0x184 0x2>;
> + bits = <5 5>;
> + };
> + u3_intr_p0: usb3-intr@185 {
> + reg = <0x185 0x1>;
> + bits = <2 6>;
> + };
> + comb_tx_imp_p1: usb3-tx-imp@186,1 {
> + reg = <0x186 0x1>;
> + bits = <0 5>;
> + };
> + comb_rx_imp_p1: usb3-rx-imp@186,2 {
> + reg = <0x186 0x2>;
> + bits = <5 5>;
> + };
> + comb_intr_p1: usb3-intr@187 {
> + reg = <0x187 0x1>;
> + bits = <2 6>;
> + };
> + u2_intr_p0: usb2-intr-p0@188,1 {
> + reg = <0x188 0x1>;
> + bits = <0 5>;
> + };
> + u2_intr_p1: usb2-intr-p1@188,2 {
> + reg = <0x188 0x2>;
> + bits = <5 5>;
> + };
> + u2_intr_p2: usb2-intr-p2@189,1 {
> + reg = <0x189 0x1>;
> + bits = <2 5>;
> + };
> + u2_intr_p3: usb2-intr-p3@189,2 {
> + reg = <0x189 0x2>;
> + bits = <7 5>;
> + };
> + };
> +
> u3phy2: t-phy@11c40000 {
> compatible = "mediatek,mt8195-tphy", "mediatek,generic-tphy-v3";
> #address-cells = <1>;
> @@ -873,6 +920,10 @@
> clocks = <&apmixedsys CLK_APMIXED_PLL_SSUSB26M>,
> <&topckgen CLK_TOP_SSUSB_PHY_P1_REF>;
> clock-names = "ref", "da_ref";
> + nvmem-cells = <&comb_intr_p1>,
> + <&comb_rx_imp_p1>,
> + <&comb_tx_imp_p1>;
> + nvmem-cell-names = "intr", "rx_imp", "tx_imp";
> #phy-cells = <1>;
> };
> };
> @@ -897,6 +948,10 @@
> clocks = <&apmixedsys CLK_APMIXED_PLL_SSUSB26M>,
> <&topckgen CLK_TOP_SSUSB_PHY_REF>;
> clock-names = "ref", "da_ref";
> + nvmem-cells = <&u3_intr_p0>,
> + <&u3_rx_imp_p0>,
> + <&u3_tx_imp_p0>;
> + nvmem-cell-names = "intr", "rx_imp", "tx_imp";
> #phy-cells = <1>;
> };
> };
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-06-17 8:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-17 7:23 [PATCH v4 1/2] arm64: dts: mediatek: mt8195: add efuse node and cells Chunfeng Yun
2022-06-17 7:23 ` [PATCH v4 2/2] arm64: dts: mediatek: mt8195: enable usb remote wakeup Chunfeng Yun
2022-06-17 8:55 ` [PATCH v4 1/2] arm64: dts: mediatek: mt8195: add efuse node and cells Matthias Brugger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).