Received: by 2002:a05:7412:1703:b0:e2:908c:2ebd with SMTP id dm3csp825982rdb; Fri, 25 Aug 2023 02:09:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGtg0ncpNlR/HdUCYZcV1dQgDDqlCni+G4aDQefqcO5ZKgWlUPlE42MKaiKy4yaLQUNwCxl X-Received: by 2002:a17:906:2d1:b0:99e:7ff:e5e4 with SMTP id 17-20020a17090602d100b0099e07ffe5e4mr15936284ejk.37.1692954569111; Fri, 25 Aug 2023 02:09:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692954569; cv=none; d=google.com; s=arc-20160816; b=lvf0nrBURkj7293tK8fgxqRK13pD7upwmrm/zq3h3/860NEvc8+/qjvZFZyJiSGE/J yZjNYIogNJO70AttFlE9V8vE7StrUf0KXH8SsXbWXtVuUPOKE0d++DhSc7gwlUELl2Zm lvM1d0RS5iEyPbQLdIGl1zju1qfnrtpZf/8YCYWSd22vRURxmvlrl9BWhR3OYmyl2oKz /hIxa8fn04jwSJMvUC0t+fQAiuDBDu7gRtUj7Qej5ObaXfKGMeHRnL89HO2nlHxp06xE ofGN4Robigzva1x4dEOQymeGZ9hc3quv+gzf9TCE+kJszpk+sUBK/hg/10vYUqxF0Qaq qKtQ== 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=+OriazVu4jaBaYXrziUWn7boIxE7nhtZ1EBGXkETExw=; fh=OlQYnYmfnAvovqMM7SwhPEmQSrStPosmmGYBCfTg71c=; b=V2m2j1fa5G0UlRg8FqDCEKIaej7C4voLYxhvPhK6M7MPPHdTx8xvnZjZkKmvaWfmoI vKFnm8BItY8f8VoyrCfQiIs960C05M2aMH+1KCILI3DUO0kxdBXQZ82NLbd0Hlj5creK hKXmfQdLOFd+l5uiI7y+p9gghozm4mfHSunoBgCKLPwdhOSXlY9bxoPLxGfHsdvpKlnc rMpkFslbLmQy7Kd1gh+gy88xhdDP4wG7HdqTlHy1TBdjc2AwV3kEQYeR/nuj3pBfRIEo Nuv3xHd49wzMwKuRHK487KLG73aGzDqQKArOL0vltNu/P7duZCLZP2Mm/JNZfGqTB/mn XpUA== 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 qp25-20020a170907207900b009888665e53fsi781732ejb.190.2023.08.25.02.08.56; Fri, 25 Aug 2023 02:09:29 -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 S241699AbjHYIOn convert rfc822-to-8bit (ORCPT + 99 others); Fri, 25 Aug 2023 04:14:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236956AbjHYIOJ (ORCPT ); Fri, 25 Aug 2023 04:14:09 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F859213A; Fri, 25 Aug 2023 01:13:42 -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 ex01.ufhost.com (Postfix) with ESMTP id 7F4C424E284; Fri, 25 Aug 2023 16:13:32 +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, 25 Aug 2023 16:13:32 +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, 25 Aug 2023 16:13:31 +0800 From: William Qiu To: , , , CC: Emil Renner Berthing , Rob Herring , Philipp Zabel , Thierry Reding , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Krzysztof Kozlowski , Conor Dooley , "Paul Walmsley" , Palmer Dabbelt , Albert Ou , Hal Feng , William Qiu Subject: [RFC v4 3/4] riscv: dts: starfive: jh7110: Add PWM node and pins configuration Date: Fri, 25 Aug 2023 16:13:27 +0800 Message-ID: <20230825081328.204442-4-william.qiu@starfivetech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230825081328.204442-1-william.qiu@starfivetech.com> References: <20230825081328.204442-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, 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 Add StarFive JH7110 PWM controller node and add PWM pins configuration on VisionFive 2 board. Reviewed-by: Hal Feng 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 fa0061eb33a7..eba7331e1fe1 100644 --- a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi @@ -143,6 +143,12 @@ &i2c6 { status = "okay"; }; +&ptc { + pinctrl-names = "default"; + pinctrl-0 = <&pwm_pins>; + status = "okay"; +}; + &sysgpio { i2c0_pins: i2c0-0 { i2c-pins { @@ -200,6 +206,22 @@ GPOEN_SYS_I2C6_DATA, }; }; + pwm_pins: pwm-0 { + pwm-pins { + pinmux = , + ; + bias-disable; + drive-strength = <12>; + input-disable; + input-schmitt-disable; + slew-rate = <0>; + }; + }; + uart0_pins: uart0-0 { tx-pins { pinmux = ; + clocks = <&syscrg JH7110_SYSCLK_PWM_APB>; + resets = <&syscrg JH7110_SYSRST_PWM_APB>; + #pwm-cells = <3>; + status = "disabled"; + }; + syscrg: clock-controller@13020000 { compatible = "starfive,jh7110-syscrg"; reg = <0x0 0x13020000 0x0 0x10000>; -- 2.34.1