-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This series should rid us of dtbs_check errors for the RISC-V Canaan k210 based boards. To make keeping it that way a little easier, I changed the Canaan devicetree Makefile so that it would build all of the devicetrees in the directory if SOC_CANAAN. Link: https://lore.kernel.org/all/mhng-85044754-c361-40bc-a6a2-7082f35930bb@palmer-ri-x1c9/ * remotes/palmer/riscv-canaan_dt_schema: riscv: dts: canaan: build all devicetress if SOC_CANAAN riscv: dts: canaan: add specific compatible for kd233's LCD riscv: dts: canaan: fix bus {ranges,reg} warnings riscv: dts: canaan: remove spi-max-frequency from controllers riscv: dts: canaan: use custom compatible for k210 i2s riscv: dts: canaan: fix kd233 display spi frequency riscv: dts: canaan: fix mmc node names riscv: dts: canaan: fix the k210's timer nodes riscv: dts: canaan: fix the k210's memory node dt-bindings: memory-controllers: add canaan k210 sram controller dt-bindings: display: ili9341: document canaan kd233's lcd dt-bindings: display: convert ilitek,ili9341.txt to dt-schema
- Loading branch information
Showing
10 changed files
with
153 additions
and
72 deletions.
There are no files selected for viewing
27 changes: 0 additions & 27 deletions
27
Documentation/devicetree/bindings/display/ilitek,ili9341.txt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
Documentation/devicetree/bindings/memory-controllers/canaan,k210-sram.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/memory-controllers/canaan,k210-sram.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Canaan K210 SRAM memory controller | ||
|
||
description: | ||
The Canaan K210 SRAM memory controller is responsible for the system's 8 MiB | ||
of SRAM. The controller is initialised by the bootloader, which configures | ||
its clocks, before OS bringup. | ||
|
||
maintainers: | ||
- Conor Dooley <conor@kernel.org> | ||
|
||
properties: | ||
compatible: | ||
enum: | ||
- canaan,k210-sram | ||
|
||
clocks: | ||
minItems: 1 | ||
items: | ||
- description: sram0 clock | ||
- description: sram1 clock | ||
- description: aisram clock | ||
|
||
clock-names: | ||
minItems: 1 | ||
items: | ||
- const: sram0 | ||
- const: sram1 | ||
- const: aisram | ||
|
||
required: | ||
- compatible | ||
- clocks | ||
- clock-names | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/clock/k210-clk.h> | ||
memory-controller { | ||
compatible = "canaan,k210-sram"; | ||
clocks = <&sysclk K210_CLK_SRAM0>, | ||
<&sysclk K210_CLK_SRAM1>, | ||
<&sysclk K210_CLK_AI>; | ||
clock-names = "sram0", "sram1", "aisram"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
# SPDX-License-Identifier: GPL-2.0 | ||
dtb-$(CONFIG_SOC_CANAAN_K210_DTB_BUILTIN) += $(addsuffix .dtb, $(CONFIG_SOC_CANAAN_K210_DTB_SOURCE)) | ||
obj-$(CONFIG_SOC_CANAAN_K210_DTB_BUILTIN) += $(addsuffix .o, $(dtb-y)) | ||
dtb-$(CONFIG_SOC_CANAAN) += canaan_kd233.dtb | ||
dtb-$(CONFIG_SOC_CANAAN) += k210_generic.dtb | ||
dtb-$(CONFIG_SOC_CANAAN) += sipeed_maix_bit.dtb | ||
dtb-$(CONFIG_SOC_CANAAN) += sipeed_maix_dock.dtb | ||
dtb-$(CONFIG_SOC_CANAAN) += sipeed_maix_go.dtb | ||
dtb-$(CONFIG_SOC_CANAAN) += sipeed_maixduino.dtb | ||
|
||
obj-$(CONFIG_SOC_CANAAN_K210_DTB_BUILTIN) += $(addsuffix .dtb.o, $(CONFIG_SOC_CANAAN_K210_DTB_SOURCE)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters