* Re: [PATCH 30/31] dt-bindings: nds32 CPU Bindings [not found] ` <1a8efba0727437d510d10755f3fcea806833651d.1510118606.git.green.hu@gmail.com> @ 2017-11-08 13:18 ` Rob Herring 2017-11-09 9:39 ` Greentime Hu 0 siblings, 1 reply; 8+ messages in thread From: Rob Herring @ 2017-11-08 13:18 UTC (permalink / raw) To: Greentime Hu Cc: greentime, linux-kernel@vger.kernel.org, Arnd Bergmann, linux-arch@vger.kernel.org, Thomas Gleixner, Jason Cooper, Marc Zyngier, netdev, Vincent Chen, Rick Chen, Zong Li, devicetree@vger.kernel.org Please Cc the DT list on bindings. On Tue, Nov 7, 2017 at 11:55 PM, Greentime Hu <green.hu@gmail.com> wrote: > From: Greentime Hu <greentime@andestech.com> Commit message needed. > Signed-off-by: Vincent Chen <vincentc@andestech.com> > Signed-off-by: Rick Chen <rick@andestech.com> > Signed-off-by: Zong Li <zong@andestech.com> > Signed-off-by: Greentime Hu <greentime@andestech.com> > --- > Documentation/devicetree/bindings/nds32/cpus.txt | 33 ++++++++++++++++++++++ > 1 file changed, 33 insertions(+) > create mode 100644 Documentation/devicetree/bindings/nds32/cpus.txt > > diff --git a/Documentation/devicetree/bindings/nds32/cpus.txt b/Documentation/devicetree/bindings/nds32/cpus.txt > new file mode 100644 > index 0000000..97394cb > --- /dev/null > +++ b/Documentation/devicetree/bindings/nds32/cpus.txt > @@ -0,0 +1,33 @@ > +* Andestech Processor Binding > + > +This binding specifies what properties must be available in the device tree > +representation of a Andestech Processor Core, which is the root node in the > +tree. > + > +Required properties: > + > + - compatible: > + Usage: required > + Value type: <string> > + Definition: should be one of: > + "andestech,n13" > + "andestech,n15" > + "andestech,d15" > + "andestech,n10" > + "andestech,d10" SMP supported for any of these? > + > + - device_type > + Usage: required > + Value type: <string> > + Definition: must be "cpu" > + > +* Examples > + > +/ { > + cpus { > + cpu@0 { Needs a reg property or drop the unit address. > + device_type = "cpu"; > + compatible = "andestech,n13", "andestech,n15"; n13 is a superset of n15? > + }; > + }; > +}; > -- > 1.7.9.5 > ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 30/31] dt-bindings: nds32 CPU Bindings 2017-11-08 13:18 ` [PATCH 30/31] dt-bindings: nds32 CPU Bindings Rob Herring @ 2017-11-09 9:39 ` Greentime Hu [not found] ` <CAEbi=3e-hRbej7EZ68-J1YPNfdxu7O_BAZ1rvZvAhhYzAT09-g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 8+ messages in thread From: Greentime Hu @ 2017-11-09 9:39 UTC (permalink / raw) To: Rob Herring Cc: Greentime, linux-kernel@vger.kernel.org, Arnd Bergmann, linux-arch@vger.kernel.org, Thomas Gleixner, Jason Cooper, Marc Zyngier, netdev, Vincent Chen, Rick Chen, Zong Li, devicetree@vger.kernel.org 2017-11-08 21:18 GMT+08:00 Rob Herring <robh+dt@kernel.org>: > Please Cc the DT list on bindings. Sorry. I am not sure what you mean. Do you mean add devicetree@vger.kernel.org to cc list? > On Tue, Nov 7, 2017 at 11:55 PM, Greentime Hu <green.hu@gmail.com> wrote: >> From: Greentime Hu <greentime@andestech.com> > > Commit message needed. Thanks. I will add more commit messages in the next version patch. >> Signed-off-by: Vincent Chen <vincentc@andestech.com> >> Signed-off-by: Rick Chen <rick@andestech.com> >> Signed-off-by: Zong Li <zong@andestech.com> >> Signed-off-by: Greentime Hu <greentime@andestech.com> >> --- >> Documentation/devicetree/bindings/nds32/cpus.txt | 33 ++++++++++++++++++++++ >> 1 file changed, 33 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/nds32/cpus.txt >> >> diff --git a/Documentation/devicetree/bindings/nds32/cpus.txt b/Documentation/devicetree/bindings/nds32/cpus.txt >> new file mode 100644 >> index 0000000..97394cb >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/nds32/cpus.txt >> @@ -0,0 +1,33 @@ >> +* Andestech Processor Binding >> + >> +This binding specifies what properties must be available in the device tree >> +representation of a Andestech Processor Core, which is the root node in the >> +tree. >> + >> +Required properties: >> + >> + - compatible: >> + Usage: required >> + Value type: <string> >> + Definition: should be one of: >> + "andestech,n13" >> + "andestech,n15" >> + "andestech,d15" >> + "andestech,n10" >> + "andestech,d10" > > SMP supported for any of these? We don't support SMP now. >> + >> + - device_type >> + Usage: required >> + Value type: <string> >> + Definition: must be "cpu" >> + >> +* Examples >> + >> +/ { >> + cpus { >> + cpu@0 { > > Needs a reg property or drop the unit address. Thanks. I will fix it in the next version patch. >> + device_type = "cpu"; >> + compatible = "andestech,n13", "andestech,n15"; > > n13 is a superset of n15? No, they are independent ones. ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <CAEbi=3e-hRbej7EZ68-J1YPNfdxu7O_BAZ1rvZvAhhYzAT09-g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH 30/31] dt-bindings: nds32 CPU Bindings [not found] ` <CAEbi=3e-hRbej7EZ68-J1YPNfdxu7O_BAZ1rvZvAhhYzAT09-g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2017-11-09 13:57 ` Rob Herring 2017-11-10 6:22 ` Greentime Hu 0 siblings, 1 reply; 8+ messages in thread From: Rob Herring @ 2017-11-09 13:57 UTC (permalink / raw) To: Greentime Hu Cc: Rob Herring, Greentime, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Arnd Bergmann, linux-arch-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Thomas Gleixner, Jason Cooper, Marc Zyngier, netdev, Vincent Chen, Rick Chen, Zong Li, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On Thu, Nov 9, 2017 at 3:39 AM, Greentime Hu <green.hu-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > 2017-11-08 21:18 GMT+08:00 Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>: >> Please Cc the DT list on bindings. > > Sorry. I am not sure what you mean. > Do you mean add devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org to cc list? Yes. Use get_maintainers.pl as a guide. >> On Tue, Nov 7, 2017 at 11:55 PM, Greentime Hu <green.hu-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >>> From: Greentime Hu <greentime-MUIXKm3Oiri1Z/+hSey0Gg@public.gmane.org> >> >>> + device_type = "cpu"; >>> + compatible = "andestech,n13", "andestech,n15"; >> >> n13 is a superset of n15? > > No, they are independent ones. Then having both is not valid. The strings should be in order of best match to worst match where worst match is typically either older implementations of IP blocks or generic'ish strings such as "ns16550" for a UART. Rob -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 30/31] dt-bindings: nds32 CPU Bindings 2017-11-09 13:57 ` Rob Herring @ 2017-11-10 6:22 ` Greentime Hu 2017-11-10 8:25 ` Arnd Bergmann 0 siblings, 1 reply; 8+ messages in thread From: Greentime Hu @ 2017-11-10 6:22 UTC (permalink / raw) To: Rob Herring Cc: Rob Herring, Greentime, linux-kernel@vger.kernel.org, Arnd Bergmann, linux-arch@vger.kernel.org, Thomas Gleixner, Jason Cooper, Marc Zyngier, netdev, Vincent Chen, Rick Chen, Zong Li, devicetree@vger.kernel.org 2017-11-09 21:57 GMT+08:00 Rob Herring <robh@kernel.org>: > On Thu, Nov 9, 2017 at 3:39 AM, Greentime Hu <green.hu@gmail.com> wrote: >> 2017-11-08 21:18 GMT+08:00 Rob Herring <robh+dt@kernel.org>: >>> Please Cc the DT list on bindings. >> >> Sorry. I am not sure what you mean. >> Do you mean add devicetree@vger.kernel.org to cc list? > > Yes. Use get_maintainers.pl as a guide. Roger that! Thanks! >>> On Tue, Nov 7, 2017 at 11:55 PM, Greentime Hu <green.hu@gmail.com> wrote: >>>> From: Greentime Hu <greentime@andestech.com> >>> > >>>> + device_type = "cpu"; >>>> + compatible = "andestech,n13", "andestech,n15"; >>> >>> n13 is a superset of n15? >> >> No, they are independent ones. > > Then having both is not valid. The strings should be in order of best > match to worst match where worst match is typically either older > implementations of IP blocks or generic'ish strings such as "ns16550" > for a UART. Thanks. I would like to explain it more clearly. They are independent ones in implementations. They are implemented based on the same nds32 ISA and architecture spec with different configurations like cache size, page size, cache type(VIPT/PIPT), pipeline stages... Most of them are compatible. They use the same toolchain to build vmlinux which can run on different nds32 cores. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 30/31] dt-bindings: nds32 CPU Bindings 2017-11-10 6:22 ` Greentime Hu @ 2017-11-10 8:25 ` Arnd Bergmann [not found] ` <CAK8P3a1k_zNN6FTRNm5kfun8Nb+3ZLtmCLjHOVZUFB10TqQBFQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 8+ messages in thread From: Arnd Bergmann @ 2017-11-10 8:25 UTC (permalink / raw) To: Greentime Hu Cc: Rob Herring, Rob Herring, Greentime, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Thomas Gleixner, Jason Cooper, Marc Zyngier, netdev, Vincent Chen, Rick Chen, Zong Li, devicetree@vger.kernel.org On Fri, Nov 10, 2017 at 7:22 AM, Greentime Hu <green.hu@gmail.com> wrote: > 2017-11-09 21:57 GMT+08:00 Rob Herring <robh@kernel.org>: >> On Thu, Nov 9, 2017 at 3:39 AM, Greentime Hu <green.hu@gmail.com> wrote: >>> 2017-11-08 21:18 GMT+08:00 Rob Herring <robh+dt@kernel.org>: >>>> Please Cc the DT list on bindings. >>> >>> Sorry. I am not sure what you mean. >>> Do you mean add devicetree@vger.kernel.org to cc list? >> >> Yes. Use get_maintainers.pl as a guide. > > Roger that! Thanks! > >>>> On Tue, Nov 7, 2017 at 11:55 PM, Greentime Hu <green.hu@gmail.com> wrote: >>>>> From: Greentime Hu <greentime@andestech.com> >>>> >> >>>>> + device_type = "cpu"; >>>>> + compatible = "andestech,n13", "andestech,n15"; >>>> >>>> n13 is a superset of n15? >>> >>> No, they are independent ones. >> >> Then having both is not valid. The strings should be in order of best >> match to worst match where worst match is typically either older >> implementations of IP blocks or generic'ish strings such as "ns16550" >> for a UART. > > Thanks. > I would like to explain it more clearly. > They are independent ones in implementations. > They are implemented based on the same nds32 ISA and architecture spec > with different configurations > like cache size, page size, cache type(VIPT/PIPT), pipeline stages... > Most of them are compatible. > They use the same toolchain to build vmlinux which can run on > different nds32 cores. Du you have a name for the ISA spec that distinguishes it from other nds32 versions that are incompatible? If you do, this could be written like compatible = "andestech,n13", "andestech,nds32v3.0"; to signify that a an 'n13' core implements the 'v3.0' ISA (will it whatever you call the ISA in reality). Arnd ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <CAK8P3a1k_zNN6FTRNm5kfun8Nb+3ZLtmCLjHOVZUFB10TqQBFQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH 30/31] dt-bindings: nds32 CPU Bindings [not found] ` <CAK8P3a1k_zNN6FTRNm5kfun8Nb+3ZLtmCLjHOVZUFB10TqQBFQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2017-11-10 8:43 ` Greentime Hu 0 siblings, 0 replies; 8+ messages in thread From: Greentime Hu @ 2017-11-10 8:43 UTC (permalink / raw) To: Arnd Bergmann Cc: Rob Herring, Rob Herring, Greentime, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arch-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Thomas Gleixner, Jason Cooper, Marc Zyngier, netdev, Vincent Chen, Rick Chen, Zong Li, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org >>> Then having both is not valid. The strings should be in order of best >>> match to worst match where worst match is typically either older >>> implementations of IP blocks or generic'ish strings such as "ns16550" >>> for a UART. >> >> Thanks. >> I would like to explain it more clearly. >> They are independent ones in implementations. >> They are implemented based on the same nds32 ISA and architecture spec >> with different configurations >> like cache size, page size, cache type(VIPT/PIPT), pipeline stages... >> Most of them are compatible. >> They use the same toolchain to build vmlinux which can run on >> different nds32 cores. > > Du you have a name for the ISA spec that distinguishes it from other nds32 > versions that are incompatible? If you do, this could be written like > > compatible = "andestech,n13", "andestech,nds32v3.0"; > > to signify that a an 'n13' core implements the 'v3.0' ISA (will it > whatever you call the ISA in reality). > Thanks. I got you. I will use a proper name(maybe 'nds32v3') of ISA in this compatible string in the next version patch. -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <a7b9f0a21bf6e0c3325a0d9a28a8503082cafd14.1510118606.git.green.hu@gmail.com>]
* Re: [PATCH 27/31] dt-bindings: interrupt-controller: Andestech Internal Vector Interrupt Controller [not found] ` <a7b9f0a21bf6e0c3325a0d9a28a8503082cafd14.1510118606.git.green.hu@gmail.com> @ 2017-11-08 13:25 ` Rob Herring 2017-11-09 9:43 ` Greentime Hu 0 siblings, 1 reply; 8+ messages in thread From: Rob Herring @ 2017-11-08 13:25 UTC (permalink / raw) To: Greentime Hu Cc: greentime, linux-kernel@vger.kernel.org, Arnd Bergmann, linux-arch@vger.kernel.org, Thomas Gleixner, Jason Cooper, Marc Zyngier, netdev, Rick Chen, devicetree@vger.kernel.org +DT list On Tue, Nov 7, 2017 at 11:55 PM, Greentime Hu <green.hu@gmail.com> wrote: > From: Greentime Hu <greentime@andestech.com> Commit msg needed. > Signed-off-by: Rick Chen <rick@andestech.com> > Signed-off-by: Greentime Hu <greentime@andestech.com> > --- > .../interrupt-controller/andestech,ativic32.txt | 27 ++++++++++++++++++++ > 1 file changed, 27 insertions(+) > create mode 100644 Documentation/devicetree/bindings/interrupt-controller/andestech,ativic32.txt > > diff --git a/Documentation/devicetree/bindings/interrupt-controller/andestech,ativic32.txt b/Documentation/devicetree/bindings/interrupt-controller/andestech,ativic32.txt > new file mode 100644 > index 0000000..6bac908 > --- /dev/null > +++ b/Documentation/devicetree/bindings/interrupt-controller/andestech,ativic32.txt > @@ -0,0 +1,27 @@ > +* Andestech Internal Vector Interrupt Controller > + > +The Internal Vector Interrupt Controller (IVIC) is a basic interrupt controller > +suitable for a simpler SoC platform not requiring a more sophisticated and > +bigger External Vector Interrupt Controller. > + > + > +Main node required properties: > + > +- compatible : should at least contain "andestech,ativic32". > +- interrupt-parent: Empty for the interrupt controller itself Drop this. > +- interrupt-controller : Identifies the node as an interrupt controller > +- #interrupt-cells: The number of cells to define the interrupts. Should be 2. > + The first cell is the IRQ number > + The second cell is used to specify mode: > + 1 = low-to-high edge triggered > + 2 = high-to-low edge triggered > + 4 = active high level-sensitive > + 8 = active low level-sensitive Just state 2 cells and refer to interrupt-controller/interrupts.txt. > + Default for internal sources should be set to 4 (active high). > + > +Examples: > + intc: interrupt-controller { > + compatible = "andestech,ativic32"; > + #interrupt-cells = <2>; > + interrupt-controller; > + }; > -- > 1.7.9.5 > ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 27/31] dt-bindings: interrupt-controller: Andestech Internal Vector Interrupt Controller 2017-11-08 13:25 ` [PATCH 27/31] dt-bindings: interrupt-controller: Andestech Internal Vector Interrupt Controller Rob Herring @ 2017-11-09 9:43 ` Greentime Hu 0 siblings, 0 replies; 8+ messages in thread From: Greentime Hu @ 2017-11-09 9:43 UTC (permalink / raw) To: Rob Herring Cc: Greentime, linux-kernel@vger.kernel.org, Arnd Bergmann, linux-arch@vger.kernel.org, Thomas Gleixner, Jason Cooper, Marc Zyngier, netdev, Rick Chen, devicetree@vger.kernel.org 2017-11-08 21:25 GMT+08:00 Rob Herring <robh+dt@kernel.org>: > +DT list > > On Tue, Nov 7, 2017 at 11:55 PM, Greentime Hu <green.hu@gmail.com> wrote: >> From: Greentime Hu <greentime@andestech.com> > > Commit msg needed. Thanks. I will add commit msg in the next version patch. >> Signed-off-by: Rick Chen <rick@andestech.com> >> Signed-off-by: Greentime Hu <greentime@andestech.com> >> --- >> .../interrupt-controller/andestech,ativic32.txt | 27 ++++++++++++++++++++ >> 1 file changed, 27 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/interrupt-controller/andestech,ativic32.txt >> >> diff --git a/Documentation/devicetree/bindings/interrupt-controller/andestech,ativic32.txt b/Documentation/devicetree/bindings/interrupt-controller/andestech,ativic32.txt >> new file mode 100644 >> index 0000000..6bac908 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/interrupt-controller/andestech,ativic32.txt >> @@ -0,0 +1,27 @@ >> +* Andestech Internal Vector Interrupt Controller >> + >> +The Internal Vector Interrupt Controller (IVIC) is a basic interrupt controller >> +suitable for a simpler SoC platform not requiring a more sophisticated and >> +bigger External Vector Interrupt Controller. >> + >> + >> +Main node required properties: >> + >> +- compatible : should at least contain "andestech,ativic32". >> +- interrupt-parent: Empty for the interrupt controller itself > > Drop this. Thanks. I will fix it in the next version patch. >> +- interrupt-controller : Identifies the node as an interrupt controller >> +- #interrupt-cells: The number of cells to define the interrupts. Should be 2. >> + The first cell is the IRQ number >> + The second cell is used to specify mode: >> + 1 = low-to-high edge triggered >> + 2 = high-to-low edge triggered >> + 4 = active high level-sensitive >> + 8 = active low level-sensitive > > Just state 2 cells and refer to interrupt-controller/interrupts.txt. Thanks. I will fix it in the next version patch. >> + Default for internal sources should be set to 4 (active high). >> + >> +Examples: >> + intc: interrupt-controller { >> + compatible = "andestech,ativic32"; >> + #interrupt-cells = <2>; >> + interrupt-controller; >> + }; >> -- >> 1.7.9.5 >> ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2017-11-10 8:43 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <cover.1510118606.git.green.hu@gmail.com> [not found] ` <1a8efba0727437d510d10755f3fcea806833651d.1510118606.git.green.hu@gmail.com> 2017-11-08 13:18 ` [PATCH 30/31] dt-bindings: nds32 CPU Bindings Rob Herring 2017-11-09 9:39 ` Greentime Hu [not found] ` <CAEbi=3e-hRbej7EZ68-J1YPNfdxu7O_BAZ1rvZvAhhYzAT09-g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2017-11-09 13:57 ` Rob Herring 2017-11-10 6:22 ` Greentime Hu 2017-11-10 8:25 ` Arnd Bergmann [not found] ` <CAK8P3a1k_zNN6FTRNm5kfun8Nb+3ZLtmCLjHOVZUFB10TqQBFQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2017-11-10 8:43 ` Greentime Hu [not found] ` <a7b9f0a21bf6e0c3325a0d9a28a8503082cafd14.1510118606.git.green.hu@gmail.com> 2017-11-08 13:25 ` [PATCH 27/31] dt-bindings: interrupt-controller: Andestech Internal Vector Interrupt Controller Rob Herring 2017-11-09 9:43 ` Greentime Hu
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).