Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp218630lqg; Fri, 1 Mar 2024 03:14:17 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV1Y/Sg6VND0NmBZ3F8+fBRIg+2Vy1yA42rtgK27seyiGpDb9N+9UxlugZZZEfmDjnXKHXhTftI0aQ+MwNjJwBBMEyByea3K7xY5feNOg== X-Google-Smtp-Source: AGHT+IGkhYyoABY9I/HXA6hoXoD74L0y/FtDYYC4XqzvwtAMIy6F/H+ZDTxzwrwTN+AvG1854ptL X-Received: by 2002:a05:6808:30a:b0:3c1:ca51:ff37 with SMTP id i10-20020a056808030a00b003c1ca51ff37mr1344750oie.15.1709291657081; Fri, 01 Mar 2024 03:14:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709291657; cv=pass; d=google.com; s=arc-20160816; b=xo3qhZUJr+zfxNCKDurNWsOhh5R8P0hNuLPeke9EeEDxO+z+50C7RiTXX9cowCkBvm sqPMahQfWtQsimO/nXdycwrZf4DkPfm9Vu8YRotAyxXDGrefMLfq4WMtTeZDgTvwr3G5 KIOKrenG8gcl3FfKp/CgQ48B6iFg4HlGa47JYQ2npkx/4mDRellCNknHP7PPhK/GTd6G DAM7Xr/SPWqHeWNh6SFN/htQQ4bNyZ348ZqqAW7xmM0RT0OBUAyq0LdFrNG1caN/CDQO 151cdhQmskcik8zGMgTZveTo4mvfr9f7wkXJdWOAAjc+yoKQLxkTCkNlSjRN1/fzBVTL JlNQ== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=WpDmXfSvrjV3LnFP0ToCDaEvJaHWTSkPddd8OTrd0Rw=; fh=SaBMe1z0L79YiVyfc8FxSeTdnXE81KZx6QZVt1S7MY0=; b=YemCit2s2geVctxIbyZB9BjnV6VsyNlABaICcliJEM5SFl+yU0k4xV6gFlrfIMColS t0me8mTaO/XE2yiIj5bJHVCPlBhCuqUooDaMqkrYZr1Iyv8sthBajVQGeoslBAVi+uUQ MJYrm59HnDYr6JEqUD+P0Wqy83BDVaeoQXX1JT1jIeiJexrqSQvmuw8T4bT+AIYZvox0 qabhFkYSVtyJMTOTgc4BUinu7co83bPCRZby83QTuRRcABqYl9wt+jkr1+JCcA3otLHJ XTJNtFf9GPp3cjK5DvIu6rjvBfTGN+ip2sio1id0+DAAU+q/Ohn6TFMTJ0n5VyZDNs1B UW3g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=LVKSgPXD; 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-88316-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88316-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id gu2-20020a056a004e4200b006e549a388fbsi3167518pfb.155.2024.03.01.03.14.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 03:14:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88316-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=LVKSgPXD; 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-88316-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88316-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id B79BE286B6C for ; Fri, 1 Mar 2024 11:14:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E666D6CDC0; Fri, 1 Mar 2024 11:12:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="LVKSgPXD" Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (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 75C006995C; Fri, 1 Mar 2024 11:12:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709291562; cv=none; b=hWtblprNlm7p32wgaYn5a/L/VwUeeaL3FP0UiZiunMdob3pcPMW8khv1w2LWlYLknosMRkNmPeaxcAg1IDVkFNHiFeZHaLL0Fgeu95XrVMtUmp0WFpB8bdx4BIXTV92JybuLYKKK7ifqlbGZTLqkop/BQnHr5bE+hC6m/iNrtoY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709291562; c=relaxed/simple; bh=G0Ytuzuhq5IT80Qym7JsUFTIlvAQ8ypbq/Q3B8+0Y5M=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=qjGov+WQrHbVPqWWAqSxGjq1BR8wPP0NdHyqhTosYS1Nsjsg53BA1Q7ZMBn9BG4BYDrxUDDww2jV/FCgvRuWIH9vq2seV29CrrpODkVcb0szqh3eYGASoQuWdj3D31LlsfFN+7cAHcnUU6OtUDTDoV8g5KO+LayhO11etT/suMg= 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=LVKSgPXD; arc=none smtp.client-ip=209.85.218.49 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-f49.google.com with SMTP id a640c23a62f3a-a446478b04bso180924666b.3; Fri, 01 Mar 2024 03:12:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709291559; x=1709896359; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=WpDmXfSvrjV3LnFP0ToCDaEvJaHWTSkPddd8OTrd0Rw=; b=LVKSgPXDziy8XJcRQuZPN8smUI+AgzUZ1nCh/2QnkXl9WixBRJ74rM11mFa2BhqHlj +yzmprDhuwfm5FpTKDuQ9eGpz+hScAhB2zKhqygdRYIa/KxjrBW6DsLiOoTFU1npLT+n JphCUqXTpNBWnRej+T+TecjYtttQrETE7UqOdHv+aWyxjHYLEOqqPbXEZFLZN8yetdkB YQbvyGUlIVbvQ5uNZYD6TO1SoJxTosL57ecNz0ffNXvLpQ6Q0VZZjMHuvWXC6avPPIwP Oo+LCNY5FfdwsC0c+Y/+LoDZDapqq92hVfwfwN2f5+wF6L5z2bgkESGbKMivvYcMuUs6 SCZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709291559; x=1709896359; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WpDmXfSvrjV3LnFP0ToCDaEvJaHWTSkPddd8OTrd0Rw=; b=V2EGVcZUAD3KegdGMFrEMXC5eDjIba1SMV4Rm5ZYMGL/gO9MQo6pMrspt7t9mvyZmA 6pwruf7tv38yj3C0JO2iQ+L01Fsw63ah8QojUMvP+QmMzhN/q2kmLvOFJfl6A1cfYMnJ 4O0x1Ordq91qKB2hLl3Kzl1nlsHPgAnZ0QyTLH0XWMWzIm/q7M58dNBLu4TWheFvmFHk GLCcoztCX7Pv0aVrcRPDJXbmPNITR+LXMEKqDHwDyUvUM+BvbHOBeAlDyozhk71NA5zB KmEgHY8npR9ryZPqFYhEw5awL0J3kQULcmt6Yke9KIHi2xlwE0HIAu0J3gW8y4/YbHl/ c4JA== X-Forwarded-Encrypted: i=1; AJvYcCVhyLS4p4pLy1oftfAPUDrZfiX+Mn7n3nnKfF3SBXYci1WWLNFeC3zmtrxMTVVlIELJMAKbCcesUEEq9mnEOZjNhbqotKO+q8vPeM4/++uZXtmq2QnW6d+xScxaO7tdLCKfQ5RZ68sIPwzhPV/9RHrZObsYDSTOqOgeG7Y2uDg6CfdtWw== X-Gm-Message-State: AOJu0YxLPdr7lHZY3iBln9HaEMPS04xJ7H9dn3QOJcmnPxrXiGfItAYN lhHDVOT/uFa3AdZizwawqKKzauNpWDziAiXplhsZhhP5NnXLbS1nCVarK41I X-Received: by 2002:a17:906:5fd1:b0:a44:4fbd:a8fe with SMTP id k17-20020a1709065fd100b00a444fbda8femr974495ejv.1.1709291558645; Fri, 01 Mar 2024 03:12:38 -0800 (PST) Received: from debian.fritz.box ([93.184.186.109]) by smtp.gmail.com with ESMTPSA id n18-20020a170906089200b00a43a478e4f0sm1583254eje.180.2024.03.01.03.12.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 03:12:38 -0800 (PST) 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 Subject: [PATCH v2 0/3] pwm: add support for NXPs high-side switch MC33XS2410 Date: Fri, 1 Mar 2024 12:11:21 +0100 Message-Id: <20240301111124.29283-1-dima.fedrau@gmail.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The MC33XS2410 is a four channel high-side switch. Featuring advanced monitoring and control function, the device is operational from 3.0 V to 60 V. The device is controlled by SPI port for configuration. Changes in V2: - fix title in devicetree binding - fix commit message in devicetree binding patch - remove external clock from pwms and create clocks property - switch to unevaluatedProperties: false - add missing properties for complete example: - pwm-names - pwms - interrupts - clocks Dimitri Fedrau (3): dt-bindings: pwm: add support for MC33XS2410 pwm: add support for NXPs high-side switch MC33XS2410 pwm: mc33xs2410: add support for direct inputs .../bindings/pwm/nxp,mc33xs2410.yaml | 118 +++++ drivers/pwm/Kconfig | 12 + drivers/pwm/Makefile | 1 + drivers/pwm/pwm-mc33xs2410.c | 418 ++++++++++++++++++ 4 files changed, 549 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/nxp,mc33xs2410.yaml create mode 100644 drivers/pwm/pwm-mc33xs2410.c -- 2.39.2