High-side switch MC33XS2410

Schema identifier ($id): "http://devicetree.org/schemas/pwm/nxp,mc33xs2410.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Dimitri Fedrau <dima.fedrau@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Rule 2 #

Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "nxp,mc33xs2410"

reg — required here #

Maximum number of items (maxItems): 1

spi-max-frequency — not listed as required here #

Maximum value (maximum): 10000000

spi-cpha — not listed as required here #

true — No constraints added by this property rule.

spi-cs-setup-delay-ns — not listed as required here #

Minimum value (minimum): 100

Default value (default): 100

spi-cs-hold-delay-ns — not listed as required here #

Minimum value (minimum): 10

Default value (default): 10

spi-cs-inactive-delay-ns — not listed as required here #

Minimum value (minimum): 300

Default value (default): 300

reset-gpios — not listed as required here #

GPIO connected to the active low reset pin.

Maximum number of items (maxItems): 1

#pwm-cells — not listed as required here #

Exact value (const): 3

pwm-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "di0"

Item 2

Exact value (const): "di1"

Item 3

Exact value (const): "di2"

Item 4

Exact value (const): "di3"

pwms — not listed as required here #

Direct inputs(di0-3) are used to directly turn-on or turn-off the outputs.

Maximum number of items (maxItems): 4

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

The external clock can be used if the internal clock doesn't meet timing requirements over temperature and voltage operating range.

Maximum number of items (maxItems): 1

vdd-supply — not listed as required here #

Logic supply voltage

vspi-supply — not listed as required here #

Supply voltage for SPI

vpwr-supply — not listed as required here #

Power switch supply

Required in this object (required): "compatible", "reg"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
spi {
    #address-cells = <1>;
    #size-cells = <0>;

   pwm@0 {
       compatible = "nxp,mc33xs2410";
       reg = <0x0>;
       spi-max-frequency = <4000000>;
       spi-cpha;
       spi-cs-setup-delay-ns = <100>;
       spi-cs-hold-delay-ns = <10>;
       spi-cs-inactive-delay-ns = <300>;
       reset-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
       #pwm-cells = <3>;
       pwm-names = "di0", "di1", "di2", "di3";
       pwms = <&pwm0 0 1000000>,
              <&pwm1 0 1000000>,
              <&pwm2 0 1000000>,
              <&pwm3 0 1000000>;
       interrupt-parent = <&gpio0>;
       interrupts = <31 IRQ_TYPE_LEVEL_LOW>;
       clocks = <&clk_ext_fixed>;
       vdd-supply = <&reg_3v3>;
       vspi-supply = <&reg_3v3>;
       vpwr-supply = <&reg_24v0>;
   };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Edit this page