Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754503AbbKYFYA (ORCPT ); Wed, 25 Nov 2015 00:24:00 -0500 Received: from relmlor2.renesas.com ([210.160.252.172]:24279 "EHLO relmlie1.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751802AbbKYFXz (ORCPT ); Wed, 25 Nov 2015 00:23:55 -0500 X-IronPort-AV: E=Sophos;i="5.20,341,1444662000"; d="scan'";a="200487878" Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Message-ID: <87bnai8xnx.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Eduardo Valentin CC: Zhang Rui , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , , , , Ryusuke Sakato , "osd2@lm.renesas.com" , Subject: Re: [PATCH] thermal: rcar: enable to set tripN-temp via DT In-Reply-To: <20151125034320.GA14278@localhost.localdomain> References: <564D14A1.70806@renesas.com> <87h9kiilbe.wl%kuninori.morimoto.gx@renesas.com> <56545CE5.3040502@renesas.com> <87mvu37wv2.wl%kuninori.morimoto.gx@renesas.com> <5655059C.40509@renesas.com> <87io4q97s7.wl%kuninori.morimoto.gx@renesas.com> <20151125034320.GA14278@localhost.localdomain> User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset="US-ASCII" Date: Wed, 25 Nov 2015 05:23:50 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: TY1PR01CA0016.jpnprd01.prod.outlook.com (25.161.131.154) To HKXPR06MB1013.apcprd06.prod.outlook.com (25.161.137.28) X-Microsoft-Exchange-Diagnostics: 1;HKXPR06MB1013;2:qlxRg9YOeLahduRdsNWTFKO7ZQ2z1aTDePnBuAk9KICtqCk3cZbNO6Qt0S4o5PqYj5Rlwoo3ejNiIZHZqk6+gVVxRtNmU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HaUQreyXDbb9FuV71lBQth2SOub7JfRvOxDeLnEebZPdrBxGHjg1FGxWwJ4i59lFyelt99W+dPX1Qldzyan/Y7gtPGkXwG5vjHqhMEjeRMXb4o31q66w4NYm2qPLZuMzkiQVNhQocdpHI1lZtS3XRZ03c1RUGGjCQjQ0qgkZPMi0yhbuYXaY2SJaJWytsEhFkX5zrYJGIv/hCiagIVJKLMRk07H5wO/hmUIPqOdaSGaWWvxjbOchpha+Ys645HE/ag3oXgMqpijrS0X4kqLDxk137b4kPBQrpEYY7j9qvsHzyp9IHZRW+I17+kERVl7OaSr1IKfr/Xm72/kAeFUD3hkj+sSU7APyxnQL125FKKmd0qUsrRQE582LnoUdkfSJkrun2QBhM/DRzjSYuQaNB9ArCw6Gz132mQCXtayFhkU6o2XGLj7H3PtqaWaI X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(85106069007906); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(8121501046)(5005006)(520078)(10201501046)(3002001);SRVR:HKXPR06MB1013;BCL:0;PCL:0;RULEID:;SRVR:HKXPR06MB1013; X-Forefront-PRVS: 0771670921 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6009001)(189002)(199003)(23726003)(42186005)(101416001)(105586002)(92566002)(76176999)(33646002)(5004730100002)(86362001)(81156007)(53416004)(93886004)(586003)(5008740100001)(50466002)(36756003)(87976001)(106356001)(40100003)(5007970100001)(4001350100001)(110136002)(189998001)(2950100001)(19580395003)(66066001)(54356999)(83506001)(5001920100001)(97736004)(50986999)(47776003)(46406003)(1411001)(122386002)(6116002)(69596002)(5001960100002)(19580405001)(3846002)(77096005);DIR:OUT;SFP:1102;SCL:1;SRVR:HKXPR06MB1013;H:morimoto-PC.renesas.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;HKXPR06MB1013;23:MQUY7E/8JItWDaDG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h38CMB/zHnfWlYwJqkMfjzdYSsg9iHmSvdQUoKUhGGG+kceK29TttjHJ?= =?us-ascii?Q?J1Y+jcZS6scncw0DOhwsrHI5jL66ulGIXWN2ge1yhhYnfjBQYiTgP6bogzhe?= =?us-ascii?Q?l5o6a854241YhhsTL3814vWUkomNBYxOLC8MF7MJnqcvsRnXmhoXMIkRRkaa?= =?us-ascii?Q?PNSRKu1Ua/3iNp57NCN3aI/Fmx+54qTfrS+d/L/ATnsfoWQEztcOcTaWGKWg?= =?us-ascii?Q?rjh3upl3Gt5Hr2073xhIkHuw8UFbi4rF3UaHKAHJrD0ZmgazelFBA=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1;HKXPR06MB1013;5:KAa1jwhRjFgBmdydSgoJjzniIg9Fl2BlzjIL2KP1A+wWjpkpwYvPanrmk7vOuofOPgd7IMqb3FanOfjZ2O3lYeWaSWbG156ZqT6admCMaJWIVj1/GAfOLpV1dmgX15IsjQ+0BYxp2p7eEmwbg11XRA==;24:xP1WNzv/MIo76H2J2FTQGmO1s1CP8Yt0nC/IofaAQepsRHfWnyNWCYAUl6Q8okSvze50KrWMEdbwkK19hkWkvmEbaqrE8LTQrrcP961GGdc=;20:qaY3BsqDF0P+yFJmsjZue/VQPzAFZPM9015BLdvwOnQWlwQvGnqKPSqohQpNF9SNIFCaOr9zP7wawshsbMu5/lkpj8R2RNnvGFSo/bYfemoePyq5zhzh9CEhc3nwVUKnOh3Nl9+G6HZYW+RPhcME+n9V3NrRZGYW9Gd34cBVm3E= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Nov 2015 05:23:50.3444 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HKXPR06MB1013 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1951 Lines: 47 Hi Eduardo Thank you for your feedback > > From: Kuninori Morimoto > > > > Current rcar thermal driver is using 90 degrees as trip temp, but it > > should be based on each SoC / platform. > > This patch enables to set trip temp via DT. (It uses db8500-thermal > > style for it) > > It will use 90 degrees as default trip temp if DT doesn't have it. > > > > Signed-off-by: Kuninori Morimoto > > --- > > .../devicetree/bindings/thermal/rcar-thermal.txt | 2 ++ > > drivers/thermal/rcar_thermal.c | 34 ++++++++++++++++++++-- > > 2 files changed, 33 insertions(+), 3 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/thermal/rcar-thermal.txt b/Documentation/devicetree/bindings/thermal/rcar-thermal.txt > > index 332e625..6c57f7e 100644 > > --- a/Documentation/devicetree/bindings/thermal/rcar-thermal.txt > > +++ b/Documentation/devicetree/bindings/thermal/rcar-thermal.txt > > @@ -18,6 +18,8 @@ Required properties: > > Option properties: > > > > - interrupts : use interrupt > > +- tripN-temp : temperature of trip point N. it will use 90000 as default > > + if DT doesn't have tripN-temp > > First of all, you are creating an entry with is specific to your driver. > That requires it to use proper prefixing. > > Besides, your property is already covered by of-thermal. Please convert > your driver to use of-thermal, this way it will give you the flexibility > to configure thermal data in DT. I see, but we need to keep compatibility for non-DT SoC. (This driver is used from both DT, non-DT SoC) Then, I noticed we can use .set_trip_temp, and it is very enough for us. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/