Unverified Commit 1ce3a957 authored by Conor Dooley's avatar Conor Dooley
Browse files

Merge initial Sophgo patches into riscv-dt-for-next



Two series, from Chen and Jisheng, to add support for some of Sophgo's
offerings - albeit on vastly different ends of the spectrum. The sg2042
is a "developer motherboard" with a 64 core SoC. The cv1800 series are
aimed for use in IP cameras, as far as I can tell, and have one core for
running Linux on.

I expect that Chen Wang will take over maintenance of these SoCs once
they have got more used to the process etc, and in the meantime I will
apply the patches and send them to the soc maintainers. At least, that
was what they requested I do :)

Signed-off-by: default avatarConor Dooley <conor.dooley@microchip.com>
parents af571133 27df2ed3
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -65,6 +65,8 @@ properties:
      - items:
          - enum:
              - allwinner,sun20i-d1-plic
              - sophgo,cv1800b-plic
              - sophgo,sg2042-plic
              - thead,th1520-plic
          - const: thead,c900-plic
      - items:
+43 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/interrupt-controller/thead,c900-aclint-mswi.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Sophgo sg2042 CLINT Machine-level Software Interrupt Device

maintainers:
  - Inochi Amaoto <inochiama@outlook.com>

properties:
  compatible:
    items:
      - enum:
          - sophgo,sg2042-aclint-mswi
      - const: thead,c900-aclint-mswi

  reg:
    maxItems: 1

  interrupts-extended:
    minItems: 1
    maxItems: 4095

additionalProperties: false

required:
  - compatible
  - reg
  - interrupts-extended

examples:
  - |
    interrupt-controller@94000000 {
      compatible = "sophgo,sg2042-aclint-mswi", "thead,c900-aclint-mswi";
      interrupts-extended = <&cpu1intc 3>,
                            <&cpu2intc 3>,
                            <&cpu3intc 3>,
                            <&cpu4intc 3>;
      reg = <0x94000000 0x00010000>;
    };
...
+1 −0
Original line number Diff line number Diff line
@@ -47,6 +47,7 @@ properties:
              - sifive,u74-mc
              - thead,c906
              - thead,c910
              - thead,c920
          - const: riscv
      - items:
          - enum:
+32 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/riscv/sophgo.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Sophgo SoC-based boards

maintainers:
  - Chao Wei <chao.wei@sophgo.com>
  - Chen Wang <unicorn_wang@outlook.com>

description:
  Sophgo SoC-based boards

properties:
  $nodename:
    const: '/'
  compatible:
    oneOf:
      - items:
          - enum:
              - milkv,duo
          - const: sophgo,cv1800b
      - items:
          - enum:
              - milkv,pioneer
          - const: sophgo,sg2042

additionalProperties: true

...
+1 −0
Original line number Diff line number Diff line
@@ -37,6 +37,7 @@ properties:
      - items:
          - enum:
              - allwinner,sun20i-d1-clint
              - sophgo,cv1800b-clint
              - thead,th1520-clint
          - const: thead,c900-clint
      - items:
Loading