From patchwork Fri Oct 16 20:40:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 285590 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CB9CFC433E7 for ; Fri, 16 Oct 2020 21:00:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 57F772145D for ; Fri, 16 Oct 2020 21:00:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="eUe9lvGq" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2409714AbgJPVAF (ORCPT ); Fri, 16 Oct 2020 17:00:05 -0400 Received: from mxwww.masterlogin.de ([95.129.51.170]:58494 "EHLO mxwww.masterlogin.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388893AbgJPVAE (ORCPT ); Fri, 16 Oct 2020 17:00:04 -0400 X-Greylist: delayed 600 seconds by postgrey-1.27 at vger.kernel.org; Fri, 16 Oct 2020 17:00:02 EDT Received: from mxout4.routing.net (unknown [192.168.10.112]) by backup.mxwww.masterlogin.de (Postfix) with ESMTPS id 30C102C45D; Fri, 16 Oct 2020 20:40:47 +0000 (UTC) Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout4.routing.net (Postfix) with ESMTP id 4B95B1009C6; Fri, 16 Oct 2020 20:40:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1602880842; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+oJ/of7Qw64mg5bDPdUBki6EV+Di1DJQKZsfwVaB1Kc=; b=eUe9lvGqDR4qOexUreKNT6xAZ3cq5G+LK1YXUcwEXLPnxsZS5z6JSL4vhsIwXo4dvtkjZC W1/vc2hfU4vbmMTBzwMtwuGtESH6qDP1L22A0AkgiY4beFqtZ6jzNgMKfOtmZ/hI0uEAiG SQeRDbehoA6haIxXmXWDYPUhOc9Qd2Y= Received: from localhost.localdomain (fttx-pool-80.208.213.194.bambit.de [80.208.213.194]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id AF64036023B; Fri, 16 Oct 2020 20:40:41 +0000 (UTC) From: Frank Wunderlich To: linux-mediatek@lists.infradead.org Cc: Frank Wunderlich , Rob Herring , Matthias Brugger , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sean Wang , Linus Walleij , linux-gpio@vger.kernel.org Subject: [RFC 1/3] dts64: mt7622: enable all pwm for bananapi r64 Date: Fri, 16 Oct 2020 22:40:17 +0200 Message-Id: <20201016204019.2606-2-linux@fw-web.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201016204019.2606-1-linux@fw-web.de> References: <20201016204019.2606-1-linux@fw-web.de> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org From: Frank Wunderlich mt7622 only supports 6 pwm-channels so drop pwm7 third pwm (pwm2) is inverted and connected to fan-socket Signed-off-by: Frank Wunderlich --- .../boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts index 1cc4dcb0008c..ad5b1592182d 100644 --- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts +++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts @@ -414,10 +414,15 @@ mux { }; }; - pwm7_pins: pwm1-2-pins { + pwm_pins: pwm-pins { mux { function = "pwm"; - groups = "pwm_ch7_2"; + groups = "pwm_ch1_0", /* mt7622_pwm_ch1_0_pins[] = { 51, }; */ + "pwm_ch2_0", /* mt7622_pwm_ch2_0_pins[] = { 52, }; */ + "pwm_ch3_2", /* mt7622_pwm_ch3_2_pins[] = { 97, }; */ + "pwm_ch4_1", /* mt7622_pwm_ch4_1_pins[] = { 67, }; */ + "pwm_ch5_0", /* mt7622_pwm_ch5_0_pins[] = { 68, }; */ + "pwm_ch6_0"; /* mt7622_pwm_ch6_0_pins[] = { 69, }; */ }; }; @@ -537,7 +542,7 @@ mux { &pwm { pinctrl-names = "default"; - pinctrl-0 = <&pwm7_pins>; + pinctrl-0 = <&pwm_pins>; status = "okay"; };