Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4444171rdh; Wed, 29 Nov 2023 01:28:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IHLZeEGO2hSJ7RQkuNzoE3eMG+x9YjZCbzSppLTQiHKSxXg5Phcjm4fsmakGn2ZiZEfTmua X-Received: by 2002:a05:6871:4184:b0:1f9:39fd:3e7a with SMTP id lc4-20020a056871418400b001f939fd3e7amr17657455oab.6.1701250124632; Wed, 29 Nov 2023 01:28:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701250124; cv=none; d=google.com; s=arc-20160816; b=eXA+PVG/nubvfXFm6zJr3NkzH93oQFVSCLc8HW4kmWnWBVjN7hvAw0T4CbmRJSDre3 yR3OT1R1zNqd6XJ6o9wCI+SY0eFhXKoADMY6H69Xkzlh3atEIiX1O1ak7EmGIv8PdbQV H6qLw5civjtkJxdyn3IQPp1iQlf1T3FkSjSJ0F6lXvR8kOaT27vd2gkBtSCOyI19971W SqUC4fApv6CxOmGgELPzv5JVhNMnMFLwModmFyRjdC1RcUqSqM0q55zJUJ7m80HKe/PG fQgxooAhPW3Ma3s6/ltQgPl9eI/r3oSh9qXiZuTkCL+TnO7BjqodPp1P+Mrfs9s+w7qh Kxow== 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=1ztIwhAktZ3Bcr58N7thnt85AqEp9KIFyLApyHYv7Ug=; fh=T4gzk7+hgrXGjSNvKGZTlbuKXCiuDaGkxvCBgfgONjs=; b=n2+jBE/wBsaU0xbOmlnfIwvwMPnmK0da8mLBfmFWpLClQQKgr0OrduKOHeZrhrnAbR 6OOgM0Emv4eIMctq4CLwt4wQoFVTLjElVRsv4BPiPbz4KBIQ+gGtHJ3uHipGpRZVXv8S n49Ve1jvHyGMEZ3BB+JxYOdMOxIlC8X3kydiKfgP4dU5Mvz6ZzFqbcNsj3RrTSsWjZEu hDvuDHnKwJTOOIZyAvnZ5RzF0NL0ngAqvqqhZXkp3WYIJH8bwjt/ShfpRacmTUeTyKkF 1g6i7MD9TSiO/oEBr8Arg/epU+TYFYXAHvwlawIxMT/iyGSvxVcemRsbQg9T1fl7ex2F kZZw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id f13-20020a056a001acd00b006cb6a3acfafsi14359119pfv.21.2023.11.29.01.28.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 01:28:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id 2603B80811D5; Wed, 29 Nov 2023 01:28:42 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229599AbjK2J14 convert rfc822-to-8bit (ORCPT + 99 others); Wed, 29 Nov 2023 04:27:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230163AbjK2J1m (ORCPT ); Wed, 29 Nov 2023 04:27:42 -0500 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCA501A5; Wed, 29 Nov 2023 01:27:43 -0800 (PST) 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 25EC324DC0A; Wed, 29 Nov 2023 17:27:37 +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; Wed, 29 Nov 2023 17:27:36 +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:35 +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 3/4] riscv: dts: starfive: jh7100: Add PWM node and pins configuration Date: Wed, 29 Nov 2023 17:27:31 +0800 Message-ID: <20231129092732.43387-4-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=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email 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 (pete.vger.email [0.0.0.0]); Wed, 29 Nov 2023 01:28:42 -0800 (PST) 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, }; }; + 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 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>; }; + pwm: pwm@12490000 { + compatible = "starfive,jh7100-pwm", "opencores,pwm-v1"; + 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