Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1710535lqg; Mon, 4 Mar 2024 01:00:02 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUNBQRtmub2dp0+ZPeHCKtY6q8803xtrIHnK9QaZ8SM2CEEiTNy/xro2R2Y9tjhc69b11p1LOc5wDhN0dlovDDr+forUmhOKl+7UK9ziA== X-Google-Smtp-Source: AGHT+IE1i/bUuWy5HyxDuVWpbpTbhmjee6AVqrsdCJZeGwu61BCLEXMSb4T3otbWNcIkdYwbmvZP X-Received: by 2002:a17:902:e5cb:b0:1dd:138:4e0b with SMTP id u11-20020a170902e5cb00b001dd01384e0bmr6204253plf.40.1709542801995; Mon, 04 Mar 2024 01:00:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709542801; cv=pass; d=google.com; s=arc-20160816; b=d1ew4Lc4mSFSXDMvH0CNV9FoXYcp0mZkj5Qu5HyUob0i4buFw8xSSmIIFocidG7U0v ol6q5gnuZNypFaEUo9BSXKx4yxuTcJtlAHDtkV4lW7rHMYY4RPzY/aFj4IMkjXTiSkIc ZOj9tfRHU9s9oVAxIkZzFiMQIV9JypQLv33pexLi/wSmDrRqN+aWsaUqRIfA+AXoOLxq gsJP0sc5Dc/7ROQvptxc2Ds0V64/cKVWg5vmyodZBDSElfCpr8wl73qtDDbutcUk62PB fITwLgm6sD6RNHzIV57JViMXpxcAzeFyv+/GgbpLw+X9QsScoGr5OyZYxh0O5CygrKAF Rl1A== 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=8RfbJF1AHvLx68TbsWfPK5aQiL25UBSnWB8Job9Vv4g=; fh=zH/zQORG2fzef9UMN+yofeo5WWUXEAR76VzUmUfBQLc=; b=VU03mmNR86L8adlXnK/I/csJOHp++0AGxGwLWpGyZEdwtcZNFg0Y3LHvvlNI3uCJVz mxhK48n5rZnP9Ld1zYj8nntHxcyyu4ZTKPgLacnDJ8m1D1kqAl25vtTNr+sOHF1AajOg FGSASMtuzjY6DhV2/3t3hnCg3KgfeY8m26hQ+pOK/99Mw23oc4Lqx8VuiD3bgcVyRM2/ hFJBUyTGebVM+3LlWo4Wp/XjuqhCr4n/98WIe1VmrurjZU18Cokyvbs8H72xDlL3+fkm vTKjsE2dqa9ECK2lykJndDbCC7aiBo75P/ZNKZOeC9wgvPwhFeWUnJh5Nzsl374d/59p IKyw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BamzbxTe; 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-90258-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90258-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. [139.178.88.99]) by mx.google.com with ESMTPS id l16-20020a170902f69000b001da2128eb1csi8240060plg.337.2024.03.04.01.00.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 01:00:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90258-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BamzbxTe; 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-90258-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90258-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 AB7FE281389 for ; Mon, 4 Mar 2024 09:00:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7049B1BDC8; Mon, 4 Mar 2024 08:59:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BamzbxTe" Received: from mail-oi1-f178.google.com (mail-oi1-f178.google.com [209.85.167.178]) (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 199091B7F9; Mon, 4 Mar 2024 08:59:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709542783; cv=none; b=YrkxfjZmpTj8XbVNNoqiPrQxauNtfDhVl8ZNi1NxHO+iZL0D7hnsyv24qLfbPt4t6wzXa/TonYAlbEvJ26Pfa0CLwVmlF/GfmeFJQkCHczsXzNGJpvtAix86PcKYpsyPQ5zOLf/UkQYaWpoedmwkeU515uZv4ZQ/xVE2daEKcvU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709542783; c=relaxed/simple; bh=5n7Ca93sgt2C4nvaRXiYy2nhqL3iHW3hsRzfzicQJdw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=sykFtMOnKGAhP68kH07bxFNp3n3AIEcGh5H/xrlhpWPoXk5B19s+Iq8p8sIBpcbTC+2XX5iccnOJGNfqRLtVLAnYcEHidghkJhwntT/uwsPI2SoUPFSbG1oAKCoM2SVRpDMyZ1qsJr33LCeOXfOyrH6fDnYDYjsy5nIZQ+l29Qs= 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=BamzbxTe; arc=none smtp.client-ip=209.85.167.178 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-oi1-f178.google.com with SMTP id 5614622812f47-3c19dd9ade5so2577645b6e.3; Mon, 04 Mar 2024 00:59:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709542781; x=1710147581; 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=8RfbJF1AHvLx68TbsWfPK5aQiL25UBSnWB8Job9Vv4g=; b=BamzbxTe1dqLweW5/I4gzs8xZklZZMmR5jy150GwQtqTatC5V8UvwYZi49Mp/eqg70 hL8c69nSDDTYFnKWjKaJqoHxvrHPN9ieMXizKv29dUfDMTAwXbRnQu7L61b9hUhFNLkp o1mt9YrdFAzY3lOD3mZB0cYCnFmyjnV9ZenLnAlTw6hkBIyqpwf0HsZEJfHPiMg3ADhB nClL6pwDYKyI0HtAtVdYPSzjT1oLSKzHutb+3b5fZ2laLXL/fHxYpeL59sdjiSIMt1Fa qEFPMwKc41CfQjLsh/sREgpdQpDCMgdG4A0J1w9BeM0UHFPNLgcUtNiBpmD9V9iIQzDE N7zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709542781; x=1710147581; 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=8RfbJF1AHvLx68TbsWfPK5aQiL25UBSnWB8Job9Vv4g=; b=MP4HHyY1Ga64nrZxCVKWQvdI8qk65UufA5l3pRjjH+UgmucAp07nKYNOBxwamosSRC dt8XZEqxUh0dQ59xEsY7VoevHhm0NSa0MV2d2gkujJyg1M8K9EAlRjeIedlfdg1YiP1b 55M0w+mh7BFrViY6/nt0sq/Zq5S0ylwYXr2JPIN3aVubbvDLHhPV6ysm0UCXGkTvMO6y 7NNaNQ4gJSHccetK22W1P3l3Sk2yaTdLrzxDojR1m7b6yvLgHm6gCZTKz5aebFADcdDo Bl9+COG2bPaKe8BT41Esm8V1v3hJV/47YTiaT3VyDGrzSIAJUk805D4bqZTDXUZooX9K Qc9Q== X-Forwarded-Encrypted: i=1; AJvYcCWZ7sBLESXeassi5zcplpB0Ev2m0E4SWVgI2vMenx1MKF9OG/NNmaHR3XLNMWtHafsDtA+pAI6NPhogZiwTfAIUOwLvmybYzcXvjR9uFhEHBWJ5zQBV5eJ2M6UWTTBf5h1SdgrqkOARyA== X-Gm-Message-State: AOJu0YzKBRak50OikTBdkt+QmFhtDyjNaLN2EWxEDh3elTe2/NPzf7+2 3EitFqNKbLIpwJmiRpWaqS/QoNfTKaEP7t3a3ihG2/ZZ0RWMsy4b X-Received: by 2002:a05:6808:148f:b0:3c1:ae0e:9c4a with SMTP id e15-20020a056808148f00b003c1ae0e9c4amr9910219oiw.24.1709542781008; Mon, 04 Mar 2024 00:59:41 -0800 (PST) Received: from localhost ([46.3.240.107]) by smtp.gmail.com with ESMTPSA id k76-20020a633d4f000000b005dc8702f0a9sm6903483pga.1.2024.03.04.00.59.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 00:59:40 -0800 (PST) From: Jingbao Qiu To: u.kleine-koenig@pengutronix.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu Cc: linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, dlan@gentoo.org, inochiama@outlook.com, Jingbao Qiu , Krzysztof Kozlowski Subject: [PATCH v4 1/2] dt-bindings: pwm: sophgo: add pwm for Sophgo CV1800 series SoC Date: Mon, 4 Mar 2024 16:59:32 +0800 Message-Id: <20240304085933.1246964-2-qiujingbao.dlmu@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240304085933.1246964-1-qiujingbao.dlmu@gmail.com> References: <20240304085933.1246964-1-qiujingbao.dlmu@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 Add devicetree binding to describe the PWM for Sophgo CV1800 SoC. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Jingbao Qiu --- .../bindings/pwm/sophgo,cv1800-pwm.yaml | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/sophgo,cv1800-pwm.yaml diff --git a/Documentation/devicetree/bindings/pwm/sophgo,cv1800-pwm.yaml b/Documentation/devicetree/bindings/pwm/sophgo,cv1800-pwm.yaml new file mode 100644 index 000000000000..b5b819d780f1 --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/sophgo,cv1800-pwm.yaml @@ -0,0 +1,45 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pwm/sophgo,cv1800-pwm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sophgo CV1800 PWM controller + +maintainers: + - Jingbao Qiu + +description: + The chip provides a set of four independent PWM channel outputs. + +allOf: + - $ref: pwm.yaml# + +properties: + compatible: + const: sophgo,cv1800-pwm + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + "#pwm-cells": + const: 3 + +required: + - compatible + - reg + - clocks + +unevaluatedProperties: false + +examples: + - | + pwm0: pwm@3060000 { + compatible = "sophgo,cv1800-pwm"; + reg = <0x3060000 0x1000>; + clocks = <&clk 60>; + #pwm-cells = <3>; + }; -- 2.25.1