Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 26 additions & 3 deletions Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,35 @@ description:

allOf:
- $ref: dma-controller.yaml#
- if:
properties:
compatible:
contains:
const: zhihe,a210-axi-dma
then:
properties:
dma-channels:
maximum: 16
snps,priority:
maxItems: 16
snps,block-size:
maxItems: 16
else:
properties:
dma-channels:
maximum: 8
snps,priority:
maxItems: 8
snps,block-size:
maxItems: 8

properties:
compatible:
enum:
- snps,axi-dma-1.01a
- intel,kmb-axi-dma
- starfive,jh7110-axi-dma
- zhihe,a210-axi-dma

reg:
minItems: 1
Expand Down Expand Up @@ -56,7 +78,7 @@ properties:

dma-channels:
minimum: 1
maximum: 8
maximum: 16

resets:
minItems: 1
Expand All @@ -80,14 +102,14 @@ properties:
Channel priority specifier associated with the DMA channels.
$ref: /schemas/types.yaml#/definitions/uint32-array
minItems: 1
maxItems: 8
maxItems: 16

snps,block-size:
description: |
Channel block size specifier associated with the DMA channels.
$ref: /schemas/types.yaml#/definitions/uint32-array
minItems: 1
maxItems: 8
maxItems: 16

snps,axi-max-burst-len:
description: |
Expand Down Expand Up @@ -117,6 +139,7 @@ if:
contains:
enum:
- starfive,jh7110-axi-dma
- zhihe,a210-axi-dma
then:
properties:
resets:
Expand Down
2 changes: 1 addition & 1 deletion Documentation/devicetree/bindings/riscv/zhihe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ properties:
- description: Zhihe A210 evaluation board
items:
- enum:
- zhihe,a210-dev
- zhihe,melon-pi
- zhihe,a210-evb
- const: zhihe,a210

Expand Down
2 changes: 1 addition & 1 deletion arch/riscv/boot/dts/zhihe/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# SPDX-License-Identifier: GPL-2.0

dtb-$(CONFIG_ARCH_ZHIHE) += a210-evb.dtb a210-dev.dtb
dtb-$(CONFIG_ARCH_ZHIHE) += a210-evb.dtb a210-melon-pi.dtb
49 changes: 19 additions & 30 deletions arch/riscv/boot/dts/zhihe/a210-evb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@
};

&uart4 {
status = "okay";
/*
* Keep the console UART independent of the optional A210 pinctrl
* driver. The boot firmware has already configured these pins.
Expand Down Expand Up @@ -478,52 +479,40 @@
};
};

&uart0 {
status = "disabled";
};

&uart1 {
status = "disabled";
};

&uart2 {
&peri3_padctrl {
status = "disabled";
};

&uart3 {
status = "disabled";
&aon {
/delete-node/ regulators;
};

&uart5 {
status = "disabled";
&watchdog0 {
/delete-property/ power-domains;
};

&uart6 {
status = "disabled";
};
/delete-node/ &power;

&uart7 {
status = "disabled";
&aon_gpio0 {
status = "okay";
};

&uart8 {
status = "disabled";
&aon_gpio1 {
status = "okay";
};

&uart9 {
status = "disabled";
&peri1_gpio0 {
status = "okay";
};

&peri3_padctrl {
status = "disabled";
&peri1_gpio1 {
status = "okay";
};

&aon {
/delete-node/ regulators;
&peri2_gpio2 {
status = "okay";
};

&watchdog0 {
/delete-property/ power-domains;
&peri2_gpio3 {
status = "okay";
};

/delete-node/ &power;
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#include "a210.dtsi"

/ {
model = "Zhihe A210 Development Board";
compatible = "zhihe,a210-dev", "zhihe,a210";
model = "Zhihe Melon Pi";
compatible = "zhihe,melon-pi", "zhihe,a210";

aliases {
ethernet0 = &gmac0;
Expand Down Expand Up @@ -330,6 +330,7 @@
};

&uart4 {
status = "okay";
/*
* Keep the console UART independent of the optional A210 pinctrl
* driver. The boot firmware has already configured these pins.
Expand All @@ -342,6 +343,7 @@
};

&uart8 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&uart8_pins>;
};
Expand All @@ -357,6 +359,7 @@
};

&uart5 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&uart5_pins>;
};
Expand Down Expand Up @@ -416,30 +419,30 @@
};
};

&uart0 {
status = "disabled";
&aon_gpio0 {
status = "okay";
};

&uart1 {
status = "disabled";
&aon_gpio1 {
status = "okay";
};

&uart2 {
status = "disabled";
&peri1_gpio0 {
status = "okay";
};

&uart3 {
status = "disabled";
&peri1_gpio1 {
status = "okay";
};

&uart6 {
status = "disabled";
&peri2_gpio2 {
status = "okay";
};

&uart7 {
status = "disabled";
&peri2_gpio3 {
status = "okay";
};

&uart9 {
status = "disabled";
&peri3_gpio {
status = "okay";
};
Loading
Loading