Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2574092rdb; Fri, 22 Sep 2023 02:39:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHWoak6HzuaMi+InEBxwoc1FlZN8RtNalc3g9quaN78mx7i+NvuwlUJVugsSDZI/MEw/zCX X-Received: by 2002:a05:6358:724f:b0:13e:b54f:5c12 with SMTP id i15-20020a056358724f00b0013eb54f5c12mr9787800rwa.21.1695375591758; Fri, 22 Sep 2023 02:39:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695375591; cv=none; d=google.com; s=arc-20160816; b=wHa/suGFxCR8GjQnzgt4AbvVu5EGwAwPslj1VIGVIKz511lkG+Y74JWkIJHwdIzNzI jjMbFZ81KAIm52+WBvYSaV8igecAZ0uu/kFgcRNsDxias72/e5CGKuVvvasDdOQNH+Be Yq+gyuRWyVUwG0jW6GcNaCeJdwThvzbSBG+dKuyFdlOJRSjOrdzqEvMWIkyAyoAviWYE T72DkTjso2Dt9dAeTSUXRLu20EJ6FCMUm4ZRPNLdaqu7zQPsAB3/fATlyaLC4JDEFer4 2DjzwnuQTeMOiBTYZAGC6Untb8WKafUR1oQe+F9Q8UhXrD1VIU9VmnHaO2U9O7C18rN/ kgxQ== 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=U0Lp2dJCjs+zS5BcyeG/fPS6iH5USxXlyJnt+f/up+I=; fh=T4gzk7+hgrXGjSNvKGZTlbuKXCiuDaGkxvCBgfgONjs=; b=xAbQWL2PeXVof7G11CzI9uIpwTczemhUmFkUYJ/DPkqajs1M1uibPPXkVumUg/pm6D 0Ew+n3BC2m1RDIiGWPrdigG7z/DJu8eowLE9xV7sROP+kgayfKc/3LAvnrXF8B6Ubh58 4F5Wnza4RHSdX0v3iwBAKfPH57eZRj2/QsB3F00OlxyM2p+sooJksA7sopztIFiKvjbP JemxvdD8R0DmhPywVQx2NGC/hiITvxa3kh2wgUSaQdmoXskVVtoeWen2mgSivEcJMXQI 8lBJi6UKLyfs9r1vCqw5FIQRLQGtYt6wkbO5y2/NzMKbs9QGI2tB5oaBsyyZOZznwoDP DtvA== 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 br4-20020a056a00440400b006880a2ca0fasi3267075pfb.312.2023.09.22.02.39.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 02:39:51 -0700 (PDT) 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 A6ED88311BEE; Fri, 22 Sep 2023 02:29:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232923AbjIVJ3F convert rfc822-to-8bit (ORCPT + 99 others); Fri, 22 Sep 2023 05:29:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232941AbjIVJ3C (ORCPT ); Fri, 22 Sep 2023 05:29:02 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 105831B0; Fri, 22 Sep 2023 02:28:55 -0700 (PDT) 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 fd01.gateway.ufhost.com (Postfix) with ESMTP id 94D8017ED4; Fri, 22 Sep 2023 17:28:53 +0800 (CST) Received: from EXMBX168.cuchost.com (172.16.6.78) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 22 Sep 2023 17:28:53 +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; Fri, 22 Sep 2023 17:28: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 v5 4/4] riscv: dts: starfive: jh7100: Add PWM node and pins configuration Date: Fri, 22 Sep 2023 17:28:48 +0800 Message-ID: <20230922092848.72664-5-william.qiu@starfivetech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230922092848.72664-1-william.qiu@starfivetech.com> References: <20230922092848.72664-1-william.qiu@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS061.cuchost.com (172.16.6.21) 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, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS 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]); Fri, 22 Sep 2023 02:29:02 -0700 (PDT) Add StarFive JH7100 PWM controller node and add PWM pins configuration on VisionFive 1 board. Signed-off-by: William Qiu Reviewed-by: Hal Feng --- .../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, }; }; + pwm_pins: pwm-0 { + pwm-pins { + pinmux = , + ; + bias-disable; + drive-strength = <35>; + input-disable; + input-schmitt-disable; + slew-rate = <0>; + }; + }; + uart3_pins: uart3-0 { rx-pins { pinmux = ; }; +&pwm { + pinctrl-names = "default"; + pinctrl-0 = <&pwm_pins>; + status = "okay"; +}; + &uart3 { pinctrl-names = "default"; pinctrl-0 = <&uart3_pins>; diff --git a/arch/riscv/boot/dts/starfive/jh7100.dtsi b/arch/riscv/boot/dts/starfive/jh7100.dtsi index 35ab54fb235f..9c8c557031e6 100644 --- a/arch/riscv/boot/dts/starfive/jh7100.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7100.dtsi @@ -274,6 +274,15 @@ watchdog@12480000 { <&rstgen JH7100_RSTN_WDT>; }; + pwm: pwm@12490000 { + compatible = "starfive,jh7100-pwm"; + reg = <0x0 0x12490000 0x0 0x10000>; + clocks = <&clkgen JH7100_CLK_PWM_APB>; + resets = <&rstgen JH7100_RSTN_PWM_APB>; + #pwm-cells = <3>; + status = "disabled"; + }; + sfctemp: temperature-sensor@124a0000 { compatible = "starfive,jh7100-temp"; reg = <0x0 0x124a0000 0x0 0x10000>; -- 2.34.1