2023-06-26 10:33:11

by Xianwei Zhao

[permalink] [raw]
Subject: [PATCH 0/2] Baisc devicetree support for Amlogic T7

T7 is an advanced application processor designed for smart display.

Add the new T7 SoC/board device tree bindings.

Add basic support for the T7 based Amlogic AN400 board, which describes
the following components: CPU, GIC, IRQ, Timer, UART. It's capable of
booting up into the serial console.

Xianwei Zhao (2):
dt-bindings: arm: amlogic: add T7 based AN400 bindings
arm64: dts: add support for T7 based Amlogic AN400

.../devicetree/bindings/arm/amlogic.yaml | 6 +
arch/arm64/boot/dts/amlogic/Makefile | 1 +
.../dts/amlogic/amlogic-t7-a311d2-an400.dts | 30 ++++
arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi | 156 ++++++++++++++++++
4 files changed, 193 insertions(+)
create mode 100644 arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-an400.dts
create mode 100644 arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi


base-commit: 057889cb4244096ea5abcbe76ffd4d311c3078fe
--
2.37.1



2023-06-26 10:56:16

by Conor Dooley

[permalink] [raw]
Subject: Re: [PATCH 0/2] Baisc devicetree support for Amlogic T7

Hey,

On Mon, Jun 26, 2023 at 05:52:21PM +0800, Xianwei Zhao wrote:
> T7 is an advanced application processor designed for smart display.
>
> Add the new T7 SoC/board device tree bindings.
>
> Add basic support for the T7 based Amlogic AN400 board, which describes
> the following components: CPU, GIC, IRQ, Timer, UART. It's capable of
> booting up into the serial console.

Lucas has already sent patches for the T7 SoC & is at v5:
https://lore.kernel.org/linux-devicetree/[email protected]/

There's been a bit of discussion there, and there serial stuff in
particular is different in his series (it doesn't use always-on for
examples).
Could you please go and take a look at his series?

Cheers,
Conor.

>
> Xianwei Zhao (2):
> dt-bindings: arm: amlogic: add T7 based AN400 bindings
> arm64: dts: add support for T7 based Amlogic AN400
>
> .../devicetree/bindings/arm/amlogic.yaml | 6 +
> arch/arm64/boot/dts/amlogic/Makefile | 1 +
> .../dts/amlogic/amlogic-t7-a311d2-an400.dts | 30 ++++
> arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi | 156 ++++++++++++++++++
> 4 files changed, 193 insertions(+)
> create mode 100644 arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-an400.dts
> create mode 100644 arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi
>
>
> base-commit: 057889cb4244096ea5abcbe76ffd4d311c3078fe
> --
> 2.37.1
>


Attachments:
(No filename) (1.39 kB)
signature.asc (235.00 B)
Download all attachments

2023-06-27 06:25:34

by Xianwei Zhao

[permalink] [raw]
Subject: Re: [PATCH 0/2] Baisc devicetree support for Amlogic T7

Hi Conor,
Thanks for you reply.
On 2023/6/26 18:02, Conor Dooley wrote:


> [ EXTERNAL EMAIL ]
>
> Hey,
>
> On Mon, Jun 26, 2023 at 05:52:21PM +0800, Xianwei Zhao wrote:
>> T7 is an advanced application processor designed for smart display.
>>
>> Add the new T7 SoC/board device tree bindings.
>>
>> Add basic support for the T7 based Amlogic AN400 board, which describes
>> the following components: CPU, GIC, IRQ, Timer, UART. It's capable of
>> booting up into the serial console.
>
> Lucas has already sent patches for the T7 SoC & is at v5:
>
https://lore.kernel.org/linux-devicetree/[email protected]/
>
> There's been a bit of discussion there, and there serial stuff in
> particular is different in his series (it doesn't use always-on for
> examples).
> Could you please go and take a look at his series?
>
> Cheers,
> Conor.
>
AN400 is the reference board designed by Amlogic, which is different
from Khadas VIM4.
And T7 serial is the same as S4, so I follow S4 serial.

