@@ -22,6 +22,21 @@ allOf:
2222 properties :
2323 reg :
2424 minItems : 2
25+ - if :
26+ properties :
27+ compatible :
28+ contains :
29+ enum :
30+ - baikal,bt1-sys-ssi
31+ then :
32+ properties :
33+ mux-controls :
34+ maxItems : 1
35+ required :
36+ - mux-controls
37+ else :
38+ required :
39+ - interrupts
2540
2641properties :
2742 compatible :
@@ -36,6 +51,8 @@ properties:
3651 - mscc,ocelot-spi
3752 - mscc,jaguar2-spi
3853 - const : snps,dw-apb-ssi
54+ - description : Microchip Sparx5 SoC SPI Controller
55+ const : microchip,sparx5-spi
3956 - description : Amazon Alpine SPI Controller
4057 const : amazon,alpine-dw-apb-ssi
4158 - description : Renesas RZ/N1 SPI Controller
@@ -44,12 +61,16 @@ properties:
4461 - const : snps,dw-apb-ssi
4562 - description : Intel Keem Bay SPI Controller
4663 const : intel,keembay-ssi
64+ - description : Baikal-T1 SPI Controller
65+ const : baikal,bt1-ssi
66+ - description : Baikal-T1 System Boot SPI Controller
67+ const : baikal,bt1-sys-ssi
4768
4869 reg :
4970 minItems : 1
5071 items :
5172 - description : DW APB SSI controller memory mapped registers
52- - description : SPI MST region map
73+ - description : SPI MST region map or directly mapped SPI ROM
5374
5475 interrupts :
5576 maxItems : 1
@@ -93,6 +114,12 @@ properties:
93114 - const : tx
94115 - const : rx
95116
117+ rx-sample-delay-ns :
118+ default : 0
119+ description : Default value of the rx-sample-delay-ns property.
120+ This value will be used if the property is not explicitly defined
121+ for a SPI slave device. See below.
122+
96123patternProperties :
97124 " ^.*@[0-9a-f]+$ " :
98125 type : object
@@ -107,14 +134,20 @@ patternProperties:
107134 spi-tx-bus-width :
108135 const : 1
109136
137+ rx-sample-delay-ns :
138+ description : SPI Rx sample delay offset, unit is nanoseconds.
139+ The delay from the default sample time before the actual
140+ sample of the rxd input signal occurs. The "rx_sample_delay"
141+ is an optional feature of the designware controller, and the
142+ upper limit is also subject to controller configuration.
143+
110144unevaluatedProperties : false
111145
112146required :
113147 - compatible
114148 - reg
115149 - " #address-cells"
116150 - " #size-cells"
117- - interrupts
118151 - clocks
119152
120153examples :
@@ -129,5 +162,22 @@ examples:
129162 num-cs = <2>;
130163 cs-gpios = <&gpio0 13 0>,
131164 <&gpio0 14 0>;
165+ rx-sample-delay-ns = <3>;
166+ spi-flash@1 {
167+ compatible = "spi-nand";
168+ reg = <1>;
169+ rx-sample-delay-ns = <7>;
170+ };
171+ };
172+ - |
173+ spi@1f040100 {
174+ compatible = "baikal,bt1-sys-ssi";
175+ reg = <0x1f040100 0x900>,
176+ <0x1c000000 0x1000000>;
177+ #address-cells = <1>;
178+ #size-cells = <0>;
179+ mux-controls = <&boot_mux>;
180+ clocks = <&ccu_sys>;
181+ clock-names = "ssi_clk";
132182 };
133183 ...
0 commit comments