Received: by 2002:a05:7412:1703:b0:e2:908c:2ebd with SMTP id dm3csp3046541rdb; Tue, 29 Aug 2023 03:56:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHMUcCuj+juH2W650AcGdI3Esnw4mQqkMGCx+VFSOU0Om7FmQChEMCNIl2YB8JZv2kz7u8x X-Received: by 2002:a17:906:5dae:b0:9a1:6318:4d39 with SMTP id n14-20020a1709065dae00b009a163184d39mr18996725ejv.29.1693306614528; Tue, 29 Aug 2023 03:56:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693306614; cv=none; d=google.com; s=arc-20160816; b=Aw8gIT7QAZGv5JGodKJJwfG9vK0doWgl2fNVdrAFJ/HCnULM1/Eq8J9wLlvW21V2el ixgbxUfnFRYLRohWYqkfo+oTOnB39ePHuQhJf2JuURmGVUgdgxHb+K+EJm3EKP5v92bc jfD5z4ytfz1mHH6MjWOX5LZAA+vDgCoTdg4HuWhczbrTOMitequSO3L1wP3dgpvunnFh O1/2jsXzC4cIvXO/Cj9e3SDWmOH4wq78nyw5GBLfsUuPEijGP5yJrjByQ9s6R4w12Q6r bHCHNgG66S6B77Y5HGuez3pI5NDu4zQH1D2uYlXe9p4Vq4TUYix54zKEDivKNl3LV6Lz LA2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=XtPey/1acVDn2rh4VwgDenXxLOFfF8ezokReBXBBa0Q=; fh=Wzbah+fBePd6kTNezFAMAq+82H9k09Ag9aFivML4foQ=; b=E9BNTSJXkp68AgveUiYosZy+TT7rTa6buzFhYmw4KeJwUoLXm8OVLWScj4rFMXJXoy BG1xAxQcFjjWnH10RX9r+DTzXPz2xGwG0oFMfz6fzb7tp8QKQoEvONS4DI9Ag1pD/luF 4MOfkhtt2HaxUMWkKAT/JyUkgvnjIphG35nxfoOo7STNke+2m14VFDQslhv7knNhHpAI zAc3SD2Jf5nN2Y4rLlvpxFZ8ZPdZ5cOvwEFrnGeoYkZREEre5tpUmBaEPnQrGOV7iCHj Zt+5pD8TWopf4/ifozXka6TJhLJNk9HkP1ND9F7wiUlrZIzB0JL5lQQmPr9iWOr1fxzu g4Jg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qn1-20020a170907210100b00987a947bfa1si3485349ejb.483.2023.08.29.03.56.16; Tue, 29 Aug 2023 03:56:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231628AbjH2Jlj convert rfc822-to-8bit (ORCPT + 99 others); Tue, 29 Aug 2023 05:41:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235001AbjH2Jlb (ORCPT ); Tue, 29 Aug 2023 05:41:31 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BBA2E1; Tue, 29 Aug 2023 02:41:25 -0700 (PDT) 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 0CC2124E250; Tue, 29 Aug 2023 17:41:23 +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; Tue, 29 Aug 2023 17:41:23 +0800 Received: from [192.168.120.76] (171.223.208.138) by EXMBX168.cuchost.com (172.16.6.78) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 29 Aug 2023 17:41:21 +0800 Message-ID: <503bbb09-2886-9dbb-808a-65422bab712c@starfivetech.com> Date: Tue, 29 Aug 2023 17:41:21 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: [RFC v4 4/4] riscv: dts: starfive: jh7100: Add PWM node and pins configuration To: Emil Renner Berthing CC: , , , , "Emil Renner Berthing" , Rob Herring , Philipp Zabel , Thierry Reding , =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= , "Krzysztof Kozlowski" , Conor Dooley , Paul Walmsley , "Palmer Dabbelt" , Albert Ou , Hal Feng References: <20230825081328.204442-1-william.qiu@starfivetech.com> <20230825081328.204442-5-william.qiu@starfivetech.com> Content-Language: en-US From: William Qiu In-Reply-To: Content-Type: text/plain; charset="UTF-8" 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=-3.1 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,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 On 2023/8/29 17:38, Emil Renner Berthing wrote: > On Fri, 25 Aug 2023 at 10:16, William Qiu wrote: >> Add StarFive JH7100 PWM controller node and add PWM pins configuration >> on VisionFive 2 board. > > Hi William, > > This is the VisionFive V1 board right? > > /Emil > Hi Emil, Yes, it's VisionFive V1, I wrote it wrong. B.R. William >> 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..746867b882b0 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 = > + GPO_PWM_PAD_OUT_BIT0, >> + GPO_PWM_PAD_OE_N_BIT0, >> + GPI_NONE)>, >> + > + GPO_PWM_PAD_OUT_BIT1, >> + GPO_PWM_PAD_OE_N_BIT1, >> + GPI_NONE)>; >> + bias-disable; >> + drive-strength = <35>; >> + input-disable; >> + input-schmitt-disable; >> + slew-rate = <0>; >> + }; >> + }; >> + >> uart3_pins: uart3-0 { >> rx-pins { >> pinmux = > @@ -154,6 +172,12 @@ &osc_aud { >> clock-frequency = <27000000>; >> }; >> >> +&ptc { >> + 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 4218621ea3b9..7f5bb19e636e 100644 >> --- a/arch/riscv/boot/dts/starfive/jh7100.dtsi >> +++ b/arch/riscv/boot/dts/starfive/jh7100.dtsi >> @@ -248,5 +248,14 @@ watchdog@12480000 { >> resets = <&rstgen JH7100_RSTN_WDTIMER_APB>, >> <&rstgen JH7100_RSTN_WDT>; >> }; >> + >> + ptc: 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"; >> + }; >> }; >> }; >> -- >> 2.34.1 >> >> >> _______________________________________________ >> linux-riscv mailing list >> linux-riscv@lists.infradead.org >> http://lists.infradead.org/mailman/listinfo/linux-riscv