lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <890a302e-9105-446c-a2a9-110e94457dac@cjdns.fr>
Date: Wed, 26 Mar 2025 09:19:10 +0100
From: Caleb James DeLisle <cjd@...ns.fr>
To: Krzysztof Kozlowski <krzk@...nel.org>
Cc: linux-mips@...r.kernel.org, Thomas Gleixner <tglx@...utronix.de>,
 Rob Herring <robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>,
 Conor Dooley <conor+dt@...nel.org>,
 Thomas Bogendoerfer <tsbogend@...ha.franken.de>,
 Daniel Lezcano <daniel.lezcano@...aro.org>, devicetree@...r.kernel.org,
 linux-kernel@...r.kernel.org, benjamin.larsson@...exis.eu
Subject: Re: [PATCH v2 04/10] dt-bindings: timer: Add EcoNet EN751221 "HPT"
 CPU Timer


On 26/03/2025 09:04, Krzysztof Kozlowski wrote:
> On Tue, Mar 25, 2025 at 01:43:43PM +0000, Caleb James DeLisle wrote:
>> +title: EcoNet EN751221 High Precision Timer (HPT)
>> +
>> +maintainers:
>> +  - Caleb James DeLisle <cjd@...ns.fr>
>> +
>> +description:
>> +  The EcoNet High Precision Timer (HPT) is a timer peripheral found in various
>> +  EcoNet SoCs, including the EN751221 and EN751627 families. It provides per-VPE
>> +  count/compare registers and a per-CPU control register, with a single interrupt
>> +  line using a percpu-devid interrupt mechanism.
>> +
>> +properties:
>> +  compatible:
>> +    oneOf:
>> +      - items:
> Drop items, that's const directly.
Got it.
>
>> +          - const: econet,en751221-timer
>> +      - items:
>> +          - const: econet,en751627-timer
>> +          - const: econet,en751221-timer
>> +
>> +  reg: true
> Widest constraints are always here.

(AFACT) there's no common constraint to both.

en751221 => minItems: 1, maxItems: 1

en751627 => minItems: 2, maxItems: 2

I spent some time playing with this, thinking I could override constraints
but everything I tried lead me to validation errors. Please let me know if
there's something I'm missing here...

>
>> +
>> +  interrupts:
>> +    maxItems: 1
>> +    description: A percpu-devid timer interrupt shared across CPUs.
>> +
>> +  clocks:
>> +    maxItems: 1
>> +
>> +if:
> This goes under allOf:, to save re-indent later, and then after
> required: block (see example-schema).
Got it.
>
>> +  properties:
>> +    compatible:
>> +      contains:
>> +        const: econet,en751627-timer
>> +then:
>> +  properties:
>> +    reg:
>> +      items:
>> +        - description: Base address for VPE timers 0 and 1
> s/Base address for//
> because it is redundant. Bus/parent addressing already defines this as
> base address, cannot be anything else.

Indeed, got it.


Thank you for the review.

Caleb


>
>> +        - description: Base address for VPE timers 2 and 3
>> +else:
>> +  properties:
>> +    reg:
>> +      items:
>> +        - description: Base address for VPE timers 0 and 1
> Best regards,
> Krzysztof
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