* [PATCH v3 0/2] riscv: sophgo: cv18xx: add top misc system controller
@ 2024-02-14 6:32 Inochi Amaoto
2024-02-14 6:33 ` [PATCH v3 1/2] dt-bindings: clock: sophgo: Add top misc controller of CV18XX/SG200X series SoC Inochi Amaoto
2024-02-14 6:33 ` [PATCH v3 2/2] riscv: dts: sophgo: cv18xx: add top misc system controller Inochi Amaoto
0 siblings, 2 replies; 7+ messages in thread
From: Inochi Amaoto @ 2024-02-14 6:32 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Chen Wang,
Paul Walmsley, Palmer Dabbelt, Albert Ou, Inochi Amaoto
Cc: Jisheng Zhang, Liu Gui, Jingbao Qiu, dlan, devicetree,
linux-kernel, linux-riscv
Add top misc system controller to CV18XX/SG200X series.
At least for now, this topctrl dt node has no related driver, because
it only contains register for other devices, or the subdevice for some
other purposes. The patch is submitted for providing potential common
dependency for watchdog, sdhci, usb phy and maybe etc.
Changed from v2:
1. remove the unnecessary "oneOf" in then binding.
Changed from v1:
1. fix linting issue.
2. remove #address-cells and #size-cells in the dtb.
Inochi Amaoto (2):
dt-bindings: clock: sophgo: Add top misc controller of CV18XX/SG200X
series SoC
riscv: dts: sophgo: cv18xx: add top misc system controller
.../soc/sophgo/sophgo,cv1800-top-syscon.yaml | 40 +++++++++++++++++++
arch/riscv/boot/dts/sophgo/cv18xx.dtsi | 6 +++
2 files changed, 46 insertions(+)
create mode 100644 Documentation/devicetree/bindings/soc/sophgo/sophgo,cv1800-top-syscon.yaml
--
2.43.1
^ permalink raw reply [flat|nested] 7+ messages in thread* [PATCH v3 1/2] dt-bindings: clock: sophgo: Add top misc controller of CV18XX/SG200X series SoC 2024-02-14 6:32 [PATCH v3 0/2] riscv: sophgo: cv18xx: add top misc system controller Inochi Amaoto @ 2024-02-14 6:33 ` Inochi Amaoto 2024-02-15 15:13 ` Rob Herring 2024-02-14 6:33 ` [PATCH v3 2/2] riscv: dts: sophgo: cv18xx: add top misc system controller Inochi Amaoto 1 sibling, 1 reply; 7+ messages in thread From: Inochi Amaoto @ 2024-02-14 6:33 UTC (permalink / raw) To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Chen Wang, Paul Walmsley, Palmer Dabbelt, Albert Ou, Inochi Amaoto Cc: Jisheng Zhang, Liu Gui, Jingbao Qiu, dlan, devicetree, linux-kernel, linux-riscv CV18XX/SG200X series SoCs have a special top misc system controller, which provides register access for several devices. In addition to register access, this system controller also contains some subdevices (such as dmamux). Add bindings for top misc controller of CV18XX/SG200X series SoC. Signed-off-by: Inochi Amaoto <inochiama@outlook.com> --- .../soc/sophgo/sophgo,cv1800-top-syscon.yaml | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/sophgo/sophgo,cv1800-top-syscon.yaml diff --git a/Documentation/devicetree/bindings/soc/sophgo/sophgo,cv1800-top-syscon.yaml b/Documentation/devicetree/bindings/soc/sophgo/sophgo,cv1800-top-syscon.yaml new file mode 100644 index 000000000000..619237532801 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/sophgo/sophgo,cv1800-top-syscon.yaml @@ -0,0 +1,40 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/sophgo/sophgo,cv1800-top-syscon.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sophgo CV1800/SG2000 SoC top system controller + +maintainers: + - Inochi Amaoto <inochiama@outlook.com> + +description: + The Sophgo CV1800/SG2000 SoC top misc system controller provides + register access to configure related modules. + +properties: + compatible: + items: + - const: sophgo,cv1800-top-syscon + - const: syscon + - const: simple-mfd + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + syscon@3000000 { + compatible = "sophgo,cv1800-top-syscon", + "syscon", "simple-mfd"; + reg = <0x03000000 0x1000>; + }; + +... -- 2.43.1 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH v3 1/2] dt-bindings: clock: sophgo: Add top misc controller of CV18XX/SG200X series SoC 2024-02-14 6:33 ` [PATCH v3 1/2] dt-bindings: clock: sophgo: Add top misc controller of CV18XX/SG200X series SoC Inochi Amaoto @ 2024-02-15 15:13 ` Rob Herring 2024-02-15 23:56 ` Inochi Amaoto 0 siblings, 1 reply; 7+ messages in thread From: Rob Herring @ 2024-02-15 15:13 UTC (permalink / raw) To: Inochi Amaoto Cc: Krzysztof Kozlowski, Conor Dooley, Chen Wang, Paul Walmsley, Palmer Dabbelt, Albert Ou, Jisheng Zhang, Liu Gui, Jingbao Qiu, dlan, devicetree, linux-kernel, linux-riscv On Wed, Feb 14, 2024 at 02:33:14PM +0800, Inochi Amaoto wrote: > CV18XX/SG200X series SoCs have a special top misc system controller, > which provides register access for several devices. In addition to > register access, this system controller also contains some subdevices > (such as dmamux). > > Add bindings for top misc controller of CV18XX/SG200X series SoC. > > Signed-off-by: Inochi Amaoto <inochiama@outlook.com> > --- > .../soc/sophgo/sophgo,cv1800-top-syscon.yaml | 40 +++++++++++++++++++ > 1 file changed, 40 insertions(+) > create mode 100644 Documentation/devicetree/bindings/soc/sophgo/sophgo,cv1800-top-syscon.yaml > > diff --git a/Documentation/devicetree/bindings/soc/sophgo/sophgo,cv1800-top-syscon.yaml b/Documentation/devicetree/bindings/soc/sophgo/sophgo,cv1800-top-syscon.yaml > new file mode 100644 > index 000000000000..619237532801 > --- /dev/null > +++ b/Documentation/devicetree/bindings/soc/sophgo/sophgo,cv1800-top-syscon.yaml > @@ -0,0 +1,40 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/soc/sophgo/sophgo,cv1800-top-syscon.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Sophgo CV1800/SG2000 SoC top system controller > + > +maintainers: > + - Inochi Amaoto <inochiama@outlook.com> > + > +description: > + The Sophgo CV1800/SG2000 SoC top misc system controller provides > + register access to configure related modules. > + > +properties: > + compatible: > + items: > + - const: sophgo,cv1800-top-syscon > + - const: syscon > + - const: simple-mfd You have to define child nodes to be a simple-mfd. You could drop it, but I now suspect your binding is incomplete. Rob ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v3 1/2] dt-bindings: clock: sophgo: Add top misc controller of CV18XX/SG200X series SoC 2024-02-15 15:13 ` Rob Herring @ 2024-02-15 23:56 ` Inochi Amaoto 2024-02-17 14:32 ` Krzysztof Kozlowski 0 siblings, 1 reply; 7+ messages in thread From: Inochi Amaoto @ 2024-02-15 23:56 UTC (permalink / raw) To: Rob Herring Cc: Inochi Amaoto, Krzysztof Kozlowski, Conor Dooley, Chen Wang, Paul Walmsley, Palmer Dabbelt, Albert Ou, Jisheng Zhang, Liu Gui, Jingbao Qiu, dlan, devicetree, linux-kernel, linux-riscv >On Wed, Feb 14, 2024 at 02:33:14PM +0800, Inochi Amaoto wrote: >> CV18XX/SG200X series SoCs have a special top misc system controller, >> which provides register access for several devices. In addition to >> register access, this system controller also contains some subdevices >> (such as dmamux). >> >> Add bindings for top misc controller of CV18XX/SG200X series SoC. >> >> Signed-off-by: Inochi Amaoto <inochiama@outlook.com> >> --- >> .../soc/sophgo/sophgo,cv1800-top-syscon.yaml | 40 +++++++++++++++++++ >> 1 file changed, 40 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/soc/sophgo/sophgo,cv1800-top-syscon.yaml >> >> diff --git a/Documentation/devicetree/bindings/soc/sophgo/sophgo,cv1800-top-syscon.yaml b/Documentation/devicetree/bindings/soc/sophgo/sophgo,cv1800-top-syscon.yaml >> new file mode 100644 >> index 000000000000..619237532801 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/soc/sophgo/sophgo,cv1800-top-syscon.yaml >> @@ -0,0 +1,40 @@ >> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/soc/sophgo/sophgo,cv1800-top-syscon.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: Sophgo CV1800/SG2000 SoC top system controller >> + >> +maintainers: >> + - Inochi Amaoto <inochiama@outlook.com> >> + >> +description: >> + The Sophgo CV1800/SG2000 SoC top misc system controller provides >> + register access to configure related modules. >> + >> +properties: >> + compatible: >> + items: >> + - const: sophgo,cv1800-top-syscon >> + - const: syscon >> + - const: simple-mfd > >You have to define child nodes to be a simple-mfd. > >You could drop it, but I now suspect your binding is incomplete. > >Rob Hi Rob, I have a small questions: Can I drop "simple-mfd" and just add it when the new subdevice is added? I know the binding is just a example, but it may be better to follow the actual SoC configuration. In addition, most device node should reference this node by using vendor property, and only at most one (or two) subdevices. So adding simple-mfd property can be delayed, dt node itself could be more important. Regards, Inochi ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v3 1/2] dt-bindings: clock: sophgo: Add top misc controller of CV18XX/SG200X series SoC 2024-02-15 23:56 ` Inochi Amaoto @ 2024-02-17 14:32 ` Krzysztof Kozlowski 2024-02-20 10:37 ` Inochi Amaoto 0 siblings, 1 reply; 7+ messages in thread From: Krzysztof Kozlowski @ 2024-02-17 14:32 UTC (permalink / raw) To: Inochi Amaoto, Rob Herring Cc: Krzysztof Kozlowski, Conor Dooley, Chen Wang, Paul Walmsley, Palmer Dabbelt, Albert Ou, Jisheng Zhang, Liu Gui, Jingbao Qiu, dlan, devicetree, linux-kernel, linux-riscv On 16/02/2024 00:56, Inochi Amaoto wrote: >> On Wed, Feb 14, 2024 at 02:33:14PM +0800, Inochi Amaoto wrote: >>> CV18XX/SG200X series SoCs have a special top misc system controller, >>> which provides register access for several devices. In addition to >>> register access, this system controller also contains some subdevices >>> (such as dmamux). >>> >>> Add bindings for top misc controller of CV18XX/SG200X series SoC. >>> >>> Signed-off-by: Inochi Amaoto <inochiama@outlook.com> >>> --- >>> .../soc/sophgo/sophgo,cv1800-top-syscon.yaml | 40 +++++++++++++++++++ >>> 1 file changed, 40 insertions(+) >>> create mode 100644 Documentation/devicetree/bindings/soc/sophgo/sophgo,cv1800-top-syscon.yaml >>> >>> diff --git a/Documentation/devicetree/bindings/soc/sophgo/sophgo,cv1800-top-syscon.yaml b/Documentation/devicetree/bindings/soc/sophgo/sophgo,cv1800-top-syscon.yaml >>> new file mode 100644 >>> index 000000000000..619237532801 >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/soc/sophgo/sophgo,cv1800-top-syscon.yaml >>> @@ -0,0 +1,40 @@ >>> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) >>> +%YAML 1.2 >>> +--- >>> +$id: http://devicetree.org/schemas/soc/sophgo/sophgo,cv1800-top-syscon.yaml# >>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>> + >>> +title: Sophgo CV1800/SG2000 SoC top system controller >>> + >>> +maintainers: >>> + - Inochi Amaoto <inochiama@outlook.com> >>> + >>> +description: >>> + The Sophgo CV1800/SG2000 SoC top misc system controller provides >>> + register access to configure related modules. >>> + >>> +properties: >>> + compatible: >>> + items: >>> + - const: sophgo,cv1800-top-syscon >>> + - const: syscon >>> + - const: simple-mfd >> >> You have to define child nodes to be a simple-mfd. >> >> You could drop it, but I now suspect your binding is incomplete. >> >> Rob > > Hi Rob, > > I have a small questions: Can I drop "simple-mfd" and just add it > when the new subdevice is added? I know the binding is just a example, No, because bindings should be complete. Best regards, Krzysztof ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v3 1/2] dt-bindings: clock: sophgo: Add top misc controller of CV18XX/SG200X series SoC 2024-02-17 14:32 ` Krzysztof Kozlowski @ 2024-02-20 10:37 ` Inochi Amaoto 0 siblings, 0 replies; 7+ messages in thread From: Inochi Amaoto @ 2024-02-20 10:37 UTC (permalink / raw) To: Krzysztof Kozlowski, Inochi Amaoto, Rob Herring Cc: Krzysztof Kozlowski, Conor Dooley, Chen Wang, Paul Walmsley, Palmer Dabbelt, Albert Ou, Jisheng Zhang, Liu Gui, Jingbao Qiu, dlan, devicetree, linux-kernel, linux-riscv >On 16/02/2024 00:56, Inochi Amaoto wrote: >>> On Wed, Feb 14, 2024 at 02:33:14PM +0800, Inochi Amaoto wrote: >>>> CV18XX/SG200X series SoCs have a special top misc system controller, >>>> which provides register access for several devices. In addition to >>>> register access, this system controller also contains some subdevices >>>> (such as dmamux). >>>> >>>> Add bindings for top misc controller of CV18XX/SG200X series SoC. >>>> >>>> Signed-off-by: Inochi Amaoto <inochiama@outlook.com> >>>> --- >>>> .../soc/sophgo/sophgo,cv1800-top-syscon.yaml | 40 +++++++++++++++++++ >>>> 1 file changed, 40 insertions(+) >>>> create mode 100644 Documentation/devicetree/bindings/soc/sophgo/sophgo,cv1800-top-syscon.yaml >>>> >>>> diff --git a/Documentation/devicetree/bindings/soc/sophgo/sophgo,cv1800-top-syscon.yaml b/Documentation/devicetree/bindings/soc/sophgo/sophgo,cv1800-top-syscon.yaml >>>> new file mode 100644 >>>> index 000000000000..619237532801 >>>> --- /dev/null >>>> +++ b/Documentation/devicetree/bindings/soc/sophgo/sophgo,cv1800-top-syscon.yaml >>>> @@ -0,0 +1,40 @@ >>>> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) >>>> +%YAML 1.2 >>>> +--- >>>> +$id: http://devicetree.org/schemas/soc/sophgo/sophgo,cv1800-top-syscon.yaml# >>>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>>> + >>>> +title: Sophgo CV1800/SG2000 SoC top system controller >>>> + >>>> +maintainers: >>>> + - Inochi Amaoto <inochiama@outlook.com> >>>> + >>>> +description: >>>> + The Sophgo CV1800/SG2000 SoC top misc system controller provides >>>> + register access to configure related modules. >>>> + >>>> +properties: >>>> + compatible: >>>> + items: >>>> + - const: sophgo,cv1800-top-syscon >>>> + - const: syscon >>>> + - const: simple-mfd >>> >>> You have to define child nodes to be a simple-mfd. >>> >>> You could drop it, but I now suspect your binding is incomplete. >>> >>> Rob >> >> Hi Rob, >> >> I have a small questions: Can I drop "simple-mfd" and just add it >> when the new subdevice is added? I know the binding is just a example, > >No, because bindings should be complete. > > >Best regards, >Krzysztof > Thanks. And please see https://lore.kernel.org/linux-kernel/PH7PR20MB49624AFE44E26F26490DC827BB502@PH7PR20MB4962.namprd20.prod.outlook.com/T/#t. This new patch series includes this binding. ^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v3 2/2] riscv: dts: sophgo: cv18xx: add top misc system controller 2024-02-14 6:32 [PATCH v3 0/2] riscv: sophgo: cv18xx: add top misc system controller Inochi Amaoto 2024-02-14 6:33 ` [PATCH v3 1/2] dt-bindings: clock: sophgo: Add top misc controller of CV18XX/SG200X series SoC Inochi Amaoto @ 2024-02-14 6:33 ` Inochi Amaoto 1 sibling, 0 replies; 7+ messages in thread From: Inochi Amaoto @ 2024-02-14 6:33 UTC (permalink / raw) To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Chen Wang, Paul Walmsley, Palmer Dabbelt, Albert Ou, Inochi Amaoto Cc: Jisheng Zhang, Liu Gui, Jingbao Qiu, dlan, devicetree, linux-kernel, linux-riscv Add top misc system controller dt node for CV18XX/SG200x. Signed-off-by: Inochi Amaoto <inochiama@outlook.com> --- arch/riscv/boot/dts/sophgo/cv18xx.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/riscv/boot/dts/sophgo/cv18xx.dtsi b/arch/riscv/boot/dts/sophgo/cv18xx.dtsi index 2d6f4a4b1e58..908d858a63ab 100644 --- a/arch/riscv/boot/dts/sophgo/cv18xx.dtsi +++ b/arch/riscv/boot/dts/sophgo/cv18xx.dtsi @@ -53,6 +53,12 @@ soc { dma-noncoherent; ranges; + topctrl: syscon@3000000 { + compatible = "sophgo,cv1800-top-syscon", + "syscon", "simple-mfd"; + reg = <0x03000000 0x1000>; + }; + gpio0: gpio@3020000 { compatible = "snps,dw-apb-gpio"; reg = <0x3020000 0x1000>; -- 2.43.1 ^ permalink raw reply related [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-02-20 10:37 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2024-02-14 6:32 [PATCH v3 0/2] riscv: sophgo: cv18xx: add top misc system controller Inochi Amaoto 2024-02-14 6:33 ` [PATCH v3 1/2] dt-bindings: clock: sophgo: Add top misc controller of CV18XX/SG200X series SoC Inochi Amaoto 2024-02-15 15:13 ` Rob Herring 2024-02-15 23:56 ` Inochi Amaoto 2024-02-17 14:32 ` Krzysztof Kozlowski 2024-02-20 10:37 ` Inochi Amaoto 2024-02-14 6:33 ` [PATCH v3 2/2] riscv: dts: sophgo: cv18xx: add top misc system controller Inochi Amaoto
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).