SG2042 is not fully compatiable with SG2044,
So it is necessary to become independent const
Signed-off-by: Zixian Zeng <sycamoremoon376@gmail.com>
---
Documentation/devicetree/bindings/spi/spi-sg2044-nor.yaml | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/Documentation/devicetree/bindings/spi/spi-sg2044-nor.yaml b/Documentation/devicetree/bindings/spi/spi-sg2044-nor.yaml
index 66e54dedab140a167ad84c43f312f93af2bfa06a..1299097a210d5074cb23b644d4f102a2fb1a0e3a 100644
--- a/Documentation/devicetree/bindings/spi/spi-sg2044-nor.yaml
+++ b/Documentation/devicetree/bindings/spi/spi-sg2044-nor.yaml
@@ -16,10 +16,7 @@ properties:
compatible:
oneOf:
- const: sophgo,sg2044-spifmc-nor
- - items:
- - enum:
- - sophgo,sg2042-spifmc-nor
- - const: sophgo,sg2044-spifmc-nor
+ - const: sophgo,sg2042-spifmc-nor
reg:
maxItems: 1
--
2.49.0
On Sun, Jun 29, 2025 at 04:23:10PM +0800, Zixian Zeng wrote: > SG2042 is not fully compatiable with SG2044, Typo, run spellcheck. > So it is necessary to become independent const No capital letters after ,. Anyway, explain why it is not fully compatible. Best regards, Krzysztof
On Mon, Jun 30, 2025 at 09:17:09AM +0200, Krzysztof Kozlowski wrote: > On Sun, Jun 29, 2025 at 04:23:10PM +0800, Zixian Zeng wrote: > > SG2042 is not fully compatiable with SG2044, > > Typo, run spellcheck. > Thanks for spotting that! I will add spellcheck to my patch checking script next. > > So it is necessary to become independent const > > No capital letters after ,. > Ok, thanks > Anyway, explain why it is not fully compatible. > I have asked the technical staff of SOPHGO, the SG2044 and SG2042 are indeed incompatible with each other in some places because of the hardware details, regarding the configuration of the OPT register and FFTrgLvl(fifo trigger level) bit setting. > Best regards, > Krzysztof > Best regards, Zixian
On 30/06/2025 13:47, Zixian Zeng wrote: > On Mon, Jun 30, 2025 at 09:17:09AM +0200, Krzysztof Kozlowski wrote: >> On Sun, Jun 29, 2025 at 04:23:10PM +0800, Zixian Zeng wrote: >>> SG2042 is not fully compatiable with SG2044, >> >> Typo, run spellcheck. >> > Thanks for spotting that! I will add spellcheck to my patch checking script next. > >>> So it is necessary to become independent const >> >> No capital letters after ,. >> > Ok, thanks > >> Anyway, explain why it is not fully compatible. >> > I have asked the technical staff of SOPHGO, the SG2044 and SG2042 are indeed incompatible with each other in some places because of the hardware details, regarding the configuration of the OPT register and FFTrgLvl(fifo trigger level) bit setting. So when driver binds with sg2044, the device does not work? Or what exactly does not work? All this is supposed to be explained in the commit msg. Best regards, Krzysztof
On Mon, Jun 30, 2025 at 01:55:58PM +0200, Krzysztof Kozlowski wrote: > On 30/06/2025 13:47, Zixian Zeng wrote: > > On Mon, Jun 30, 2025 at 09:17:09AM +0200, Krzysztof Kozlowski wrote: > >> On Sun, Jun 29, 2025 at 04:23:10PM +0800, Zixian Zeng wrote: > >>> SG2042 is not fully compatiable with SG2044, > >> > >> Typo, run spellcheck. > >> > > Thanks for spotting that! I will add spellcheck to my patch checking script next. > > > >>> So it is necessary to become independent const > >> > >> No capital letters after ,. > >> > > Ok, thanks > > > >> Anyway, explain why it is not fully compatible. > >> > > I have asked the technical staff of SOPHGO, > > the SG2044 and SG2042 are indeed incompatible with each other in some places > > because of the hardware details, regarding the configuration of the OPT register > > and FFTrgLvl(fifo trigger level) bit setting. > > So when driver binds with sg2044, the device does not work? Or what > exactly does not work? > > All this is supposed to be explained in the commit msg. > I got it, I think I had explained this in the driver patch[3/4]. If this reason is acceptable, I would like to ask whether the explanation should be put in the binding patch commit msg [1/4] instead of the driver patch commit msg [3/4]? or both? Thank you. > Best regards, > Krzysztof Best regards, Zixian
On Sun, 29 Jun 2025 16:23:10 +0800, Zixian Zeng wrote: > SG2042 is not fully compatiable with SG2044, > So it is necessary to become independent const > > Signed-off-by: Zixian Zeng <sycamoremoon376@gmail.com> > --- > Documentation/devicetree/bindings/spi/spi-sg2044-nor.yaml | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > My bot found errors running 'make dt_binding_check' on your patch: yamllint warnings/errors: dtschema/dtc warnings/errors: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/spi/spi-sg2044-nor.yaml: properties:compatible:oneOf: [{'const': 'sophgo,sg2044-spifmc-nor'}, {'const': 'sophgo,sg2042-spifmc-nor'}] should not be valid under {'items': {'propertyNames': {'const': 'const'}, 'required': ['const']}} hint: Use 'enum' rather than 'oneOf' + 'const' entries from schema $id: http://devicetree.org/meta-schemas/keywords.yaml# doc reference errors (make refcheckdocs): See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20250629-sfg-spifmc-v3-1-28db1f27e999@gmail.com The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch. If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date: pip3 install dtschema --upgrade Please check and re-submit after running the above command yourself. Note that DT_SCHEMA_FILES can be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema.
© 2016 - 2025 Red Hat, Inc.