Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp3055536rdb; Sat, 9 Dec 2023 09:17:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IEwTKf+8cuEUwUBfW5TxCQ/W6NNBpPrPQHBYV5J1i7VJ4RcmG7WXJmNMHlYwqv5M03rSP6s X-Received: by 2002:a17:90b:1d09:b0:286:9ded:35d4 with SMTP id on9-20020a17090b1d0900b002869ded35d4mr1501085pjb.48.1702142250673; Sat, 09 Dec 2023 09:17:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702142250; cv=none; d=google.com; s=arc-20160816; b=GTH3BfNTkjjNghbmQeQ+ECy5nf/Xt/EPgwSlZaARFLazIJo0w46XLDVJuOI2ZPt4l5 g40Y/X12c15GrVKBp3RDh9On+7cbabZk/d61MXsLKcyI8EqIQIae3M9pEsxLv072rjVq 2q/TeQHNYg87DUNohuIzhpPwY7dk4A43mHcWksd3hIZaEpdFit/syJp5fDERUrM8wb0A SByMZqBX4WbNEXC3a7SAPJx9ivSL2WqIPUVLAesNTIZczlEJcNiFYv75uEFAgcwnzj2f 0PF8R8/mM8yXXoVOZZYn2d/qHUpJdf1SOmPywa7nCX7eRGy8JICnUr5ZjvMwtXHKohmZ zzhQ== 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 :dkim-signature; bh=/0H6bwtLy8JPhPVHInIhXdE8jtxG6LhIg62kFR5k+5I=; fh=ksFMqko1uZIMtSijcgtpczA0sLuFqfGU7p9KPQDO/d8=; b=om0haUPwQloh//IzX98256xLWqlD1NH6hsg3Fykpm9FDWMcQZ0Q5dM/cbIz+rAJOfb tAjkKzQmHgC6wl7tNd7j2rDK2WPTM9W7u+7zsdYIR3vbs3ci16HmDAC+iGjl9vWjK3gg ahrhVc1FcInI93gcQmozAJ1trJdsfXUfbRZ0/6V/OqHqRWz/tDAeougPD27BnS7XKj5i xTR4MZpE2egPG3cCZwN0sJwAVidnsM5dJwsjlrpXP4Kabd7IKxeD7gx+DUI2okxj7JBZ 2LRZcmeV2DKv2X2QAyLZAZKvxUbvc0ejc1h1bj0szhlbAoJmBTbVJdW/uG/nMihcrG5o oIig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ixit.cz header.s=dkim header.b=PkNTbnys; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=ixit.cz Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id w11-20020a17090abc0b00b002886d99b09csi4735831pjr.73.2023.12.09.09.17.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Dec 2023 09:17:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@ixit.cz header.s=dkim header.b=PkNTbnys; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=ixit.cz Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 6138B805ED2A; Sat, 9 Dec 2023 09:17:28 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231978AbjLIRRO (ORCPT + 99 others); Sat, 9 Dec 2023 12:17:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231359AbjLIRRI (ORCPT ); Sat, 9 Dec 2023 12:17:08 -0500 Received: from ixit.cz (ip-89-177-23-149.bb.vodafone.cz [89.177.23.149]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47B2B199A; Sat, 9 Dec 2023 09:17:13 -0800 (PST) Received: from newone.lan (unknown [10.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ixit.cz (Postfix) with ESMTPSA id 6EFFE1605EE; Sat, 9 Dec 2023 18:17:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ixit.cz; s=dkim; t=1702142231; 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=/0H6bwtLy8JPhPVHInIhXdE8jtxG6LhIg62kFR5k+5I=; b=PkNTbnysWysZQfAXiotMky8OnHvb4I+xsiTc3dsfe7RP8SL8MPU7uVMZTu9i7U95bMBXCK DkMQiEunGNPPTkOlWVl2KhbJF1a0oaYN8bS3+fZCS0z3jKjUitbB/Z6+vdrn1Cb9sHsmzK 3AoJcI9V5bPBIOL91Dua3W0CwZUuxJM= From: David Heidelberg To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , David Heidelberg , Cristian Ciocaltea , AngeloGioacchino Del Regno Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 2/3] arm64: dts: rockchip: make dts use gpio-fan matrix instead of array Date: Sat, 9 Dec 2023 18:15:40 +0100 Message-ID: <20231209171653.85468-2-david@ixit.cz> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231209171653.85468-1-david@ixit.cz> References: <20231209171653.85468-1-david@ixit.cz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sat, 09 Dec 2023 09:17:28 -0800 (PST) No functional changes. Adjust to comply with dt-schema requirements and make possible to validate values. Acked-by: Heiko Stuebner Signed-off-by: David Heidelberg --- arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi | 2 +- arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi index e6ac292ce645..69dd3568b84e 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi @@ -44,7 +44,7 @@ dc_12v: dc-12v { fan0: gpio-fan { #cooling-cells = <2>; compatible = "gpio-fan"; - gpio-fan,speed-map = <0 0 3000 1>; + gpio-fan,speed-map = <0 0>, <3000 1>; gpios = <&gpio1 RK_PC2 GPIO_ACTIVE_HIGH>; status = "okay"; }; diff --git a/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts b/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts index 854d02b46e6f..59843a7a199c 100644 --- a/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts @@ -31,8 +31,9 @@ gmac1_clkin: external-gmac1-clock { fan: gpio_fan { compatible = "gpio-fan"; gpios = <&gpio0 RK_PD5 GPIO_ACTIVE_HIGH>; - gpio-fan,speed-map = <0 0 - 4500 1>; + gpio-fan,speed-map = + < 0 0>, + <4500 1>; pinctrl-names = "default"; pinctrl-0 = <&fan_en_h>; #cooling-cells = <2>; -- 2.42.0