From patchwork Thu Dec 3 02:23:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rosen Penev X-Patchwork-Id: 11947559 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=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,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 D58FAC64E7C for ; Thu, 3 Dec 2020 02:25:00 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 61F3921D91 for ; Thu, 3 Dec 2020 02:25:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 61F3921D91 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:To: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=eGqwWRlyYUNHBN1XwXsUVxid6S24E1FoPjvRbiiq0qU=; b=kCRKrydpsVIC9zN56Ru70y2Fpb IlYePpVWjAOI6FaB+77qC4neA1E6BXpJC/hc7T9DK6gikj/LwXZWeejfryGJ4L2a7agjz/4uVQRmy ABoSs4rDG8HVNCYsmcUcM1AeNUdlApdD4YAsLNIuk8FYm5oTHzcI75KyGzwr/QrkzeIWh08klsO1t Iwn7Doy4b374UTNidIS4kNco9yvP8i9lwiIpqzF279g/TSWM1TD4uV74BI1lWSJEL1ux2UgonS24s 2Ue0x0d3JqXP9jTYg/rL3Vr7J7S+YwSRqop+fTj8nBPFio2zgt504eEmO+gfVdhsV02/w0JW36+/C X2dZgSyw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkeHM-0007Nv-9y; Thu, 03 Dec 2020 02:23:32 +0000 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkeHI-0007KC-47 for linux-arm-kernel@lists.infradead.org; Thu, 03 Dec 2020 02:23:29 +0000 Received: by mail-pf1-x444.google.com with SMTP id b10so294621pfo.4 for ; Wed, 02 Dec 2020 18:23:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=+upLhAnc7xjVsVsLUNtuULdNBrK4iZ6s4bBL2oETL/I=; b=S8xioyQZKQNtXP7Rvi6OfAEvlfFu38cH+rr0bqMIMIYGLPifkMQvPGzYqiMC+WzDLx vmCsPBL7eZClqrHjcWRLH3O8MgoBDODdlc2cYQVoqABZqR+TajOIuEAfjjyybUH5LQ2U Kb96z62lh20Benljbido/jbvGLsSDkNQf2zK+ZQNw0Ztkz/6CuP2yr3cqLNqU9xMUZME G/x4fSjHF9eqmTZ/y3OfN/Da8IKrFoAQ+9YNt0lpcup6pWyYHYIJ/UVd0SHFkihJhDWt hkgi5DLHnYYvCansxkFXiBcASs7SbCZFx5nTzg8ywzRwcNM5ZtteuevnUVZZPDnTMZF1 GvfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=+upLhAnc7xjVsVsLUNtuULdNBrK4iZ6s4bBL2oETL/I=; b=JRMOvF3t2Ija8ovMbsKFvosJjpSn4ysdqx1XSIWJU3nX3HIvkSxSdL35KA8XCAGOu3 UtCDHGcF6BDYX1aNAoANUL/QUHawy0A5IzHadLXHCwp07lTTjbIBO46bAsjmODMxVSK0 FfUEWKnMfx4RFiWyn3NCu3iRHD2ttKtuXL+HNBH6bebXSHF3x8/zk1p6Jb67VJ7YS4kV VTzADh4qVJgXz8v5m+HtXoccYNUqq5X8t1iBhB7B/0wpTyhmWWZC/38udUNxwrlniNq5 gAgqyp0lyzmjfeHk3Bb1dwSNMCkLOH2HwUIB2MxgTUuGCUdCNMXOGsEl+cowfz3SRCrP MCRw== X-Gm-Message-State: AOAM5320sKrll/qB9d3zYx50QcASq0O+MMEVGNk+h0nYROzRp4nf7fnJ AAi7CKgYDks4IK3cFrDdaKVMz2U6VP1fgA== X-Google-Smtp-Source: ABdhPJy98xmtQ0qLiKpYPl972+czBLQSuo2NcIn7nPz6JMq4i9inDgqxZyIYutZEWFv3wDowOiL50w== X-Received: by 2002:aa7:8105:0:b029:18e:c8d9:2c24 with SMTP id b5-20020aa781050000b029018ec8d92c24mr1061182pfi.49.1606962204267; Wed, 02 Dec 2020 18:23:24 -0800 (PST) Received: from TrapDesktop.lan (astound-69-42-20-103.ca.astound.net. [69.42.20.103]) by smtp.gmail.com with ESMTPSA id b4sm179824pju.33.2020.12.02.18.23.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2020 18:23:23 -0800 (PST) From: Rosen Penev To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/2] ARM: dts: armada388-helios4: assign pinctrl to each fan Date: Wed, 2 Dec 2020 18:23:21 -0800 Message-Id: <20201203022321.19952-2-rosenp@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201203022321.19952-1-rosenp@gmail.com> References: <20201203022321.19952-1-rosenp@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201202_212328_291605_0D20443E X-CRM114-Status: GOOD ( 13.90 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: gregory.clement@bootlin.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Split up the pins for each fan. This is needed in order to control them Fixes: ced8025b569e ("ARM: dts: armada388-helios4") Signed-off-by: Rosen Penev --- arch/arm/boot/dts/armada-388-helios4.dts | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/armada-388-helios4.dts b/arch/arm/boot/dts/armada-388-helios4.dts index 5a6af7e83e44..ec134e22bae3 100644 --- a/arch/arm/boot/dts/armada-388-helios4.dts +++ b/arch/arm/boot/dts/armada-388-helios4.dts @@ -127,11 +127,15 @@ fan1: j10-pwm { compatible = "pwm-fan"; pwms = <&gpio1 9 40000>; /* Target freq:25 kHz */ + pinctrl-names = "default"; + pinctrl-0 = <&helios_fan1_pins>; }; fan2: j17-pwm { compatible = "pwm-fan"; pwms = <&gpio1 23 40000>; /* Target freq:25 kHz */ + pinctrl-names = "default"; + pinctrl-0 = <&helios_fan2_pins>; }; usb2_phy: usb2-phy { @@ -302,9 +306,12 @@ "mpp54"; marvell,function = "gpio"; }; - helios_fan_pins: helios-fan-pins { - marvell,pins = "mpp41", "mpp43", - "mpp48", "mpp55"; + helios_fan1_pins: helios_fan1_pins { + marvell,pins = "mpp41", "mpp43"; + marvell,function = "gpio"; + }; + helios_fan2_pins: helios_fan2_pins { + marvell,pins = "mpp48", "mpp55"; marvell,function = "gpio"; }; microsom_spi1_cs_pins: spi1-cs-pins {