>>
>> Xianwei Zhao (2):
>> dt-bindings: arm: amlogic: add T7 based AN400 bindings
>> arm64: dts: add support for T7 based Amlogic AN400
>>
>> .../devicetree/bindings/arm/amlogic.yaml | 6 +
>> arch/arm64/boot/dts/amlogic/Makefile | 1 +
>> .../dts/amlogic/amlogic-t7-a311d2-an400.dts | 30 ++++
>> arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi | 156 ++++++++++++++++++
>> 4 files changed, 193 insertions(+)
>> create mode 100644
arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-an400.dts
>> create mode 100644 arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi
>>
>>
>> base-commit: 057889cb4244096ea5abcbe76ffd4d311c3078fe
>> --
>> 2.37.1
>>
>>
>> _______________________________________________
>> linux-amlogic mailing list
>> [email protected]
>> http://lists.infradead.org/mailman/listinfo/linux-amlogic

2023-06-27 07:52:49

by Conor Dooley

[permalink] [raw]
Subject: Re: [PATCH 0/2] Baisc devicetree support for Amlogic T7

On Tue, Jun 27, 2023 at 02:13:34PM +0800, Xianwei Zhao wrote:
> Hi Conor,
> Thanks for you reply.
> On 2023/6/26 18:02, Conor Dooley wrote:
>
>
> > [ EXTERNAL EMAIL ]
> >
> > Hey,
> >
> > On Mon, Jun 26, 2023 at 05:52:21PM +0800, Xianwei Zhao wrote:
> >> T7 is an advanced application processor designed for smart display.
> >>
> >> Add the new T7 SoC/board device tree bindings.
> >>
> >> Add basic support for the T7 based Amlogic AN400 board, which describes
> >> the following components: CPU, GIC, IRQ, Timer, UART. It's capable of
> >> booting up into the serial console.
> >
> > Lucas has already sent patches for the T7 SoC & is at v5:
> > https://lore.kernel.org/linux-devicetree/[email protected]/
> >
> > There's been a bit of discussion there, and there serial stuff in
> > particular is different in his series (it doesn't use always-on for
> > examples).
> > Could you please go and take a look at his series?
> >
> > Cheers,
> > Conor.
> >
> AN400 is the reference board designed by Amlogic, which is different from
> Khadas VIM4.

Yet you share the same dtsi, which he has got through several iterations
of before you arrived.

> And T7 serial is the same as S4, so I follow S4 serial.

Yeah, no. SoC specific compatible please.


Attachments:
(No filename) (1.28 kB)
signature.asc (235.00 B)
Download all attachments

2023-06-27 07:58:43

by Neil Armstrong

[permalink] [raw]
Subject: Re: [PATCH 0/2] Baisc devicetree support for Amlogic T7

On 27/06/2023 08:13, Xianwei Zhao wrote:
> Hi Conor,
>     Thanks for you reply.
> On 2023/6/26 18:02, Conor Dooley wrote:
>
>
> > [ EXTERNAL EMAIL ]
> >
> > Hey,
> >
> > On Mon, Jun 26, 2023 at 05:52:21PM +0800, Xianwei Zhao wrote:
> >> T7 is an advanced application processor designed for smart display.
> >>
> >> Add the new T7 SoC/board device tree bindings.
> >>
> >> Add basic support for the T7 based Amlogic AN400 board, which describes
> >> the following components: CPU, GIC, IRQ, Timer, UART. It's capable of
> >> booting up into the serial console.
> >
> > Lucas has already sent patches for the T7 SoC & is at v5:
> > https://lore.kernel.org/linux-devicetree/[email protected]/
> >
> > There's been a bit of discussion there, and there serial stuff in
> > particular is different in his series (it doesn't use always-on for
> > examples).
> > Could you please go and take a look at his series?
> >
> > Cheers,
> > Conor.
> >
> AN400 is the reference board designed by Amlogic, which is different from Khadas VIM4.

Please coordinate with Lucas so a single bindings & dtsi patches are submitted,
in any case only a single one will be reviewed and merged.
You can rebase your AN400 dts on top of his VIM4 initial patchset.

Thanks,
Neil

> And T7 serial is the same as S4, so I follow S4 serial.
>
> >>
> >> Xianwei Zhao (2):
> >>    dt-bindings: arm: amlogic: add T7 based AN400 bindings
> >>    arm64: dts: add support for T7 based Amlogic AN400
> >>
> >>   .../devicetree/bindings/arm/amlogic.yaml      |   6 +
> >>   arch/arm64/boot/dts/amlogic/Makefile          |   1 +
> >>   .../dts/amlogic/amlogic-t7-a311d2-an400.dts   |  30 ++++
> >>   arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi   | 156 ++++++++++++++++++
> >>   4 files changed, 193 insertions(+)
> >> create mode 100644 arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-an400.dts
> >> create mode 100644 arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi
> >>
> >>
> >> base-commit: 057889cb4244096ea5abcbe76ffd4d311c3078fe
> >> --
> >> 2.37.1
> >>
> >>
> >> _______________________________________________
> >> linux-amlogic mailing list
> >> [email protected]
> >> http://lists.infradead.org/mailman/listinfo/linux-amlogic


2023-06-27 08:04:57

by Xianwei Zhao

[permalink] [raw]
Subject: Re: [PATCH 0/2] Baisc devicetree support for Amlogic T7


On 2023/6/27 15:23, Conor Dooley wrote:


> [ EXTERNAL EMAIL ]
>
> On Tue, Jun 27, 2023 at 02:13:34PM +0800, Xianwei Zhao wrote:
>> Hi Conor,
>> Thanks for you reply.
>> On 2023/6/26 18:02, Conor Dooley wrote:
>>
>>
>>> [ EXTERNAL EMAIL ]
>>>
>>> Hey,
>>>
>>> On Mon, Jun 26, 2023 at 05:52:21PM +0800, Xianwei Zhao wrote:
>>>> T7 is an advanced application processor designed for smart display.
>>>>
>>>> Add the new T7 SoC/board device tree bindings.
>>>>
>>>> Add basic support for the T7 based Amlogic AN400 board, which
>>>> describesthe following components: CPU, GIC, IRQ, Timer, UART. It's
>>>> capable of booting up into the serial console.
>>>
>>> Lucas has already sent patches for the T7 SoC & is at v5:
>>> https://lore.kernel.org/linux-devicetree/20230623081242.109131-1-
>>> [email protected]/
>>> There's been a bit of discussion there, and there serial stuff in
>>> particular is different in his series (it doesn't use always-on for
>>> examples).
>>> Could you please go and take a look at his series?
>>>
>>> Cheers,
>>> Conor.
>>>
>> AN400 is the reference board designed by Amlogic, which is different
>> from Khadas VIM4.
>
> Yet you share the same dtsi, which he has got through several
> iterations of before you arrived.
>
Hi Lucas,
Are you going to continue with the dtsi part?

>> And T7 serial is the same as S4, so I follow S4 serial.
>
> Yeah, no. SoC specific compatible please.
>
>
> _______________________________________________
> linux-amlogic mailing list
> [email protected]
> http://lists.infradead.org/mailman/listinfo/linux-amlogic

2023-06-29 17:02:39

by Lucas Tanure

[permalink] [raw]
Subject: Re: [PATCH 0/2] Baisc devicetree support for Amlogic T7

