From patchwork Wed May 11 15:01:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Geis X-Patchwork-Id: 12846335 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 63462C433EF for ; Wed, 11 May 2022 15:09:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=eyWZk4oeV8fdn1Z8Kq9DlAzggZxqKBMXX4VDc3N8Tqk=; b=DLbROKd2NdPNB7 sJhv3duuyet+jb46DJrDz4Yi5XLD6Hty5DXHPFBVrr/22aOfJ3pFK/nB1PAFmeJLUYhsjHoO7AARJ HVWnz6GAJxjjk15N9nxWs2jIYSccpQ+ZbYz0yKR7rcU+XnOMyt5e/PwUXdicObCq1+5Nn5fqbF14Y yVsguN9PVS9gZQ1vSLxtkxScQ8G1thNi9hyWw23ktZ5Cwl1WHwYfC+ajqJfsAwa/ACnZfHT8F/bSz BJZQCydHX7J0Dt2LQZMWIn3snmjtRUoRbqQ3Z/YC6vpOZZ6wFXypcQhY+q4TBxJnOuUqhqVlEOa33 1ZQEJZKMQ0hASKqTg4FQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nonvw-007QRF-00; Wed, 11 May 2022 15:07:25 +0000 Received: from mail-qt1-x835.google.com ([2607:f8b0:4864:20::835]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nonqA-007Nj1-OC; Wed, 11 May 2022 15:01:28 +0000 Received: by mail-qt1-x835.google.com with SMTP id hh4so2152313qtb.10; Wed, 11 May 2022 08:01:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/p0jhonpzsgi74YqARQEXL9lrrKHBla95qJazaJgr3s=; b=BJmy2dB+d2RHnTR/+SRqn1ptD74kwKMdN6sSgOFZsfJjuf5/PVYosyUm3LlOCPlMFR xBDCyeIY99K1xAddubsk741JQCN3hourJw6iG275BFJrerTRQdQVUxLS69HhY/SI9NAz FLVstBCzDJThwbkKWybmR/RdX3ppIX2OxD7tLy87+uSpvovuMjL87t9S1zyCBlzmMCJv gviYJnwsedSZQE0tgwYEXxlQVtXloqUBua6QfLj+0dAuKe+Qf+mVmKC8hYk4uRRuZufu O+HGfMwPMaYPnuo2fJerulgU/Ah46NryDCdYkWs4/B6EChNLZnnFTNWBijbEUrcGOKEw X/7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/p0jhonpzsgi74YqARQEXL9lrrKHBla95qJazaJgr3s=; b=zxSZQCOFea/sVThJkA8TVqtsJXBHv3NWTLF1I+hWygCZOc1RN+rbIADWBmzOtArTqQ CGOkDDCbGyKONXWSOX5wafTMatJosVG3gc/rVt7j+heE29jxSJjTJ1CwfQ1+Kj12Eped bNVDZTQsN2CNDqsPsrPtFGk/IEgd59Yv7Knn6jnaaEhRymI6ZU+DZvbkukQKKQKTKAg9 jU7hJxR80MQ+kUz8oUMkwSKwnCeslr0NCNk4IBocyH7u3KOR4lKoSsP0CgWkzmL1H1sk 2Ic+8pgflPemJ8fqzZsQ/+shki9lrcK9FCuDgm0sNw23OH/GK2y7VJt5YzQJUtYZcJN7 P3CA== X-Gm-Message-State: AOAM530WAdYyJyKumg66fdUa6bA/Md7yj9cCErQ1hBHvSfsEOQkLi4xv l/T4HgHSXVr+W6B22KUoTq8= X-Google-Smtp-Source: ABdhPJx7y9paqwB+ewp1H9nKH7hMjdilX7MzvMntMscQO9+8ooGtPXzRO592Y2gkVK+bnXkFE5M7tQ== X-Received: by 2002:a05:622a:1793:b0:2e1:ba41:ed2 with SMTP id s19-20020a05622a179300b002e1ba410ed2mr24321265qtk.238.1652281284233; Wed, 11 May 2022 08:01:24 -0700 (PDT) Received: from master-x64.sparksnet ([2601:153:980:85b1::10]) by smtp.gmail.com with ESMTPSA id h1-20020a05620a244100b0069fc6484c06sm1487134qkn.23.2022.05.11.08.01.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 May 2022 08:01:24 -0700 (PDT) From: Peter Geis To: Rob Herring , Krzysztof Kozlowski , Heiko Stuebner Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Peter Geis Subject: [PATCH v1 4/6] arm64: dts: rockchip: add Quartz64-A fan pinctrl Date: Wed, 11 May 2022 11:01:15 -0400 Message-Id: <20220511150117.113070-5-pgwipeout@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220511150117.113070-1-pgwipeout@gmail.com> References: <20220511150117.113070-1-pgwipeout@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220511_080126_867736_62988102 X-CRM114-Status: GOOD ( 10.82 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The Quartz64 Model A fan is bound to a single gpio. Prevent pinctrl issues in the future by binding the pinctrl assignment for the gpio. Signed-off-by: Peter Geis --- arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts b/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts index ca0b92795d95..991b7b1b8443 100644 --- a/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts @@ -32,6 +32,8 @@ fan: gpio_fan { gpios = <&gpio0 RK_PD5 GPIO_ACTIVE_HIGH>; gpio-fan,speed-map = <0 0 4500 1>; + pinctrl-names = "default"; + pinctrl-0 = <&fan_en_h>; #cooling-cells = <2>; }; @@ -510,6 +512,12 @@ bt_wake_l: bt-wake-l { }; }; + fan { + fan_en_h: fan-en-h { + rockchip,pins = <0 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + leds { work_led_enable_h: work-led-enable-h { rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;