Message ID | 20210203125913.390949-6-damien.lemoal@wdc.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | RISC-V Kendryte K210 support improvements | expand |
On Wed, Feb 03, 2021 at 09:59:02PM +0900, Damien Le Moal wrote: > Add the "canaan,k210-clint" compatible string to the Sifive clint > bindings to indicate the use of the "sifive,clint0" IP block in the > Canaan Kendryte K210 SoC. The description of the compatible string > property is also updated to reflect this addition. > > Cc: Anup Patel <anup.patel@wdc.com> > Cc: Rob Herring <robh@kernel.org> > Cc: devicetree@vger.kernel.org > Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com> > Reviewed-by: Atish Patra <atish.patra@wdc.com> > --- > .../bindings/timer/sifive,clint.yaml | 19 +++++++++++++------ > 1 file changed, 13 insertions(+), 6 deletions(-) > > diff --git a/Documentation/devicetree/bindings/timer/sifive,clint.yaml b/Documentation/devicetree/bindings/timer/sifive,clint.yaml > index 2a0e9cd9fbcf..1a7d582a208f 100644 > --- a/Documentation/devicetree/bindings/timer/sifive,clint.yaml > +++ b/Documentation/devicetree/bindings/timer/sifive,clint.yaml > @@ -22,16 +22,23 @@ description: > > properties: > compatible: > - items: > - - const: sifive,fu540-c000-clint Use enum here too. > - - const: sifive,clint0 > + oneOf: > + - items: > + - const: sifive,fu540-c000-clint > + - const: sifive,clint0 > + > + - items: > + - const: canaan,k210-clint > + - const: sifive,clint0 > > description: > - Should be "sifive,<chip>-clint" and "sifive,clint<version>". > + Should be "<vendor>,<chip>-clint" and "sifive,clint<version>". > Supported compatible strings are - > "sifive,fu540-c000-clint" for the SiFive CLINT v0 as integrated > - onto the SiFive FU540 chip, and "sifive,clint0" for the SiFive > - CLINT v0 IP block with no chip integration tweaks. > + onto the SiFive FU540 chip, "canaan,k210-clint" for the SiFive > + CLINT v0 as integrated onto the Canaan Kendryte K210 chip, and > + "sifive,clint0" for the SiFive CLINT v0 IP block with no chip > + integration tweaks. > Please refer to sifive-blocks-ip-versioning.txt for details > > reg: > -- > 2.29.2 >
diff --git a/Documentation/devicetree/bindings/timer/sifive,clint.yaml b/Documentation/devicetree/bindings/timer/sifive,clint.yaml index 2a0e9cd9fbcf..1a7d582a208f 100644 --- a/Documentation/devicetree/bindings/timer/sifive,clint.yaml +++ b/Documentation/devicetree/bindings/timer/sifive,clint.yaml @@ -22,16 +22,23 @@ description: properties: compatible: - items: - - const: sifive,fu540-c000-clint - - const: sifive,clint0 + oneOf: + - items: + - const: sifive,fu540-c000-clint + - const: sifive,clint0 + + - items: + - const: canaan,k210-clint + - const: sifive,clint0 description: - Should be "sifive,<chip>-clint" and "sifive,clint<version>". + Should be "<vendor>,<chip>-clint" and "sifive,clint<version>". Supported compatible strings are - "sifive,fu540-c000-clint" for the SiFive CLINT v0 as integrated - onto the SiFive FU540 chip, and "sifive,clint0" for the SiFive - CLINT v0 IP block with no chip integration tweaks. + onto the SiFive FU540 chip, "canaan,k210-clint" for the SiFive + CLINT v0 as integrated onto the Canaan Kendryte K210 chip, and + "sifive,clint0" for the SiFive CLINT v0 IP block with no chip + integration tweaks. Please refer to sifive-blocks-ip-versioning.txt for details reg: