Skip to content

Commit 9f95e2d

Browse files
looongbinbroonie
authored andcommitted
dt-bindings: spi: add SG2044 SPI NOR controller driver
Add SPI NOR driver for SG2044, including read, write operations. Signed-off-by: Longbin Li <looong.bin@gmail.com> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Link: https://patch.msgid.link/20250304083548.10101-2-looong.bin@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 02a838b commit 9f95e2d

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/spi/spi-sg2044-nor.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: SG2044 SPI NOR controller
8+
9+
maintainers:
10+
- Longbin Li <looong.bin@gmail.com>
11+
12+
allOf:
13+
- $ref: spi-controller.yaml#
14+
15+
properties:
16+
compatible:
17+
const: sophgo,sg2044-spifmc-nor
18+
19+
reg:
20+
maxItems: 1
21+
22+
clocks:
23+
maxItems: 1
24+
25+
interrupts:
26+
maxItems: 1
27+
28+
resets:
29+
maxItems: 1
30+
31+
required:
32+
- compatible
33+
- reg
34+
- clocks
35+
- interrupts
36+
- resets
37+
38+
unevaluatedProperties: false
39+
40+
examples:
41+
- |
42+
#include <dt-bindings/interrupt-controller/irq.h>
43+
44+
spi@1000000 {
45+
compatible = "sophgo,sg2044-spifmc-nor";
46+
reg = <0x1000000 0x4000000>;
47+
#address-cells = <1>;
48+
#size-cells = <0>;
49+
clocks = <&clk 0>;
50+
interrupts = <37 IRQ_TYPE_LEVEL_HIGH>;
51+
resets = <&rst 0>;
52+
};

0 commit comments

Comments
 (0)