From patchwork Mon Oct 12 20:52:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 11834097 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8C63D139F for ; Mon, 12 Oct 2020 20:52:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5698B206D9 for ; Mon, 12 Oct 2020 20:52:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="E8mDs5mZ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729763AbgJLUwb (ORCPT ); Mon, 12 Oct 2020 16:52:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726510AbgJLUwb (ORCPT ); Mon, 12 Oct 2020 16:52:31 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BB96C0613D0 for ; Mon, 12 Oct 2020 13:52:30 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id f21so18428641wml.3 for ; Mon, 12 Oct 2020 13:52:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=vk78HTb3g3GFhHoMLy63wUXR7v6SB8pzbu+zEcFuwxY=; b=E8mDs5mZp6J/0zwJfLR9Iqijw+qydVU4CBbFxcWFphOnguKNGIifKZ3bv790L3nxln aM49OdMwlIaWJdQSkfV2yvxvyx80C2SZgMiuuFSjBMDCsNUROZqeUQsAYqy6ZqthOmzZ cX3TZ/jpvCdIf88T9nxJUCvMnI124IOasK/GqTiQJZvxI+ASpocyYjQ3Oa07SKRjLa6e uF5xOHLZyc0v0iPjjZTAUxcW2arRHJYZdmR5xvkh1QWELCQfs1Q2KRucXjOhQ7PYmD3f Yi6708M4QuBPRRHvLoHbW5WWf5xfhsqLAglz1+4VdggCSxteJS3b43fNK04yKxmovC9C OBBw== 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:mime-version :content-transfer-encoding; bh=vk78HTb3g3GFhHoMLy63wUXR7v6SB8pzbu+zEcFuwxY=; b=cMwgjWzd60KEw3N8CaBhTtIU/kPstkI8YILBLkh5e8h1OtgvBMbKUnzlfMw3y1NZzo hPT4w0XDBqkfH83L0xgVEL7gZTHWYnD/E6/DJIyeogO8opNxTzCOcZtnEeMoQpj+/wNh gXMigddjYaWPAf7UukdL0FVssR6jzpiBAXeTygof2Du5yfBziWzRCw8N3WMS17IOIXE3 gIisGVv2MhCgwNYqxaoWipsWz+HvIJg5eLQYFyuRUMHlgWU8H0AE0kqN2Xfhp1jkcU9q qyPp8Xs5ADAxWyskmZ4Ig3WOkC+OSCG0iT3tENGyVIPNNf4iatw+jCocc/7APa/XQaV4 uvUA== X-Gm-Message-State: AOAM530CoGwqxG7+ehai7SXREm2gXEd7WWkwWDOwhATQ2hLGI2Zpk+OJ T0mpx2AkGgAei5vDFz1KjR0h2w== X-Google-Smtp-Source: ABdhPJxH+i4NyaMXqUdqcOmfZTTVfpWKrHSHAA8zu7613ddayil08vXreAcAxfwelDI1arJ3XN/1Iw== X-Received: by 2002:a1c:2c0a:: with SMTP id s10mr12394276wms.103.1602535949000; Mon, 12 Oct 2020 13:52:29 -0700 (PDT) Received: from localhost.localdomain (170.175.185.81.rev.sfr.net. [81.185.175.170]) by smtp.gmail.com with ESMTPSA id o184sm3623936wmo.37.2020.10.12.13.52.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Oct 2020 13:52:28 -0700 (PDT) From: Fabien Parent To: linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-iio@vger.kernel.org Cc: matthias.bgg@gmail.com, robh+dt@kernel.org, pmeerw@pmeerw.net, lars@metafoo.de, knaack.h@gmx.de, jic23@kernel.org, Fabien Parent Subject: [PATCH 1/2] dt-bindings: iio: adc: auxadc: add doc for MT8516 SoC Date: Mon, 12 Oct 2020 22:52:17 +0200 Message-Id: <20201012205218.3010868-1-fparent@baylibre.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org Add documentation for the auxadc binding for MT8516 SoC. Signed-off-by: Fabien Parent Reviewed-by: Matthias Brugger Acked-by: Rob Herring --- Documentation/devicetree/bindings/iio/adc/mt6577_auxadc.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/iio/adc/mt6577_auxadc.txt b/Documentation/devicetree/bindings/iio/adc/mt6577_auxadc.txt index 78c06e05c8e5..1b7ff9e5615a 100644 --- a/Documentation/devicetree/bindings/iio/adc/mt6577_auxadc.txt +++ b/Documentation/devicetree/bindings/iio/adc/mt6577_auxadc.txt @@ -17,6 +17,7 @@ Required properties: - "mediatek,mt7622-auxadc": For MT7622 family of SoCs - "mediatek,mt8173-auxadc": For MT8173 family of SoCs - "mediatek,mt8183-auxadc", "mediatek,mt8173-auxadc": For MT8183 family of SoCs + - "mediatek,mt8516-auxadc", "mediatek,mt8173-auxadc": For MT8516 family of SoCs - reg: Address range of the AUXADC unit. - clocks: Should contain a clock specifier for each entry in clock-names - clock-names: Should contain "main". From patchwork Mon Oct 12 20:52:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 11834099 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2EF08697 for ; Mon, 12 Oct 2020 20:52:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 11B39208D5 for ; Mon, 12 Oct 2020 20:52:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="17HX+CBl" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731394AbgJLUwe (ORCPT ); Mon, 12 Oct 2020 16:52:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726510AbgJLUwe (ORCPT ); Mon, 12 Oct 2020 16:52:34 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21965C0613D1 for ; Mon, 12 Oct 2020 13:52:34 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id i1so14752125wro.1 for ; Mon, 12 Oct 2020 13:52:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=e+bkzKiAfFdHWo2iBUMur2DQuOMcGF3zo5qvmeIt97g=; b=17HX+CBl3cCBM8alB53y26WgGSoL4yOdOTcjv5H317ipfio7nzX8ecLju5ILpEI5EN VsxVuJSujCOxvw7fq0mDp/2Dgv52ZJTIIQb19saH7DtAo5qpg3tChqg9LVDrjN2Weyvy lAd50rifN+a/W7r/4Or3BhSU4izPchvEdBWItIk5lzLatuRPePwdT1UpdXlSlFQAMnsN YXoq5oXhCvHs4VFJocaCRnFiy6SGJzbou78OKfH604JXyekoYmWvAHnuO9yvrdBNKFN9 rNusTFsKDIRfhZ7KO6P3kiaxVrY5Bo9uaHmuqGTFujq0MzdKrlnAGDU4fENxWa6QHSi1 ZD4A== 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:mime-version:content-transfer-encoding; bh=e+bkzKiAfFdHWo2iBUMur2DQuOMcGF3zo5qvmeIt97g=; b=fkYI4ZoOAPZfsFV7fKpB2dH6GOn0pmX2nHC307wMKlXg2Jc8BfxXC/5jssA6p45TGo QPM4wYyAareIr3RcYIPu1/CAqZvf06D5fA8rME93nj+QkF0pk1mSvcfZ2j9vjAJeQHgH K8FislFGJ651MejHo3GMbJH0qxGnH+IaOgfjr5KASUIQDDAgq3Ov/0S2gDAFkmZvOo7X UdtPvNhwLWIVoakwFXbMhzW2SFElcQjTlLyLQQB17plmTuz88sze0bYeJBbK3utXrc7n r4AT8zZnZZnFAl0varXj26C/3rSnSJyaxM2jSpTWP7qPh0FtZGxlnV4AexyveFzhX4kt /IjQ== X-Gm-Message-State: AOAM532XKTkQ8UhCFh71KtTOGjNlQW1xhZc9IUxc96S3/Y6sz2VV7jwJ nqoiOlzIsvR0LUfr9i6NnbP9Bw== X-Google-Smtp-Source: ABdhPJxM+7DnCHKyvrcJBWveKSAlmwc8SbAavQH79tcH238Z72uusz7nKP34YEXTbOsLpmRNUG4YmQ== X-Received: by 2002:adf:df07:: with SMTP id y7mr34659457wrl.347.1602535952752; Mon, 12 Oct 2020 13:52:32 -0700 (PDT) Received: from localhost.localdomain (170.175.185.81.rev.sfr.net. [81.185.175.170]) by smtp.gmail.com with ESMTPSA id o184sm3623936wmo.37.2020.10.12.13.52.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Oct 2020 13:52:31 -0700 (PDT) From: Fabien Parent To: linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-iio@vger.kernel.org Cc: matthias.bgg@gmail.com, robh+dt@kernel.org, pmeerw@pmeerw.net, lars@metafoo.de, knaack.h@gmx.de, jic23@kernel.org, Fabien Parent Subject: [PATCH 2/2] arm64: dts: mediatek: mt8516: add auxadc node Date: Mon, 12 Oct 2020 22:52:18 +0200 Message-Id: <20201012205218.3010868-2-fparent@baylibre.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201012205218.3010868-1-fparent@baylibre.com> References: <20201012205218.3010868-1-fparent@baylibre.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org Add node for the auxadc IP. The IP is compatible with the one found in MT8173 SoC. Signed-off-by: Fabien Parent --- arch/arm64/boot/dts/mediatek/mt8516.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8516.dtsi b/arch/arm64/boot/dts/mediatek/mt8516.dtsi index 89af661e7f63..943c426e9aaf 100644 --- a/arch/arm64/boot/dts/mediatek/mt8516.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8516.dtsi @@ -470,5 +470,15 @@ usb0_port: usb-phy@11110800 { #phy-cells = <1>; }; }; + + auxadc: adc@11003000 { + compatible = "mediatek,mt8516-auxadc", + "mediatek,mt8173-auxadc"; + reg = <0 0x11003000 0 0x1000>; + clocks = <&topckgen CLK_TOP_AUX_ADC>; + clock-names = "main"; + #io-channel-cells = <1>; + status = "disabled"; + }; }; };