Received: by 10.223.185.116 with SMTP id b49csp3897722wrg; Tue, 6 Mar 2018 06:50:09 -0800 (PST) X-Google-Smtp-Source: AG47ELtQ83/PfwfE216s2m/FXQxX0e1OLgCkdFhpZj+h9TS0dUmlCIGmd1oBEJ7YNVpbNhF7fy54 X-Received: by 2002:a17:902:7445:: with SMTP id e5-v6mr16918692plt.204.1520347809320; Tue, 06 Mar 2018 06:50:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520347809; cv=none; d=google.com; s=arc-20160816; b=nUWYdmg2crS5O7X9Nu1EV0dlIm96aoq4KKMU7+Q+6j/x0GeQgGy11YlPZaVlmMMP/n x9eKVUaIN5AzO8Fw5mzyjMJQzDOFRBThbjG8cB5gD9GyCGyVHaCaK1YAEDyrOTHREdT1 kpWee+G+ZcJe+wmXmoq/JGM2fdAxrQ0tsqegqZl8rsBDS93poDqZA+nQVw+71qoc07Rb pgcQRkotQyX2e2IY7yuBDLsqwj9PgiGOdIjA5n31MtPfv/8nHLIroL0eYkUUWAFTw0Ny gOax6Tz2P3tIq/P1wDW0A5dk5Xo+nH3gaB7MOdhnVl+bW93oI9wXuC+v7+GfCKJk+xXx Cx+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=qV0oAVjOHwObUoJFMopgFa/Jg+Tf+4xXctzIXrQYs10=; b=FDaJ0pIOWNIRV723wQ10wXg2uE6n6CiIia6Mse+qrYJ1nHKV+mgxq5q9HRcDrbl5Nm Vq19+5jzWV9CgMLchcPNIOXFN2BSdUIa+SJKkfmsaySRQ1Ss9Z6rggp12Nf15LH2vkJf 1GxxtbaQ/nr7mUBmtJYRY0lh/tdoiDoTLL2SWYgW+OYNe1zHPDOAugB0tRJGfMBJOX6S L0aew332AMypnHqUYXuNSv5x0c/p/EU0f5SIv43qz2DD8APjICTO0Le5QE7XE6sgm0lO 2En38nPjkiW3E1Tn/v3zaZRr5qugb2KZYWmM7sLxkfnTq7j7aiu4NwLX+6ktCiYvs3WQ nuoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=PX0baHzp; 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=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j8si9914084pgq.293.2018.03.06.06.49.54; Tue, 06 Mar 2018 06:50:09 -0800 (PST) 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=@samsung.com header.s=mail20170921 header.b=PX0baHzp; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933100AbeCFOof (ORCPT + 99 others); Tue, 6 Mar 2018 09:44:35 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:38558 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932865AbeCFOoa (ORCPT ); Tue, 6 Mar 2018 09:44:30 -0500 Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20180306144427epoutp03f9ae58b82ef14b841c42bad446360648~ZW-eLlHWz1736017360epoutp03Z; Tue, 6 Mar 2018 14:44:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20180306144427epoutp03f9ae58b82ef14b841c42bad446360648~ZW-eLlHWz1736017360epoutp03Z DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1520347468; bh=qV0oAVjOHwObUoJFMopgFa/Jg+Tf+4xXctzIXrQYs10=; h=From:To:Cc:Subject:Date:References:From; b=PX0baHzpz6tKZJAxs6T/BQXUNrDwueMEHlup4g5Hinp6QCkTKpf4lkVKwEo8t/g28 49TLjyMWPFLhg3n1w/LSKSMYsrq6NphoTJbZJG8hQhy/gHVYXG3TZlJ6yskD+RisGF oSX0d0lUConjGBeOHwqX8MgrCpIoxY6LYgPr6HWE= Received: from epsmges1p1.samsung.com (unknown [182.195.42.53]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20180306144427epcas1p4b8f2b0346d8a50b91c36952de217b1f1~ZW-eA61z80742807428epcas1p4G; Tue, 6 Mar 2018 14:44:27 +0000 (GMT) Received: from epcas1p1.samsung.com ( [182.195.41.45]) by epsmges1p1.samsung.com (Symantec Messaging Gateway) with SMTP id 85.5B.04145.B49AE9A5; Tue, 6 Mar 2018 23:44:27 +0900 (KST) Received: from epsmgms2p1new.samsung.com (unknown [182.195.42.142]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20180306144427epcas1p3bd260e382c61ab5176a50aa95084b542~ZW-de2ZrG1174811748epcas1p3S; Tue, 6 Mar 2018 14:44:27 +0000 (GMT) X-AuditID: b6c32a35-891ff70000001031-b1-5a9ea94b85f2 Received: from epmmp1.local.host ( [203.254.227.16]) by epsmgms2p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 34.4A.03826.B49AE9A5; Tue, 6 Mar 2018 23:44:27 +0900 (KST) Received: from AMDC3058.DIGITAL.local ([106.120.53.102]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P56000X0BLSFM10@mmp1.samsung.com>; Tue, 06 Mar 2018 23:44:27 +0900 (KST) From: Bartlomiej Zolnierkiewicz To: Zhang Rui , Eduardo Valentin , Krzysztof Kozlowski Cc: Kukjin Kim , Rob Herring , Mark Rutland , Russell King , linux-samsung-soc@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, b.zolnierkie@samsung.com Subject: [PATCH 00/12] thermal: exynos: sanitize DeviceTree support Date: Tue, 06 Mar 2018 15:43:43 +0100 Message-id: <1520347435-22970-1-git-send-email-b.zolnierkie@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrMIsWRmVeSWpSXmKPExsWy7bCmrq73ynlRBhd7tCw2zljPajH/yDkg ceUaq0X/49fMFufPb2C32PQYyL28aw6bxefeI4wWM87vY7I4NHUvo8XS6xeZLFr3HmG3ePKw j82B12PNvDWMHpevXWT22DnrLrvH4j0vmTw2repk89i8pN6jb8sqRo/Pm+QCOKK4bFJSczLL Uov07RK4Mq6/ucZc0CNdMbX3NWMD4zfRLkZODgkBE4m7006wdjFycQgJ7GCUWLTyGBOE851R 4srxR+wwVQ1d75khErsZJdpnPGcCSQgJ/GKUuPlHHsRmE7CSmNi+ihHEFhEokZi2qpcRpIFZ 4CyTxI7t71hAEsICzhJHV84Cs1kEVCVmb/4I1sAr4CHR/OALK8Q2OYmTxyaD3SQhsIFN4sKh hYwQCReJ5z96oWxhiVfHtwCdxwFkS0tcOmoLUd/MKPFtxx5miJoJjBJ71gtB2NYSh49fBFvA LMAn8e5rDytEL69ERxtUiYdE1513bBC2o8SyDy2MEE/GSmz8f4lpAqPkAkaGVYxiqQXFuemp xYYFhnrFibnFpXnpesn5uZsYwVGtZbqDcco5n0OMAhyMSjy8GzzmRgmxJpYVV+YeYpTgYFYS 4Y3QnxclxJuSWFmVWpQfX1Sak1p8iFGag0VJnDcgwCVKSCA9sSQ1OzW1ILUIJsvEwSnVwHhc YouR44PAhH3VEhwXL5s3CJz7lRYZZHJgYsKV78bzNDTnFP53i+kuL8mS3cUq2RK58GAqa2L9 jFlLDLtYbS4I3XfxWrp/TqMNx8oTXTbpFR6iUx1rMisXf5f4HKhsvTgp1SspdG1XVeDrirbb fusP7YlKqtgateCuUFOoVeFy9wpTD/ZqJZbijERDLeai4kQARMiNW+YCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrALMWRmVeSWpSXmKPExsVy+t9jAV3vlfOiDF7+47LYOGM9q8X8I+eA xJVrrBb9j18zW5w/v4HdYtNjIPfyrjlsFp97jzBazDi/j8ni0NS9jBZLr19ksmjde4Td4snD PjYHXo8189Ywely+dpHZY+esu+wei/e8ZPLYtKqTzWPzknqPvi2rGD0+b5IL4IjisklJzcks Sy3St0vgyrj+5hpzQY90xdTe14wNjN9Euxg5OSQETCQaut4zdzFycQgJ7GSUuLXvIBuE84tR 4tf2c8wgVWwCVhIT21cxgtgiAiUSndNeg8WZBc4ySRz8zwFiCws4SxxdOYsFxGYRUJWYvfkj WD2vgIdE84MvrBDb5CROHpvMOoGRawEjwypGydSC4tz03GKjAsO81HK94sTc4tK8dL3k/NxN jMBw23ZYq28H4/0l8YcYBTgYlXh4N3jMjRJiTSwrrsw9xCjBwawkwhuhPy9KiDclsbIqtSg/ vqg0J7X4EKM0B4uSOO/tvGORQgLpiSWp2ampBalFMFkmDk6pBkbhVaw8d5fpzv65LfHA09+/ mw++n3yBecHCZazJOen77wVN/L9UQmS25kOx+dKRU3R22tk49Ot99/K/ecL974XVsnFBQu91 tyv+jPqssSVfuXim3yLbFpGPNVzsvI7V38I1XJrbA87vFVh9aEOVY/mkR4xpK6afTshs9XMP WbXzzWGRh6wRjixKLMUZiYZazEXFiQAb4IWoMwIAAA== X-CMS-MailID: 20180306144427epcas1p3bd260e382c61ab5176a50aa95084b542 X-Msg-Generator: CA CMS-TYPE: 101P X-CMS-RootMailID: 20180306144427epcas1p3bd260e382c61ab5176a50aa95084b542 X-RootMTR: 20180306144427epcas1p3bd260e382c61ab5176a50aa95084b542 References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Values passed through DT properties specific to Exynos thermal driver ("samsung,*") are SoC (not platform) specific so just define them in struct exynos_tmu_data instance (or just use constants where values are identical for all SoCs) and remove "samsung," DT properties altogether. The patchset should not cause any functionality changes. This means that unless there are some bugs in the patches itself there should be no behavior changes for the driver (this also includes lack of changes in the way hardware is accessed by the driver). Tested on Exynos5422 based Odroid-XU3 Lite board. Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics Bartlomiej Zolnierkiewicz (12): thermal: exynos: remove unused type field from struct exynos_tmu_platform_data thermal: exynos: remove parsing of samsung,tmu_default_temp_offset property thermal: exynos: remove parsing of samsung,tmu_[first,second]_point_trim properties thermal: exynos: remove parsing of samsung,tmu_noise_cancel_mode property thermal: exynos: remove parsing of samsung,tmu[_min,_max]_efuse_value properties thermal: exynos: remove parsing of samsung,tmu_reference_voltage property thermal: exynos: remove parsing of samsung,tmu_gain property thermal: exynos: remove parsing of samsung,tmu_cal_type property thermal: exynos: remove separate exynos_tmu.h header file ARM: dts: remove no longer needed samsung thermal properties dt-bindings: thermal: remove no longer needed samsung thermal properties thermal: exynos: remove separate thermal_exynos.h header file .../devicetree/bindings/thermal/exynos-thermal.txt | 23 +-- arch/arm/boot/dts/exynos3250.dtsi | 2 +- arch/arm/boot/dts/exynos4.dtsi | 2 +- arch/arm/boot/dts/exynos4412-tmu-sensor-conf.dtsi | 20 --- arch/arm/boot/dts/exynos5250.dtsi | 2 +- arch/arm/boot/dts/exynos5410.dtsi | 8 +- arch/arm/boot/dts/exynos5420-tmu-sensor-conf.dtsi | 21 --- arch/arm/boot/dts/exynos5420.dtsi | 10 +- arch/arm/boot/dts/exynos5440-tmu-sensor-conf.dtsi | 20 --- arch/arm/boot/dts/exynos5440.dtsi | 6 +- .../dts/exynos/exynos5433-tmu-g3d-sensor-conf.dtsi | 20 --- .../dts/exynos/exynos5433-tmu-sensor-conf.dtsi | 19 --- arch/arm64/boot/dts/exynos/exynos5433.dtsi | 10 +- .../boot/dts/exynos/exynos7-tmu-sensor-conf.dtsi | 21 --- arch/arm64/boot/dts/exynos/exynos7.dtsi | 2 +- drivers/thermal/samsung/exynos_tmu.c | 181 +++++++++++---------- drivers/thermal/samsung/exynos_tmu.h | 75 --------- include/dt-bindings/thermal/thermal_exynos.h | 28 ---- 18 files changed, 124 insertions(+), 346 deletions(-) delete mode 100644 arch/arm/boot/dts/exynos4412-tmu-sensor-conf.dtsi delete mode 100644 arch/arm/boot/dts/exynos5420-tmu-sensor-conf.dtsi delete mode 100644 arch/arm/boot/dts/exynos5440-tmu-sensor-conf.dtsi delete mode 100644 arch/arm64/boot/dts/exynos/exynos5433-tmu-g3d-sensor-conf.dtsi delete mode 100644 arch/arm64/boot/dts/exynos/exynos5433-tmu-sensor-conf.dtsi delete mode 100644 arch/arm64/boot/dts/exynos/exynos7-tmu-sensor-conf.dtsi delete mode 100644 drivers/thermal/samsung/exynos_tmu.h delete mode 100644 include/dt-bindings/thermal/thermal_exynos.h -- 1.9.1