From patchwork Tue Apr 25 20:49:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Mason X-Patchwork-Id: 9699735 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1A32C60245 for ; Tue, 25 Apr 2017 20:50:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B2B328404 for ; Tue, 25 Apr 2017 20:50:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0004828471; Tue, 25 Apr 2017 20:50:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 99AAC28404 for ; Tue, 25 Apr 2017 20:50:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.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=TJgb+uHZZiWJnN/0UaS7IaD2VEFtjWFLHeyGCGBPErc=; b=r7kb9NUpEzDfgk7ZsJ16xm8DB5 j0dwBMLo6EQstEgdx499sHzVAbERFZTO0/BqitXoNE1ajcV2/h42AuLklrLO5u/D3bytuCiwZFtp9 GEQxtq+1wI8uhRrwERYjTRO484w7eSr+FYrKuvdB5ntoBbHm10feQAm9XshbMDHx61hfwG/vrF5fm dNAJdemxDGtr9twMe9h/7tbHT3BIfmVD9pjr2Wf9t3LJzIba6ldlABvhJU0pl0d0KwLnT9/EKYb1m yPNoifajMMiUxtjJfV4x+CM3RxnK2ffJdAektRcCbon9He/i44iw95OZFjr3mGw7Ohara4dE89YF1 9iR+lM8Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1d37Pc-0008CF-8u; Tue, 25 Apr 2017 20:50:16 +0000 Received: from mail-pf0-x234.google.com ([2607:f8b0:400e:c00::234]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d37PJ-0006gd-QD for linux-arm-kernel@lists.infradead.org; Tue, 25 Apr 2017 20:50:00 +0000 Received: by mail-pf0-x234.google.com with SMTP id 194so31870438pfv.3 for ; Tue, 25 Apr 2017 13:49:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=EYa+JFTDjESJD8x3VyjXThVyYBLpMdPexRsjq1/6XB4=; b=VlWphl3vlzD094fVo28sZsE2PtIDVWGLhXRkJBXCwQ57QxxXOtsukqumKlmWIwdTUF Z02boXECqocoOn3AKVB9hcT1OovB4cEVBZ9C1ur+mpgperYChcj+aJ2mH9zPi1WuH1bF BP8Y7Zu6fdW5eMngEbzDVFGZQEPD8vrkJJ6RM= 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=EYa+JFTDjESJD8x3VyjXThVyYBLpMdPexRsjq1/6XB4=; b=Qo3SfMEUJLWe9syQWPSrFBhEbVOwgz0DZm/PX6osvYzL3gGFBIqojSv90oH75gVl5e WOnYx11Ba2Ek2315Bt8/BSCSfdzpPUwHwjlpjByneLfi5NAgOV74cgRbKNO5MdmkMF75 3HKqd7ImTwHLFzmkZLCiAOgXFzNP4JDlrWbdHtnwDg8YtFz6X+Zo3dedHNIdx7xJKkQ/ Hosf+wIOb5SvNckHtT+Wy7Ps172/9h10jkvI79FEkNcA40yul570FznceUifPpmjnLow zGV7Zpkm5yiyr4jDiwPVv3nJuxm5a39ts2kVaFN+5cAv83KRVArWaTF1xC0n1W+ruMl2 7kYA== X-Gm-Message-State: AN3rC/6aN9S4XIxsUDZL6ztUBaCpH5P6dsg4Me2adAIT+geU1yRAtDOI gejo8ih1s4s4z38h X-Received: by 10.84.196.164 with SMTP id l33mr40225824pld.0.1493153375959; Tue, 25 Apr 2017 13:49:35 -0700 (PDT) Received: from venom.dhcp.broadcom.net ([192.19.231.250]) by smtp.gmail.com with ESMTPSA id e5sm38236030pga.13.2017.04.25.13.49.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 25 Apr 2017 13:49:35 -0700 (PDT) From: Jon Mason To: Florian Fainelli , Zhang Rui , Eduardo Valentin , Rob Herring , Mark Rutland Subject: [PATCH 1/2] thermal: broadcom: Allow for NSP to use ns-thermal driver Date: Tue, 25 Apr 2017 16:49:10 -0400 Message-Id: <1493153351-12698-2-git-send-email-jon.mason@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1493153351-12698-1-git-send-email-jon.mason@broadcom.com> References: <1493153351-12698-1-git-send-email-jon.mason@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170425_134958_102604_2D5D8E5D X-CRM114-Status: GOOD ( 13.54 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Change the iProc Kconfig to select THERMAL and THERMAL_OF, which allows the ns-thermal driver to be selected via menuconfig. Also, change the ns-thermal driver to work on any iProc based SoC. Finally, tweak the Kconfig description to mention support for NSP and make the default on for iProc based platforms. Signed-off-by: Jon Mason --- arch/arm/mach-bcm/Kconfig | 2 ++ drivers/thermal/broadcom/Kconfig | 9 +++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-bcm/Kconfig b/arch/arm/mach-bcm/Kconfig index a0e66d8..da2bfeb 100644 --- a/arch/arm/mach-bcm/Kconfig +++ b/arch/arm/mach-bcm/Kconfig @@ -19,6 +19,8 @@ config ARCH_BCM_IPROC select GPIOLIB select ARM_AMBA select PINCTRL + select THERMAL + select THERMAL_OF help This enables support for systems based on Broadcom IPROC architected SoCs. The IPROC complex contains one or more ARM CPUs along with common diff --git a/drivers/thermal/broadcom/Kconfig b/drivers/thermal/broadcom/Kconfig index f0dea8a..26d706c 100644 --- a/drivers/thermal/broadcom/Kconfig +++ b/drivers/thermal/broadcom/Kconfig @@ -1,8 +1,9 @@ config BCM_NS_THERMAL tristate "Northstar thermal driver" depends on ARCH_BCM_IPROC || COMPILE_TEST + default ARCH_BCM_IPROC help - Northstar is a family of SoCs that includes e.g. BCM4708, BCM47081, - BCM4709 and BCM47094. It contains DMU (Device Management Unit) block - with a thermal sensor that allows checking CPU temperature. This - driver provides support for it. + Support for the Northstar and Northstar Plus family of SoCs (e.g. + BCM4708, BCM4709, BCM5301x, BCM95852X, etc). It contains DMU (Device + Management Unit) block with a thermal sensor that allows checking CPU + temperature.