From patchwork Mon Sep 6 12:04:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 12476879 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,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 112D0C433EF for ; Mon, 6 Sep 2021 12:07:43 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id D1EC360724 for ; Mon, 6 Sep 2021 12:07:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D1EC360724 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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: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:In-Reply-To:References: List-Owner; bh=rowmRMiiSUGP+Z9feNePABT4vm0flAu5q9iZml8fu6E=; b=TpN6SGA9GghD79 4j7jY1KMdY88gvC2MD16UiNjf/Svs64hko8nXpvD/HrCilmx9T0m5YOl6I3zuskGJHFvBwml1Ysxe my+MvUgC9DvZc9VUqbOBI3p9NqFwblj7T/jpxBKukCs7ECcXp6oDZyYR38FWWTTOkaSHBtNrdvTPM k+LX3Mbhy+u+Tu64gU6Xajy7JUE7vtpibKCHC8cXhmie1qNLB1pyHzJCtUZCZQNuvct8fcXtWtlLQ iFC19Xh5oVIvPoEf3CWawckbvX8G4Doj6tZ3HwX6OW6LfCEXyPB5CYhUJ0TPaIu/7BdPRP12IntBi Z/3kqfETlXG15i1+nTDQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mNDNo-000i7R-Nh; Mon, 06 Sep 2021 12:05:52 +0000 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mNDNX-000hzr-Ql; Mon, 06 Sep 2021 12:05:38 +0000 Received: by mail-ed1-x52b.google.com with SMTP id j13so9196460edv.13; Mon, 06 Sep 2021 05:05:34 -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:mime-version :content-transfer-encoding; bh=In9AqwxG6kQ9Z2Bk5c/A+CJjxcpZ+YKTzhcivosE+ZI=; b=iqO00bcQFNZF13Jj6amSx44PsCVInDTUO87KiRNOIINyFBpjPUn8qfHLCYihpbCjUL +vbGecOmdqECGj6DApBtUue8VWyBuR86X8HOW6CNaKgXVlnNtPRD3QVmE80rkukG2Z+A XESmlXdDSjXmbupmWU0X3gle/LLd+DhXOLNJ7/wpubYi2yI4zVQEdDOIt59TsSuQJkxW hUBysiQ30hWdwxCAQ4XNq5oEnQ2onL6EY6dbsUte14D8HD3eG9oQmult2ymNmu4jS89A ECGHW48jNYAdX5yRURa/K96AwqrMRz2EVJiHQhSu6Ag/anSOJhmcE6Mggm6wvDh/7orx KgJQ== 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:mime-version :content-transfer-encoding; bh=In9AqwxG6kQ9Z2Bk5c/A+CJjxcpZ+YKTzhcivosE+ZI=; b=fQz9XbU3aHJl4HfdJQwy8ZTZzdAw6tI7amFeCAMfh03om1x9fH92Pquv2q3jUyF1N4 DhvcNQ9uaZigf6mdOSGc5a5XdVbAPZNa5NJpirHEQi0m2FNL1IgiY7THSemBJ/FTjBMW AXvzrk9gBNkmWWF7G6jT10co7S24ScygXNPAy5CAl8//GMi4mWfQLo6yBespT/hHajYk gd1MQKEN414pXt70ef/+Zq2YPrMaEVg6hGWuAAcWqf512jkG+/Y6Iy/LI1erS4nma7uX QLrmlqt+2MpQRPNZqSBaxnuy9gVMfkCDGgNy02wqpFQDTqVE0CEoqd7FGmMRiCKwhmwE pjAA== X-Gm-Message-State: AOAM531RWHYVUFGbCnHmO8LJIyQWZYDWyduxjNHfGjDZkiX+qzFuzgOg RvXPgnn4rcKt9CDmEz23AL0= X-Google-Smtp-Source: ABdhPJxOOCo2ca3Si5A7uvngo7vEXqfO8X5NR5B7TPIdx8OOX7kX/c866e8Lfd4yYReXDI6gp0LmCQ== X-Received: by 2002:a05:6402:1057:: with SMTP id e23mr13285183edu.352.1630929933230; Mon, 06 Sep 2021 05:05:33 -0700 (PDT) Received: from debian.home (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id b8sm4536954edv.96.2021.09.06.05.05.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Sep 2021 05:05:32 -0700 (PDT) From: Johan Jonker To: heiko@sntech.de Cc: robh+dt@kernel.org, rui.zhang@intel.com, daniel.lezcano@linaro.org, amitk@kernel.org, p.zabel@pengutronix.de, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 1/4] dt-bindings: thermal: allow more resets for tsadc node in rockchip-thermal.yaml Date: Mon, 6 Sep 2021 14:04:01 +0200 Message-Id: <20210906120404.10005-1-jbx6244@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210906_050535_919473_DE09CB53 X-CRM114-Status: GOOD ( 10.40 ) 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 tsadc node in rk356x.dtsi has more resets defined then currently allowed by rockchip-thermal.yaml, so fix that in the documentation. The driver now uses the devm_reset_control_array_get() function, so reset-names is no longer required, but keep it for legacy reasons. Signed-off-by: Johan Jonker --- .../devicetree/bindings/thermal/rockchip-thermal.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/thermal/rockchip-thermal.yaml b/Documentation/devicetree/bindings/thermal/rockchip-thermal.yaml index b96ea277b..ee104e451 100644 --- a/Documentation/devicetree/bindings/thermal/rockchip-thermal.yaml +++ b/Documentation/devicetree/bindings/thermal/rockchip-thermal.yaml @@ -37,11 +37,16 @@ properties: - const: apb_pclk resets: - maxItems: 1 + minItems: 1 + maxItems: 3 reset-names: + deprecated: true + minItems: 1 items: - const: tsadc-apb + - const: tsadc + - const: tsadc-phy "#thermal-sensor-cells": const: 1 @@ -71,7 +76,6 @@ required: - clocks - clock-names - resets - - reset-names - "#thermal-sensor-cells" additionalProperties: false From patchwork Mon Sep 6 12:04:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 12476881 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,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 5D4DCC433EF for ; Mon, 6 Sep 2021 12:08:01 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 278AB60F43 for ; Mon, 6 Sep 2021 12:08:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 278AB60F43 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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=z+SfWWAwIyUIU36d0Xyti8HvGY0DBLpLYVrmjr/xLxc=; b=0pvu58CiRwPUX8 0C+Xfo8mH7bdBNpBbYwynvBFxlnW8TarMRKwPYRoXm9e+2aoqFtXWbKX24VULN6Ofr3qiLuL2z8ng OIbjq1u/+707c8DYheqn7ek73LYTTJvgBKw6fhRL09lqDeGTmClWtCBeZQ8O56DiAOcekOV+25dtP BZHZmODlBkG1pAs7VyQqW4ByDEBnVi4qYUhcPeUNCL4MwoyISXiNReRKuB99uhfFdBlQ9tK2qRu4O yiEdlcl6mbTfjl6iXQ7aObt3irV4wf3u1zu+QNDW5ZSSlVyzD3DYLkrid/6DOMIz0MmE5wDPSPDYb mNzcu1/opPy+smEgcG+A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mNDO0-000iCf-By; Mon, 06 Sep 2021 12:06:04 +0000 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mNDNY-000hzs-Ia; Mon, 06 Sep 2021 12:05:39 +0000 Received: by mail-ej1-x62e.google.com with SMTP id a25so13084321ejv.6; Mon, 06 Sep 2021 05:05:35 -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=dFqmTVUbeZj2dIyftamndsiUfBvI+zNuJcQH5/mATKY=; b=LBS0SXzwvpin1Biq/q0ftlmnWh0zGEE1fKFGvyQ5WAUvd0bQsduKCHapP6nJ0RdFkI tddeFbrK/BfJQRfzqfNtF3WmzZrYn+kUn/JnXmaSrFiaymoCqQ7K8SsENIbZlTOrGxed kaEcBvqVPkDeXXMFKc7tMTgp/wQeO/ld+7psLUNyz6Ie6mVs4W7RWv+egx02PNcNwFLH weICMOQ3O7vj7o0HaVl4DVZ17vI9Jm+oWPLisK5qo0WdFvo5Lpf4eXpim3EdDycCBK8m 5otJweZJVd2cHqFvpOnGzZQ9CteLZu4NEjmyje/U9X+wiKtOeegScZvOHm/+1VTLsFx2 2+Lg== 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:mime-version:content-transfer-encoding; bh=dFqmTVUbeZj2dIyftamndsiUfBvI+zNuJcQH5/mATKY=; b=qXFL5naoF8I3xZ6/6g5jhTJZh+9O1t6qvmqFpXJ80RQJoZlW2M0JbPotgEXVQ7XItP SzuMzTazdjhxW5NLsrq+NrTd/u+5K4oY79V9WHdhWkpKAodEw/IF+FjJXV8A5vyCN3c5 UJbj/xLXiDrpV/ri7snKOYdYMlSNfhHNpVImviBTA9RQhyoyHXuml/KNLWdmCK9YkMxj OsC81xwBhBOwx7YkhCGW6SNSZW3L16wBKhN5PaiaDnac5VAF5hYZBaoRVHDgX6E1+61B 2DZXSWs9/U1kcUPmPsPH+bSnslX1eZ6GDxC7cdZCBHgwbXaRDVdN5OAfgGyHOkV1zqzt Yo0A== X-Gm-Message-State: AOAM53020D5aWd259dr6dfZZ/5OyaOhxl+yFFSO5MqFBotmbO6ykJegH P1x/GyZ7c5/MpO2MddoPOdE= X-Google-Smtp-Source: ABdhPJzuZrT4cssp2j/I5kbPw5P3C98PF8K3pfsZ+kWdFZCSGpUz5JGgx2sJuCryTTDwMkNg8BCbnA== X-Received: by 2002:a17:906:1913:: with SMTP id a19mr13120478eje.390.1630929933968; Mon, 06 Sep 2021 05:05:33 -0700 (PDT) Received: from debian.home (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id b8sm4536954edv.96.2021.09.06.05.05.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Sep 2021 05:05:33 -0700 (PDT) From: Johan Jonker To: heiko@sntech.de Cc: robh+dt@kernel.org, rui.zhang@intel.com, daniel.lezcano@linaro.org, amitk@kernel.org, p.zabel@pengutronix.de, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 2/4] dt-bindings: thermal: remove redundant comments from rockchip-thermal.yaml Date: Mon, 6 Sep 2021 14:04:02 +0200 Message-Id: <20210906120404.10005-2-jbx6244@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210906120404.10005-1-jbx6244@gmail.com> References: <20210906120404.10005-1-jbx6244@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210906_050536_663067_6C206C33 X-CRM114-Status: UNSURE ( 9.02 ) X-CRM114-Notice: Please train this message. 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 Remove redundent comments from rockchip-thermal.yaml Sort compatibles in alphabetical order. Signed-off-by: Johan Jonker Reviewed-by: Rob Herring --- .../bindings/thermal/rockchip-thermal.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/thermal/rockchip-thermal.yaml b/Documentation/devicetree/bindings/thermal/rockchip-thermal.yaml index ee104e451..6ea6c9f7e 100644 --- a/Documentation/devicetree/bindings/thermal/rockchip-thermal.yaml +++ b/Documentation/devicetree/bindings/thermal/rockchip-thermal.yaml @@ -12,14 +12,14 @@ maintainers: properties: compatible: enum: - - rockchip,px30-tsadc # PX30 SoCs - - rockchip,rv1108-tsadc # RV1108 SoCs - - rockchip,rk3228-tsadc # RK3228 SoCs - - rockchip,rk3288-tsadc # RK3288 SoCs - - rockchip,rk3328-tsadc # RK3328 SoCs - - rockchip,rk3368-tsadc # RK3368 SoCs - - rockchip,rk3399-tsadc # RK3399 SoCs - - rockchip,rk3568-tsadc # RK3568 SoCs + - rockchip,px30-tsadc + - rockchip,rk3228-tsadc + - rockchip,rk3288-tsadc + - rockchip,rk3328-tsadc + - rockchip,rk3368-tsadc + - rockchip,rk3399-tsadc + - rockchip,rk3568-tsadc + - rockchip,rv1108-tsadc reg: maxItems: 1 From patchwork Mon Sep 6 12:04:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 12476877 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,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 C3E7EC433EF for ; Mon, 6 Sep 2021 12:07:31 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 8B83F60724 for ; Mon, 6 Sep 2021 12:07:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8B83F60724 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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=jCvuaQ4kyB3f7rDncyougHS/wp9++eaoj3/+dD1tpcU=; b=CiwhlFZa4sbLZq OErkJx8YI1F/pdSZXKlzIuEPTm9UoE9vhkq+brSRo99wSmzKaDHrPOvqqZ0er/HH7QTNw0I9ZmoD/ Fiq7pRvvaFdet2TaXjRrvbQ1kUsGojTVVw7R0T1pqO0gqBv7MuUtujVVbqHXQi/W+vMe7CtUC8C22 XZfzt7F2YLnm+S6ZYxzJ35UOsYsrmhcJyiFbDkhll+TiRVJSf3aRUSSujJoTTdqHFnemTXzIHrDKS I5OodDjLrigqJLHJmeSKjTrlXklj66r0MGiVUw171jkZ45QMX0lYeBVCSHl7hMJLfmBl17VHGtefv tcfDuKr/u23hhmwEjLYg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mNDNd-000i2n-D9; Mon, 06 Sep 2021 12:05:41 +0000 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mNDNY-000i00-BT; Mon, 06 Sep 2021 12:05:38 +0000 Received: by mail-ej1-x632.google.com with SMTP id i21so13101377ejd.2; Mon, 06 Sep 2021 05:05:35 -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=J5rWzfawpu0XOsLyVwwYFgYCCr8KgHSAplCrfWcEUCc=; b=KYUpVbsceN24EZchDkkkol2zEry8/zZBvVe/CMNKasw0zP0fQumSMEkppUrrAB+wGv RRfevlklzFRZtH9W/mNoHsu+GG/RjUOIGL6ChoMEHgK7sxD3RvqkLRZAvNQNqvipm7Qr cTQlfIPe1GsNW+UvZK7BNiUuMXdUASH+Aqnla+22Ask9dzyDNc6ehe95YdO2q0n8eCzY ZuJLzMs8RQ/uItFbxCO3WfXsNP5dywIi6b5gkewTZajSIhB6UdA8pR5UEWq9WTFHWKIo 1rQjMbJYLu8jsl82JOs/gHoMEf7B+/OHLCbf2CIqSjzSrrFck4NxU3uwEU99O0suf8eT 7axQ== 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:mime-version:content-transfer-encoding; bh=J5rWzfawpu0XOsLyVwwYFgYCCr8KgHSAplCrfWcEUCc=; b=kMUA1wp/1klLtC/T7w5XEcNnOIuR/U9q0x+A+ZPzio1H2IKNPiHFYIu9sJLRi8kc9w 8/QaPReMFxx1L9i9ZvBnmeucWUk9qX9sBLB8ifMZ6OlEZokehvzF+1tgyjEQCF6dISfz z0a/ffA4STEUId+MzllnMci2IMiVqHSz8+Jp0gGATGGGGC+DDl9JZUBomX76QQTqvAx+ bqrEtQwvWaU4qMXZx9bn0v06kPUL2/ijJxo8PKy+5/wUk1NvxM890sPtOa4BfT7Isee1 m+cl+tfjb2dPHQ//jRuEMowBTvIRvuuGkJkAIeJ1eWghfZiPm2ivyTnNEdsLwK4Snyll 1IsA== X-Gm-Message-State: AOAM530zw+x0+t55e4iv66uekODudAfwvUF06yzSO68/h/6x8vXNCDUL lQRvQw73JgX18HjVvHtY4iU= X-Google-Smtp-Source: ABdhPJxzUl/7BL4o86N4tIBXw9ehKJmQ0k3lSpIaKtVm3BI+0Af3eaSd4+mihFeqKv7n7AXDOZlSUQ== X-Received: by 2002:a17:907:2a85:: with SMTP id fl5mr13028347ejc.91.1630929934659; Mon, 06 Sep 2021 05:05:34 -0700 (PDT) Received: from debian.home (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id b8sm4536954edv.96.2021.09.06.05.05.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Sep 2021 05:05:34 -0700 (PDT) From: Johan Jonker To: heiko@sntech.de Cc: robh+dt@kernel.org, rui.zhang@intel.com, daniel.lezcano@linaro.org, amitk@kernel.org, p.zabel@pengutronix.de, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 3/4] thermal: rockchip_thermal: allow more resets for tsadc node Date: Mon, 6 Sep 2021 14:04:03 +0200 Message-Id: <20210906120404.10005-3-jbx6244@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210906120404.10005-1-jbx6244@gmail.com> References: <20210906120404.10005-1-jbx6244@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210906_050536_431951_9F9A3A62 X-CRM114-Status: GOOD ( 12.79 ) 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 tsadc node in rk356x.dtsi has more resets then currently supported by the rockchip_thermal.c driver, so use devm_reset_control_array_get() to reset them all. Signed-off-by: Johan Jonker --- drivers/thermal/rockchip_thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/rockchip_thermal.c b/drivers/thermal/rockchip_thermal.c index 657d84b99..dc3a9c276 100644 --- a/drivers/thermal/rockchip_thermal.c +++ b/drivers/thermal/rockchip_thermal.c @@ -1383,7 +1383,7 @@ static int rockchip_thermal_probe(struct platform_device *pdev) if (IS_ERR(thermal->regs)) return PTR_ERR(thermal->regs); - thermal->reset = devm_reset_control_get(&pdev->dev, "tsadc-apb"); + thermal->reset = devm_reset_control_array_get(&pdev->dev, false, false); if (IS_ERR(thermal->reset)) { error = PTR_ERR(thermal->reset); dev_err(&pdev->dev, "failed to get tsadc reset: %d\n", error); From patchwork Mon Sep 6 12:04:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 12476883 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,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 AFE4CC433EF for ; Mon, 6 Sep 2021 12:08:09 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 8227260C3E for ; Mon, 6 Sep 2021 12:08:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8227260C3E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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=vK/lwP12ClY9yVPbkrVNC1ePyrM9mhuwQJ+urUr8zuU=; b=jqq8NUhX2f//CA SL2SdJcTuNRY8Parz876rVonGicvYqDlABDEMKJK282XFncJwHgmB59Q+vUCO078JKvTmyFVHdjqw X2953W0mJwDdHZj9dncjxA2ytrCMQ+Y5lZZNVRZueCTO4AmYrtbgbXOwbSAED0xCeZRJ+zSsV6uc5 NxiErZ7NvieawrktIr8lqzkEF7w53LkIZF791IwMd3KUftIYIHvqScN/oLlxEwGopx/K7VuZsqKMX 9j3PayAKDBr/yxKsKiUaf5s9EyBQIw7L3HMZv4MqS+zMn+k2s2gImCig8fwnqExM+zp4SHtsPxz7n h82MnN9zTe+/X7xu7dCQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mNDOC-000iIz-Ae; Mon, 06 Sep 2021 12:06:16 +0000 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mNDNY-000i03-Ge; Mon, 06 Sep 2021 12:05:39 +0000 Received: by mail-ej1-x62e.google.com with SMTP id jg16so13098507ejc.1; Mon, 06 Sep 2021 05:05:36 -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=1jSWxQD3ZakGUw6t3PqAHw4n2IXaSLh4ZsA1sASlt9o=; b=kIMOOeXQwVNBwDAWMehjWUBA1cnNcm/6CMVB3Y2jTJNPEMNK/XYcBwrw9aSidnM618 bwC6jQp7CqXN/7J2CJtBh3byoNxv/o4m7kipxXXr3X/8O0QjIZwaI9gjDskvKOmJPSq7 Un0Sx3lAYjfM88gkbhtVC4Au1c1rLuYIe1WMW5law0+SKko8xarqNsEIuCS5BbT64150 jYzKIpmlkhsRwcd4wL1elJm9btpPX3NrfLE1OSCt5Ob2zT9Mp1PAmFRPAsDMGnZGlVOg UbTk1n2DMBOoRzKqVot5eggpLzg/dV7JTqjD3hodrGZDbmIm97dn/VNJLi1zahE9gV8l AUyw== 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:mime-version:content-transfer-encoding; bh=1jSWxQD3ZakGUw6t3PqAHw4n2IXaSLh4ZsA1sASlt9o=; b=DDEVCmUgJmfjoyetEOdKnntR4PZishKpIEe3dOsXTwTwJb4nnnO3BTTVQiCu/Cy92n cvJWJ2OR/N77DRs9eCfxVpFMqzYaSZHq7OxUv6JEnYYBMtOo/zIP5LY28plj8XNb/HCl Ec039PK9qTgCtl7wkD6e/l9l1lXagUSSYNmQtj/PJNAdAed85Cfyfw6cN59R3WEBUADF Xd2n9/ti8ru3Pmb+91XFCClJytCxQZMlSQEJrDV8yv0qPflvVSrm0GfvLT4ZHucca8Yi SdJ3ZKqhsTCZzEem/wjTwhHko97wh/FNjkEqBtz7GjJxwX8xQeJulaaYbA9GSIblRxas PCrw== X-Gm-Message-State: AOAM531JSlWkdTzDc2Fd7SQOKZCdIxOF/3QXvnhzN36d+/jvILSn7Lob AhsezGBd+Sc4EA2FGlrwXQA= X-Google-Smtp-Source: ABdhPJy/cwcqasiNdqkpW55WGrmKCcwe3js4BRGA8fMxCasOSDxAnSs05DUepDolnR8WgP9eoctUOA== X-Received: by 2002:a17:906:3497:: with SMTP id g23mr13250953ejb.85.1630929935384; Mon, 06 Sep 2021 05:05:35 -0700 (PDT) Received: from debian.home (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id b8sm4536954edv.96.2021.09.06.05.05.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Sep 2021 05:05:35 -0700 (PDT) From: Johan Jonker To: heiko@sntech.de Cc: robh+dt@kernel.org, rui.zhang@intel.com, daniel.lezcano@linaro.org, amitk@kernel.org, p.zabel@pengutronix.de, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 4/4] arm64: dts: fix resets in tsadc node for rk356x.dtsi Date: Mon, 6 Sep 2021 14:04:04 +0200 Message-Id: <20210906120404.10005-4-jbx6244@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210906120404.10005-1-jbx6244@gmail.com> References: <20210906120404.10005-1-jbx6244@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210906_050536_595100_F248356C X-CRM114-Status: GOOD ( 11.36 ) 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 In the rockchip_thermal.c driver we now get the resets with a devm_reset_control_array_get() function, so remove the reset-names property as it is no longer needed. Although no longer required in rockchip-thermal.yaml sort tsadc-apb as first item. Signed-off-by: Johan Jonker --- arch/arm64/boot/dts/rockchip/rk356x.dtsi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk356x.dtsi b/arch/arm64/boot/dts/rockchip/rk356x.dtsi index d89831bee..2dc997eff 100644 --- a/arch/arm64/boot/dts/rockchip/rk356x.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk356x.dtsi @@ -837,9 +837,8 @@ assigned-clock-rates = <17000000>, <700000>; clocks = <&cru CLK_TSADC>, <&cru PCLK_TSADC>; clock-names = "tsadc", "apb_pclk"; - resets = <&cru SRST_TSADC>, <&cru SRST_P_TSADC>, + resets = <&cru SRST_P_TSADC>, <&cru SRST_TSADC>, <&cru SRST_TSADCPHY>; - reset-names = "tsadc", "tsadc-apb", "tsadc-phy"; rockchip,grf = <&grf>; rockchip,hw-tshut-temp = <95000>; pinctrl-names = "init", "default", "sleep";