Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp90751pxv; Wed, 30 Jun 2021 15:50:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzY4ENp0pl9lKB98pUyux+FH4MSpjCushmEM3+kXUETAL+hs82XuDMc4RaSfigbAF/VPqY2 X-Received: by 2002:a17:906:f9cc:: with SMTP id lj12mr14615506ejb.426.1625093445359; Wed, 30 Jun 2021 15:50:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625093445; cv=none; d=google.com; s=arc-20160816; b=B1uJzWCQ8vvcFbIImAvlJnTyZmck5D+4OZ/lyLBz/i9XFhRj93MAKPkNUJn8k3AWoS 7qOA+NIUJVHI/6pFjchfB0frlikmRAps91CNIq+ZE8mV2IYlPTLMbDVvOjYcI9+QpPuM 32omqDKQoquqEoVDdTIS3ox9/IZVtCy9Oq6yDGhSQ4JqagyurdyFxAWbMyTBfXah4CM7 8JVo7WXH2YiRJBBGiPclgbMao6PEotNNDBilGIenSeP13uF8gYohBVQqYi+rhynoB2/T +Kv8gPfJzbFGYUhpitt4DXHWigBjvleiIl0rV7Ejndu2NPSTKY4wxHOaP4n+ExaQxxJ/ v/JQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=a9J5dqoK4c52P+vFDZZ2sGOb99/vatavQsafU7nh39o=; b=i2n2cXhJ01uBpxZOLBxx5hVrUD8Dkew7AgY8sQGVC4KT9XWthRD/EkPprqZDWEZCqz sNN3JGJQgsj1rUb7OX0ZjP40vtBj0mmW3/pixACS/+nF/DpcBtjfBX+Ys8IEFF/hX1lz 3m+7ybh3fBb0iekqwvAwOVMPc8M2YvPtzuG5898Gqa9tJNH5vYGFyLdqYyMkt1A2Tnqk WhN6oCKnIbcaRlpTevbGAec2Lz5vnLhUQJAhHUDLhUpEMghn9dUGtsuE/fcz4vMEynUU O+b+7PAYhmnqj3BhRDegc7zoDcmPk8poQua2/XYIcmn0MlQ1NvM/ZYH8103qojwvY4bh fVrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ff0mncC0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dz14si19744386edb.241.2021.06.30.15.49.56; Wed, 30 Jun 2021 15:50:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ff0mncC0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232559AbhF3WvZ (ORCPT + 99 others); Wed, 30 Jun 2021 18:51:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:60354 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229950AbhF3WvY (ORCPT ); Wed, 30 Jun 2021 18:51:24 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F23746144B; Wed, 30 Jun 2021 22:48:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625093335; bh=K5tqVnA5H8pJjO/PErp+ucNJUcozi2NUBIMqh7jU9cg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Ff0mncC0JZQqsxNHNmEAQ391wV4s4XXHPtCqgygDCXq6MtkEmYk5aqfAGBX/WwxMh wyRe44IuixO2+cwRv7idWkhfbXcdONQOV9QASQfYKUroKnwoKqGVWzcKq9/9DdKQji /mv5L95v85w+DItOsSdI/oqWj4937RuBEf+UORRPp6mEEAPjc+q5xUVf1meRR3gpFB QlSUxCFj9pxRZ1sjPishkDebNZmFNJ5h3de7WMa+WisBiGQK+m31yTLGilcl9xw/RZ 6YMerLOmKTJjP53koTfuPkjVW4eIEVrAlTa/EgV/ERV+r/HZ2axbeAAZRlRKupLRvT 4K+6eioQL+qqA== Received: by mail-ej1-f48.google.com with SMTP id hc16so6929848ejc.12; Wed, 30 Jun 2021 15:48:54 -0700 (PDT) X-Gm-Message-State: AOAM533YzyK62KXo4tTn5cUQaaM4cWdzrZmhdtZJmoSjaKfxox6/Vcb/ EBCIHUvHyEBpAQ/B6CbWqTZsYmlmPctimmGeqA== X-Received: by 2002:a17:906:680f:: with SMTP id k15mr36868137ejr.75.1625093333492; Wed, 30 Jun 2021 15:48:53 -0700 (PDT) MIME-Version: 1.0 References: <20210630144646.868702-1-enric.balletbo@collabora.com> <20210630164623.3.I7bd7d9a8da5e2894711b700a1127e6902a2b2f1d@changeid> In-Reply-To: <20210630164623.3.I7bd7d9a8da5e2894711b700a1127e6902a2b2f1d@changeid> From: Chun-Kuang Hu Date: Thu, 1 Jul 2021 06:48:42 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 3/6] arm64: dts: mt8173: Add the mmsys reset bit to reset the dsi0 To: Enric Balletbo i Serra Cc: linux-kernel , Jitao Shi , Chun-Kuang Hu , Matthias Brugger , Nicolas Boichat , Eizan Miyamoto , Collabora Kernel ML , "moderated list:ARM/Mediatek SoC support" , Hsin-Yi Wang , Philipp Zabel , Rob Herring , DTML , Linux ARM Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org HI, Enric: Enric Balletbo i Serra =E6=96=BC 2021=E5=B9= =B46=E6=9C=8830=E6=97=A5 =E9=80=B1=E4=B8=89 =E4=B8=8B=E5=8D=8810:47=E5=AF= =AB=E9=81=93=EF=BC=9A > > Reset the DSI hardware is needed to prevent different settings between > the bootloader and the kernel. > > Signed-off-by: Enric Balletbo i Serra > --- > > arch/arm64/boot/dts/mediatek/mt8173.dtsi | 2 ++ > include/dt-bindings/reset/mt8173-resets.h | 2 ++ > 2 files changed, 4 insertions(+) > > diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/d= ts/mediatek/mt8173.dtsi > index e5596fe01a1d..36c3998eb7f1 100644 > --- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi > +++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi > @@ -1036,6 +1036,7 @@ mmsys: syscon@14000000 { > assigned-clocks =3D <&topckgen CLK_TOP_MM_SEL>; > assigned-clock-rates =3D <400000000>; > #clock-cells =3D <1>; > + #reset-cells =3D <1>; > mboxes =3D <&gce 0 CMDQ_THR_PRIO_HIGHEST>, > <&gce 1 CMDQ_THR_PRIO_HIGHEST>; > mediatek,gce-client-reg =3D <&gce SUBSYS_1400XXXX= 0 0x1000>; > @@ -1262,6 +1263,7 @@ dsi0: dsi@1401b000 { > <&mmsys CLK_MM_DSI0_DIGITAL>, > <&mipi_tx0>; > clock-names =3D "engine", "digital", "hs"; > + resets =3D <&mmsys MT8173_MMSYS_SW0_RST_B_DISP_DS= I0>; Add this in binding document. It would be good if the binding document is in yaml format. Regards, Chun-Kuang. > phys =3D <&mipi_tx0>; > phy-names =3D "dphy"; > status =3D "disabled"; > diff --git a/include/dt-bindings/reset/mt8173-resets.h b/include/dt-bindi= ngs/reset/mt8173-resets.h > index ba8636eda5ae..6a60c7cecc4c 100644 > --- a/include/dt-bindings/reset/mt8173-resets.h > +++ b/include/dt-bindings/reset/mt8173-resets.h > @@ -27,6 +27,8 @@ > #define MT8173_INFRA_GCE_FAXI_RST 40 > #define MT8173_INFRA_MMIOMMURST 47 > > +/* MMSYS resets */ > +#define MT8173_MMSYS_SW0_RST_B_DISP_DSI0 25 > > /* PERICFG resets */ > #define MT8173_PERI_UART0_SW_RST 0 > -- > 2.30.2 >