Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2184814rdd; Fri, 12 Jan 2024 01:48:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IEpp/Beu9Bnkq7L6J8+08a+Rgd1QLm+WvMWUtPDMsCTaGVk9hl2sAJl1i6wU1P/KGIMoL97 X-Received: by 2002:a17:906:6693:b0:a26:9ec0:e35 with SMTP id z19-20020a170906669300b00a269ec00e35mr531259ejo.135.1705052907613; Fri, 12 Jan 2024 01:48:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705052907; cv=none; d=google.com; s=arc-20160816; b=wACH1Y82lN4LIoTAnU6oMLUlE2g8kRUPpE8gD+64sRVbNtT4x0/J/1I2MceybIB1q+ BlVC4X86BEDGv2EkX0sPRnahNigyuJ1d19gVJRlIKBo9dFzDSh6+a0MljUHCdsdbGF9l Y6DBG+6H1nUuC+HHdCYqPJ/wDErLD5FAIeExzZsKyizRfym2K8H9tpYVZ+7MtMuPIqbr rE9i6IVDHxT+2JxN4AkmQOcgfW4p0J3vm8PwJqyt2nH6/yTJUmMLdmDGxbfNtA5C5u+q RRxlQq5xylEJapZCQ07iIUYEAIQD7V1lroLWddyUFvLuJfkh5Q0T7FAKrTT5lyDzOOxP SHBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=slOMKemX4DjdWZVjM3Z+B/MTebdzUQVzVDGz6wnMmZc=; fh=jVP86127nqY6lQ2iFwv7XBo+ATUxJSI3LRZ9chA5Pqo=; b=oL8I4xqTFWJS73d//iAlgHXX44JT9fQ4XUZq174L6Q1s9aKJpJ5Ofh2jcitaO8lGKZ 1Y15mgeEhbHEkXZfTEIUFW7BH2cBWmf+DdyZLP2m4mwuF9jdZv0FiAEGUpWXIqZrniHW yJ0S/iUzjF5WZxL1K5wB6PyhK83DDZ2wlCZGMDGgf7d3CbQwJjiXRwlTnecGcnV0+u2D 0O+ErxG4DwyRGe/Z9Oxd+Pye3c+zhVcnkNT7KpYVoCwNN4QK9AVcUiQJqZuBoWx/Dprx 7kGLSrK5pp/G7iyEpbUHxTVRQzPTC80zS2dPLV1EmvSAMom8cBN3WI5Tr4YORM1qktV1 CV3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="o9+q/Wi8"; spf=pass (google.com: domain of linux-kernel+bounces-24506-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24506-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id j22-20020a170906255600b00a28d094f4c9si1241698ejb.635.2024.01.12.01.48.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 01:48:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24506-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="o9+q/Wi8"; spf=pass (google.com: domain of linux-kernel+bounces-24506-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24506-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5D6F61F2650A for ; Fri, 12 Jan 2024 09:48:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5C57F5EE87; Fri, 12 Jan 2024 09:46:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="o9+q/Wi8" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3AAE45DF2E; Fri, 12 Jan 2024 09:46:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1705052805; bh=yW5zSOddHFfd5FTjWfTz+7DQVWreLVZZ+dE3jjijem8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o9+q/Wi8MG/NZ1xu9L8pbjWm1oDP6fjeGZCI0BQzy7SBCIbHjowQR56EeJCU0ygkc vlquxFvhVZ2dUv/5BCH35ptwYdGIEt4noPWR5bgOYSdmu0T6WlnJJc6TuEzeMa1DfY CYN/X9qzSZwn1Qh2rdR6067JZz6tmfjlEMTdOigDXHbknvDyAaDfJX6OgExFaTnmux jNYI5wLpC1X6eWI7bC3lxrgr9FFKgHHFh8jQUpns6tKndXFM8oxYambrFjYByHJIw7 ffsTAbnTKpoKoXoLWaCBtpm/MY5Qi4i8GKbN14hmQIsJIwD7OB5GTHg8d8WNmMh5jR Jr73oGZe8oN0A== Received: from IcarusMOD.eternityproject.eu (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id D38F53782031; Fri, 12 Jan 2024 09:46:44 +0000 (UTC) From: AngeloGioacchino Del Regno To: linux-mediatek@lists.infradead.org Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, wenst@chromium.org, hsinyi@chromium.org, nfraprado@collabora.com, macpaul.lin@mediatek.com, sean.wang@mediatek.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@collabora.com Subject: [PATCH 07/15] arm64: dts: mediatek: radxa-nio-12l: Add MT6360 battery charger Date: Fri, 12 Jan 2024 10:46:24 +0100 Message-ID: <20240112094632.66310-8-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240112094632.66310-1-angelogioacchino.delregno@collabora.com> References: <20240112094632.66310-1-angelogioacchino.delregno@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Enable the MT6360 PMIC's battery charger which also provides a regulator the USB VBUS. Signed-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts b/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts index 221d7062d5ef..3b8880db49ff 100644 --- a/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts +++ b/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts @@ -186,6 +186,17 @@ mt6360: pmic@34 { #interrupt-cells = <1>; pinctrl-0 = <&mt6360_pins>; + charger { + compatible = "mediatek,mt6360-chg"; + richtek,vinovp-microvolt = <14500000>; + + otg_vbus_regulator: usb-otg-vbus-regulator { + regulator-name = "usb-otg-vbus"; + regulator-min-microvolt = <4425000>; + regulator-max-microvolt = <5825000>; + }; + }; + regulator { compatible = "mediatek,mt6360-regulator"; LDO_VIN1-supply = <&vsys_buck>; -- 2.43.0