* [PATCH v1 0/2] Add reset control for DSI0
@ 2023-03-22 3:22 Shawn Sung
2023-03-22 3:22 ` [PATCH v1 1/2] dt-bindings: reset: mt8188: " Shawn Sung
2023-03-22 3:22 ` [PATCH v1 2/2] soc: mediatek: " Shawn Sung
0 siblings, 2 replies; 5+ messages in thread
From: Shawn Sung @ 2023-03-22 3:22 UTC (permalink / raw)
To: Matthias Brugger, AngeloGioacchino Del Regno, Philipp Zabel,
Rob Herring, Krzysztof Kozlowski
Cc: linux-kernel, linux-arm-kernel, linux-mediatek, devicetree,
Project_Global_Chrome_Upstream_Group, Chun-Kuang Hu, Singo Chang,
Nancy Lin, Jason-JH Lin, Shawn Sung
Add below patches to add reset control for DSI0:
[PATCH v1 1/2] dt-bindings: reset: mt8188: Add reset control for DSI0
[PATCH v1 2/2] soc: mediatek: Add reset control for DSI0
Shawn Sung (2):
dt-bindings: reset: mt8188: Add reset control for DSI0
soc: mediatek: Add reset control for DSI0
drivers/soc/mediatek/mt8188-mmsys.h | 1 +
drivers/soc/mediatek/mtk-mmsys.c | 2 ++
include/dt-bindings/reset/mt8188-resets.h | 3 +++
3 files changed, 6 insertions(+)
--
2.18.0
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v1 1/2] dt-bindings: reset: mt8188: Add reset control for DSI0
2023-03-22 3:22 [PATCH v1 0/2] Add reset control for DSI0 Shawn Sung
@ 2023-03-22 3:22 ` Shawn Sung
2023-03-22 8:34 ` Krzysztof Kozlowski
2023-03-22 3:22 ` [PATCH v1 2/2] soc: mediatek: " Shawn Sung
1 sibling, 1 reply; 5+ messages in thread
From: Shawn Sung @ 2023-03-22 3:22 UTC (permalink / raw)
To: Matthias Brugger, AngeloGioacchino Del Regno, Philipp Zabel,
Rob Herring, Krzysztof Kozlowski
Cc: linux-kernel, linux-arm-kernel, linux-mediatek, devicetree,
Project_Global_Chrome_Upstream_Group, Chun-Kuang Hu, Singo Chang,
Nancy Lin, Jason-JH Lin, Shawn Sung
Add reset control for DSI0.
Signed-off-by: Shawn Sung <shawn.sung@mediatek.com>
---
include/dt-bindings/reset/mt8188-resets.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/dt-bindings/reset/mt8188-resets.h b/include/dt-bindings/reset/mt8188-resets.h
index 377cdfda82a9..5c9e74130ef0 100644
--- a/include/dt-bindings/reset/mt8188-resets.h
+++ b/include/dt-bindings/reset/mt8188-resets.h
@@ -33,4 +33,7 @@
#define MT8188_TOPRGU_SW_RST_NUM 24
+/* VDOSYS0 */
+#define MT8188_VDO0_RST_DSI0 21
+
#endif /* _DT_BINDINGS_RESET_CONTROLLER_MT8188 */
--
2.18.0
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v1 2/2] soc: mediatek: Add reset control for DSI0
2023-03-22 3:22 [PATCH v1 0/2] Add reset control for DSI0 Shawn Sung
2023-03-22 3:22 ` [PATCH v1 1/2] dt-bindings: reset: mt8188: " Shawn Sung
@ 2023-03-22 3:22 ` Shawn Sung
1 sibling, 0 replies; 5+ messages in thread
From: Shawn Sung @ 2023-03-22 3:22 UTC (permalink / raw)
To: Matthias Brugger, AngeloGioacchino Del Regno, Philipp Zabel,
Rob Herring, Krzysztof Kozlowski
Cc: linux-kernel, linux-arm-kernel, linux-mediatek, devicetree,
Project_Global_Chrome_Upstream_Group, Chun-Kuang Hu, Singo Chang,
Nancy Lin, Jason-JH Lin, Shawn Sung
Add reset control for DSI0.
Signed-off-by: Shawn Sung <shawn.sung@mediatek.com>
---
drivers/soc/mediatek/mt8188-mmsys.h | 1 +
drivers/soc/mediatek/mtk-mmsys.c | 2 ++
2 files changed, 3 insertions(+)
diff --git a/drivers/soc/mediatek/mt8188-mmsys.h b/drivers/soc/mediatek/mt8188-mmsys.h
index 448cc3761b43..08c7de771aec 100644
--- a/drivers/soc/mediatek/mt8188-mmsys.h
+++ b/drivers/soc/mediatek/mt8188-mmsys.h
@@ -3,6 +3,7 @@
#ifndef __SOC_MEDIATEK_MT8188_MMSYS_H
#define __SOC_MEDIATEK_MT8188_MMSYS_H
+#define MT8188_VDO0_SW0_RST_B 0x190
#define MT8188_VDO0_OVL_MOUT_EN 0xf14
#define MT8188_MOUT_DISP_OVL0_TO_DISP_RDMA0 BIT(0)
#define MT8188_MOUT_DISP_OVL0_TO_DISP_WDMA0 BIT(1)
diff --git a/drivers/soc/mediatek/mtk-mmsys.c b/drivers/soc/mediatek/mtk-mmsys.c
index eb4c7e57896c..e82dd42d9c34 100644
--- a/drivers/soc/mediatek/mtk-mmsys.c
+++ b/drivers/soc/mediatek/mtk-mmsys.c
@@ -78,6 +78,8 @@ static const struct mtk_mmsys_driver_data mt8188_vdosys0_driver_data = {
.clk_driver = "clk-mt8188-vdo0",
.routes = mmsys_mt8188_routing_table,
.num_routes = ARRAY_SIZE(mmsys_mt8188_routing_table),
+ .sw0_rst_offset = MT8188_VDO0_SW0_RST_B,
+ .num_resets = 32,
};
static const struct mtk_mmsys_driver_data mt8192_mmsys_driver_data = {
--
2.18.0
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v1 1/2] dt-bindings: reset: mt8188: Add reset control for DSI0
2023-03-22 3:22 ` [PATCH v1 1/2] dt-bindings: reset: mt8188: " Shawn Sung
@ 2023-03-22 8:34 ` Krzysztof Kozlowski
2023-03-22 9:27 ` AngeloGioacchino Del Regno
0 siblings, 1 reply; 5+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-22 8:34 UTC (permalink / raw)
To: Shawn Sung, Matthias Brugger, AngeloGioacchino Del Regno,
Philipp Zabel, Rob Herring, Krzysztof Kozlowski
Cc: linux-kernel, linux-arm-kernel, linux-mediatek, devicetree,
Project_Global_Chrome_Upstream_Group, Chun-Kuang Hu, Singo Chang,
Nancy Lin, Jason-JH Lin
On 22/03/2023 04:22, Shawn Sung wrote:
> Add reset control for DSI0.
>
> Signed-off-by: Shawn Sung <shawn.sung@mediatek.com>
> ---
> include/dt-bindings/reset/mt8188-resets.h | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/include/dt-bindings/reset/mt8188-resets.h b/include/dt-bindings/reset/mt8188-resets.h
> index 377cdfda82a9..5c9e74130ef0 100644
> --- a/include/dt-bindings/reset/mt8188-resets.h
> +++ b/include/dt-bindings/reset/mt8188-resets.h
> @@ -33,4 +33,7 @@
>
> #define MT8188_TOPRGU_SW_RST_NUM 24
>
> +/* VDOSYS0 */
> +#define MT8188_VDO0_RST_DSI0 21
Why this is not 0? IDs start from 0.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v1 1/2] dt-bindings: reset: mt8188: Add reset control for DSI0
2023-03-22 8:34 ` Krzysztof Kozlowski
@ 2023-03-22 9:27 ` AngeloGioacchino Del Regno
0 siblings, 0 replies; 5+ messages in thread
From: AngeloGioacchino Del Regno @ 2023-03-22 9:27 UTC (permalink / raw)
To: Krzysztof Kozlowski, Shawn Sung, Matthias Brugger, Philipp Zabel,
Rob Herring, Krzysztof Kozlowski
Cc: linux-kernel, linux-arm-kernel, linux-mediatek, devicetree,
Project_Global_Chrome_Upstream_Group, Chun-Kuang Hu, Singo Chang,
Nancy Lin, Jason-JH Lin
Il 22/03/23 09:34, Krzysztof Kozlowski ha scritto:
> On 22/03/2023 04:22, Shawn Sung wrote:
>> Add reset control for DSI0.
>>
>> Signed-off-by: Shawn Sung <shawn.sung@mediatek.com>
>> ---
>> include/dt-bindings/reset/mt8188-resets.h | 3 +++
>> 1 file changed, 3 insertions(+)
>>
>> diff --git a/include/dt-bindings/reset/mt8188-resets.h b/include/dt-bindings/reset/mt8188-resets.h
>> index 377cdfda82a9..5c9e74130ef0 100644
>> --- a/include/dt-bindings/reset/mt8188-resets.h
>> +++ b/include/dt-bindings/reset/mt8188-resets.h
>> @@ -33,4 +33,7 @@
>>
>> #define MT8188_TOPRGU_SW_RST_NUM 24
>>
>> +/* VDOSYS0 */
>> +#define MT8188_VDO0_RST_DSI0 21
>
> Why this is not 0? IDs start from 0.
>
Because mtk-mmsys needs to be fixed, bindings IDs are *again* 1:1 with HW bits,
there's no mapping like the one that was "recently" done in clk/mediatek resets.
Since VDO0/1 have got lots of holes in reset bit mapping, it's definitely time
to fix this situation now.....
Shawn, please fix.
For your reference, look at [1] and [2].
[1]: https://lore.kernel.org/all/20220523060056.24396-9-rex-bc.chen@mediatek.com/
[2]: https://lore.kernel.org/all/20220523060056.24396-15-rex-bc.chen@mediatek.com/
Regards,
Angelo
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-03-22 9:27 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-22 3:22 [PATCH v1 0/2] Add reset control for DSI0 Shawn Sung
2023-03-22 3:22 ` [PATCH v1 1/2] dt-bindings: reset: mt8188: " Shawn Sung
2023-03-22 8:34 ` Krzysztof Kozlowski
2023-03-22 9:27 ` AngeloGioacchino Del Regno
2023-03-22 3:22 ` [PATCH v1 2/2] soc: mediatek: " Shawn Sung
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®