Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp499478lqd; Wed, 24 Apr 2024 08:30:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU+s7w3N3XN274GlTX2oSe3e748M8W0OfgPO0+jAKAO2/M5+0N/NeSScWP6n3GewbVWIEIvkBIXdXuQG8zeFz8YtJZgMb0b9W2OOkLzHQ== X-Google-Smtp-Source: AGHT+IHRp5Yf8Sz1hPgHbtIWzDCuo5rq4Y8IQCRski/k5899V4EOASOSJDV3CMToAYzfqF4x3ihs X-Received: by 2002:a05:6e02:156e:b0:36b:26df:cce9 with SMTP id k14-20020a056e02156e00b0036b26dfcce9mr3401916ilu.22.1713972653730; Wed, 24 Apr 2024 08:30:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713972653; cv=pass; d=google.com; s=arc-20160816; b=aKHhKaBqhVaqeylY0yK+Lih/ZE4gqcXh4YMAYdn4AQ625kcywvkWm6Rk3dq0x+/k9o A1YDdIv7a5nWNNxj0pDI+M2vx5p0tI+LowpHkIYNsq6Az6NA8XjhKrFWuRO40MMTaD2T KvzFKoZApeDrvN/4N58Biv8AT9C+iWpKDL9LB86YkKSjitL6bsgbN+pZOiveWtK2e/mP IgoXLt/MoIEmPXYQYx4PQvuNh4rcEzb4IKdUETSSSQIb1eov4o7HcEgMcK4RECNXC9b2 MHHRWRTJvub1jXsRBPH1L+R+fQ7q6J8j5kHeeDPPB7b5ftsNdl9cqrrUT3GG/Fub5HcZ oy5Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=vY526FTeOBjdcvh4tjXZGWIjQ2Fph4QVQ0SsZu8nmaQ=; fh=meHr/5oKY4VHNYLqa0RyVLGL1IQmE1+CHjblGeDyUS0=; b=McfC6tUQSK9XvAnrd1/xpnIda5dD3ePWycbxJY3/oY4k9gObXzhJYhzd8V/AhhUz7B WaMMr2Y/2y78UIaVtL8yGbauiZ4WcXlYaXNhgFUcAcwN8/I8hakd5UfBcoXSfFhx66Wq ZWZ31NbfeGwzM5G8s37P3q7KJ+r3oo5SgJeCTr+SSH8KutQYfsojcdQ65hBizQat4OIF tfE1sved4Fos4FtBbxtXC73Eryjb22b61F/9kTZucjJz6vNSb8EzoUBgW9d7oHA8RANB +Lz6NFyTOdKPrpbLzMcBd68Tp1x45Q1D2LADPx+RW+KrRe5fJe/GtJyl7ZXj9qBYTnP0 eoOA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="uc1120O/"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-157194-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157194-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id u19-20020a634713000000b005f05ef19c3esi10904728pga.759.2024.04.24.08.30.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 08:30:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157194-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=@kernel.org header.s=k20201202 header.b="uc1120O/"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-157194-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157194-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 41AEF286624 for ; Wed, 24 Apr 2024 15:30:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C6B7016ABC1; Wed, 24 Apr 2024 15:29:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uc1120O/" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 94F4815FA76; Wed, 24 Apr 2024 15:29:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713972570; cv=none; b=NzGEqXw8qdS3xPTHOD8KXLGzZC4fQM3iau+FiQcXJZJRy+Rp1SiG1Jb+S+gUi7FeqL5hBIRXXRpSkBE3FCV2STFoSDcRlqigFw4zSIwFnqFovWairo7VnvRmLg49PwnCiVv1etbj4WmGRzw+BxDWaur1ko4vDJYheRV1wnDhO/w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713972570; c=relaxed/simple; bh=DiqvgTZBUY3PtNH3TfiCz4FuSNpD0GxOhifVBZkfCjM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=WVoeQc7vFO4LNrSPrZ9ykbORHlitnOKr8PMi+5ZDcQxnlcUZGX7JuxukyMJqg5nbiqBtKOCuPHMzfAqDU0tBFYQfym/1WQZPvo5gq5+pN6KgbeohDyvGT6cBc4HiC045uIsu7mDwIMxpH3zgAHUxtHjfLiX6hWnDR+ZSU2ZURxY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uc1120O/; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 2E011C113CE; Wed, 24 Apr 2024 15:29:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713972570; bh=DiqvgTZBUY3PtNH3TfiCz4FuSNpD0GxOhifVBZkfCjM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=uc1120O/6j0Xn8sL2lbfJOmtbl56+d8qwLFlslw9Q5Tjr2pa+OWYpecv3tS0eHks2 fM4VqDkwPF+N7orPmP5L3O5uLvvnPNcSzF2sCMjKiVN27yhC/brwENGTJqZzSiivEZ wcZhINN+ZPi6ZD8ok+zXp0cqC/NxAGAYvhYWHGMZZ/wMhw87oEAi/ziBBP7D5xtjgm cIeAQjdJqWTH9KzBOWu3Vqk9or4+LTD8MRgFWrFTfaO14dLMdvetPBGtSUBOuURwLj czG0U+W7s/VpW7Z+/IXOIwPwxDIdDLAoqYfH+D57j/Oa4uYLyVByfKDFpvUVTQIPj5 K8WvSWggFdZQw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 15F60C07E8E; Wed, 24 Apr 2024 15:29:30 +0000 (UTC) From: Xilin Wu via B4 Relay Date: Wed, 24 Apr 2024 23:29:06 +0800 Subject: [PATCH 01/10] dt-bindings: pwm: Add SI-EN SN3112 PWM support Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240424-ayn-odin2-initial-v1-1-e0aa05c991fd@gmail.com> References: <20240424-ayn-odin2-initial-v1-0-e0aa05c991fd@gmail.com> In-Reply-To: <20240424-ayn-odin2-initial-v1-0-e0aa05c991fd@gmail.com> To: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Junhao Xie , Neil Armstrong , Jessica Zhang , Sam Ravnborg , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Bjorn Andersson , Konrad Dybcio , Tengfei Fan , Molly Sophia , Junhao Xie Cc: linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, Xilin Wu X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1713972563; l=1687; i=wuxilin123@gmail.com; s=20240424; h=from:subject:message-id; bh=Sd6Ecnq5OawH+103xxOmJ3nKkBaj9Y2Zw5nnRbO/UF4=; b=eUTowkOmB04wln4zX+/5k93CvZLX7lo0igr5S4Ch5podI8Hk35rew+sRl3bcVm14W1QrSqnT3 o1etBHkXd58C3DNUlIk2LarC5FzddpwfLuaYg8S82Fg6RCYkzg1QMsN X-Developer-Key: i=wuxilin123@gmail.com; a=ed25519; pk=vPnxeJnlD/PfEbyQPZzaay5ezxI/lMrke7qXy31lSM8= X-Endpoint-Received: by B4 Relay for wuxilin123@gmail.com/20240424 with auth_id=157 X-Original-From: Xilin Wu Reply-To: wuxilin123@gmail.com From: Junhao Xie Add a new driver for the SI-EN SN3112 12-channel 8-bit PWM LED controller. Signed-off-by: Junhao Xie --- .../devicetree/bindings/pwm/si-en,sn3112-pwm.yaml | 55 ++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/Documentation/devicetree/bindings/pwm/si-en,sn3112-pwm.yaml b/Documentation/devicetree/bindings/pwm/si-en,sn3112-pwm.yaml new file mode 100644 index 000000000000..2ab229ac40ce --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/si-en,sn3112-pwm.yaml @@ -0,0 +1,55 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pwm/si-en,sn3112-pwm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: SI-EN SN3112 12-channel 8-bit PWM LED controller + +maintainers: + - Junhao Xie + +allOf: + - $ref: pwm.yaml# + +properties: + compatible: + const: si-en,sn3112-pwm + + reg: + const: 0x54 + description: I2C slave address + + sdb-gpios: + maxItems: 1 + description: GPIO pin to hardware shutdown the device. + + vdd-supply: + description: Chip vdd supply + + "#pwm-cells": + const: 1 + +required: + - compatible + - reg + - "#pwm-cells" + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + pwm@54 { + compatible = "si-en,sn3112-pwm"; + reg = <0x54>; + sdb-gpios = <&pio 1 1 GPIO_ACTIVE_LOW>; /* PA1 */ + vdd-supply = <®_dcdc1>; + #pwm-cells = <1>; + }; + }; -- 2.44.0