All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Andreas Färber" <afaerber@suse.de>
To: Rob Herring <robh@kernel.org>,
	Wim Van Sebroeck <wim@linux-watchdog.org>,
	Guenter Roeck <linux@roeck-us.net>
Cc: Mark Rutland <mark.rutland@arm.com>,
	devicetree@vger.kernel.org, linux-watchdog@vger.kernel.org,
	linux-realtek-soc@lists.infradead.org,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v2 1/8] dt-bindings: watchdog: realtek: Convert RTD119x to schema
Date: Sun, 27 Oct 2019 03:04:38 +0100	[thread overview]
Message-ID: <7fff9d25-e24a-c73e-b14f-12c66607fe3a@suse.de> (raw)
In-Reply-To: <aeb0d0ed-5649-9035-c753-39e8a1511c9d@suse.de>

Am 25.10.19 um 23:24 schrieb Andreas Färber:
> Am 25.10.19 um 23:16 schrieb Rob Herring:
>> On Sun, Oct 20, 2019 at 06:08:10AM +0200, Andreas Färber wrote:
>>> +properties:
>>> +  compatible:
>>> +    oneOf:
>>> +      - const: realtek,rtd1295-watchdog
>>
>> You can drop the 'oneOf' here unless you're planning to add another 
>> entry with 2 compatible strings.
> 
> It's a preparation for adding rtd1195-watchdog when needed, to make
> future diffs smaller. There's also RTD1395 and RTD1619 to be tested.
> 
>> With that,
>>
>> Reviewed-by: Rob Herring <robh@kernel.org>

Self-NAK.

The example doesn't pass dt_binding_check: It doesn't like the tabs
retained from the original binding. Replacing them with four spaces
makes it pass. Will post a v3.

As for the compatibles, currently in the rtd1195.dtsi patch I'm reusing
"realtek,rtd1295-watchdog", to avoid a dependency on the watchdog tree.

Long-term that's kind of ugly as it uses a later model number.
That leaves us with two alternatives:

a) "realtek,rtd1195-watchdog", "realtek,rtd1295-watchdog" - this
requires oneOf. Allows to distinguish between RTD1195 and RTD1295 while
remaining compatible with the current driver.

b) "realtek,rtd1195-watchdog" - requires the driver change now and
requires the binding to be merged before I can use it in the DT but
doesn't need oneOf here.

Guenter, any preference here?

Thanks,
Andreas

-- 
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer
HRB 36809 (AG Nürnberg)

WARNING: multiple messages have this Message-ID (diff)
From: "Andreas Färber" <afaerber@suse.de>
To: Rob Herring <robh@kernel.org>,
	Wim Van Sebroeck <wim@linux-watchdog.org>,
	 Guenter Roeck <linux@roeck-us.net>
Cc: Mark Rutland <mark.rutland@arm.com>,
	devicetree@vger.kernel.org, linux-watchdog@vger.kernel.org,
	linux-realtek-soc@lists.infradead.org,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v2 1/8] dt-bindings: watchdog: realtek: Convert RTD119x to schema
Date: Sun, 27 Oct 2019 03:04:38 +0100	[thread overview]
Message-ID: <7fff9d25-e24a-c73e-b14f-12c66607fe3a@suse.de> (raw)
In-Reply-To: <aeb0d0ed-5649-9035-c753-39e8a1511c9d@suse.de>

Am 25.10.19 um 23:24 schrieb Andreas Färber:
> Am 25.10.19 um 23:16 schrieb Rob Herring:
>> On Sun, Oct 20, 2019 at 06:08:10AM +0200, Andreas Färber wrote:
>>> +properties:
>>> +  compatible:
>>> +    oneOf:
>>> +      - const: realtek,rtd1295-watchdog
>>
>> You can drop the 'oneOf' here unless you're planning to add another 
>> entry with 2 compatible strings.
> 
> It's a preparation for adding rtd1195-watchdog when needed, to make
> future diffs smaller. There's also RTD1395 and RTD1619 to be tested.
> 
>> With that,
>>
>> Reviewed-by: Rob Herring <robh@kernel.org>

Self-NAK.

The example doesn't pass dt_binding_check: It doesn't like the tabs
retained from the original binding. Replacing them with four spaces
makes it pass. Will post a v3.

