Message ID | 20240703-k1-01-basic-dt-v3-0-12f73b47461e@gentoo.org |
---|---|
Headers | show |
Series | riscv: add initial support for SpacemiT K1 | expand |
On Wed, Jul 03, 2024 at 02:55:06PM +0000, Yixun Lan wrote: > From: Yangyu Chen <cyy@cyyself.name> > > Add DT binding documentation for the SpacemiT K1 SoC[1] and the Banana > Pi BPi-F3 board[2] which used it. > > Link: https://www.spacemit.com/en/spacemit-key-stone-2/ [1] > Link: https://docs.banana-pi.org/en/BPI-F3/BananaPi_BPI-F3 [2] > Signed-off-by: Yangyu Chen <cyy@cyyself.name> > Signed-off-by: Yixun Lan <dlan@gentoo.org> Reviewed-by: Matthias Brugger <matthias.bgg@kernel.org> > --- > .../devicetree/bindings/riscv/spacemit.yaml | 28 ++++++++++++++++++++++ > 1 file changed, 28 insertions(+) > > diff --git a/Documentation/devicetree/bindings/riscv/spacemit.yaml b/Documentation/devicetree/bindings/riscv/spacemit.yaml > new file mode 100644 > index 0000000000000..52e55077af1ae > --- /dev/null > +++ b/Documentation/devicetree/bindings/riscv/spacemit.yaml > @@ -0,0 +1,28 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/riscv/spacemit.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: SpacemiT SoC-based boards > + > +maintainers: > + - Yangyu Chen <cyy@cyyself.name> > + - Yixun Lan <dlan@gentoo.org> > + > +description: > + SpacemiT SoC-based boards > + > +properties: > + $nodename: > + const: '/' > + compatible: > + oneOf: > + - items: > + - enum: > + - bananapi,bpi-f3 > + - const: spacemit,k1 > + > +additionalProperties: true > + > +... > > -- > 2.45.2 > > > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv
On Wed, Jul 03, 2024 at 02:55:14PM +0000, Yixun Lan wrote: > Devices in 0xf000,0000 - 0xf080,0000 are reserved for TEE purpose, > so add uart1 here but mark its status as reserved. This patch doesn't deserve a seperate patch, it's better to fold it into the dtsi one. > > Signed-off-by: Yixun Lan <dlan@gentoo.org> > > --- > This patch can be folded into "riscv: dts: add initial SpacemiT K1 SoC device tree", > if maintainer finds it's too trivial to have an independent patch.. > --- > arch/riscv/boot/dts/spacemit/k1.dtsi | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/arch/riscv/boot/dts/spacemit/k1.dtsi b/arch/riscv/boot/dts/spacemit/k1.dtsi > index a076e35855a2e..fee8921513c1f 100644 > --- a/arch/riscv/boot/dts/spacemit/k1.dtsi > +++ b/arch/riscv/boot/dts/spacemit/k1.dtsi > @@ -372,5 +372,15 @@ clint: timer@e4000000 { > <&cpu6_intc 3>, <&cpu6_intc 7>, > <&cpu7_intc 3>, <&cpu7_intc 7>; > }; > + > + sec_uart1: serial@f0612000 { > + compatible = "spacemit,k1-uart", "intel,xscale-uart"; > + reg = <0x0 0xf0612000 0x0 0x100>; > + interrupts = <43>; > + clock-frequency = <14857000>; > + reg-shift = <2>; > + reg-io-width = <4>; > + status = "reserved"; /* for TEE usage */ > + }; > }; > }; > > -- > 2.45.2 > > > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv
On 22:05 Thu 04 Jul , Jisheng Zhang wrote: > On Wed, Jul 03, 2024 at 02:55:14PM +0000, Yixun Lan wrote: > > Devices in 0xf000,0000 - 0xf080,0000 are reserved for TEE purpose, > > so add uart1 here but mark its status as reserved. > > This patch doesn't deserve a seperate patch, it's better to fold it > into the dtsi one. fine, I will address it in next revision