On Tue, Jun 27, 2023 at 8:52 AM Xianwei Zhao <[email protected]> wrote:
>
>
> On 2023/6/27 15:23, Conor Dooley wrote:
>
>
> > [ EXTERNAL EMAIL ]
> >
> > On Tue, Jun 27, 2023 at 02:13:34PM +0800, Xianwei Zhao wrote:
> >> Hi Conor,
> >> Thanks for you reply.
> >> On 2023/6/26 18:02, Conor Dooley wrote:
> >>
> >>
> >>> [ EXTERNAL EMAIL ]
> >>>
> >>> Hey,
> >>>
> >>> On Mon, Jun 26, 2023 at 05:52:21PM +0800, Xianwei Zhao wrote:
> >>>> T7 is an advanced application processor designed for smart display.
> >>>>
> >>>> Add the new T7 SoC/board device tree bindings.
> >>>>
> >>>> Add basic support for the T7 based Amlogic AN400 board, which
> >>>> describesthe following components: CPU, GIC, IRQ, Timer, UART. It's
> >>>> capable of booting up into the serial console.
> >>>
> >>> Lucas has already sent patches for the T7 SoC & is at v5:
> >>> https://lore.kernel.org/linux-devicetree/20230623081242.109131-1-
> >>> [email protected]/
> >>> There's been a bit of discussion there, and there serial stuff in
> >>> particular is different in his series (it doesn't use always-on for
> >>> examples).
> >>> Could you please go and take a look at his series?
> >>>
> >>> Cheers,
> >>> Conor.
> >>>
> >> AN400 is the reference board designed by Amlogic, which is different
> >> from Khadas VIM4.
> >
> > Yet you share the same dtsi, which he has got through several
> > iterations of before you arrived.
> >
> Hi Lucas,
> Are you going to continue with the dtsi part?
>
> >> And T7 serial is the same as S4, so I follow S4 serial.
> >
> > Yeah, no. SoC specific compatible please.
> >
> >
> > _______________________________________________
> > linux-amlogic mailing list
> > [email protected]
> > http://lists.infradead.org/mailman/listinfo/linux-amlogic

Hi Xianwei,

I am doing the basics for Amlogic T7 A311D2, but the next step ( sd
card or emmc, something to boot on) would be more difficult for me
than you.
After the first series for Vim4 gets merged, I will start to work on
how to get sd cards working.
But if you already have that working for the AN400 board, please send
it. And I will look at that work and use it for Vim4.

Or, if you don't have it ready and want to share it with me, we can
work together on these A311D2 patches.
You test on AN400, and I test on Vim4.

Thanks
Lucas

2023-06-30 02:59:42

by Xianwei Zhao

[permalink] [raw]
Subject: Re: [PATCH 0/2] Baisc devicetree support for Amlogic T7



On 2023/6/30 00:33, Lucas Tanure wrote:
> [ EXTERNAL EMAIL ]
>
> On Tue, Jun 27, 2023 at 8:52 AM Xianwei Zhao <[email protected]> wrote:
>>
>>
>> On 2023/6/27 15:23, Conor Dooley wrote:
>>
>>
>> > [ EXTERNAL EMAIL ]
>> >
>> > On Tue, Jun 27, 2023 at 02:13:34PM +0800, Xianwei Zhao wrote:
>> >> Hi Conor,
>> >> Thanks for you reply.
>> >> On 2023/6/26 18:02, Conor Dooley wrote:
>> >>
>> >>
>> >>> [ EXTERNAL EMAIL ]
>> >>>
>> >>> Hey,
>> >>>
>> >>> On Mon, Jun 26, 2023 at 05:52:21PM +0800, Xianwei Zhao wrote:
>> >>>> T7 is an advanced application processor designed for smart display.
>> >>>>
>> >>>> Add the new T7 SoC/board device tree bindings.
>> >>>>
>> >>>> Add basic support for the T7 based Amlogic AN400 board, which
>> >>>> describesthe following components: CPU, GIC, IRQ, Timer, UART. It's
>> >>>> capable of booting up into the serial console.
>> >>>
>> >>> Lucas has already sent patches for the T7 SoC & is at v5:
>> >>> https://lore.kernel.org/linux-devicetree/20230623081242.109131-1-
>> >>> [email protected]/
>> >>> There's been a bit of discussion there, and there serial stuff in
>> >>> particular is different in his series (it doesn't use always-on for
>> >>> examples).
>> >>> Could you please go and take a look at his series?
>> >>>
>> >>> Cheers,
>> >>> Conor.
>> >>>
>> >> AN400 is the reference board designed by Amlogic, which is different
>> >> from Khadas VIM4.
>> >
>> > Yet you share the same dtsi, which he has got through several
>> > iterations of before you arrived.
>> >
>> Hi Lucas,
>> Are you going to continue with the dtsi part?
>>
>> >> And T7 serial is the same as S4, so I follow S4 serial.
>> >
>> > Yeah, no. SoC specific compatible please.
>> >
>> >
>> > _______________________________________________
>> > linux-amlogic mailing list
>> > [email protected]
>> > http://lists.infradead.org/mailman/listinfo/linux-amlogic
>
> Hi Xianwei,
>
> I am doing the basics for Amlogic T7 A311D2, but the next step ( sd
> card or emmc, something to boot on) would be more difficult for me
> than you.
> After the first series for Vim4 gets merged, I will start to work on
> how to get sd cards working.
> But if you already have that working for the AN400 board, please send
> it. And I will look at that work and use it for Vim4.
>
> Or, if you don't have it ready and want to share it with me, we can
> work together on these A311D2 patches.
> You test on AN400, and I test on Vim4.
>
> Thanks
> Lucas

