From patchwork Mon Jul 13 06:59:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 11658901 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DFB976C1 for ; Mon, 13 Jul 2020 07:00:55 +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 B90EA20663 for ; Mon, 13 Jul 2020 07:00:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="lRW88ZPp"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="LOn2ya0S" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B90EA20663 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.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:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References:List-Owner; bh=CKzqLzis5hnev/wzk7fKsR7TSgLl/1UR5x7EXz42TTU=; b=lRW88ZPpTk27m5VA31ZZJRok8V eEE1Xf5W2mB8qZJuwq5WP6h+Tv6+n6AiRQHKQ2aqqS8b8drZpMcPJDNRE1VQ6UUkfNnHEthT5IadT tAg7UWYLZqS4zErikhcPwP8so9jihYvqps8TzFIBcZBbfDvw0W5spiGvj83SJXfh4mvsj/nWmAWt8 jmKvefE1XFW1XOJv9u8c5XeSsjrYProK25QrGdwNX4XNUJTHtF7gLWmMSIhv99ITHPSh0WVnWl1cV Bzj1JnHYJKAXhudB3xLMQYsfJ89oT7AE6SSfRkHBOFJNA4Ve0zliF02wru9Wm23dC1XbpzMDCqwXj 8711ARjw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jusR9-0000aT-Us; Mon, 13 Jul 2020 06:59:39 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jusR6-0000Yr-OP for linux-arm-kernel@lists.infradead.org; Mon, 13 Jul 2020 06:59:38 +0000 Received: by mail-wr1-x443.google.com with SMTP id j4so14380812wrp.10 for ; Sun, 12 Jul 2020 23:59:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=kinXBvz5+I1FgSK2RxVnBM/4h4YycBTf3sfQytiCbSA=; b=LOn2ya0S5OB7Y5uvhFHYl/XEYXEVgKVvfjwGLeRxcYVK8kubTPZZMct7qQYidJpeJo 5RUTN+UHsk4k/Qyma5I22GYlfRjlugEU7XomNMheUP3bbRuVS3/7SVVRaLlvSvu9kIv0 zNERj4P/Ai70ommBpNcyUDpRDqCTUpmukH7M8y7dkrOPktVxKlk2m9rIEQYdjNL4DXJf 3dHT+wE8SFOp+bWdrs5z8K/msRqurH1sHrU/3qxb9ytCFJsAv3jeVQCpy/h6kbMLwWvc JUuFw3rEpW2tqWqGZlQUKhB2PfFXs+/fxA6PhzCBkW1019Sgorg6Uw2dk03Ajt6NceSh +oMg== 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=kinXBvz5+I1FgSK2RxVnBM/4h4YycBTf3sfQytiCbSA=; b=TyetYHzTLpAXa8STl0QsQTUh6u7AXz3wJl7XnCCnpnAGaZzFtX5WvHAYqt3i88wkmu EAvVUgrLZU4kRJZh9wc56Jblp3RIz/+Zy2gFMCWlH9ZfYXJ6WjLWwtUOsQnf1iYEUqa+ GbtzNpfN6U+qfFiDnsek6Cv3iKPKK2U/t0ltczBvyQDAzlL7cJ2n8YrbAaxYQevVF2m4 Bb5MVcgaMntbtzbd9GidUOJVfJbSFpatG1v876dLJkQr2e2S5xN6ApHrjz1d7qkF5En7 i5n7oWibSiMAK/6hJmlrbke5r3lGTA6EvNDwbKHkfcVO0MkcetTuDubh5J5cS2PpMJXh zPlg== X-Gm-Message-State: AOAM531H6m95m6yegue+nDkY7CZrANoH0Ub2HD+dM2oDal2uAGTCN0dW zXyDp1evzynjHA9mSJ0QMhEfQA== X-Google-Smtp-Source: ABdhPJyVPeQ7ShrahAXpJcoWO4VTZySPJoqio9Q2uZh9sFtU3rbW6xzIeLZOkXeBF0Flfj7vAttPig== X-Received: by 2002:a5d:404e:: with SMTP id w14mr76901144wrp.268.1594623573901; Sun, 12 Jul 2020 23:59:33 -0700 (PDT) Received: from bender.baylibre.local (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id 92sm24394143wrr.96.2020.07.12.23.59.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Jul 2020 23:59:33 -0700 (PDT) From: Neil Armstrong To: khilman@baylibre.com Subject: [PATCH] arm64: dts: meson-khadas-vim3: add Khadas MCU nodes Date: Mon, 13 Jul 2020 08:59:31 +0200 Message-Id: <20200713065931.19845-1-narmstrong@baylibre.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200713_025936_967497_D73CE662 X-CRM114-Status: GOOD ( 11.73 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:443 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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: amit.kucheria@verdurent.com, daniel.lezcano@linaro.org, linux-pm@vger.kernel.org, Neil Armstrong , linux-kernel@vger.kernel.org, Amit Kucheria , linux-amlogic@lists.infradead.org, rui.zhang@intel.com, lee.jones@linaro.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Add the Khadas MCU node with active FAN thermal nodes for all the Khadas VIM3 variants. Signed-off-by: Neil Armstrong Reviewed-by: Amit Kucheria --- Hi Kevin, The bindings has been reviewed and merged by Lee, could you apply this one via the amlogic tree ? Thanks, Neil .../boot/dts/amlogic/meson-khadas-vim3.dtsi | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi b/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi index 1ef1e3672b96..27408c10a811 100644 --- a/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi @@ -183,6 +183,23 @@ hdmi-phandle = <&hdmi_tx>; }; +&cpu_thermal { + trips { + cpu_active: cpu-active { + temperature = <80000>; /* millicelsius */ + hysteresis = <2000>; /* millicelsius */ + type = "active"; + }; + }; + + cooling-maps { + map { + trip = <&cpu_active>; + cooling-device = <&khadas_mcu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; +}; + &ext_mdio { external_phy: ethernet-phy@0 { /* Realtek RTL8211F (0x001cc916) */ @@ -222,6 +239,12 @@ pinctrl-0 = <&i2c_ao_sck_pins>, <&i2c_ao_sda_pins>; pinctrl-names = "default"; + khadas_mcu: system-controller@18 { + compatible = "khadas,mcu"; + reg = <0x18>; + #cooling-cells = <2>; + }; + gpio_expander: gpio-controller@20 { compatible = "ti,tca6408"; reg = <0x20>;