* [PATCH v3 0/3] add dsi pwm0 node for mt8183
@ 2019-10-28 11:50 Jitao Shi
2019-10-28 11:50 ` [PATCHi v3 1/3] arm64: dts: mt8183: add dsi node Jitao Shi
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Jitao Shi @ 2019-10-28 11:50 UTC (permalink / raw)
To: Rob Herring, Mark Rutland, Matthias Brugger, linux-arm-kernel,
linux-mediatek, linux-kernel
Cc: Jitao Shi, srv_heupstream
Changes since v2:
- add calibration property in mipitx and efuse.
Changes since v1:
- remove "mediatek,mt8173-dsi" from dsi node.
This patch is based on v5.4-rc5 and these patches:
https://patchwork.kernel.org/patch/10938825/
Jitao Shi (3):
arm64: dts: mt8183: add dsi node
arm64: dts: mt8183: add pwm0 node
arm64: dts: mt8183: add calibration property in mipitx and efuse
arch/arm64/boot/dts/mediatek/mt8183.dtsi | 40 ++++++++++++++++++++++++
1 file changed, 40 insertions(+)
--
2.21.0
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCHi v3 1/3] arm64: dts: mt8183: add dsi node
2019-10-28 11:50 [PATCH v3 0/3] add dsi pwm0 node for mt8183 Jitao Shi
@ 2019-10-28 11:50 ` Jitao Shi
2019-11-10 19:43 ` Matthias Brugger
2019-10-28 11:50 ` [PATCH v3 2/3] arm64: dts: mt8183: add pwm0 node Jitao Shi
2019-10-28 11:50 ` [PATCH v3 3/3] arm64: dts: mt8183: add calibration property in mipitx and efuse Jitao Shi
2 siblings, 1 reply; 5+ messages in thread
From: Jitao Shi @ 2019-10-28 11:50 UTC (permalink / raw)
To: Rob Herring, Mark Rutland, Matthias Brugger, linux-arm-kernel,
linux-mediatek, linux-kernel
Cc: Jitao Shi, srv_heupstream
Add dsi and mipitx nodes to the mt8183
Signed-off-by: Jitao Shi <jitao.shi@mediatek.com>
---
arch/arm64/boot/dts/mediatek/mt8183.dtsi | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi
index 2857583f5d60..bb0d53be6a25 100644
--- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi
@@ -649,6 +649,16 @@
#clock-cells = <1>;
};
+ mipi_tx0: mipi-dphy@11e50000 {
+ compatible = "mediatek,mt8183-mipi-tx";
+ reg = <0 0x11e50000 0 0x1000>;
+ clocks = <&apmixedsys CLK_APMIXED_MIPID0_26M>;
+ clock-names = "ref_clk";
+ #clock-cells = <0>;
+ #phy-cells = <0>;
+ clock-output-names = "mipi_tx0_pll";
+ };
+
efuse: efuse@11f10000 {
compatible = "mediatek,mt8183-efuse",
"mediatek,efuse";
@@ -670,6 +680,20 @@
#clock-cells = <1>;
};
+ dsi0: dsi@14014000 {
+ compatible = "mediatek,mt8183-dsi";
+ reg = <0 0x14014000 0 0x1000>;
+ interrupts = <GIC_SPI 236 IRQ_TYPE_LEVEL_LOW>;
+ power-domains = <&scpsys MT8183_POWER_DOMAIN_DISP>;
+ mediatek,syscon-dsi = <&mmsys 0x140>;
+ clocks = <&mmsys CLK_MM_DSI0_MM>,
+ <&mmsys CLK_MM_DSI0_IF>,
+ <&mipi_tx0>;
+ clock-names = "engine", "digital", "hs";
+ phys = <&mipi_tx0>;
+ phy-names = "dphy";
+ };
+
imgsys: syscon@15020000 {
compatible = "mediatek,mt8183-imgsys", "syscon";
reg = <0 0x15020000 0 0x1000>;
--
2.21.0
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v3 2/3] arm64: dts: mt8183: add pwm0 node
2019-10-28 11:50 [PATCH v3 0/3] add dsi pwm0 node for mt8183 Jitao Shi
2019-10-28 11:50 ` [PATCHi v3 1/3] arm64: dts: mt8183: add dsi node Jitao Shi
@ 2019-10-28 11:50 ` Jitao Shi
2019-10-28 11:50 ` [PATCH v3 3/3] arm64: dts: mt8183: add calibration property in mipitx and efuse Jitao Shi
2 siblings, 0 replies; 5+ messages in thread
From: Jitao Shi @ 2019-10-28 11:50 UTC (permalink / raw)
To: Rob Herring, Mark Rutland, Matthias Brugger, linux-arm-kernel,
linux-mediatek, linux-kernel
Cc: Jitao Shi, srv_heupstream
Add pwm0 node to the mt8183
Signed-off-by: Jitao Shi <jitao.shi@mediatek.com>
---
arch/arm64/boot/dts/mediatek/mt8183.dtsi | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi
index bb0d53be6a25..2b6e010d6866 100644
--- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi
@@ -643,6 +643,17 @@
};
};
+ pwm0: pwm@1100e000 {
+ compatible = "mediatek,mt8183-disp-pwm";
+ reg = <0 0x1100e000 0 0x1000>;
+ interrupts = <GIC_SPI 128 IRQ_TYPE_LEVEL_LOW>;
+ power-domains = <&scpsys MT8183_POWER_DOMAIN_DISP>;
+ #pwm-cells = <2>;
+ clocks = <&topckgen CLK_TOP_MUX_DISP_PWM>,
+ <&infracfg CLK_INFRA_DISP_PWM>;
+ clock-names = "main", "mm";
+ };
+
audiosys: syscon@11220000 {
compatible = "mediatek,mt8183-audiosys", "syscon";
reg = <0 0x11220000 0 0x1000>;
--
2.21.0
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v3 3/3] arm64: dts: mt8183: add calibration property in mipitx and efuse
2019-10-28 11:50 [PATCH v3 0/3] add dsi pwm0 node for mt8183 Jitao Shi
2019-10-28 11:50 ` [PATCHi v3 1/3] arm64: dts: mt8183: add dsi node Jitao Shi
2019-10-28 11:50 ` [PATCH v3 2/3] arm64: dts: mt8183: add pwm0 node Jitao Shi
@ 2019-10-28 11:50 ` Jitao Shi
2 siblings, 0 replies; 5+ messages in thread
From: Jitao Shi @ 2019-10-28 11:50 UTC (permalink / raw)
To: Rob Herring, Mark Rutland, Matthias Brugger, linux-arm-kernel,
linux-mediatek, linux-kernel
Cc: Jitao Shi, srv_heupstream
Get mipitx calibration data from efuse.
Signed-off-by: Jitao Shi <jitao.shi@mediatek.com>
---
arch/arm64/boot/dts/mediatek/mt8183.dtsi | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi
index 2b6e010d6866..7bfb8dafe1ce 100644
--- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi
@@ -668,12 +668,17 @@
#clock-cells = <0>;
#phy-cells = <0>;
clock-output-names = "mipi_tx0_pll";
+ nvmem-cells = <&mipi_tx_calibration>;
+ nvmem-cell-names = "calibration-data";
};
efuse: efuse@11f10000 {
compatible = "mediatek,mt8183-efuse",
"mediatek,efuse";
reg = <0 0x11f10000 0 0x1000>;
+ mipi_tx_calibration: calib@190 {
+ reg = <0x190 0xc>;
+ };
thermal_calibration: calib@180 {
reg = <0x180 0xc>;
};
--
2.21.0
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCHi v3 1/3] arm64: dts: mt8183: add dsi node
2019-10-28 11:50 ` [PATCHi v3 1/3] arm64: dts: mt8183: add dsi node Jitao Shi
@ 2019-11-10 19:43 ` Matthias Brugger
0 siblings, 0 replies; 5+ messages in thread
From: Matthias Brugger @ 2019-11-10 19:43 UTC (permalink / raw)
To: Jitao Shi, Rob Herring, Mark Rutland, linux-arm-kernel,
linux-mediatek, linux-kernel
Cc: srv_heupstream
On 28/10/2019 12:50, Jitao Shi wrote:
> Add dsi and mipitx nodes to the mt8183
>
> Signed-off-by: Jitao Shi <jitao.shi@mediatek.com>
> ---
> arch/arm64/boot/dts/mediatek/mt8183.dtsi | 24 ++++++++++++++++++++++++
> 1 file changed, 24 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi
> index 2857583f5d60..bb0d53be6a25 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi
> @@ -649,6 +649,16 @@
> #clock-cells = <1>;
> };
>
> + mipi_tx0: mipi-dphy@11e50000 {
> + compatible = "mediatek,mt8183-mipi-tx";
> + reg = <0 0x11e50000 0 0x1000>;
> + clocks = <&apmixedsys CLK_APMIXED_MIPID0_26M>;
> + clock-names = "ref_clk";
> + #clock-cells = <0>;
> + #phy-cells = <0>;
> + clock-output-names = "mipi_tx0_pll";
> + };
> +
> efuse: efuse@11f10000 {
> compatible = "mediatek,mt8183-efuse",
> "mediatek,efuse";
> @@ -670,6 +680,20 @@
> #clock-cells = <1>;
> };
>
> + dsi0: dsi@14014000 {
> + compatible = "mediatek,mt8183-dsi";
> + reg = <0 0x14014000 0 0x1000>;
> + interrupts = <GIC_SPI 236 IRQ_TYPE_LEVEL_LOW>;
> + power-domains = <&scpsys MT8183_POWER_DOMAIN_DISP>;
> + mediatek,syscon-dsi = <&mmsys 0x140>;
mediatek,syscon-dsi isn't defined anywhere and not used in the driver. Please
delete.
> + clocks = <&mmsys CLK_MM_DSI0_MM>,
> + <&mmsys CLK_MM_DSI0_IF>,
> + <&mipi_tx0>;
> + clock-names = "engine", "digital", "hs";
> + phys = <&mipi_tx0>;
> + phy-names = "dphy";
> + };
> +
> imgsys: syscon@15020000 {
> compatible = "mediatek,mt8183-imgsys", "syscon";
> reg = <0 0x15020000 0 0x1000>;
>
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-11-10 19:43 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-28 11:50 [PATCH v3 0/3] add dsi pwm0 node for mt8183 Jitao Shi
2019-10-28 11:50 ` [PATCHi v3 1/3] arm64: dts: mt8183: add dsi node Jitao Shi
2019-11-10 19:43 ` Matthias Brugger
2019-10-28 11:50 ` [PATCH v3 2/3] arm64: dts: mt8183: add pwm0 node Jitao Shi
2019-10-28 11:50 ` [PATCH v3 3/3] arm64: dts: mt8183: add calibration property in mipitx and efuse Jitao Shi
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).