We are preparing this part. However it depends on clock. So the clock
must ready first.

2023-06-30 04:59:40

by Lucas Tanure

[permalink] [raw]
Subject: Re: [PATCH 0/2] Baisc devicetree support for Amlogic T7

On Fri, Jun 30, 2023 at 3:22 AM Xianwei Zhao <[email protected]> wrote:
>
>
>
> On 2023/6/30 00:33, Lucas Tanure wrote:
> > [ EXTERNAL EMAIL ]
> >
> > On Tue, Jun 27, 2023 at 8:52 AM Xianwei Zhao <[email protected]> wrote:
> >>
> >>
> >> On 2023/6/27 15:23, Conor Dooley wrote:
> >>
> >>
> >> > [ EXTERNAL EMAIL ]
> >> >
> >> > On Tue, Jun 27, 2023 at 02:13:34PM +0800, Xianwei Zhao wrote:
> >> >> Hi Conor,
> >> >> Thanks for you reply.
> >> >> On 2023/6/26 18:02, Conor Dooley wrote:
> >> >>
> >> >>
> >> >>> [ EXTERNAL EMAIL ]
> >> >>>
> >> >>> Hey,
> >> >>>
> >> >>> On Mon, Jun 26, 2023 at 05:52:21PM +0800, Xianwei Zhao wrote:
> >> >>>> T7 is an advanced application processor designed for smart display.
> >> >>>>
> >> >>>> Add the new T7 SoC/board device tree bindings.
> >> >>>>
> >> >>>> Add basic support for the T7 based Amlogic AN400 board, which
> >> >>>> describesthe following components: CPU, GIC, IRQ, Timer, UART. It's
> >> >>>> capable of booting up into the serial console.
> >> >>>
> >> >>> Lucas has already sent patches for the T7 SoC & is at v5:
> >> >>> https://lore.kernel.org/linux-devicetree/20230623081242.109131-1-
> >> >>> [email protected]/
> >> >>> There's been a bit of discussion there, and there serial stuff in
> >> >>> particular is different in his series (it doesn't use always-on for
> >> >>> examples).
> >> >>> Could you please go and take a look at his series?
> >> >>>
> >> >>> Cheers,
> >> >>> Conor.
> >> >>>
> >> >> AN400 is the reference board designed by Amlogic, which is different
> >> >> from Khadas VIM4.
> >> >
> >> > Yet you share the same dtsi, which he has got through several
> >> > iterations of before you arrived.
> >> >
> >> Hi Lucas,
> >> Are you going to continue with the dtsi part?
> >>
> >> >> And T7 serial is the same as S4, so I follow S4 serial.
> >> >
> >> > Yeah, no. SoC specific compatible please.
> >> >
> >> >
> >> > _______________________________________________
> >> > linux-amlogic mailing list
> >> > [email protected]
> >> > http://lists.infradead.org/mailman/listinfo/linux-amlogic
> >
> > Hi Xianwei,
> >
> > I am doing the basics for Amlogic T7 A311D2, but the next step ( sd
> > card or emmc, something to boot on) would be more difficult for me
> > than you.
> > After the first series for Vim4 gets merged, I will start to work on
> > how to get sd cards working.
> > But if you already have that working for the AN400 board, please send
> > it. And I will look at that work and use it for Vim4.
> >
> > Or, if you don't have it ready and want to share it with me, we can
> > work together on these A311D2 patches.
> > You test on AN400, and I test on Vim4.
> >
> > Thanks
> > Lucas
>
> We are preparing this part. However it depends on clock. So the clock
> must ready first.

Will you send clock for T7?