Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp685525rdb; Fri, 22 Dec 2023 01:46:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IEGVAmbrCKk78vxhxnX9WKTjiYbPD0d3uK2l6FZ7wZAsmBU4KiU/5qQ0LqzJGtdSV1DcD1h X-Received: by 2002:a17:906:b213:b0:a23:3629:f7b6 with SMTP id p19-20020a170906b21300b00a233629f7b6mr1113474ejz.41.1703238385708; Fri, 22 Dec 2023 01:46:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703238385; cv=none; d=google.com; s=arc-20160816; b=PSGL6Qulrgo5I7IkcjazPZ/+Gb2IQ7WkWzj9/6c1BX1T5qmwPT26gwvexn2PFIMIjJ +thBYojTrZlm3L90JBB+WMI+J8SRg7SbzkO+sFFnJgJLSu6uuKA6WUs4534LbJcj2IVg yj5z0KY2Opeb+xSElyVFRVzuOt4A3HaBxI47YcmORCh3ZntdEpe1loVV/OUMEBzSvKSR 6zDQQ9e11XPV0cPwZCAkR96eCJ/NaRcz9XkuMKcighDYSj6xk0rW9bDuRi3M5d+lczd2 q8c8yLraWPLhPhvIDO/HrQFu0eIsJIM1/YHxC7gSgaWB6E2BkhzkhACcIvKvtwY8noU9 yD3Q== 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=wjxngCeMquxzq8ryy3tGZYFC85M+ImWA8cqZwbQYce4=; fh=T4gzk7+hgrXGjSNvKGZTlbuKXCiuDaGkxvCBgfgONjs=; b=hh51w6AQ1w0Bgz+z/9p666lLoK2I/fPl/09Tw5DswWaJ5Xc8Oa8uNOOTaSCHKbvHpR EDKxRWIRhItK2qWPR0WsTzk8XcpvXMUeMi0frYx3BYzRqc1jQGnf+3aVHL0KQBUMoPmZ VSPoPOuoGPWe3gio6VO/TvST3TDXjKHO6P876UfoRrsYY+nYbnwj/xisxf979fvEU/Mm Esno+RYn/vkMT9hahyf4GnvJC1NyUCjlIbTh7t5ZeO40WMxlogmqWPsvwwitis88QjZT OsyzxJga+pAKnPqSKmayRSUaYHWVOk+0tVhXHp4dZEq16NPgtDeJePPTtwdH/5mHd9Z9 tzQQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-9559-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9559-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id lc16-20020a170906f91000b00a1e025a7d23si1676475ejb.641.2023.12.22.01.46.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 01:46:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9559-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-9559-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9559-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 733601F24DA3 for ; Fri, 22 Dec 2023 09:46:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B037F13AF4; Fri, 22 Dec 2023 09:46:00 +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 7B383F9D6; Fri, 22 Dec 2023 09:45:54 +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 EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id 73A5324E2E4; Fri, 22 Dec 2023 17:45:53 +0800 (CST) Received: from EXMBX068.cuchost.com (172.16.6.68) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 22 Dec 2023 17:45:53 +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:52 +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 4/4] riscv: dts: starfive: jh7110: Add PWM node and pins configuration Date: Fri, 22 Dec 2023 17:45:48 +0800 Message-ID: <20231222094548.54103-5-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 2 board. Signed-off-by: William Qiu --- .../jh7110-starfive-visionfive-2.dtsi | 22 +++++++++++++++++++ arch/riscv/boot/dts/starfive/jh7110.dtsi | 9 ++++++++ 2 files changed, 31 insertions(+) diff --git a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dt= si b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi index b89e9791efa7..e08af8a830ab 100644 --- a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi @@ -323,6 +323,12 @@ reserved-data@600000 { }; }; =20 +&pwm { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pwm_pins>; + status =3D "okay"; +}; + &spi0 { pinctrl-names =3D "default"; pinctrl-0 =3D <&spi0_pins>; @@ -513,6 +519,22 @@ GPOEN_ENABLE, }; }; =20 + pwm_pins: pwm-0 { + pwm-pins { + pinmux =3D , + ; + bias-disable; + drive-strength =3D <12>; + input-disable; + input-schmitt-disable; + slew-rate =3D <0>; + }; + }; + spi0_pins: spi0-0 { mosi-pins { pinmux =3D ; + clocks =3D <&syscrg JH7110_SYSCLK_PWM_APB>; + resets =3D <&syscrg JH7110_SYSRST_PWM_APB>; + #pwm-cells =3D <3>; + status =3D "disabled"; + }; + sfctemp: temperature-sensor@120e0000 { compatible =3D "starfive,jh7110-temp"; reg =3D <0x0 0x120e0000 0x0 0x10000>; --=20 2.34.1