[PATCH v7 08/11] ARM: hi3xxx: add smp support

Olof Johansson olof at lixom.net
Wed Aug 28 13:19:07 EDT 2013


On Wed, Aug 28, 2013 at 07:53:03PM +0800, zhangfei gao wrote:
> Thanks Olof, will update with your comments.
> 
> >>
> >> diff --git a/Documentation/devicetree/bindings/arm/hisilicon/hisilicon.txt b/Documentation/devicetree/bindings/arm/hisilicon/hisilicon.txt
> >> index 3be60c8..4cc5c57 100644
> >> --- a/Documentation/devicetree/bindings/arm/hisilicon/hisilicon.txt
> >> +++ b/Documentation/devicetree/bindings/arm/hisilicon/hisilicon.txt
> >> @@ -8,3 +8,50 @@ Required root node properties:
> >>  Hi4511 Board
> >>  Required root node properties:
> >>       - compatible = "hisilicon,hi3620-hi4511";
> >> +
> >> +
> >> +Hisilicon sctrl resiter
> >
> > Resiter seems like odd naming here.
> >
> >> +
> >> +Required properties:
> >> +- compatible : "hisilicon,sctrl"
> >> +- reg : Address and size of sysctrl.
> >
> > sysctrl or sctrl? sysctrl isn't really too long, might as well use that.
> >
> >> +
> >> +Optional properties:
> >> +- smp_reg : offset in sysctrl for notifying slave cpu booting
> >> +             cpu 1, reg;
> >> +             cpu 2, reg + 0x4;
> >> +             cpu 3, reg + 0x8;
> >> +             If reg value is not zero, cpun exit wfi and go
> >> +- resume_reg : offset in sysctrl for notifying cpu0 when resume
> >> +- reset_reg : offset in sysctrl for system reset
> >
> > Underscores are usually not used in properties, you use dashes instead.
> >
> > Anyway, I suggest defining those as the different cells in a regular 'reg'
> > property instead.
> 
> Will update with
> 
> Required properties:
> - compatible : "hisilicon,sysctrl"
> - reg : Register address and size
> 
> Optional properties:
> - smp-off : offset in sysctrl for notifying slave cpu booting
>                 cpu 1, reg;
>                 cpu 2, reg + 0x4;
>                 cpu 3, reg + 0x8;
>                 If reg value is not zero, cpun exit wfi and go
> - resume-off : offset in sysctrl for notifying cpu0 when resume
> - reboot-off : offset in sysctrl for system reboot

Unabbreviated "offset" would be better than "off" here.

Do you even need this in the device tree? Do you have different implementations
of this IP that has the same programming model but just with a couple of
different offsets?


-Olof



More information about the linux-arm-kernel mailing list