Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp982211iob; Fri, 13 May 2022 18:30:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxC6jvY9GEBsVyb7ZQdzy+96m+cLkEsd5swCc0PqtSCiYgKZBPWY6sDuviHL0QVxUOWVRU+ X-Received: by 2002:a05:6000:100c:b0:20a:c68a:e9a with SMTP id a12-20020a056000100c00b0020ac68a0e9amr6038210wrx.314.1652491855548; Fri, 13 May 2022 18:30:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652491855; cv=none; d=google.com; s=arc-20160816; b=ptNpEFaKqrskuyriTinIQ3HqHr9UbXfywVtE8VeI5mClnhjdU9bq1RAV7dTVV29nm2 UpSxY+ttKNS2PMbXxwYIyqrLmP2eNWbHoFHuSP16r6e5NvIdtWNQOBBXo4g9amgD8W+Q LSDGITkX2dgyQd1Nysk26krTmjR1adm71DGYYz5pZISe2FwMpNArjr/BF9gDFtKH98qK IjTakotg3sI3m4wTt2A+qDHoGXg+t0aS18sZ85Rcyg6C9NN1O0plCx9F5AyluydhMEyJ sAF8h/dtGX7qromiqiqZtjnWJZsfHKuEYg4C1i0OH/HJWDTZzLIn2fPpKtZq4bMVS5PY YwvA== 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=kwS3xvyzCu5Z5ntVLwMLhYHDVSPEV+oWPA4ePt/vec0=; b=cvcL2tctUXjQXBfVuKGzxV3hvfF1CobmX1Sizn5B2z3HPB4OJTV4xpHeQAjU9YO9CS wYlodWY5KzXUjtBqZbbxuN0f5P/pjeIK1Cl5s2S2EFd3hO3IJj7EkCF+rO7fUN1B3HHD nskiGO/p38MOv37rAcjbg8BgzKAz6ANxOj0F/sxsIUyuxI5xGso4TfXWwfdKUVQ3dHlO WBmR0T5SlIZVnDzqC9WsMWko9GF72evmfbvA8KZDrbfPDnzeLTMfapzE9EjxMzOrRvpr 52WY3rbZfx1M1ef1QVatTAqxRZNLSC5RXBOSm5ts8jGuk/m9OWxycywEb1IoJMP65kcp z1UA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Abu7N6UN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id m14-20020a056000024e00b0020ad72e36d7si3202645wrz.103.2022.05.13.18.30.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 18:30:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Abu7N6UN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D166A3F9DED; Fri, 13 May 2022 16:59:00 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358698AbiELU5o (ORCPT + 99 others); Thu, 12 May 2022 16:57:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358625AbiELU5E (ORCPT ); Thu, 12 May 2022 16:57:04 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 771F06A002; Thu, 12 May 2022 13:56:47 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: nfraprado) with ESMTPSA id 7F2681F45AAD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1652389006; bh=xtfilwAIz+kMj8zKckclhyx6wIdcdbRqk0LZq8rnQiA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Abu7N6UN4djRf/QA0Fn7tWwjX/sAtenySEuU9whrXjRORmTGZp/ZL1nNoOXWN2Yum tP4ONGcRvmo4hiIvCMzCtakmZvNtMivAmMsFzhFGyoN0tNL31oovKI7HzvrkvOnIY4 CppJfqkIqV3dFmgV80Nyeo4agPTE+WtXG+Qw5AoChe3QgG5sSMAJsXNmdOBuRW5uLC dl4cdpIM0zfXx3pwNMJ0s27/zdhNTZdcOmnxiq2jJknl2Nl4xZ+ZlK3j8SIVvdHrUx 5xKePN8uXpF7L6f05wmdQFv9HcM+KLqVJu+hpICh1DC2jlSB8wM8j+KpL3hWaqFbkt u0xqCC6as48Fw== From: =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= To: Matthias Brugger Cc: Chen-Yu Tsai , AngeloGioacchino Del Regno , kernel@collabora.com, =?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 v3 15/16] arm64: dts: mediatek: asurada: Add MT6359 PMIC Date: Thu, 12 May 2022 16:56:01 -0400 Message-Id: <20220512205602.158273-16-nfraprado@collabora.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220512205602.158273-1-nfraprado@collabora.com> References: <20220512205602.158273-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 Tested-by: Chen-Yu Tsai --- (no changes since v2) 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 dde4de27ec61..a53f7352f06e 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.1