mirror of
https://github.com/torvalds/linux.git
synced 2026-04-28 03:22:27 -04:00
Add bindings for the SOPHGO SG2042 SPI-NOR flash controller, which is compatible with SOPHGO SG2044. Signed-off-by: Zixian Zeng <sycamoremoon376@gmail.com> Acked-by: Conor Dooley <conor.dooley@microchip.com> Reviewed-by: Chen Wang <unicorn_wang@outlook.com> Link: https://patch.msgid.link/20250525-sfg-spifmc-v2-1-a3732b6f5ab4@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
58 lines
1.0 KiB
YAML
58 lines
1.0 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/spi/spi-sg2044-nor.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: SG2044 SPI NOR controller
|
|
|
|
maintainers:
|
|
- Longbin Li <looong.bin@gmail.com>
|
|
|
|
allOf:
|
|
- $ref: spi-controller.yaml#
|
|
|
|
properties:
|
|
compatible:
|
|
oneOf:
|
|
- const: sophgo,sg2044-spifmc-nor
|
|
- items:
|
|
- enum:
|
|
- sophgo,sg2042-spifmc-nor
|
|
- const: sophgo,sg2044-spifmc-nor
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
clocks:
|
|
maxItems: 1
|
|
|
|
interrupts:
|
|
maxItems: 1
|
|
|
|
resets:
|
|
maxItems: 1
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- clocks
|
|
- interrupts
|
|
- resets
|
|
|
|
unevaluatedProperties: false
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/interrupt-controller/irq.h>
|
|
|
|
spi@1000000 {
|
|
compatible = "sophgo,sg2044-spifmc-nor";
|
|
reg = <0x1000000 0x4000000>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
clocks = <&clk 0>;
|
|
interrupts = <37 IRQ_TYPE_LEVEL_HIGH>;
|
|
resets = <&rst 0>;
|
|
};
|