As for the compatibles, currently in the rtd1195.dtsi patch I'm reusing
"realtek,rtd1295-watchdog", to avoid a dependency on the watchdog tree.

Long-term that's kind of ugly as it uses a later model number.
That leaves us with two alternatives:

a) "realtek,rtd1195-watchdog", "realtek,rtd1295-watchdog" - this
requires oneOf. Allows to distinguish between RTD1195 and RTD1295 while
remaining compatible with the current driver.

b) "realtek,rtd1195-watchdog" - requires the driver change now and
requires the binding to be merged before I can use it in the DT but
doesn't need oneOf here.

Guenter, any preference here?

Thanks,
Andreas

-- 
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer
HRB 36809 (AG Nürnberg)

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2019-10-27  2:04 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-20  4:08 [PATCH v2 0/8] arm64: dts: Initial RTD1293/RTD1296 and DS418j/DS418 support Andreas Färber
2019-10-20  4:08 ` Andreas Färber
2019-10-20  4:08 ` [PATCH v2 1/8] dt-bindings: watchdog: realtek: Convert RTD119x to schema Andreas Färber
2019-10-20  4:08   ` Andreas Färber
2019-10-25 21:16   ` Rob Herring
2019-10-25 21:16     ` Rob Herring
2019-10-25 21:24     ` Andreas Färber
2019-10-25 21:24       ` Andreas Färber
2019-10-27  2:04       ` Andreas Färber [this message]
2019-10-27  2:04         ` Andreas Färber
2019-10-20  4:08 ` [PATCH v2 2/8] dt-bindings: rtc: " Andreas Färber
2019-10-20  4:08   ` Andreas Färber
2019-10-25 21:20   ` Rob Herring
2019-10-25 21:20     ` Rob Herring
2019-10-28 10:46     ` Andreas Färber
2019-10-28 10:46       ` Andreas Färber
2019-10-28 11:29       ` Alexandre Belloni
2019-10-28 11:29         ` Alexandre Belloni
2019-10-20  4:08 ` [PATCH v2 3/8] dt-bindings: arm: realtek: Tidy up conversion to json-schema Andreas Färber
2019-10-20  4:08   ` Andreas Färber
2019-10-25 21:21   ` Rob Herring
2019-10-25 21:21     ` Rob Herring
2019-10-26 13:57     ` Andreas Färber
2019-10-26 13:57       ` Andreas Färber
2019-10-20  4:08 ` [PATCH v2 4/8] dt-bindings: arm: realtek: Document RTD1293 and Synology DS418j Andreas Färber
2019-10-20  4:08   ` Andreas Färber
2019-10-29  4:31   ` Andreas Färber
2019-10-29  4:31     ` Andreas Färber
2019-10-20  4:08 ` [PATCH v2 5/8] arm64: dts: realtek: Change dual-license from MIT to BSD Andreas Färber
2019-10-20  4:08   ` Andreas Färber
2019-10-25 20:52   ` Rob Herring
2019-10-25 20:52     ` Rob Herring
2019-10-29  4:39     ` Andreas Färber
2019-10-29  4:39       ` Andreas Färber
2019-10-20  4:08 ` [PATCH v2 6/8] arm64: dts: realtek: Add RTD1293 and Synology DS418j Andreas Färber
2019-10-20  4:08   ` Andreas Färber
2019-10-29  4:40   ` Andreas Färber
2019-10-29  4:40     ` Andreas Färber
2019-10-20  4:08 ` [PATCH v2 7/8] dt-bindings: arm: realtek: Document RTD1296 and Synology DS418 Andreas Färber
2019-10-20  4:08   ` Andreas Färber
2019-10-29  4:40   ` Andreas Färber
2019-10-29  4:40     ` Andreas Färber
2019-10-20  4:08 ` [PATCH v2 8/8] arm64: dts: realtek: Add " Andreas Färber
2019-10-20  4:08   ` Andreas Färber
2019-10-29  4:41   ` Andreas Färber
2019-10-29  4:41     ` Andreas Färber

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=7fff9d25-e24a-c73e-b14f-12c66607fe3a@suse.de \
    --to=afaerber@suse.de \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-realtek-soc@lists.infradead.org \
    --cc=linux-watchdog@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=mark.rutland@arm.com \
    --cc=robh@kernel.org \
    --cc=wim@linux-watchdog.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.