Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4443916rdh; Wed, 29 Nov 2023 01:28:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IHO8hE378UjQRxUvGOjRrIvZaF+zVOhp7QG9Be35KY6iUy0xRKG2WvqMbUghYjGdmeDDuuh X-Received: by 2002:a05:6870:75c9:b0:1f9:602e:7b0b with SMTP id de9-20020a05687075c900b001f9602e7b0bmr25424642oab.2.1701250085918; Wed, 29 Nov 2023 01:28:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701250085; cv=none; d=google.com; s=arc-20160816; b=qokRnL81XoUvj/ENX1ZHV7f/M0+gIgkNUr7y0y3xJrvFra//BRSdFSUdvEvKLBRumM 4s4srzvmkwjm6UFGCZPmyWvTZF7wzmmJDVh8gOVH84tg49T9kOUwOvkXt+0eAYmetQ96 03TJKCfiV6xs6++lC+DD4zjv4XDDVtg+GPCuJFmXNQKztndUaQr+TkMdNChwjTevrfl7 yoGIRqNT9CUQtkDAasT1dO7L+DcdxlK57YKAE0yDJ+qwM0NLoMojj/T1tZJ6va0G43jv p1dBQnXkDFWJDl0vK5T1728a55pluX72Bs9WHB/KNSTzMfKKh1eYxjg6eog5kPzAVRWa 76ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=pZ6wJDMpO7lokIcqTnU5AocL1c0UXVteL64YGZUE0yA=; fh=T4gzk7+hgrXGjSNvKGZTlbuKXCiuDaGkxvCBgfgONjs=; b=r1eyW0yflfU8bObeW+/ONw+DCLlpluTo0SmYxkxxmq/MmHi4E+PSJ/AI6Y0BCVpGx1 7LAKglln9DE6pSFUmjUtO4HRTAvuxlp0QWour+1vKR4RDP5fOjapxgYZ74E9ODcDAZ6x p419XmHpRKxWeb0YoS5sqtMn37Hck39LBC0xoEb56sK0QidlU6wSawyfbOZVHHTykNp0 byLp1AzscpY4U9C6sCdJkCQVdO6kOI0v+FEtliuXz8F0uISTyoRvUnBAD1XUYMPLF3Mv Tg5yJt+gYxlGJubXv4quG0Q4BBZ6ZncYpgq4pOt72PZsp6jiNGp4cHp8R3TC2wYHvzBM yBhA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id s10-20020a65690a000000b005c200b11ba7si13992069pgq.763.2023.11.29.01.28.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 01:28:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id DEE2E8032003; Wed, 29 Nov 2023 01:28:04 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230205AbjK2J1q convert rfc822-to-8bit (ORCPT + 99 others); Wed, 29 Nov 2023 04:27:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230111AbjK2J1l (ORCPT ); Wed, 29 Nov 2023 04:27:41 -0500 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B28401BCC; Wed, 29 Nov 2023 01:27:39 -0800 (PST) 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 0DC8424E32E; Wed, 29 Nov 2023 17:27:38 +0800 (CST) Received: from EXMBX168.cuchost.com (172.16.6.78) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 29 Nov 2023 17:27:37 +0800 Received: from williamqiu-virtual-machine.starfivetech.com (171.223.208.138) by EXMBX168.cuchost.com (172.16.6.78) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 29 Nov 2023 17:27:36 +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 v8 4/4] riscv: dts: starfive: jh7110: Add PWM node and pins configuration Date: Wed, 29 Nov 2023 17:27:32 +0800 Message-ID: <20231129092732.43387-5-william.qiu@starfivetech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231129092732.43387-1-william.qiu@starfivetech.com> References: <20231129092732.43387-1-william.qiu@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS062.cuchost.com (172.16.6.22) To EXMBX168.cuchost.com (172.16.6.78) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 29 Nov 2023 01:28:05 -0800 (PST) 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.dtsi 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 { }; }; +&pwm { + pinctrl-names = "default"; + pinctrl-0 = <&pwm_pins>; + status = "okay"; +}; + &spi0 { pinctrl-names = "default"; pinctrl-0 = <&spi0_pins>; @@ -513,6 +519,22 @@ GPOEN_ENABLE, }; }; + pwm_pins: pwm-0 { + pwm-pins { + pinmux = , + ; + bias-disable; + drive-strength = <12>; + input-disable; + input-schmitt-disable; + slew-rate = <0>; + }; + }; + spi0_pins: spi0-0 { mosi-pins { pinmux = ; + clocks = <&syscrg JH7110_SYSCLK_PWM_APB>; + resets = <&syscrg JH7110_SYSRST_PWM_APB>; + #pwm-cells = <3>; + status = "disabled"; + }; + sfctemp: temperature-sensor@120e0000 { compatible = "starfive,jh7110-temp"; reg = <0x0 0x120e0000 0x0 0x10000>; -- 2.34.1