From: Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Rob Herring <robh@kernel.org>, Conor Dooley <conor+dt@kernel.org>,
Alim Akhtar <alim.akhtar@samsung.com>,
Sam Protsenko <semen.protsenko@linaro.org>,
Peter Griffin <peter.griffin@linaro.org>,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 2/4] dt-bindings: soc: samsung: usi: add USIv1 and samsung,exynos8895-usi
Date: Mon, 6 Jan 2025 09:11:17 +0200 [thread overview]
Message-ID: <39e29fe1-ae45-47e6-950e-536d56cf1905@gmail.com> (raw)
In-Reply-To: <kgcgxhfwxdrja6djiv45f45pqwbtwnd2bw63xcsyo2msewkzfr@qypxgl2a7gyg>
On 1/6/25 08:31, Krzysztof Kozlowski wrote:
> On Sun, Jan 05, 2025 at 06:03:44PM +0200, Ivaylo Ivanov wrote:
>> samsung,mode:
>> $ref: /schemas/types.yaml#/definitions/uint32
>> - enum: [0, 1, 2, 3]
>> + enum: [0, 1, 2, 3, 4, 5, 6]
>> description:
>> Selects USI function (which serial protocol to use). Refer to
>> <include/dt-bindings/soc/samsung,exynos-usi.h> for valid USI mode values.
>> @@ -101,37 +111,62 @@ required:
>> - samsung,sysreg
>> - samsung,mode
>>
>> -if:
>> - properties:
>> - compatible:
>> - contains:
>> - enum:
>> - - samsung,exynos850-usi
>> +allOf:
>> + - if:
>> + properties:
>> + compatible:
>> + contains:
>> + enum:
>> + - google,gs101-usi
>> + - samsung,exynos850-usi
>> + - samsung,exynosautov9-usi
>> + - samsung,exynosautov920-usi
> I made mistake during last review - the binding had a confusing "else"
> here, but that else was a no-op. All existing compatibles are fallbacked
> to samsung,exynos850-usi, so previous code "contains: enum:
> samsung,exynos850-usi" was covering everything.
>
> You can drop other variants and keep the original samsung,exynos850-usi
> only.
Yeah I thought so too. It's fine, will fix in the next revision.
>
>> +
>> + then:
>> + properties:
>> + reg:
>> + maxItems: 1
>> +
>> + clocks:
>> + items:
>> + - description: Bus (APB) clock
>> + - description: Operating clock for UART/SPI/I2C protocol
>> +
>> + clock-names:
>> + maxItems: 2
>> +
>> + samsung,mode:
>> + enum: [0, 1, 2, 3]
>> +
>> + required:
>> + - reg
>> + - clocks
>> + - clock-names
>> +
>> + - if:
>> + properties:
>> + compatible:
>> + contains:
>> + enum:
>> + - samsung,exynos8895-usi
> I don't see where this compatible is documented.
Right, ommited that. Yet dtbs_check W=1 still didn't catch that.
Thanks for the feedback!
Best regards,
Ivaylo
>
>> +
>> + then:
>> + properties:
>> + reg: false
>> +
>> + clocks:
>> + items:
>> + - description: Bus (APB) clock
>> + - description: Operating clock for UART/SPI protocol
> Best regards,
> Krzysztof
>
next prev parent reply other threads:[~2025-01-06 7:11 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-05 16:03 [PATCH v3 0/4] soc: samsung: usi: implement support for USIv1 Ivaylo Ivanov
2025-01-05 16:03 ` [PATCH v3 1/4] dt-bindings: soc: samsung: usi: replace USI_V2 in constants with USI_MODE Ivaylo Ivanov
2025-01-06 6:24 ` Krzysztof Kozlowski
2025-01-06 7:09 ` Ivaylo Ivanov
2025-01-06 7:28 ` Krzysztof Kozlowski
2025-01-06 7:36 ` Tudor Ambarus
2025-01-06 7:41 ` Ivaylo Ivanov
2025-01-06 8:50 ` Krzysztof Kozlowski
2025-01-06 9:10 ` Tudor Ambarus
2025-01-05 16:03 ` [PATCH v3 2/4] dt-bindings: soc: samsung: usi: add USIv1 and samsung,exynos8895-usi Ivaylo Ivanov
2025-01-06 6:31 ` Krzysztof Kozlowski
2025-01-06 7:11 ` Ivaylo Ivanov [this message]
2025-01-05 16:03 ` [PATCH v3 3/4] soc: samsung: usi: implement support for USIv1 and exynos8895 Ivaylo Ivanov
2025-01-06 7:02 ` Krzysztof Kozlowski
2025-01-05 16:03 ` [PATCH v3 4/4] arm64: dts: exynos: update all samsung,mode constants Ivaylo Ivanov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=39e29fe1-ae45-47e6-950e-536d56cf1905@gmail.com \
--to=ivo.ivanov.ivanov1@gmail.com \
--cc=alim.akhtar@samsung.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=peter.griffin@linaro.org \
--cc=robh@kernel.org \
--cc=semen.protsenko@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®