Received: by 2002:a19:651b:0:0:0:0:0 with SMTP id z27csp3622955lfb; Mon, 9 May 2022 00:13:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJww/5ahkvsOPYJbYqY4YfXBUvdFszo4sKMQKplPvAyHDQvbFAwt/xBeFiV6egxhRwHauPhi X-Received: by 2002:a17:902:e494:b0:15a:4b81:1c16 with SMTP id i20-20020a170902e49400b0015a4b811c16mr15354586ple.10.1652080395522; Mon, 09 May 2022 00:13:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652080395; cv=none; d=google.com; s=arc-20160816; b=Cz1MhItkV8V4xcOCOw2cNzYSssSEJBV/GoEwvgP1YaQ5FK6rxNQZVLNejAhZsNMAKf pADMmXXr9IyxKL1n9u6c3QBRD93k7QjEGhB3r6ZtyP9G9HAkNZsyJt/YrNCBQk+sUTAB 8nZ3lBthFFkp43lz6J/ITr8knPJfcpyEJtoXwEf7lpgRCWbMoDA857HhX/VztGClpyE6 5gQYjwz7tG3MdG+WuBy+KiSs2449VuYkUGBhXyBhDo3o7NQWxyGXsI+K5dIx38bh5G7M ZBggPYV0FSC2lg3vuVSJ1ZMdO1/dk6N7WFgJijvuKZofdDaA0RUcD6L8a0Lga81uXyKa yRsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=PupzdnVE7gva2Kk82h38//3yhFGvnVoEbSjxrAod3EM=; b=NDfAyhCA4PjsXroGj5F5K/TT0VVj3lzQYlqvP/LaeOKdE6y3ZZ+oc6//7v9dhjx6Q6 8AX1mdY7Wk0Mm7lYHTnUJT+6TVZLJCbBdUYRDTvX5pppeSIsY653pJBMrlh0V3eZpP51 33GnVGLsw9nSxruiylyEgj6Nf1esQ0AJgYv3dGajoc2UOG3T8wKm5BZ2kbLAjakNeutG mya7P5f3btAEECPDTJyFwXf1ojR1MJLKbSLZIDK6DxQgS/6lZT4E84J0dQgTMZQPzbTL CWoGEd82ClL3zV9UHh/671CYmQnenFQOjI1T21ZlPmx79jsPeWt6aXpUkfRSChtSo95x BJVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=clx1QUAk; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id r8-20020a63d908000000b003c2828476a9si13129474pgg.641.2022.05.09.00.13.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 00:13:15 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=clx1QUAk; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E069819B3A9; Mon, 9 May 2022 00:09:24 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385492AbiEETvW (ORCPT + 99 others); Thu, 5 May 2022 15:51:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1385457AbiEETul (ORCPT ); Thu, 5 May 2022 15:50:41 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50B6E5E74C; Thu, 5 May 2022 12:46:59 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: nfraprado) with ESMTPSA id 6824E1F45CD7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1651780018; bh=66Gcdl/BCzrTY3JeghuLR7TheiL9yVTorpEjlpfyV/8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=clx1QUAk8PRxDtNJSmG0WHj2SvvJhV+eWQHT6V/uHzLDOmjgrAULRqO22jnVi4B7R KrVPYpgopgTt1EP8r9ITnc8O+J0zWoALXltUIlU1cL330dOvZXLUCCC5WvpS1GByNC ewX4Aw73EaPT9GEZizyuUoeVJNqZiHgp9asN6Ba70yDdGS2wfn0rFL+dZbBve2HE+u Q03Q774WnoLME1E14XLDNaz5PbAhH+9Pu2D9IYS1kJWeONUh3TkMdgiwdAsqNOcs+a llLphy1KdOCJ3XBNSMTNM9ajhJXzP+a/TX3NMush3nP/lmA/gxDydY6tACIvzxBENx vz2hB6Q0KBEeg== From: =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= To: Matthias Brugger Cc: AngeloGioacchino Del Regno , kernel@collabora.com, Chen-Yu Tsai , =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2 15/16] arm64: dts: mediatek: asurada: Add MT6359 PMIC Date: Thu, 5 May 2022 15:45:49 -0400 Message-Id: <20220505194550.3094656-16-nfraprado@collabora.com> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220505194550.3094656-1-nfraprado@collabora.com> References: <20220505194550.3094656-1-nfraprado@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org MT6359 is the primary PMIC present on the Asurada platform. Include its dtsi and configure properties specific for the platform. Signed-off-by: NĂ­colas F. R. A. Prado Reviewed-by: AngeloGioacchino Del Regno --- Changes in v2: - Added this patch .../boot/dts/mediatek/mt8192-asurada.dtsi | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi b/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi index 87a9a6b1eabc..a9ffa74b2764 100644 --- a/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi @@ -5,6 +5,7 @@ */ /dts-v1/; #include "mt8192.dtsi" +#include "mt6359.dtsi" #include / { @@ -168,6 +169,31 @@ &i2c7 { pinctrl-0 = <&i2c7_pins>; }; +/* for CORE */ +&mt6359_vgpu11_buck_reg { + regulator-always-on; +}; + +&mt6359_vgpu11_sshub_buck_reg { + regulator-always-on; + regulator-min-microvolt = <575000>; + regulator-max-microvolt = <575000>; +}; + +&mt6359_vrf12_ldo_reg { + regulator-always-on; +}; + +&mt6359_vufs_ldo_reg { + regulator-always-on; +}; + +&mt6359codec { + mediatek,dmic-mode = <1>; /* one-wire */ + mediatek,mic-type-0 = <2>; /* DMIC */ + mediatek,mic-type-2 = <2>; /* DMIC */ +}; + &pcie { pinctrl-names = "default"; pinctrl-0 = <&pcie_pins>; @@ -559,6 +585,10 @@ pins-report-sw { }; }; +&pmic { + interrupts-extended = <&pio 214 IRQ_TYPE_LEVEL_HIGH>; +}; + &spi1 { status = "okay"; -- 2.36.0