Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp685436rdb; Fri, 22 Dec 2023 01:46:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IEGFU7BW/63jduYZ0kOdWiKzs5a4P29baz1sV/SrmADezVPSFOnYJZSeCl4OqE5ZZTimHp/ X-Received: by 2002:a17:906:1c0d:b0:a1f:7fbb:7f92 with SMTP id k13-20020a1709061c0d00b00a1f7fbb7f92mr547889ejg.117.1703238370979; Fri, 22 Dec 2023 01:46:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703238370; cv=none; d=google.com; s=arc-20160816; b=CakoK983cGktHBscn7Dvne7xWuGLO6OmMqmmoTvOX3nCQLKc2SgjSEZP/fPXnzbKqE yTyfWOVkJlC5GziumCX30DAvA0kHD6gW2h8+jFKOh5RsnGs1jYdaEyhMP+d+uW59gibz +U3qlu4p+aMBTzfdgYzsbd/jAtNVF0O63QmXPNcvXd6nFYLMG2puoIG4W+yp9DTwkg44 iYcETcwhrwUFtFbRA54Tp6xkHVK1vgn1q9pp3Gkp5xrRbiQ3ZkOnHQwUFHzVrctITDt2 DpxIOHcqepYc0WS5K65cfDqGbe1zyJHeTWCHj+29mOQxVdLSByEFn0ekJe3xxKcWxYCj jT7g== ARC-Message-Signature: i=1; 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; bh=APfns//cY6CKlMelKddH/Zbl28Nn6UXsugSrO473Pe0=; fh=T4gzk7+hgrXGjSNvKGZTlbuKXCiuDaGkxvCBgfgONjs=; b=x30m6UR1TZ0ziCiwF36r46zJBX7kyJfwuFvSjvOcrU0sC6tAMKe6Uf13m8pV7xMHmO zY+Zo8WecLzAGg+wCV/sL3URJTQ9lc09epvKQtPjA/HU/o3huBN2RSW+hqJQe2jxejuH 9wtSNsM/Pyk/OXDr/snZov/4/SMrklujzXoaLghkuHYT9Cqbi5fxnwu7s3o5R8NG07ij LyZexkwsHDsHTH6YSquISJG1d0yDF5tErCSHUy+YTCQwIda5xrRSE43tX+wB5lSG0xlc iJvXAboi8kb0ehb/yASx7o99GzB1tiO8kBem4QoTB8UD24TqzhYWM4haqPicehxWPehM NWWA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-9558-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9558-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id wj6-20020a170907050600b00a2693a66d02si1581950ejb.251.2023.12.22.01.46.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 01:46:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9558-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-9558-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9558-linux.lists.archive=gmail.com@vger.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 81B2B1F261BA for ; Fri, 22 Dec 2023 09:46:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6EAD0FC09; Fri, 22 Dec 2023 09:45:58 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7DA2FD2F4; Fri, 22 Dec 2023 09:45:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=starfivetech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=starfivetech.com Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id AC31D24E2E2; Fri, 22 Dec 2023 17:45:52 +0800 (CST) Received: from EXMBX068.cuchost.com (172.16.6.68) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 22 Dec 2023 17:45:52 +0800 Received: from williamqiu-virtual-machine.starfivetech.com (171.223.208.138) by EXMBX068.cuchost.com (172.16.6.68) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 22 Dec 2023 17:45:51 +0800 From: William Qiu To: , , , CC: Emil Renner Berthing , Rob Herring , Thierry Reding , Philipp Zabel , Krzysztof Kozlowski , Conor Dooley , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , "Hal Feng" , Paul Walmsley , Palmer Dabbelt , Albert Ou , William Qiu Subject: [PATCH v10 3/4] riscv: dts: starfive: jh7100: Add PWM node and pins configuration Date: Fri, 22 Dec 2023 17:45:47 +0800 Message-ID: <20231222094548.54103-4-william.qiu@starfivetech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231222094548.54103-1-william.qiu@starfivetech.com> References: <20231222094548.54103-1-william.qiu@starfivetech.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-ClientProxiedBy: EXCAS062.cuchost.com (172.16.6.22) To EXMBX068.cuchost.com (172.16.6.68) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: quoted-printable Add OpenCores PWM controller node and add PWM pins configuration on VisionFive 1 board. Signed-off-by: William Qiu --- .../boot/dts/starfive/jh7100-common.dtsi | 24 +++++++++++++++++++ arch/riscv/boot/dts/starfive/jh7100.dtsi | 9 +++++++ 2 files changed, 33 insertions(+) diff --git a/arch/riscv/boot/dts/starfive/jh7100-common.dtsi b/arch/riscv= /boot/dts/starfive/jh7100-common.dtsi index b93ce351a90f..11876906cc05 100644 --- a/arch/riscv/boot/dts/starfive/jh7100-common.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7100-common.dtsi @@ -84,6 +84,24 @@ GPO_I2C2_PAD_SDA_OEN, }; }; =20 + pwm_pins: pwm-0 { + pwm-pins { + pinmux =3D , + ; + bias-disable; + drive-strength =3D <35>; + input-disable; + input-schmitt-disable; + slew-rate =3D <0>; + }; + }; + uart3_pins: uart3-0 { rx-pins { pinmux =3D ; }; =20 +&pwm { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pwm_pins>; + status =3D "okay"; +}; + &uart3 { pinctrl-names =3D "default"; pinctrl-0 =3D <&uart3_pins>; diff --git a/arch/riscv/boot/dts/starfive/jh7100.dtsi b/arch/riscv/boot/d= ts/starfive/jh7100.dtsi index e68cafe7545f..4f5eb2f60856 100644 --- a/arch/riscv/boot/dts/starfive/jh7100.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7100.dtsi @@ -280,6 +280,15 @@ watchdog@12480000 { <&rstgen JH7100_RSTN_WDT>; }; =20 + pwm: pwm@12490000 { + compatible =3D "starfive,jh7100-pwm", "opencores,pwm-v1"; + reg =3D <0x0 0x12490000 0x0 0x10000>; + clocks =3D <&clkgen JH7100_CLK_PWM_APB>; + resets =3D <&rstgen JH7100_RSTN_PWM_APB>; + #pwm-cells =3D <3>; + status =3D "disabled"; + }; + sfctemp: temperature-sensor@124a0000 { compatible =3D "starfive,jh7100-temp"; reg =3D <0x0 0x124a0000 0x0 0x10000>; --=20 2.34.1