From patchwork Mon Jan 10 08:48:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Liu X-Patchwork-Id: 12708461 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DA60CC433F5 for ; Mon, 10 Jan 2022 09:07:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :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=gBjXOFRf+SBKwt8yca8EdbFsbFqGb2re4ttwqj5rk8Q=; b=yFFK2KV2sYJIaM XDjBYxxI+3f8TaTaYrLW7a+Bjre5T6QcFOjhkzbA3v+PkgaD5uJ0MTkdutYsZa+6bOlndzloEUjcD jMvRSwZtziiG96EPUSsUtDN+U2yMVtQ967jZYTTTAWdMoXoYcr9wjDTQHWLoc8pzck4clMUZ1TBPI o3dTfTVnzolu/FzGSZib4oa3bMKrjRNI1rZSFWOLndwdr+8a6vc9MJJugnbqdZbaSwSGYvySz8piJ IxohDjT0Qb7SL5Cojnz0Ie6yKmwETN6G1rhIWcVT5S3tb1GbX7/j4x++3yGe6KbtDCCIz7gbKmV36 1LBPKQoqgQow+7h+VTRg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n6qcS-00AAO9-Po; Mon, 10 Jan 2022 09:05:37 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n6qOG-00A2sk-GK; Mon, 10 Jan 2022 08:50:57 +0000 X-UUID: d11f530e8726441ea05ce334d7e46d2b-20220110 X-UUID: d11f530e8726441ea05ce334d7e46d2b-20220110 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 327060513; Mon, 10 Jan 2022 01:50:53 -0700 Received: from mtkmbs10n1.mediatek.inc (172.21.101.34) by MTKMBS62DR.mediatek.inc (172.29.94.18) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 10 Jan 2022 00:48:45 -0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.15; Mon, 10 Jan 2022 16:48:44 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 10 Jan 2022 16:48:43 +0800 From: Guodong Liu To: Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Matthias Brugger , Zhiyong Tao CC: , , , , , , Guodong Liu Subject: [PATCH v1 1/2] dt-bindings: iio: adc: Add compatible for Mediatek MT8186 Date: Mon, 10 Jan 2022 16:48:40 +0800 Message-ID: <20220110084841.575-1-guodong.liu@mediatek.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220110_005056_599163_C0429EFA X-CRM114-Status: UNSURE ( 8.46 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This commit adds dt-binding documentation of auxadc for Mediatek MT8186 SoC Platform. Signed-off-by: Guodong Liu Acked-by: AngeloGioacchino Del Regno Acked-by: Rob Herring --- .../devicetree/bindings/iio/adc/mediatek,mt2701-auxadc.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/iio/adc/mediatek,mt2701-auxadc.yaml b/Documentation/devicetree/bindings/iio/adc/mediatek,mt2701-auxadc.yaml index b939f9652e3a..65581ad4b816 100644 --- a/Documentation/devicetree/bindings/iio/adc/mediatek,mt2701-auxadc.yaml +++ b/Documentation/devicetree/bindings/iio/adc/mediatek,mt2701-auxadc.yaml @@ -34,6 +34,7 @@ properties: - items: - enum: - mediatek,mt8183-auxadc + - mediatek,mt8186-auxadc - mediatek,mt8195-auxadc - mediatek,mt8516-auxadc - const: mediatek,mt8173-auxadc From patchwork Mon Jan 10 08:48:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Liu X-Patchwork-Id: 12708488 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6944CC433EF for ; Mon, 10 Jan 2022 09:16:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=WT24PoNo+KlYPA9v+H0rQH4qSWF4iBavsB4durI0tpY=; b=4bAaMkJjbDVrgL udXyddoX7buWozt+nctYxvx3ZcrrisEvtXfrdlY9+pXLRMtzW4DEBf+NIhWKy1uxtcSmenLAP1kV/ DZC2FQsAE/C8eK0YGkG3YnMsABUVi3XzOhvA6BBp6PKgGL+PIyxgB3UgrDdXhmHwDtrsSFMTfuxAy Q9YTuhO0OBUBk+CEwv2l9gTnvtUmanCF1UDSeKQ08To+7ncafMHBe+w8RNxnERWexQYg9DNq3ZH4G BitkqJlz+88TjUQmC9SpVpHuMAY7oFRvX2+aFeLlpYawX8hmOskCrQe7p7zLbY9Ri7xugw3F+UJUA YjPuoloXp5WDxwrA15dQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n6qlm-00AFXK-0k; Mon, 10 Jan 2022 09:15:14 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n6qU2-00A67u-EN; Mon, 10 Jan 2022 08:56:55 +0000 X-UUID: 1109052424cb4336a088101024e75d42-20220110 X-UUID: 1109052424cb4336a088101024e75d42-20220110 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 437060197; Mon, 10 Jan 2022 01:56:52 -0700 Received: from MTKMBS07N2.mediatek.inc (172.21.101.141) by MTKMBS62N2.mediatek.inc (172.29.193.42) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 10 Jan 2022 00:48:47 -0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 10 Jan 2022 16:48:45 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 10 Jan 2022 16:48:45 +0800 From: Guodong Liu To: Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Matthias Brugger , Zhiyong Tao CC: , , , , , , Guodong Liu Subject: [PATCH v1 2/2] iio: adc: mt8186: Add compatible node for mt8186 Date: Mon, 10 Jan 2022 16:48:41 +0800 Message-ID: <20220110084841.575-2-guodong.liu@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220110084841.575-1-guodong.liu@mediatek.com> References: <20220110084841.575-1-guodong.liu@mediatek.com> MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220110_005654_517569_95C442B8 X-CRM114-Status: GOOD ( 10.82 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This commit adds mt8186 compatible node. Signed-off-by: Guodong Liu Acked-by: AngeloGioacchino Del Regno --- drivers/iio/adc/mt6577_auxadc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/iio/adc/mt6577_auxadc.c b/drivers/iio/adc/mt6577_auxadc.c index d4fccd52ef08..fb08d761589a 100644 --- a/drivers/iio/adc/mt6577_auxadc.c +++ b/drivers/iio/adc/mt6577_auxadc.c @@ -46,6 +46,11 @@ struct mt6577_auxadc_device { const struct mtk_auxadc_compatible *dev_comp; }; +static const struct mtk_auxadc_compatible mt8186_compat = { + .sample_data_cali = false, + .check_global_idle = false, +}; + static const struct mtk_auxadc_compatible mt8173_compat = { .sample_data_cali = false, .check_global_idle = true, @@ -334,6 +339,7 @@ static const struct of_device_id mt6577_auxadc_of_match[] = { { .compatible = "mediatek,mt2712-auxadc", .data = &mt8173_compat}, { .compatible = "mediatek,mt7622-auxadc", .data = &mt8173_compat}, { .compatible = "mediatek,mt8173-auxadc", .data = &mt8173_compat}, + { .compatible = "mediatek,mt8186-auxadc", .data = &mt8186_compat}, { .compatible = "mediatek,mt6765-auxadc", .data = &mt6765_compat}, { } };