Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp995791lqt; Fri, 7 Jun 2024 05:20:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUDSnMdPT7RTfzyagwoVMpthy1/1W7xEZ4rqsf0Gp6qyIVj8kn++QqCpIqQ/C+5qqtK9aDBHp9yB6+ecLKSQBNRFON0jd09t7txWvBXQw== X-Google-Smtp-Source: AGHT+IHWdy61K3lKXJ4kLkEcAFKfmmDPICbP9X3K9euBd8M7bWH2NRm7/pe3PPdd3B4LXrEux8zo X-Received: by 2002:ac8:5813:0:b0:43a:deee:a5ea with SMTP id d75a77b69052e-44041b50ad7mr28095781cf.13.1717762843934; Fri, 07 Jun 2024 05:20:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717762843; cv=pass; d=google.com; s=arc-20160816; b=WDl35pRwdfz+HqJ0HjWOIsHbDuhhplxa+lX8CHwoz8wEJVg54ouQrp8+T7Jvivkko4 Rm9h2R2M4SVBwccrZiNz6TixqiZWJRCl98s8NBrYOTuEKZykeCwq+Z+2dB586mexSmT3 e3CNWsyZhDSWHuDvgONR3+Lb+Vep49HJCicFUbeHs/NnkUX1BKmc/1Z05cPCHqzmWq3f 1ZDMgns6joeqx34SDhLeDueTqWkhTQvuvnQKO+BKZqtWLs5+ZuLGwScm4jjQtdFsW86d Jut7wJxTOS1p/ypG4LQ25onnlkwDpUwMOJEo6/OLiOIdQrKPlXVp4kTntp0lEw1H5cJS CFdg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=atFWfThF4EZfOKlLZmq5Picnlz/FXs/dISteGkElhRA=; fh=Ck/i7nxofBgsTKo89btWNaYnhWfHuX7H4ZlVlYN7tk8=; b=NI2YjIYh2Mj1Fnm5vHYRpXbVY/8iLENRilY1drK132pCm1KWWa3WyzGRI/tUlA6HCw w9AyFB7OGftnideWD6QtBuWovAIGu8RSRVwZSbpHSM7c2WZWzKe1Dg15XXCfGZJuu7Zd kJFzGXUqF6QTNTEM8InVEc3CE3e+J7i2rSyJ46lmJpiB0ivP8cyVwnkw10JUzGSYmVcN 2SZwCtCsuEnts9zKDqPbp+brXUyVUfYZQtdRRHzL46TCePhvfRZvZUTq5BQaCImcsKgQ Tdbw5jF91eSZo4X5yWmh4PH3VnowAvKpkH4LdWnbarxmfDjeLTXrOA0KMq3AIjRUoYbB 1/MQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=LzK6qCSu; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-206008-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206008-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-44038b3911asi38135381cf.405.2024.06.07.05.20.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 05:20:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206008-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=LzK6qCSu; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-206008-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206008-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E26F21C2437D for ; Fri, 7 Jun 2024 12:20:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 79AD6193098; Fri, 7 Jun 2024 12:18:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="LzK6qCSu" Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EA5A615B0F8; Fri, 7 Jun 2024 12:18:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717762701; cv=none; b=eXA/OjK5SPJZ2Ud+fPuwru8Ag136PFdTRii0k+kJYoWLVmbzl3JCyLX3k45me/dwb30mkeTrtJbDFZw0PTMPldZdsJ6ayyYRfxr7ektgXFdPQygR7Qg/rDkCxcF9Bb0R+kTGoobPx7ytD+Y2vXfiszeA0JTtAYYR7rLj4hQVaCo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717762701; c=relaxed/simple; bh=Ejib7DVCzSzbX+QF3fjfXko2Kw3qksIra1C/cnrr2Gw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=X8glhOFg6Q2qXeBU8+OflgZyqw+WtrW5iqZao7yEggIjNwxOUEn77pVJPS2pMvXKF06avd0zCswuZjUGEGH8EuycBHOwHR/uv/U2kyD53arB4m1lrIboP/1dz84Xm0ODr9t/tAKUfz8uqiirZyKx0qRLo8x7b5SwLf55GhPbRoA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=LzK6qCSu; arc=none smtp.client-ip=209.85.218.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f46.google.com with SMTP id a640c23a62f3a-a6c7ae658d0so279478466b.0; Fri, 07 Jun 2024 05:18:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717762698; x=1718367498; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=atFWfThF4EZfOKlLZmq5Picnlz/FXs/dISteGkElhRA=; b=LzK6qCSuLoXXq2LCJlepyc2eKotxoW8VwZjou4bg4wbXRWJ9RcN9cCi5g0mlEXAWl1 2up9lpWMVxwf/rRSgfYI163yQorcJqxbEgWn60Oe6eKd63syOOgmd2b8Aw9E+k8bn8FC m1PSf9qtkUDSILRtI0moadqm1KlI4OMqGBOKEvWP+4I9F01DLHxsfaQsnSQ++y3Znn00 3eAuJi24xfdn5YrzruAUUYgzcrIYglcrOlYDitx9Jb5wbLN7MmBKkiwIKPs0xiKxTGVU xhkg/CB67qAaua0cCGvWeWd2IAjCh2heXMyE+t7X5wjkHNej53kUcGrpneywP7Dtv5XB bL1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717762698; x=1718367498; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=atFWfThF4EZfOKlLZmq5Picnlz/FXs/dISteGkElhRA=; b=nsPG3zQshDELdTu9/DaOYqGNApQIfoYCIHyIvk9zrbEahBjJM574fGkwoA1zQAt+CV K7uItHVWGlYm1Dh2VQ3aDkCCLMeXugPg/pvJAw2ZM+v18mRL2uTVtPaiueESRS3J7DIC +QZEZWMi7FzuezMHItibeKPZlKp8nznFnWpTcrbsMDloz2e7l6+8ClVDUBAmuL+G3+ow /H8tz5BkwMweI9fzYemUFRgRCIjCJF4J6qHNg/nT/NB8Gty45gRsIk/QL2tg4Z6Z3Voz VITC11vNNMEzmTY23YTI3nLtZ9/eV5WbPkihmkQ+YGpVdFUUz8ZIubUAbxn6W7InEcFJ tfqg== X-Forwarded-Encrypted: i=1; AJvYcCXT3AKmknIHcHmg1b56+XBNRsOxCrjtUjlsOUmTTn76hi76me1V7KOEMqsc+LmcqaDgAmSfE2qNHYXp8tnF73UddNUb3owxy0/K8yGk/o8VsO0CnXAh+2Z2CC4WZVI9qXJeM2qAYy4ZxASVqnJTLStVoSgp4IQ3SYJkpCX8LJhfRoa8oA== X-Gm-Message-State: AOJu0Yz82BH2IciNX75U+Yoz3PAoKwD6itrNxa/fCbzl8UjVftDE/dmH l/B25sKDZt+biTYkiA0m3vmFBuTp1tUcKdzwYpfd6SvOxSyN5f3G X-Received: by 2002:a17:906:af8c:b0:a5a:81b0:a6a9 with SMTP id a640c23a62f3a-a6cdaa079a5mr194201066b.53.1717762698005; Fri, 07 Jun 2024 05:18:18 -0700 (PDT) Received: from debian.fritz.box ([93.184.186.109]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6c806eaa4dsm237785066b.110.2024.06.07.05.18.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 05:18:17 -0700 (PDT) From: Dimitri Fedrau To: Cc: Dimitri Fedrau , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski Subject: [PATCH v4 1/2] dt-bindings: pwm: add support for MC33XS2410 Date: Fri, 7 Jun 2024 14:18:09 +0200 Message-Id: <20240607121810.460154-2-dima.fedrau@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240607121810.460154-1-dima.fedrau@gmail.com> References: <20240607121810.460154-1-dima.fedrau@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Adding documentation for NXPs MC33XS2410 high side switch. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Dimitri Fedrau --- .../bindings/pwm/nxp,mc33xs2410.yaml | 118 ++++++++++++++++++ 1 file changed, 118 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/nxp,mc33xs2410.yaml diff --git a/Documentation/devicetree/bindings/pwm/nxp,mc33xs2410.yaml b/Documentation/devicetree/bindings/pwm/nxp,mc33xs2410.yaml new file mode 100644 index 000000000000..1729fe5c3dfb --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/nxp,mc33xs2410.yaml @@ -0,0 +1,118 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pwm/nxp,mc33xs2410.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: High-side switch MC33XS2410 + +maintainers: + - Dimitri Fedrau + +allOf: + - $ref: pwm.yaml# + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +properties: + compatible: + const: nxp,mc33xs2410 + + reg: + maxItems: 1 + + spi-max-frequency: + maximum: 10000000 + + spi-cpha: true + + spi-cs-setup-delay-ns: + minimum: 100 + default: 100 + + spi-cs-hold-delay-ns: + minimum: 10 + default: 10 + + spi-cs-inactive-delay-ns: + minimum: 300 + default: 300 + + reset-gpios: + description: + GPIO connected to the active low reset pin. + maxItems: 1 + + "#pwm-cells": + const: 3 + + pwm-names: + items: + - const: di0 + - const: di1 + - const: di2 + - const: di3 + + pwms: + description: + Direct inputs(di0-3) are used to directly turn-on or turn-off the + outputs. + maxItems: 4 + + interrupts: + maxItems: 1 + + clocks: + description: + The external clock can be used if the internal clock doesn't meet + timing requirements over temperature and voltage operating range. + maxItems: 1 + + vdd-supply: + description: + Logic supply voltage + + vspi-supply: + description: + Supply voltage for SPI + + vpwr-supply: + description: + Power switch supply + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + #include + #include + 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 = <®_3v3>; + vspi-supply = <®_3v3>; + vpwr-supply = <®_24v0>; + }; + }; -- 2.39.2