From patchwork Wed Apr 4 03:14:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 132790 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp4549524ljb; Tue, 3 Apr 2018 20:15:19 -0700 (PDT) X-Google-Smtp-Source: AIpwx48OGjo0NV0Kutf4EYpdfqyRQDpBm7XSxcem5FV9s0AQyp+Dt99k3g8Vc7+EVHFjJGJTNJaI X-Received: by 10.99.111.6 with SMTP id k6mr10811289pgc.444.1522811719732; Tue, 03 Apr 2018 20:15:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522811719; cv=none; d=google.com; s=arc-20160816; b=bhbVdWZng8iEAgCfysluieCoJTp/z3wThUibGoD0cM9iUXCEqXxjn9wNG6NEcfkANl 5HzNFHEOpmuEIx0hbZsQZeZ8MkeqvmC8TttKeLsLJBzZE01ejoucup03ZtHCsX2Tmjdl 3+k9NMx+SE1W/YIqt5ly+0hy9VKzuGRmqHyY4zTp2iBVrWIQK0HroSsqiwNSlYPJ9ct8 x9QRwwAtn/ysllXgY9JjZofKXqpyzLB0t/ck1X5rgaRUUAOXQGJ6WGJqLNGt9t9f/lxo xXVmlQp4utG66R1upM63qzY2SySqI3CFRDm51j0HYu/kF3bbJD9wDxh1dfmLJSmqNKuG 8BTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=GCIGE+htniWW8MLe+qHs9C122POHfWU04+/uTEG+xrU=; b=SnRfBEQ7ekjBmeOWmpVKmrN1fPRjEPI8WqzcpY1VI9B4QqFeOHP+pbgKslZEDqkW5T Bac/vPKVh7GbmBcM5Coo1o6cOfbxXBRwHu45m3Uv0Gbk8W/NCNaHRH+LglqSp50eVdIp SCvOLY7AnF3I0H7K94kai2mM0nnpxlbV5EFgLDXOpZNn6rKKidQRBDnbZ2tjzNQbTpoh UbHZEDsxZhjNZyCPbz9z4wRaxk6E36en4nS9gpDIouzkazGh+kgPmAuUJ45JkOoeX1Rn 6owwOyIOi5JC+Dv5tEi/vtkLfIOvDhOyLI6R4/bw8BZHuCgVzyvWTU0lj2ihRf3WueGF wteQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X2h2l4GA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q81si3333977pfa.200.2018.04.03.20.15.19; Tue, 03 Apr 2018 20:15:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X2h2l4GA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753602AbeDDDPG (ORCPT + 29 others); Tue, 3 Apr 2018 23:15:06 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:42698 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753365AbeDDDPD (ORCPT ); Tue, 3 Apr 2018 23:15:03 -0400 Received: by mail-wr0-f195.google.com with SMTP id s18so20522543wrg.9 for ; Tue, 03 Apr 2018 20:15:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=GCIGE+htniWW8MLe+qHs9C122POHfWU04+/uTEG+xrU=; b=X2h2l4GAFUT086eON8ftJd7OF9YJolOekNxt3mPZFNHrwLOc0js5m8K1fYbZnSIlib riUVipXItWWZti6Z3nRf0qperd3QpOTr7Lm8TM0iBDh3k2+Uly+2IBjYNbHQaVdq3fW5 P1k0TuvJHWgAbBslPeYNQaQewJDjHCG4M0Ne0= 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=GCIGE+htniWW8MLe+qHs9C122POHfWU04+/uTEG+xrU=; b=hhp1WZHVTe79jraOuNo+UXORFCn0mZS1FWr1KanswoDMcoxNE3QEm7NwBfYX0j5x20 IpSHIwhEh9vZR8Hqxzcogm4108V+z+j2OEEyQItfK/yxyq34eOC3qSlGcSkizkwYbJj2 /fEAj7zsAWwAEm8S/zki2SsJDK7d0g3EvFrgt1A7inNfdX2d43C4h1Oa5RTAEI71Dduu /Y5hYy6S0cR+Uav0TYwLhIM1vX+fCAjx6szpSjBJzL5tqWlH2c6qfMZJgpHgOT5gWI0F 4ppmts4vDxfRCHtrVX69N5difBTHP4REP97aNdTWyPQUirSH/+qfXjSF++B7JX2H2Llt iN3g== X-Gm-Message-State: AElRT7EPgark1kxrH/mA90FtAiEIR9SBURhBHia7WZIOusidk7Gdn6Cw +/23BFgJdCEffCY0OBUd2uM26A== X-Received: by 10.223.154.47 with SMTP id z44mr11181006wrb.239.1522811702300; Tue, 03 Apr 2018 20:15:02 -0700 (PDT) Received: from localhost.localdomain (li622-172.members.linode.com. [212.71.249.172]) by smtp.gmail.com with ESMTPSA id r8sm2868611wmg.44.2018.04.03.20.14.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 03 Apr 2018 20:15:01 -0700 (PDT) From: Leo Yan To: Wei Xu , Arnd Bergmann , Stephen Boyd , Jassi Brar , Leo Yan , Kaihua Zhong , Tao Wang , Daniel Lezcano , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Guodong Xu , Haojian Zhuang Cc: Ruyi Wang Subject: [PATCH 1/5] dts: arm64: hi3660: Add mailbox node Date: Wed, 4 Apr 2018 11:14:31 +0800 Message-Id: <1522811675-12741-2-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1522811675-12741-1-git-send-email-leo.yan@linaro.org> References: <1522811675-12741-1-git-send-email-leo.yan@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kaihua Zhong Add the mailbox controller node for hi3660 platform. Signed-off-by: Kaihua Zhong Signed-off-by: Ruyi Wang --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) -- 1.9.1 diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi index ec3eb8e..b9e7c91 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi @@ -274,6 +274,14 @@ #reset-cells = <2>; }; + mailbox: mailbox@e896b000 { + compatible = "hisilicon,hi3660-mbox"; + reg = <0x0 0xe896b000 0x0 0x1000>; + interrupts = , + ; + #mbox-cells = <3>; + }; + dual_timer0: timer@fff14000 { compatible = "arm,sp804", "arm,primecell"; reg = <0x0 0xfff14000 0x0 0x1000>; From patchwork Wed Apr 4 03:14:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 132791 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp4549556ljb; Tue, 3 Apr 2018 20:15:21 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/eUzkJnvs9BLFQv/tRHazERXfYWA3K43/hCXFERnpAVg/DJdafvIz0tdCcYOH5ua0g0diJ X-Received: by 2002:a17:902:7049:: with SMTP id h9-v6mr16670527plt.386.1522811721417; Tue, 03 Apr 2018 20:15:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522811721; cv=none; d=google.com; s=arc-20160816; b=Bykp81BI4PAdmL/RqHqp2UFWjwDWTysgSS8yBSxdneMdTY6kWgFT2f1rzyF0LG1L2+ EwwZjIJi4iRayw8xFCvhZpuhjzRoqJ3Mcv+Qbkbilcue4gDtbDGEqfPQiow8KeY1+1NE wNivgJKzbz8v2jaK6m8F+2cm+Ox08hhX9lSfnsYQ3wzHU7ysG38ZP0U+6lji1Ohe+iIA L6pqCy5MVJX/g5O6Luj/Vojf4bb6WD1lMF2NrrY2ydn8Oq32ftn9VX2KEqMbAfq9Wa7M LCPTeODkf7VKswnc+Er/rvx0hDVwHYZcWmylnP8rqBcFgaC8HI+9gnfrYAIpXOWGeH6I 6VKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:arc-authentication-results; bh=iaK6BnXM1EkoXJwfHSoo4M3gpOOR5fZYmYcW1qWAshQ=; b=DKpx/SxD3yJNYGrQHrmMuE5jGtYMixstcbPujhztvD+pBNTdjj2rBnI7PMzJSwo0eX KO6qQoEaFpv/aHpMPaHyGGEkbh7zkFqQBp862Je9ZbkboAgRJ4KZLfcgxRM542Y433/c MwvUOmpcRTFP/QEshGRdvj41gM6Syvf55jGgOed5QN3y+uuxak4qA3UyEjW/F/kWmNhr yemUg1cxba72i3U4WVGLFGxZcllkglm76qr3VLWkkH0V4kPV4wp8cSkM//fzlJSGe/XG 01k8ETQp4mvqMP/9M4UmJhDfmE+2/AljHmVb2KR4gOqLlzoZly1ZnnTLjNxrDviehwzF 5QYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iVP8eqLP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q81si3333977pfa.200.2018.04.03.20.15.20; Tue, 03 Apr 2018 20:15:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iVP8eqLP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753729AbeDDDPL (ORCPT + 29 others); Tue, 3 Apr 2018 23:15:11 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:41891 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753289AbeDDDPI (ORCPT ); Tue, 3 Apr 2018 23:15:08 -0400 Received: by mail-wr0-f196.google.com with SMTP id s12so9938082wrc.8 for ; Tue, 03 Apr 2018 20:15:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references; bh=iaK6BnXM1EkoXJwfHSoo4M3gpOOR5fZYmYcW1qWAshQ=; b=iVP8eqLPtXV+D5NsqiXhzPUP5Dq84Mf9+ksoNB7rKPdSHEVQq5x+yIJg55auMVSTIJ ucCxBIQe05r1NSM9+jYP5Ew36Sb/VCXUWmL5reGAklYvV0OYHT+QN8+Q3XXyuxrl90nD opN5HtwZI5vle01Tm689xhM84ECO+0vWM3kkk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=iaK6BnXM1EkoXJwfHSoo4M3gpOOR5fZYmYcW1qWAshQ=; b=DLQ4UT3iWt/YjJavqYjl5lDlykv6DQ8krEUCmYa/Iv8jrHVhk3BoVhObwkN5biGnC+ XYdu05GkmWerI0ljI8rr5d6bkwal5e4zKqczBDHmHGK71Bsic2nUMio/TxKkdftYYzS7 UYRWrKFEh1tgn+XmKfOrHIMRyeDvamnTr6/fJcpYIIjTarCYgw4QSvdaT5D0UhiiVVgC wB9yQFMVwTaR9hRpXnyl1eMVHeANAYUBsVAsir2cG9aTxsmv30awVl5ElTsP5lYcVuGV Z1A3LYRH3Hh2AZLgockHpeZWWAxHlxn0cDn8h59pNHsRh3bmh5WKxMmcy6Ko3aQ3eVbe Kkhg== X-Gm-Message-State: AElRT7E6lTdHI+Q2flETZZVsxANl4Gf+YgYVNKRnwD+PbIkiJcfa8Gtt bGV3VrIbN6Zi+nhG40VF9FFcBQ== X-Received: by 10.223.209.66 with SMTP id b2mr12238499wri.178.1522811707210; Tue, 03 Apr 2018 20:15:07 -0700 (PDT) Received: from localhost.localdomain (li622-172.members.linode.com. [212.71.249.172]) by smtp.gmail.com with ESMTPSA id r8sm2868611wmg.44.2018.04.03.20.15.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 03 Apr 2018 20:15:06 -0700 (PDT) From: Leo Yan To: Wei Xu , Arnd Bergmann , Stephen Boyd , Jassi Brar , Leo Yan , Kaihua Zhong , Tao Wang , Daniel Lezcano , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Guodong Xu , Haojian Zhuang Subject: [PATCH 2/5] dts: arm64: hi3660: Add stub clock node Date: Wed, 4 Apr 2018 11:14:32 +0800 Message-Id: <1522811675-12741-3-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1522811675-12741-1-git-send-email-leo.yan@linaro.org> References: <1522811675-12741-1-git-send-email-leo.yan@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kaihua Zhong Add stub clock node for hi3660 platform. Reviewed-by: Leo Yan Signed-off-by: Kaihua Zhong --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) -- 1.9.1 diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi index b9e7c91..3a3bcff 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi @@ -282,6 +282,13 @@ #mbox-cells = <3>; }; + stub_clock: stub_clock@e896b500 { + compatible = "hisilicon,hi3660-stub-clk"; + reg = <0x0 0xe896b500 0x0 0x0100>; + #clock-cells = <1>; + mboxes = <&mailbox 13 3 0>; + }; + dual_timer0: timer@fff14000 { compatible = "arm,sp804", "arm,primecell"; reg = <0x0 0xfff14000 0x0 0x1000>; From patchwork Wed Apr 4 03:14:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 132793 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp4549613ljb; Tue, 3 Apr 2018 20:15:26 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/HppAcIt4SNTszi/8msHgcWQb/kok8YmCbBbi7Z7MuFD6LOZt5PzdinBu71ZtG5lJPkhmI X-Received: by 10.98.65.220 with SMTP id g89mr12398648pfd.97.1522811726449; Tue, 03 Apr 2018 20:15:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522811726; cv=none; d=google.com; s=arc-20160816; b=PS8jvnm4Jqlj7oLaCSNVBnNUQDFLvHK8DUYiDbN6niJ7c8wV6BbC4qRlIw9OakcooI 2NcKT83gYc3H7Npt4vLr6O+3MJNQoT1cFkR2pcimjtAddr3MxSjmXATM8/YQzrI483Q0 mX1SYxWyb0tlkFgrFIq/2j79wHZeWfwYzCA5dJeLOU/fhfdo12CftHNiqt2/XP9nLKla ROEstOL1bwMabvLhRd4T6O5R675DPGErlvsGEIf6gatwmO46Nj1e9yTjNE6PZ+BxgceY Qv8YS2dYmjoaROGgyC2TPOOGvEVagkIpZiloLFO5i28J0bTMgZpNOrHzuKMvNTnHOWrJ OHTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=Yeln164XoonrBWydQX579pDIC/fchn5dOg8JEzg6Gdc=; b=l7L2/zf88dZuzSAAyvvmfT1s6MqACq99nUXTpUU8/3lw36X7RpcVl6Z5SJs2ENH/aO IVUCijz/dJeIMUjlY5y4fRTN1ib6SJws8Kkii23C890Y48hRLofO9ehjnW0UEBmTc66V 6024RopcCdp4g4MVl6P40pFNYgZxeyZ9aIVqTknifWKwcOox3IFmhpjarjrg/f7uqtsY u2reNZrG74CD83LpyQ0mf6R7O6GMLS3ABmUSMSCs+7iuOv1qZswqu7woMNv1e/RHKEZC VlVNPx1I8JNJGi53Pd9sm8ueqhSiVrCuib8vG4EmxOldXhvHxBGUc1rHOrZjv1VXc8m3 0LtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Cya0/Ksg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s5si382957pgv.493.2018.04.03.20.15.26; Tue, 03 Apr 2018 20:15:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Cya0/Ksg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753927AbeDDDPW (ORCPT + 29 others); Tue, 3 Apr 2018 23:15:22 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:53336 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753835AbeDDDPS (ORCPT ); Tue, 3 Apr 2018 23:15:18 -0400 Received: by mail-wm0-f66.google.com with SMTP id p9so37184350wmc.3 for ; Tue, 03 Apr 2018 20:15:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Yeln164XoonrBWydQX579pDIC/fchn5dOg8JEzg6Gdc=; b=Cya0/KsgWeQ7LItbbiSNcR3ELrqvynGe1sD606q/FQ+aAovPY8c1WnezIt40e/jJyo Rj/sKdsSiVTVI6yRfFbzp6DVKuv3XlB44ThsEMsJkhwDHzQ8OzwBZI0wwepR+laGofWs 8x2uIsjIr2Z9EAMZLib+Vvsb1DC63ugJJvGf8= 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=Yeln164XoonrBWydQX579pDIC/fchn5dOg8JEzg6Gdc=; b=eGVS1Lznu/rTD4NlMPDvrM41D6i8cLJzAcma+5U4xLgUgZCJakfIc+U16Vy5+CETrP CLLS37HaG+MKkFGZwuT9EWgKfWA1oBEP5IpiMIwuroMzchgdcvuYLXEz4UfzKm/wVVcX amhoaVKxN2vgBTmroGRHPTr8fe23W62Eg9iL/IWD8tBF8TuMkJJ1FWuyEsvEetfTANmJ dnC8Ajb7XzKx1jsSqaAXlP62FV7z2HnUGSLo7ZDl0u8o85zqifVAN77freF4vcoKZYi2 Rj10SBrUa29rwVNhl/pPWfIS2D5w5rqOfzGD3xNLWUAyRgmcaT8z7uGZKxDsBi809JCq z6CQ== X-Gm-Message-State: ALQs6tDASg/nO9YtgjPmutHdx3rMT5dxaoBNS8ruu6La7t2hg3d+HdBa xpC7x73eN1ox/MiJvg95l0YpPQ== X-Received: by 10.28.64.11 with SMTP id n11mr5229629wma.62.1522811717770; Tue, 03 Apr 2018 20:15:17 -0700 (PDT) Received: from localhost.localdomain (li622-172.members.linode.com. [212.71.249.172]) by smtp.gmail.com with ESMTPSA id r8sm2868611wmg.44.2018.04.03.20.15.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 03 Apr 2018 20:15:16 -0700 (PDT) From: Leo Yan To: Wei Xu , Arnd Bergmann , Stephen Boyd , Jassi Brar , Leo Yan , Kaihua Zhong , Tao Wang , Daniel Lezcano , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Guodong Xu , Haojian Zhuang Cc: Tao Wang Subject: [PATCH 4/5] dts: arm64: hi3660: Add thermal cooling management Date: Wed, 4 Apr 2018 11:14:34 +0800 Message-Id: <1522811675-12741-5-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1522811675-12741-1-git-send-email-leo.yan@linaro.org> References: <1522811675-12741-1-git-send-email-leo.yan@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tao Wang Add nodes and properties for thermal cooling management support. Signed-off-by: Tao Wang Signed-off-by: Leo Yan --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 44 +++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) -- 1.9.1 diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi index a39da09..e20edd9 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi @@ -7,6 +7,7 @@ #include #include +#include / { compatible = "hisilicon,hi3660"; @@ -64,6 +65,8 @@ capacity-dmips-mhz = <592>; clocks = <&stub_clock HI3660_CLK_STUB_CLUSTER0>; operating-points-v2 = <&cluster0_opp>; + #cooling-cells = <2>; + dynamic-power-coefficient = <110>; }; cpu1: cpu@1 { @@ -112,6 +115,8 @@ capacity-dmips-mhz = <1024>; clocks = <&stub_clock HI3660_CLK_STUB_CLUSTER1>; operating-points-v2 = <&cluster1_opp>; + #cooling-cells = <2>; + dynamic-power-coefficient = <550>; }; cpu5: cpu@101 { @@ -1073,5 +1078,44 @@ interrupts = ; #thermal-sensor-cells = <1>; }; + + thermal-zones { + + cls0: cls0 { + polling-delay = <1000>; + polling-delay-passive = <100>; + sustainable-power = <4500>; + + /* sensor ID */ + thermal-sensors = <&tsensor 1>; + + trips { + threshold: trip-point@0 { + temperature = <65000>; + hysteresis = <1000>; + type = "passive"; + }; + + target: trip-point@1 { + temperature = <75000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + + cooling-maps { + map0 { + trip = <&target>; + contribution = <1024>; + cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + map1 { + trip = <&target>; + contribution = <512>; + cooling-device = <&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + }; + }; }; }; From patchwork Wed Apr 4 03:14:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 132794 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp4549658ljb; Tue, 3 Apr 2018 20:15:31 -0700 (PDT) X-Google-Smtp-Source: AIpwx48lCCG/4PGVv+rzIXEwRrShLgiJKstqueuiKTnXwUqACXWDu0Co6F592Tg2NOW+OnfoHW3Y X-Received: by 10.101.67.68 with SMTP id k4mr10596854pgq.197.1522811731514; Tue, 03 Apr 2018 20:15:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522811731; cv=none; d=google.com; s=arc-20160816; b=JNb6pYk06nyzVDKxpWNpBxDDDRDob9FsOn98lKVIvcklTl3SffIcYPM0hRwgixmgmg 86kA1LhbtgMQxLHilbK4BNBzSymE1sfSlt561GHSVEp5i4ooWJJjDg+LRJnoeUThWfqC py6tUkjeRqI/I3sN3kIag45Dg9lUXceUREfkkzwt4RBcGh2xZFzoht+UIU3TpfeDAGhd 97NCdYUZNP355hZwGsFBqzpdDwZyAv8pern+GD3JKhcfSznYrWtP5kLq5zHYMmGsi7Ps HaGM+Dsg84OKCkVj4+SAf0MzMwEchKWagbeeDrZq9sFgrpWudtUA+mD6+bWDMw0TGLLQ ccjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:arc-authentication-results; bh=Oo/2+vCo3f6le6YnW4xvM8FFSiImvPVfdnRn4GhVkzU=; b=U4N0YwxqGp06dxc27ybZMsCoTGOZY7njEO9sdvbrKo39U8PiuF009R3rpOtVBchwTc frA/hnTsGe5bMXKskoO+vbY3KhfeQxRtTxSxHO+4jo4+4GvRjYQJ4V2RZ6RSc7il3JbL 0KO6ifLUf6DWREJ6GkT2i6oe6u0xuYotkSxIk1OkYDMBBrUFbPXLDKmLxoclj0b+sVPj 2DsZhX4q5a4Feccs7aDNITHhfGCRzzcRf+BjburC0o9R8XVzITgeX8eYCS7j8LeUItc8 clxUA1MmOHWr1F+mpstUQRwmTFU3MXrvHfTtreyM79gNbkHkUgbMd9xvD0AMYnR5aL66 k2bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UTnLu1rM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w22-v6si1979352plq.115.2018.04.03.20.15.31; Tue, 03 Apr 2018 20:15:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UTnLu1rM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753965AbeDDDP1 (ORCPT + 29 others); Tue, 3 Apr 2018 23:15:27 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:34827 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753928AbeDDDPY (ORCPT ); Tue, 3 Apr 2018 23:15:24 -0400 Received: by mail-wm0-f67.google.com with SMTP id r82so39206080wme.0 for ; Tue, 03 Apr 2018 20:15:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references; bh=Oo/2+vCo3f6le6YnW4xvM8FFSiImvPVfdnRn4GhVkzU=; b=UTnLu1rM6MJ9W5icCKjBCmCvxw0U121syl+wfqYWHUxHiTbVZg+uimtOAXYT+hPmUt dsUEIJcb4VpR+VMTQ4f+lv6PKi7CaPRA+w8bIGB8np9MgVfUHiRTIVqda50xcQQTuVeY arJwbFSviShkj8DH3/N8IhvJwOJ0Mgq95+9AI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=Oo/2+vCo3f6le6YnW4xvM8FFSiImvPVfdnRn4GhVkzU=; b=pEV5Y0RVLZIcj1KH4CST4ykydYf540ZBuJsaU6OWgnAp2qfWhE6DMLAeEpzJh2h+Wz HhkH6XnFpJ03LIAWtEDHw4DwqiqNXxAtPVm9UygfPIXx3UxYV88OgBjX68koEnM5MflR 1cqPEfr3ZQ3v8RkC2DSnZ2sOHbQZVRxrtCyGZ8VresLnweT5xTtYLxWKwWScTc10tkEK qg5aApBUPfD9LErl3PoUCg9I6wVH+fJBZIwsEnOVsGgyIbID4YtkeVoFj2zclTXSMAvO 4IR0SZyrpj5Nb9+M+vIdOSwjT4e/77W/ZLxsbwnSEdRO8SFi9o5mR6nnnQe2gP7elrrZ fOUw== X-Gm-Message-State: ALQs6tBYf19QqjuH0v3GxN5YB/jjqgLYEH/eBn355mcwmUI8pIv4/xG9 ynM6EED+pnKG5Zu4go4AsZt/FA== X-Received: by 10.28.16.18 with SMTP id 18mr5533523wmq.81.1522811722986; Tue, 03 Apr 2018 20:15:22 -0700 (PDT) Received: from localhost.localdomain (li622-172.members.linode.com. [212.71.249.172]) by smtp.gmail.com with ESMTPSA id r8sm2868611wmg.44.2018.04.03.20.15.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 03 Apr 2018 20:15:22 -0700 (PDT) From: Leo Yan To: Wei Xu , Arnd Bergmann , Stephen Boyd , Jassi Brar , Leo Yan , Kaihua Zhong , Tao Wang , Daniel Lezcano , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Guodong Xu , Haojian Zhuang Subject: [PATCH 5/5] hisi: Consolidate the Kconfigs for the CLOCK_STUB and the MAILBOX Date: Wed, 4 Apr 2018 11:14:35 +0800 Message-Id: <1522811675-12741-6-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1522811675-12741-1-git-send-email-leo.yan@linaro.org> References: <1522811675-12741-1-git-send-email-leo.yan@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Daniel Lezcano The current defconfig is inconsistent as it selects the mailbox and the clock for the hi6220 and the hi3660 without having their Kconfigs making sure the dependencies are correct. It ends up when selecting different versions for the kernel (for example when git bisecting) those options disappear and they don't get back, leading to unexpected behaviors. In our case, the cpufreq driver does no longer work because the clock fails to initialize due to the clock stub and the mailbox missing. In order to have the dependencies correctly set when defaulting, let's do the same as commit 3a49afb84ca074e ("clk: enable hi655x common clk automatically") where we select automatically the driver when the parent driver is selected. With sensible defaults in place, we can leave other choices for EXPERT. Signed-off-by: Daniel Lezcano --- arch/arm64/configs/defconfig | 1 - drivers/clk/hisilicon/Kconfig | 13 ++++++++----- drivers/mailbox/Kconfig | 12 ++++++++---- 3 files changed, 16 insertions(+), 10 deletions(-) -- 1.9.1 diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index ecf6137..1d9d8b9 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -549,7 +549,6 @@ CONFIG_HWSPINLOCK_QCOM=y CONFIG_ARM_MHU=y CONFIG_PLATFORM_MHU=y CONFIG_BCM2835_MBOX=y -CONFIG_HI6220_MBOX=y CONFIG_QCOM_APCS_IPC=y CONFIG_ROCKCHIP_IOMMU=y CONFIG_TEGRA_IOMMU_SMMU=y diff --git a/drivers/clk/hisilicon/Kconfig b/drivers/clk/hisilicon/Kconfig index 1bd4355..becdb1d 100644 --- a/drivers/clk/hisilicon/Kconfig +++ b/drivers/clk/hisilicon/Kconfig @@ -44,14 +44,17 @@ config RESET_HISI Build reset controller driver for HiSilicon device chipsets. config STUB_CLK_HI6220 - bool "Hi6220 Stub Clock Driver" - depends on COMMON_CLK_HI6220 && MAILBOX - default ARCH_HISI + bool "Hi6220 Stub Clock Driver" if EXPERT + depends on (COMMON_CLK_HI6220 || COMPILE_TEST) + depends on MAILBOX + default COMMON_CLK_HI6220 help Build the Hisilicon Hi6220 stub clock driver. config STUB_CLK_HI3660 - bool "Hi3660 Stub Clock Driver" - depends on COMMON_CLK_HI3660 && MAILBOX + bool "Hi3660 Stub Clock Driver" if EXPERT + depends on (COMMON_CLK_HI3660 || COMPILE_TEST) + depends on MAILBOX + default COMMON_CLK_HI3660 help Build the Hisilicon Hi3660 stub clock driver. diff --git a/drivers/mailbox/Kconfig b/drivers/mailbox/Kconfig index a2bb274..567cd02 100644 --- a/drivers/mailbox/Kconfig +++ b/drivers/mailbox/Kconfig @@ -109,16 +109,20 @@ config TI_MESSAGE_MANAGER platform has support for the hardware block. config HI3660_MBOX - tristate "Hi3660 Mailbox" - depends on ARCH_HISI && OF + tristate "Hi3660 Mailbox" if EXPERT + depends on (ARCH_HISI || COMPILE_TEST) + depends on OF + default ARCH_HISI help An implementation of the hi3660 mailbox. It is used to send message between application processors and other processors/MCU/DSP. Select Y here if you want to use Hi3660 mailbox controller. config HI6220_MBOX - tristate "Hi6220 Mailbox" - depends on ARCH_HISI + tristate "Hi6220 Mailbox" if EXPERT + depends on (ARCH_HISI || COMPILE_TEST) + depends on OF + default ARCH_HISI help An implementation of the hi6220 mailbox. It is used to send message between application processors and MCU. Say Y here if you want to