From nobody Sat Feb 7 11:54:38 2026 Received: from mxout3.routing.net (mxout3.routing.net [134.0.28.8]) (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 0184A1A9B2A; Mon, 2 Dec 2024 12:26:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.0.28.8 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733142375; cv=none; b=Kscet5FHmgdhfqyySydi8pGm6ycEKlJpUQ+e2WEd4NwKBisKmjvyOpQQRqUT6Dvk7pLId/UGAiDqVzfQfxFE+ioGtGwStZrSuxEDpNe/DKTKw1MVuC7nfeZmhkrRXs147nS1hTD01WkAguuMBtID07bxkZBd5crrnq+UGmEbMWE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733142375; c=relaxed/simple; bh=6myf5VsBiM0tNksk/bBd3W3sCpFjV8Mbo1t0gkCwiDk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Ks0Ftad06rJdvF30jvw7Cr4aUtQdJe/Sws5oHt8/rhakcRIz0M0LW7WrgUq5+wUCvMvsUHUpgdqSfOyvWERp7ybUiwq0o8X4JxGt5a6YYPO7cMK5UIleFs25cxxKMd62GZyMhEH92FTETFtEPDvq9PUJELZcs9bnm1Ob+zObGTM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de; spf=pass smtp.mailfrom=fw-web.de; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b=OTSfbBaI; arc=none smtp.client-ip=134.0.28.8 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fw-web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="OTSfbBaI" Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout3.routing.net (Postfix) with ESMTP id 25AFE613E1; Mon, 2 Dec 2024 12:26:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1733142371; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=I8v2guR/DqSDPQbSGDrw5WvcAqYbrWwp+FqeYEM2590=; b=OTSfbBaITNk3SMuX0Xpwq2902OFD0bjWtFWcS10fm+lb8Px9wsLN4i/5x3jvzUHmb/pu15 nYKLfyxRqV3O8UA0eT2pT+IhNUhdKryE1C/a8hIBFY850czwP8/hqAoyx3l0Joi7Y8HeYu fI+dLb5Qjh8K3I2S+i4auf2gjKyasBI= Received: from frank-u24.. (fttx-pool-217.61.149.104.bambit.de [217.61.149.104]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 90B41360211; Mon, 2 Dec 2024 12:26:10 +0000 (UTC) From: Frank Wunderlich To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2 01/18] arm64: dts: mediatek: mt7988: enable watchdog on bpi-r4 Date: Mon, 2 Dec 2024 13:25:42 +0100 Message-ID: <20241202122602.30734-2-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241202122602.30734-1-linux@fw-web.de> References: <20241202122602.30734-1-linux@fw-web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mail-ID: ee49b488-8f49-4350-aa87-37bdea1244f4 Content-Type: text/plain; charset="utf-8" From: Frank Wunderlich Enable the watchdog on Bananapi R4 board. Signed-off-by: Frank Wunderlich Reviewed-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts b/arc= h/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts index aa2dabc041fd..d914eae2b524 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts +++ b/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts @@ -198,3 +198,7 @@ mux { }; }; }; + +&watchdog { + status =3D "okay"; +}; --=20 2.43.0 From nobody Sat Feb 7 11:54:38 2026 Received: from mxout1.routing.net (mxout1.routing.net [134.0.28.11]) (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 B38A71FC7FB; Mon, 2 Dec 2024 12:32:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.0.28.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733142745; cv=none; b=rPhbYfqxZR2JKocFCT40fAhcnBoiLPV3+0N3Rrdw3xYniAokYANDsvBwFoE3qnXoE48S4Z1GcdGf8N/rZ21Z4FanPVlcZfHrcrrWRbueFalNyDTJ9jA3vAZ0sGPMZzA84xBJ8nGfrzS2mr3DClJdFb19UqW2lJcyNS7cbgDLJWs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733142745; c=relaxed/simple; bh=Xet7oftb//1f0ehmHvCIeJYrD+l7XkvYk7VP79q4+Q0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Rt7kGnBIsUXyvWrW5AIwzCHWNUKUJsSIjusoj87KRDXBxqlL8tvdpvhe19e7A5CAy3kDKbrWCVTUm82uzbVRLeWo2nHoL93BQywy2cUDcGU3IhBwxul8H8c1FV0L6gaobZzH5Yrq5VJE/bSGcMaNAXMagoQG4TlChheh6zv8Dbw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de; spf=pass smtp.mailfrom=fw-web.de; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b=Sko1E2wB; arc=none smtp.client-ip=134.0.28.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fw-web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="Sko1E2wB" Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout1.routing.net (Postfix) with ESMTP id B0CCE4119B; Mon, 2 Dec 2024 12:26:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1733142371; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EZod1ka4k4PMMYK+yDubLbP92ZqquD7GvgNYdPg+tk0=; b=Sko1E2wBc7Hnyx8S5jmJPLkOGvZPTJpZTniQ96szAY/taXrSnss3LCOwvxdLJn/BDF/6Uj KB8ptKHuJz4ltDDHof0yLUFd79wQaR97z9E9QXB653KSRy6aDRw8kY5tFQVG8UAcFslm/P vlQRUtJTGUc666z2G7pIhDUA2zYUpqw= Received: from frank-u24.. (fttx-pool-217.61.149.104.bambit.de [217.61.149.104]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 211CE3600C0; Mon, 2 Dec 2024 12:26:11 +0000 (UTC) From: Frank Wunderlich To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2 02/18] arm64: dts: mediatek: mt7988: add mmc support Date: Mon, 2 Dec 2024 13:25:43 +0100 Message-ID: <20241202122602.30734-3-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241202122602.30734-1-linux@fw-web.de> References: <20241202122602.30734-1-linux@fw-web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mail-ID: fe7dd4f1-c909-412b-8423-4600a8939fcd Content-Type: text/plain; charset="utf-8" From: Frank Wunderlich Add devicetree node for MMC controller. Signed-off-by: Frank Wunderlich Reviewed-by: AngeloGioacchino Del Regno --- changes: v2: squash "add missing label for apmixedsys" --- arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 24 ++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dt= s/mediatek/mt7988a.dtsi index 46969577c87a..5e40446cb7b3 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi @@ -100,7 +100,7 @@ watchdog: watchdog@1001c000 { #reset-cells =3D <1>; }; =20 - clock-controller@1001e000 { + apmixedsys: clock-controller@1001e000 { compatible =3D "mediatek,mt7988-apmixedsys"; reg =3D <0 0x1001e000 0 0x1000>; #clock-cells =3D <1>; @@ -278,6 +278,28 @@ usb@11200000 { clock-names =3D "sys_ck", "ref_ck", "mcu_ck", "dma_ck", "xhci_ck"; }; =20 + mmc0: mmc@11230000 { + compatible =3D "mediatek,mt7988-mmc"; + reg =3D <0 0x11230000 0 0x1000>, + <0 0x11D60000 0 0x1000>; + interrupts =3D ; + clocks =3D <&infracfg CLK_INFRA_MSDC400>, + <&infracfg CLK_INFRA_MSDC2_HCK>, + <&infracfg CLK_INFRA_66M_MSDC_0_HCK>, + <&infracfg CLK_INFRA_133M_MSDC_0_HCK>; + assigned-clocks =3D <&topckgen CLK_TOP_EMMC_250M_SEL>, + <&topckgen CLK_TOP_EMMC_400M_SEL>; + assigned-clock-parents =3D <&topckgen CLK_TOP_NET1PLL_D5_D2>, + <&apmixedsys CLK_APMIXED_MSDCPLL>; + clock-names =3D "source", + "hclk", + "axi_cg", + "ahb_cg"; + #address-cells =3D <1>; + #size-cells =3D <0>; + status =3D "disabled"; + }; + clock-controller@11f40000 { compatible =3D "mediatek,mt7988-xfi-pll"; reg =3D <0 0x11f40000 0 0x1000>; --=20 2.43.0 From nobody Sat Feb 7 11:54:38 2026 Received: from mxout3.routing.net (mxout3.routing.net [134.0.28.8]) (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 E50911F9F7A; Mon, 2 Dec 2024 12:26:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.0.28.8 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733142376; cv=none; b=TPmOUSEisrQcEJ41BuUYTJKDCQpcO/Jj9R3W5+wgQCeY6j4dHwOWXLiMERFDA+Bq8Z9hfgKCeFbGAgtifchmqw4/6c1OjaeY/mxC4ETedvdtU7hczVexQvytkNuddPD6re2HFzaDW8XVaDOd/+3j+7UminTFX1+tDqQGgSSW+lw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733142376; c=relaxed/simple; bh=S0ZKI/qABEMegVq4CXB3M5p7sMXkllVQQkGVBnROvrE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ofCTf/2wCJI+SUTkYFH9IcDf0I/edlnMouOwK9yDStMwmCZ9wi6nZ6uKaIc4PrLDi9yRRfHE9N3i57kcF6BaUZVgE2/QqIqmcyVXjzjA3JhbX5REvwRAzmoPlBc06PNrcBbF+PMDy4EosPlmxSzVvw9+GIDJza+klHfk/8OxLv4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de; spf=pass smtp.mailfrom=fw-web.de; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b=JDvX5Rsw; arc=none smtp.client-ip=134.0.28.8 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fw-web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="JDvX5Rsw" Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout3.routing.net (Postfix) with ESMTP id 40DC7613F7; Mon, 2 Dec 2024 12:26:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1733142372; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xvio4qYnn152relW8d8dOOQlvOo0mSc7MB7Rnu0hWEg=; b=JDvX5RswSd2RQ/g18NW4rQ0qtVwn6IhhlCcpyGPRkmpyhxpxlfCiWLYLaeu6Cj51EnuuFC WiWnAQE5V24sCQjKuqg5sNhPdgFexNhcuwL0GWtMXlQrZe55QFOEuIv93h+4mSH5Gd8l+T DELL4n1NCuMb9Kb6ezsbNAs+mzQktPA= Received: from frank-u24.. (fttx-pool-217.61.149.104.bambit.de [217.61.149.104]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id ABDA0360188; Mon, 2 Dec 2024 12:26:11 +0000 (UTC) From: Frank Wunderlich To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2 03/18] arm64: dts: mediatek: mt7988: add fixed regulators for 1v8 and 3v3 Date: Mon, 2 Dec 2024 13:25:44 +0100 Message-ID: <20241202122602.30734-4-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241202122602.30734-1-linux@fw-web.de> References: <20241202122602.30734-1-linux@fw-web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mail-ID: f3d04e75-e09a-4074-aa49-cde4d43063c7 Content-Type: text/plain; charset="utf-8" From: Frank Wunderlich Add regulator nodes used for mmc to Bananapi R4 board. Signed-off-by: Frank Wunderlich --- v2: - move mmc regulators to board dts of bpi-r4 --- .../dts/mediatek/mt7988a-bananapi-bpi-r4.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts b/arc= h/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts index d914eae2b524..df53512c6890 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts +++ b/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts @@ -8,6 +8,24 @@ / { compatible =3D "bananapi,bpi-r4", "mediatek,mt7988a"; model =3D "Banana Pi BPI-R4"; chassis-type =3D "embedded"; + + reg_1p8v: regulator-1p8v { + compatible =3D "regulator-fixed"; + regulator-name =3D "fixed-1.8V"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + regulator-boot-on; + regulator-always-on; + }; + + reg_3p3v: regulator-3p3v { + compatible =3D "regulator-fixed"; + regulator-name =3D "fixed-3.3V"; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + regulator-boot-on; + regulator-always-on; + }; }; =20 &pio { --=20 2.43.0 From nobody Sat Feb 7 11:54:38 2026 Received: from mxout2.routing.net (mxout2.routing.net [134.0.28.12]) (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 905681FC7C5; Mon, 2 Dec 2024 12:26:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.0.28.12 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733142376; cv=none; b=C1mkFfSgJGEehkRf6cunzfwDnKw9UPla01CDYi/Mu6ukEWk7hOVmbEszXBBPEL7P2mxLov9pECgFyKYPMZ9n4GphYRMzKmU/XnQXwJ+vTZHfasgDMSPX6TZ9aE7eZFKpCn2nlLubjs6m8PIuB5kmwLA7ZDaEabZWHIvIwOXx9iY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733142376; c=relaxed/simple; bh=Pm4c9rc9ZBM6jBPIP7L8dI/2fcwpWS/k/JkkQXkHa2M=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=joxDTLFcl1jT4BW8LzA4ZrLV2KHG2N+1/QOYm2jJpoDW4COebzc7SepNEzTmf43/CCnK6t6+sLVTP//V3CPhqcf1XiX0qb6od6v2AeactYsRqN+U39/JDJGRqygi/MFAVIvSTHCL3yEWWpuvwj2X299n54Du/UrVgAnut7bF7C8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de; spf=pass smtp.mailfrom=fw-web.de; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b=G67mCFeS; arc=none smtp.client-ip=134.0.28.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fw-web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="G67mCFeS" Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout2.routing.net (Postfix) with ESMTP id C4D0260435; Mon, 2 Dec 2024 12:26:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1733142372; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5TWzayKwl6vTitRugS2EOw67/+C7PLCqur4K/uzJmtc=; b=G67mCFeS2W4Mp8n8AAMMRRfUWEm3Ich2UOZmYqbo8jZIxVJ/L572mlTxdgv0jilrChg5HH nNjixBF7XXVZVurpbER9BidyU+GWbaicIdNPZqK0/DS4WCv81I6bCVusNPLmO8qoCOOllb VLd0cD9xrqnb/M0MZ1oPR7cRVRuLZKc= Received: from frank-u24.. (fttx-pool-217.61.149.104.bambit.de [217.61.149.104]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 3F6CE3600C0; Mon, 2 Dec 2024 12:26:12 +0000 (UTC) From: Frank Wunderlich To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2 04/18] arm64: dts: mediatek: mt7988: add lvts node Date: Mon, 2 Dec 2024 13:25:45 +0100 Message-ID: <20241202122602.30734-5-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241202122602.30734-1-linux@fw-web.de> References: <20241202122602.30734-1-linux@fw-web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mail-ID: 8b4c00e1-9437-4750-95d9-f1438fe1860c Content-Type: text/plain; charset="utf-8" From: Frank Wunderlich Add Low Voltage Thermal Sensor (LVTS) node for mt7988 SoC. Signed-off-by: Frank Wunderlich Reviewed-by: AngeloGioacchino Del Regno --- changes: v2: squash - "arm64: dts: mediatek: mt7988: add label for efuse" - "arm64: dts: mediatek: mt7988: extend efuse node" (drop other efuse subno= des) --- arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dt= s/mediatek/mt7988a.dtsi index 5e40446cb7b3..f7748a840297 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi @@ -4,6 +4,7 @@ #include #include #include +#include =20 / { compatible =3D "mediatek,mt7988a"; @@ -85,6 +86,7 @@ infracfg: clock-controller@10001000 { compatible =3D "mediatek,mt7988-infracfg", "syscon"; reg =3D <0 0x10001000 0 0x1000>; #clock-cells =3D <1>; + #reset-cells =3D <1>; }; =20 topckgen: clock-controller@1001b000 { @@ -250,6 +252,17 @@ i2c@11005000 { status =3D "disabled"; }; =20 + lvts: lvts@1100a000 { + compatible =3D "mediatek,mt7988-lvts-ap"; + #thermal-sensor-cells =3D <1>; + reg =3D <0 0x1100a000 0 0x1000>; + clocks =3D <&infracfg CLK_INFRA_26M_THERM_SYSTEM>; + interrupts =3D ; + resets =3D <&infracfg MT7988_INFRA_RST1_THERM_CTRL_SWRST>; + nvmem-cells =3D <&lvts_calibration>; + nvmem-cell-names =3D "lvts-calib-data-1"; + }; + usb@11190000 { compatible =3D "mediatek,mt7988-xhci", "mediatek,mtk-xhci"; reg =3D <0 0x11190000 0 0x2e00>, @@ -307,11 +320,15 @@ clock-controller@11f40000 { #clock-cells =3D <1>; }; =20 - efuse@11f50000 { + efuse: efuse@11f50000 { compatible =3D "mediatek,mt7988-efuse", "mediatek,efuse"; reg =3D <0 0x11f50000 0 0x1000>; #address-cells =3D <1>; #size-cells =3D <1>; + + lvts_calibration: calib@918 { + reg =3D <0x918 0x28>; + }; }; =20 clock-controller@15000000 { --=20 2.43.0 From nobody Sat Feb 7 11:54:38 2026 Received: from mxout1.routing.net (mxout1.routing.net [134.0.28.11]) (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 A7F0D202F8F; Mon, 2 Dec 2024 12:26:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.0.28.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733142382; cv=none; b=MVny6x4mfLLe5FLt8FI6PFRV5HSI3Dqfci5oT/kbKtnoUdp81PcYAHm2RyN0G/3KwLfHcO1Oyug0YdwWxTZpHu5qJFpg0OJ+IJi9WYhKPDyDlU5nkiTf2TUIk1jhBBMNAqsXFvgXKeKsjcS9FviIdHZsZhoQWyyCMfQt9aLa3l4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733142382; c=relaxed/simple; bh=HM131X2RD1+8fk9FUoLYXCa7cZvkF6VEpgaxn0XSNxA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tiF5hy+irW5EvNsm5lAp61QEpUGTxvEUEBe3puZp4qdwC5QFEfimm3r+Bp1bY9xf87pmVpvjPdhyhm0B3d/ZulGTHklzfEYyNB/PbGE2nHtclc37qhJ3m+hok3bFhT8VMffqJc+dIaKSVORSvFMpcJdZZzBZSjVEUSKt71LPou0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de; spf=pass smtp.mailfrom=fw-web.de; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b=e9jMVmRT; arc=none smtp.client-ip=134.0.28.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fw-web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="e9jMVmRT" Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout1.routing.net (Postfix) with ESMTP id 53F88419B7; Mon, 2 Dec 2024 12:26:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1733142373; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jw+uC3F3A8GgcANM/UNNMs5AkPYbDaHhbB4jkeAKO+o=; b=e9jMVmRTNVe5KaR3Vkk9kTyuXPkqFbn8RWLzPGJzG2VKqeNFPPC91I6WU7guiaNYk1zlHf H/CxxpWDrBKNql8HhNYmaoC6bpl3ZTrJfyEF06hXgUBI7Gs8cw/xgFgH0KEbGeF52LEEbR 4eYUkEwQpVuymlAU3Quxwh+0oYEAAMU= Received: from frank-u24.. (fttx-pool-217.61.149.104.bambit.de [217.61.149.104]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id C0FD6360211; Mon, 2 Dec 2024 12:26:12 +0000 (UTC) From: Frank Wunderlich To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2 05/18] arm64: dts: mediatek: mt7988: add thermal-zone Date: Mon, 2 Dec 2024 13:25:46 +0100 Message-ID: <20241202122602.30734-6-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241202122602.30734-1-linux@fw-web.de> References: <20241202122602.30734-1-linux@fw-web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mail-ID: fe9c35d5-daa5-4b69-81e2-3ca66948d589 Content-Type: text/plain; charset="utf-8" From: Frank Wunderlich Add basic thermal-zone node. Signed-off-by: Frank Wunderlich Reviewed-by: AngeloGioacchino Del Regno --- v2: - only add critical trip to SoC dtsi, lower trips have to go to board dts --- arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dt= s/mediatek/mt7988a.dtsi index f7748a840297..09dcb39ad098 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi @@ -346,6 +346,21 @@ clock-controller@15031000 { }; }; =20 + thermal-zones { + cpu_thermal: cpu-thermal { + polling-delay-passive =3D <1000>; + polling-delay =3D <1000>; + thermal-sensors =3D <&lvts 0>; + trips { + cpu_trip_crit: crit { + temperature =3D <125000>; + hysteresis =3D <2000>; + type =3D "critical"; + }; + }; + }; + }; + timer { compatible =3D "arm,armv8-timer"; interrupt-parent =3D <&gic>; --=20 2.43.0 From nobody Sat Feb 7 11:54:38 2026 Received: from mxout2.routing.net (mxout2.routing.net [134.0.28.12]) (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 9AED11FE479; Mon, 2 Dec 2024 12:26:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.0.28.12 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733142377; cv=none; b=RKUI7vBaR4sloVMzdFA3fAu6dkaC4wym1V4+o02W9Ie9WQ/aZEpiuiLYsYRe8QjLmKdK+dhr/58IK/oO1QH9qDXKt5+c2inDNYxSFM5sLZD2U+gwXY1smJf8bY/T2TYkfmOLv2uWcwYik5ii3TCnKf9h07LHwLmn/pF/lV3LCb8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733142377; c=relaxed/simple; bh=8ZdDWa+iBQG6l45nOzdE91MJ3ECiqDra5V7T+0G+T7U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=sGv24etK8tVXrSLNCru/hA2qHwBvMZ0HS8Aj+DclV7NezX6XdaHVQaDLe3qJtfn+lNi8A17IarThP4BPtpYNow5TDnzy8o7xPERwlD0YDdDVwwByk1adPKBVv2ABgOq8Esj0rkWfmL7prLvtSmTKqF5d5gmp2of3i2urC7uZW0Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de; spf=pass smtp.mailfrom=fw-web.de; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b=VPKUJ0pX; arc=none smtp.client-ip=134.0.28.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fw-web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="VPKUJ0pX" Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout2.routing.net (Postfix) with ESMTP id D0B476046B; Mon, 2 Dec 2024 12:26:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1733142373; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QlHsPSsds4wfVdPuw/KHUgIalps/TN1syiynk/4rlxw=; b=VPKUJ0pXjVdKTjVTRrobEnKmmFoOGFI0D2hoT94iNr31w86RhVvTkuRK5mgcnoAzVEyVyC CBl1l29rVubzNMEQdKxjQYHDEUnMwtp3VzIrR0bv7FY5t6yaJoihzg+vk/6IDxH+cYlW6L YDx8+9ok51wZBnK6wIrVQToIgYwSyxQ= Received: from frank-u24.. (fttx-pool-217.61.149.104.bambit.de [217.61.149.104]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 4DABC3600C0; Mon, 2 Dec 2024 12:26:13 +0000 (UTC) From: Frank Wunderlich To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2 06/18] arm64: dts: mediatek: mt7988: add thermal trips to bpi-r4 Date: Mon, 2 Dec 2024 13:25:47 +0100 Message-ID: <20241202122602.30734-7-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241202122602.30734-1-linux@fw-web.de> References: <20241202122602.30734-1-linux@fw-web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mail-ID: 6c17b30a-1971-4b14-a2ad-0f3552d83a74 Content-Type: text/plain; charset="utf-8" From: Frank Wunderlich Add additional thermal trips to Bananapi R4 board. SoC only contains the critical trip. Signed-off-by: Frank Wunderlich Reviewed-by: AngeloGioacchino Del Regno --- .../dts/mediatek/mt7988a-bananapi-bpi-r4.dts | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts b/arc= h/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts index df53512c6890..8a320d9da443 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts +++ b/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts @@ -28,6 +28,34 @@ reg_3p3v: regulator-3p3v { }; }; =20 +&cpu_thermal { + trips { + cpu_trip_hot: hot { + temperature =3D <120000>; + hysteresis =3D <2000>; + type =3D "hot"; + }; + + cpu_trip_active_high: active-high { + temperature =3D <115000>; + hysteresis =3D <2000>; + type =3D "active"; + }; + + cpu_trip_active_med: active-med { + temperature =3D <85000>; + hysteresis =3D <2000>; + type =3D "active"; + }; + + cpu_trip_active_low: active-low { + temperature =3D <40000>; + hysteresis =3D <2000>; + type =3D "active"; + }; + }; +}; + &pio { mdio0_pins: mdio0-pins { mux { --=20 2.43.0 From nobody Sat Feb 7 11:54:38 2026 Received: from mxout4.routing.net (mxout4.routing.net [134.0.28.9]) (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 A29A31FF5F7; Mon, 2 Dec 2024 12:26:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.0.28.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733142379; cv=none; b=dOYgr5YT2FuGIOkxNUrWXE6VgWXs6Cm36wf5OGeSbiDQnpSDEAV7hQmf12UQjTDBZ9IA4PkRNyZUo5CN8EyFpCkFeyxSu1HlfsxyP4TrgBSAasiSmlh7QKHAWcrfry+l+wuWWItFk4pAszeKXQVzOTxw/Xzx90xUUu81wJdBqd8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733142379; c=relaxed/simple; bh=ceRNp10MFyCq9mQX22uiOcqupE+k+0+DQzA3QUDjNJU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=l2ZgRuA0f2p3B6gTpORuG53QaYgMfe21lWe7LQO1wIwD3/Kz21WNP5fLphQWuf6CTqQ00KGZyw6SB4WAUCFKRQzBdQWE4P1JwtR2z3RbqD91dGWxxR4s1GCJBjodKtFBcvqoRjiAnFGhSgovQgkpAKgA8A89ZiiElZVhPQGfWgA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de; spf=pass smtp.mailfrom=fw-web.de; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b=HGN9OKkq; arc=none smtp.client-ip=134.0.28.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fw-web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="HGN9OKkq" Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout4.routing.net (Postfix) with ESMTP id 65890100942; Mon, 2 Dec 2024 12:26:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1733142374; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0EXR8idz0jZrwTu0ZraBXOMpYUYvi61Qv1pOwi0q8Gg=; b=HGN9OKkq8JcXImEOs12P13y6OgcjkFsko0M1iTj+P6S4LgrTTzkSE5wZVhGODvNAKVXdOR D/HRrkc9iq45tvyTLCwsJmBUoiXBf4ueeXUE4XcpBNVv1OicHwvLPOgT9BZVHDsNDjrevw E9K5C7jwavloYxl2bsA3q02Xe1K0SB0= Received: from frank-u24.. (fttx-pool-217.61.149.104.bambit.de [217.61.149.104]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id CF8D0360188; Mon, 2 Dec 2024 12:26:13 +0000 (UTC) From: Frank Wunderlich To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2 07/18] arm64: dts: mediatek: mt7988: add reserved memory Date: Mon, 2 Dec 2024 13:25:48 +0100 Message-ID: <20241202122602.30734-8-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241202122602.30734-1-linux@fw-web.de> References: <20241202122602.30734-1-linux@fw-web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mail-ID: d44b10d0-8dcf-40cb-8484-051ea16b9861 Content-Type: text/plain; charset="utf-8" From: Frank Wunderlich Add memory range handled by ATF to not be touched by linux kernel. ATF is SoC specific and not board-specific so add it to mt7988.dtsi. Signed-off-by: Frank Wunderlich --- arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dt= s/mediatek/mt7988a.dtsi index 09dcb39ad098..1cf801486e61 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi @@ -63,6 +63,18 @@ psci { method =3D "smc"; }; =20 + reserved-memory { + #address-cells =3D <2>; + #size-cells =3D <2>; + ranges; + + /* 320 KiB reserved for ARM Trusted Firmware (BL31 and BL32) */ + secmon_reserved: secmon@43000000 { + reg =3D <0 0x43000000 0 0x50000>; + no-map; + }; + }; + soc { compatible =3D "simple-bus"; ranges; --=20 2.43.0 From nobody Sat Feb 7 11:54:38 2026 Received: from mxout1.routing.net (mxout1.routing.net [134.0.28.11]) (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 CA585202F93; Mon, 2 Dec 2024 12:26:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.0.28.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733142383; cv=none; b=YZZdKQaSNkhQJQFDY4j3mzorQgQzVvKHmER4q/H5NpcHsQ2PeGuT1aZJp+SJj7Lb3Oopp+XBwaYazvcaI0cLiMAiLwSGSDdLekALWS2ZgXFuIRVj9B0x0tP34oaTxukTwnUvt119bPe1LGKl5xA5e47/4qNbwfFJuI+bOt+M6/U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733142383; c=relaxed/simple; bh=UwQIy0UkQN3iy8mYcTx8Gr1yMhkH4YnFHHUd0ZQlmCU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=J3d9KlMX+7MRm5Ue7D0j9kH8ktU1D8ja/X5/X35oyZ2wxnPCwFKlKAVtOAha/9HQCWYrxtCoKV98jPNMxm9f3TssTQvaoSAxodfN3xOO5SuJRE+EXL3sYoEyDV+U15g5oN+CwJaU5XO7AO56Cm8ISGmA9lYR3X9TwthytnfGdcw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de; spf=pass smtp.mailfrom=fw-web.de; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b=oo6MRp1w; arc=none smtp.client-ip=134.0.28.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fw-web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="oo6MRp1w" Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout1.routing.net (Postfix) with ESMTP id 5B48541A25; Mon, 2 Dec 2024 12:26:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1733142375; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bf0wU1/QYkNghuSaTTJ0zcYOBhFOpXxvLvBEJ3/2A98=; b=oo6MRp1w0dDlv1cyvERc+WtxWDJjQ5EQmyrU0/s4eLaE0PO8hbf85iEnSkIwZRZ74SPXUh 5+49RC9NU1l9lpWhYy9N8X8IqCS0P/tdnATn3kWrra6Xr5u+IX/kOoWwliVSrjD/zZW4QF CVfrsvVk6cTzOC0tXB1MuhHzzWlPmSo= Received: from frank-u24.. (fttx-pool-217.61.149.104.bambit.de [217.61.149.104]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 5D32C3600C0; Mon, 2 Dec 2024 12:26:14 +0000 (UTC) From: Frank Wunderlich To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2 08/18] arm64: dts: mediatek: mt7988: add mcu-sys node for cpu Date: Mon, 2 Dec 2024 13:25:49 +0100 Message-ID: <20241202122602.30734-9-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241202122602.30734-1-linux@fw-web.de> References: <20241202122602.30734-1-linux@fw-web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mail-ID: 1636f77e-5670-4746-b648-6f76788a7fe4 Content-Type: text/plain; charset="utf-8" From: Frank Wunderlich Add mcu-sys node which is used later as clock-controller for cpus. Signed-off-by: Frank Wunderlich Reviewed-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dt= s/mediatek/mt7988a.dtsi index 1cf801486e61..2af440510c86 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi @@ -192,6 +192,12 @@ pwm@10048000 { status =3D "disabled"; }; =20 + mcusys: mcusys@100e0000 { + compatible =3D "mediatek,mt7988-mcusys", "syscon"; + reg =3D <0 0x100e0000 0 0x1000>; + #clock-cells =3D <1>; + }; + serial@11000000 { compatible =3D "mediatek,mt7988-uart", "mediatek,mt6577-uart"; reg =3D <0 0x11000000 0 0x100>; --=20 2.43.0 From nobody Sat Feb 7 11:54:38 2026 Received: from mxout4.routing.net (mxout4.routing.net [134.0.28.9]) (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 A29401FF5F5; Mon, 2 Dec 2024 12:26:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.0.28.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733142379; cv=none; b=hYl6JaXEDbp1CEXnSCkKBcFeg7yGPRPIzz1kz7RXLbapx7v3hR83asdlQ8jo02z0K7GM/A//6iAMfo3GKnJgVYVrskidRN6FmehrnKHUdXlgc8Xg8l8kNPwP3dWdLQ3T/RfiOee8KMuJX+TNFoa/VqT1Fmm51ve1wgOzj8oFrsw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733142379; c=relaxed/simple; bh=ENgHeENLle3FC10bHq75cMGr5V+eE8NmP73tZiYxnpU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=K2NorhTw81UnG3ReuBPhQr2qt8kL2Y2RCXQMcTfupAjSb0+U6VVRsJbdDl5txg124yVPsfdW8jVLYMnbqm/PYFud1BB//wiPfbk9sH2uEjkdgxZiB20NInnPwhddqtNZw/yE8GEEWxAFw4l23pXDQ5PF77kuEGqpwguMsp1e5z8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de; spf=pass smtp.mailfrom=fw-web.de; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b=po4mQBHY; arc=none smtp.client-ip=134.0.28.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fw-web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="po4mQBHY" Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout4.routing.net (Postfix) with ESMTP id F1D62100943; Mon, 2 Dec 2024 12:26:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1733142376; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lGxVt+qQLZJkkFVJS2L97CoPUefk9As7+zZxbYek0c8=; b=po4mQBHYl7lFfmFdq5DxcaZX8ZmcVwp9Bgw8a4GYvmCyzvdvRW9/h3NRb+9B7q7Oevt5oT mL/G+xE1mR6NsgUFStHYiQNXOUedUweP2q/G96sv3yM5PnRYyJi+fVC9MWW18jK4vXVGKW C3MMHecOcjWjaiCvPXAaOmaB2a4stPs= Received: from frank-u24.. (fttx-pool-217.61.149.104.bambit.de [217.61.149.104]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 48496360211; Mon, 2 Dec 2024 12:26:15 +0000 (UTC) From: Frank Wunderlich To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2 09/18] arm64: dts: mediatek: mt7988: add operating-points Date: Mon, 2 Dec 2024 13:25:50 +0100 Message-ID: <20241202122602.30734-10-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241202122602.30734-1-linux@fw-web.de> References: <20241202122602.30734-1-linux@fw-web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mail-ID: dca3eac9-8f12-478a-ae0e-dd080f463b3a Content-Type: text/plain; charset="utf-8" From: Frank Wunderlich Add operating points defining frequency/voltages of cpu cores. Signed-off-by: Frank Wunderlich Reviewed-by: AngeloGioacchino Del Regno --- changes: v2: - drop cpu-labels for now --- arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 38 +++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dt= s/mediatek/mt7988a.dtsi index 2af440510c86..5609e3619be9 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi @@ -21,6 +21,10 @@ cpu@0 { reg =3D <0x0>; device_type =3D "cpu"; enable-method =3D "psci"; + clocks =3D <&mcusys CLK_MCU_ARM_DIV_SEL>, + <&topckgen CLK_TOP_XTAL>; + clock-names =3D "cpu", "intermediate"; + operating-points-v2 =3D <&cluster0_opp>; }; =20 cpu@1 { @@ -28,6 +32,10 @@ cpu@1 { reg =3D <0x1>; device_type =3D "cpu"; enable-method =3D "psci"; + clocks =3D <&mcusys CLK_MCU_ARM_DIV_SEL>, + <&topckgen CLK_TOP_XTAL>; + clock-names =3D "cpu", "intermediate"; + operating-points-v2 =3D <&cluster0_opp>; }; =20 cpu@2 { @@ -35,6 +43,10 @@ cpu@2 { reg =3D <0x2>; device_type =3D "cpu"; enable-method =3D "psci"; + clocks =3D <&mcusys CLK_MCU_ARM_DIV_SEL>, + <&topckgen CLK_TOP_XTAL>; + clock-names =3D "cpu", "intermediate"; + operating-points-v2 =3D <&cluster0_opp>; }; =20 cpu@3 { @@ -42,6 +54,32 @@ cpu@3 { reg =3D <0x3>; device_type =3D "cpu"; enable-method =3D "psci"; + clocks =3D <&mcusys CLK_MCU_ARM_DIV_SEL>, + <&topckgen CLK_TOP_XTAL>; + clock-names =3D "cpu", "intermediate"; + operating-points-v2 =3D <&cluster0_opp>; + }; + + cluster0_opp: opp-table-0 { + compatible =3D "operating-points-v2"; + opp-shared; + + opp-800000000 { + opp-hz =3D /bits/ 64 <800000000>; + opp-microvolt =3D <850000>; + }; + opp-1100000000 { + opp-hz =3D /bits/ 64 <1100000000>; + opp-microvolt =3D <850000>; + }; + opp-1500000000 { + opp-hz =3D /bits/ 64 <1500000000>; + opp-microvolt =3D <850000>; + }; + opp-1800000000 { + opp-hz =3D /bits/ 64 <1800000000>; + opp-microvolt =3D <900000>; + }; }; }; =20 --=20 2.43.0 From nobody Sat Feb 7 11:54:38 2026 Received: from mxout4.routing.net (mxout4.routing.net [134.0.28.9]) (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 A794D202F8E; Mon, 2 Dec 2024 12:26:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.0.28.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733142382; cv=none; b=cqikQKelBNIudZC+FvqoQbvLhdqOzCwGNnqRTidlUEoQHbMRtUYl30p24t50YJTALRAx+q4KYSbYOivDqfLe5+EptN1h3q2v6EU1/yTB4CcEkP/667NX3N9hRmZw0HBwN/krWq2zmK3nECE7nyEPbR2ZTAlAoWncc8N075n4UME= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733142382; c=relaxed/simple; bh=NY46vcVs7Ek909jtx25LHNvNJHmAAMdoqYhNvAUu/o4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MSn7YvUkvwKQvXGNnF3ig7Hzdmg1mUQIep/sfSRHNz7wa5vj2ZnPkWG3ebhwcsEOpBJC6GWZqn/uqdV1sg/FpJgBocfd9lv2XJsxgRf0lxw5UiaTGiL+3lj2upyvm2fUoi31mAp+tyLGjK5zfwRQG0yZ/qhx/lpP1QYQWRQloTM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de; spf=pass smtp.mailfrom=fw-web.de; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b=u5FPzqlh; arc=none smtp.client-ip=134.0.28.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fw-web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="u5FPzqlh" Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout4.routing.net (Postfix) with ESMTP id 7B176100DA1; Mon, 2 Dec 2024 12:26:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1733142376; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1g/phwMMSLHAcTlxfi4EX3H4n5UWXwgGPh9P76oN5sc=; b=u5FPzqlhUSA40eHWeW6ksNdF5ghOEByAwBZfACRoSLpPl1kp3X+f5dG0qTPRtLLfkQJyDp fh5SI3NfZCd1OZF5SZqevnsDQ5ToY8gF2Khx6H51JNEmS6xxQRhbJ8IlN13j5U1kxbeNt+ eng6y8NpJiQXyfX6NQroK8tRWv+d2p0= Received: from frank-u24.. (fttx-pool-217.61.149.104.bambit.de [217.61.149.104]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id EAADC3600C0; Mon, 2 Dec 2024 12:26:15 +0000 (UTC) From: Frank Wunderlich To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2 10/18] arm64: dts: mediatek: mt7988: enable serial0 on bpi-r4 Date: Mon, 2 Dec 2024 13:25:51 +0100 Message-ID: <20241202122602.30734-11-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241202122602.30734-1-linux@fw-web.de> References: <20241202122602.30734-1-linux@fw-web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mail-ID: 7457f330-acec-42c3-92df-1cefe89cef19 Content-Type: text/plain; charset="utf-8" From: Frank Wunderlich Enable the debug uart on Bananapi R4 board. Signed-off-by: Frank Wunderlich Reviewed-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts | 4 ++++ arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts b/arc= h/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts index 8a320d9da443..9037f35857a9 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts +++ b/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts @@ -245,6 +245,10 @@ mux { }; }; =20 +&serial0 { + status =3D "okay"; +}; + &watchdog { status =3D "okay"; }; diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dt= s/mediatek/mt7988a.dtsi index 5609e3619be9..abf81a7d02a5 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi @@ -236,7 +236,7 @@ mcusys: mcusys@100e0000 { #clock-cells =3D <1>; }; =20 - serial@11000000 { + serial0: serial@11000000 { compatible =3D "mediatek,mt7988-uart", "mediatek,mt6577-uart"; reg =3D <0 0x11000000 0 0x100>; interrupts =3D ; --=20 2.43.0 From nobody Sat Feb 7 11:54:38 2026 Received: from mxout1.routing.net (mxout1.routing.net [134.0.28.11]) (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 D5A23204F6B; Mon, 2 Dec 2024 12:26:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.0.28.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733142385; cv=none; b=iJAF0+zuUGaS0Rd9YmIDHvN32iN4c2LWrM3I3WPMhG8T3lWKDt02VZQrx/CKijp2avr7Mo5u+DqUOcBH4EvwPVKmM8JZNAcGsgAfac+s8tBdCeS8p4eHqmw/HJektD+mtrCMeglKqqqw8z8hFpywIXHTFHKkSJ61aO5yjKHhQxI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733142385; c=relaxed/simple; bh=JNoYGLH1HgET2E5tGOcjzqAacuexDmIyfSJpY17q+20=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Bd0Y2M83Y5Xhso+zWkl0czlyhWdJMdNKvV9D+l+bcTuI0u0lsW6oRvf3XRhXR02GEGt++ArUA+LfN5CGaDjiw8JnOFjkRpuBWsF3NtDZ3CvTBL8SBP9OPqyWX9BGFNGGpzr2TDDYJpMJZQBVMFGltvjX3Un4qf0OUJApaM1xeSY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de; spf=pass smtp.mailfrom=fw-web.de; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b=H6OlpM3/; arc=none smtp.client-ip=134.0.28.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fw-web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="H6OlpM3/" Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout1.routing.net (Postfix) with ESMTP id 099BC41A49; Mon, 2 Dec 2024 12:26:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1733142377; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sOTUUuXSqJqOxLQg93hTp4f/UPGOv1pJxXtTWZSbqk0=; b=H6OlpM3/Aac3DMKCYY3xlXS2VM/daKxJhSSZuR+OZegz3mMh4L5ncx4xE7yzEMKh2v3Smc UkqjZL3DcYF/npJy+F2M0yGgG6OEr53vOrttMOir+BrBeL4GhMr83nh78TY0n37xAmUj3X xhl6YhDXYKNdAtAsqmEzPSK7/mkbt+E= Received: from frank-u24.. (fttx-pool-217.61.149.104.bambit.de [217.61.149.104]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 77EDA360211; Mon, 2 Dec 2024 12:26:16 +0000 (UTC) From: Frank Wunderlich To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2 11/18] arm64: dts: mediatek: mt7988: add chosen node on bpi-r4 Date: Mon, 2 Dec 2024 13:25:52 +0100 Message-ID: <20241202122602.30734-12-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241202122602.30734-1-linux@fw-web.de> References: <20241202122602.30734-1-linux@fw-web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mail-ID: ce7d2449-692a-46b7-8c22-2fa241136984 Content-Type: text/plain; charset="utf-8" From: Frank Wunderlich Add chosen node on Bananapi R4 board with stdout and default bootargs. Signed-off-by: Frank Wunderlich Reviewed-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts b/arc= h/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts index 9037f35857a9..1c2a806f6f6c 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts +++ b/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts @@ -9,6 +9,11 @@ / { model =3D "Banana Pi BPI-R4"; chassis-type =3D "embedded"; =20 + chosen { + stdout-path =3D &serial0; + bootargs =3D "console=3DttyS0,115200n1"; + }; + reg_1p8v: regulator-1p8v { compatible =3D "regulator-fixed"; regulator-name =3D "fixed-1.8V"; --=20 2.43.0 From nobody Sat Feb 7 11:54:38 2026 Received: from mxout1.routing.net (mxout1.routing.net [134.0.28.11]) (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 14E88205AB9; Mon, 2 Dec 2024 12:26:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.0.28.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733142386; cv=none; b=Q5AQUfxUX8z8AwoiVoxnGVgqj1zFQME+FS4Ss2WUynhEcdxyunkGuIehTs0l1DGZMCbj2tGtqzxiYGdYD6oCSwxcdu3mKqtKYGVA2l+wTMutjBXyzLyJ3fdaTz2Gcg3E5VhLpvgpDmZt6Sxry/Vnd2hJ1jPueiHMKTCItJcp/qY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733142386; c=relaxed/simple; bh=kNCqLqPQhvgrWyLHdgnDefbSU0aJvKFmdDdV2saMnhA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cKtR3n9xRUln/wWXicVTsAozOK4rEsekGjEGI8DWrnXHkuCHGd6WUOcBjept7AVWynOf3J/oM9PFSN88cEZ1REcoPeSl8lBpSfEF6yPnegnwDwuvIYTb5sn+PZMyDdvCb+qxa8ycR6stLWGdObO2MfUaYVHOjENT9MW+MHaWVdI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de; spf=pass smtp.mailfrom=fw-web.de; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b=AeWwZsC6; arc=none smtp.client-ip=134.0.28.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fw-web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="AeWwZsC6" Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout1.routing.net (Postfix) with ESMTP id 9006241A61; Mon, 2 Dec 2024 12:26:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1733142377; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LO38YWQlKDPKx94YytUi0voflSUi444I/+TJIqE+cyA=; b=AeWwZsC6GepwJXqt2oaCwdTjZDB/rqFHyvg1IwPRVdgosWLDg0nmqKKy9wYjjvpoNJrGbT I7yavoCI3tsoV2I7beXAHwbvELObEPATxtsaHxNxLg7BYc5R5iepwgv4QBC9ACZf6mQTHl /a+gAYYOSrUSjJR5lENpiqyB10lZhGA= Received: from frank-u24.. (fttx-pool-217.61.149.104.bambit.de [217.61.149.104]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 06AAA360554; Mon, 2 Dec 2024 12:26:17 +0000 (UTC) From: Frank Wunderlich To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2 12/18] arm64: dts: mediatek: mt7988: add missing clock-div property for i2c Date: Mon, 2 Dec 2024 13:25:53 +0100 Message-ID: <20241202122602.30734-13-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241202122602.30734-1-linux@fw-web.de> References: <20241202122602.30734-1-linux@fw-web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mail-ID: e2d390f3-2774-4bd2-9ab9-5306062dcd01 Content-Type: text/plain; charset="utf-8" From: Frank Wunderlich I2C binding requires clock-div property. Signed-off-by: Frank Wunderlich Reviewed-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dt= s/mediatek/mt7988a.dtsi index abf81a7d02a5..956f2be600a2 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi @@ -274,6 +274,7 @@ i2c@11003000 { reg =3D <0 0x11003000 0 0x1000>, <0 0x10217080 0 0x80>; interrupts =3D ; + clock-div =3D <1>; clocks =3D <&infracfg CLK_INFRA_I2C_BCK>, <&infracfg CLK_INFRA_66M_AP_DMA_BCK>; clock-names =3D "main", "dma"; @@ -287,6 +288,7 @@ i2c@11004000 { reg =3D <0 0x11004000 0 0x1000>, <0 0x10217100 0 0x80>; interrupts =3D ; + clock-div =3D <1>; clocks =3D <&infracfg CLK_INFRA_I2C_BCK>, <&infracfg CLK_INFRA_66M_AP_DMA_BCK>; clock-names =3D "main", "dma"; @@ -300,6 +302,7 @@ i2c@11005000 { reg =3D <0 0x11005000 0 0x1000>, <0 0x10217180 0 0x80>; interrupts =3D ; + clock-div =3D <1>; clocks =3D <&infracfg CLK_INFRA_I2C_BCK>, <&infracfg CLK_INFRA_66M_AP_DMA_BCK>; clock-names =3D "main", "dma"; --=20 2.43.0 From nobody Sat Feb 7 11:54:38 2026 Received: from mxout2.routing.net (mxout2.routing.net [134.0.28.12]) (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 A45ED201273; Mon, 2 Dec 2024 12:26:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.0.28.12 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733142381; cv=none; b=iEqLfckjgULDXnq65SUa03wDBp/Gd+P/yNCfvrcPonC7yilRM+EPt0OAgfpMsOiBoGMT/MKcRu8D54prTjA3LY7kzwglGbjhw79Vdfw3XNRJgWTRzuPBtG0FY2IiF2GKOat41tjsZGDgstThNtcf+8cjLreLIPbT9yBrAFbDnqE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733142381; c=relaxed/simple; bh=vMk9LDnD938NDeSb5AMgNvWTbz9zZrpJj/Y3IFlZ3aI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jjq+Xe7BmGnP21beo2fmUi5M8MehXotNvHQ+CdzQldMkhncrADvVwecWRc3h35/6ydMtNAx/trDwVjrltrG3/6bZqnato9F9UJSzhwQ6ataGXl/UfJetIzsGCkBTVvNqLSFWCUftPTR0GtoJ+SOGolaiNFYvGiWa3LkehIjFsEo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de; spf=pass smtp.mailfrom=fw-web.de; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b=MQoQcayH; arc=none smtp.client-ip=134.0.28.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fw-web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="MQoQcayH" Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout2.routing.net (Postfix) with ESMTP id 1C20B60473; Mon, 2 Dec 2024 12:26:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1733142378; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+ufaR+T2J5dHCsyUEG18rn+qRf8TnwgZpnHT8JFBy00=; b=MQoQcayHUt9U+r0GqmPlWNHiI7Xo7LVFkTl7GDeyfv/CYdJgWvigs81e7Gj8LU1x+0m8yC f2dAkRzzQ83s8IpWB/VlSNPzFLEwQLxs8aeLYEFmRwRFBxUEagYpcI68KcEv1B1x1r0yGi 39UpIAXI/fgmMOXWFP4KmE68YSNCqMY= Received: from frank-u24.. (fttx-pool-217.61.149.104.bambit.de [217.61.149.104]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 8B9FF360211; Mon, 2 Dec 2024 12:26:17 +0000 (UTC) From: Frank Wunderlich To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2 13/18] arm64: dts: mediatek: mt7988: add i2c to bpi-r4 board Date: Mon, 2 Dec 2024 13:25:54 +0100 Message-ID: <20241202122602.30734-14-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241202122602.30734-1-linux@fw-web.de> References: <20241202122602.30734-1-linux@fw-web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mail-ID: 8adef2c0-690e-4a13-a2ba-5a41995967bc Content-Type: text/plain; charset="utf-8" From: Frank Wunderlich Add basic i2c nodes to bananapi R4 board. Signed-off-by: Frank Wunderlich Reviewed-by: AngeloGioacchino Del Regno --- .../boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts | 12 ++++++++++++ arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 6 +++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts b/arc= h/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts index 1c2a806f6f6c..13ca016d6a67 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts +++ b/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts @@ -61,6 +61,18 @@ cpu_trip_active_low: active-low { }; }; =20 +&i2c0 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&i2c0_pins>; + status =3D "okay"; +}; + +&i2c2 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&i2c2_1_pins>; + status =3D "okay"; +}; + &pio { mdio0_pins: mdio0-pins { mux { diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dt= s/mediatek/mt7988a.dtsi index 956f2be600a2..eebbdfe55774 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi @@ -269,7 +269,7 @@ serial@11000200 { status =3D "disabled"; }; =20 - i2c@11003000 { + i2c0: i2c@11003000 { compatible =3D "mediatek,mt7981-i2c"; reg =3D <0 0x11003000 0 0x1000>, <0 0x10217080 0 0x80>; @@ -283,7 +283,7 @@ i2c@11003000 { status =3D "disabled"; }; =20 - i2c@11004000 { + i2c1: i2c@11004000 { compatible =3D "mediatek,mt7981-i2c"; reg =3D <0 0x11004000 0 0x1000>, <0 0x10217100 0 0x80>; @@ -297,7 +297,7 @@ i2c@11004000 { status =3D "disabled"; }; =20 - i2c@11005000 { + i2c2: i2c@11005000 { compatible =3D "mediatek,mt7981-i2c"; reg =3D <0 0x11005000 0 0x1000>, <0 0x10217180 0 0x80>; --=20 2.43.0 From nobody Sat Feb 7 11:54:38 2026 Received: from mxout4.routing.net (mxout4.routing.net [134.0.28.9]) (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 A78EF202F8D; Mon, 2 Dec 2024 12:26:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.0.28.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733142383; cv=none; b=UwLYgGyO+wfjOUmbQ3l9KhJtrQ0Zwlc9XGZ8z91+kdsBAaFXxKHUfHJsbXqi4Ruev7SjwcY6+F/7voSGE4MK8ftz1+wmmKMbwScnq8kqtiIIcUpTSJBEvBe9veKuGFZw9t5750aPp7rtb4mXfkc9JuRbPZDwV8+AWrSDtqUegeE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733142383; c=relaxed/simple; bh=zhTVsD1iQxbOSl4zZ5cRk3kOrDA7QHDK5JgFIkS+U9w=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dKce1ICvpA7dt2klHnqGtA/Q7uZx6ZIUexyzaBiRHKGGYOga2ni45ycdU0XKJ4LYi3LOaMGQC9gwuUV9cecfgWqcTeB6pShrUA63z6ZC0h3OgdR41DJgD67HWIdETLUVs/XSkkJcnfCL0t1u1k+/gwb/w8t90cSd5M01ZfK16Ps= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de; spf=pass smtp.mailfrom=fw-web.de; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b=a2VkVkj4; arc=none smtp.client-ip=134.0.28.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fw-web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="a2VkVkj4" Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout4.routing.net (Postfix) with ESMTP id 99D36100DA9; Mon, 2 Dec 2024 12:26:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1733142378; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fWj2a6iJgEyx4JBOUG2+QMrMaM92E+beVv/wDZbE/NU=; b=a2VkVkj4A85DEa8J6HR25NO8kKWoz2UXxkil76wfkvBqho00n02Y+ku6AW5ukKXrA84G9e kkSquaLw2jymNg0Bd53INy4leLM3jT1Dru6SPzbcyfa6Lx1/KvsJVKB2zqPynPEFv1wm3G 6KFdVnaMqmEPZ0Rst03iT8IDciF5V/4= Received: from frank-u24.. (fttx-pool-217.61.149.104.bambit.de [217.61.149.104]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 159983600C0; Mon, 2 Dec 2024 12:26:18 +0000 (UTC) From: Frank Wunderlich To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2 14/18] arm64: dts: mediatek: mt7988: add pmic on bpi-r4 Date: Mon, 2 Dec 2024 13:25:55 +0100 Message-ID: <20241202122602.30734-15-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241202122602.30734-1-linux@fw-web.de> References: <20241202122602.30734-1-linux@fw-web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mail-ID: f2d1cb1f-9525-4d8c-b392-7f5c855564c5 Content-Type: text/plain; charset="utf-8" From: Frank Wunderlich Bananapi R4 Board contains a MT6682A pmic which is compatible to rt5190a. Add its node to the i2 controller. Signed-off-by: Frank Wunderlich Reviewed-by: AngeloGioacchino Del Regno --- .../dts/mediatek/mt7988a-bananapi-bpi-r4.dts | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts b/arc= h/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts index 13ca016d6a67..bc1ec73b8ddd 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts +++ b/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts @@ -2,6 +2,8 @@ =20 /dts-v1/; =20 +#include + #include "mt7988a.dtsi" =20 / { @@ -65,6 +67,55 @@ &i2c0 { pinctrl-names =3D "default"; pinctrl-0 =3D <&i2c0_pins>; status =3D "okay"; + + rt5190a_64: rt5190a@64 { + compatible =3D "richtek,rt5190a"; + reg =3D <0x64>; + vin2-supply =3D <&rt5190_buck1>; + vin3-supply =3D <&rt5190_buck1>; + vin4-supply =3D <&rt5190_buck1>; + + regulators { + rt5190_buck1: buck1 { + regulator-name =3D "rt5190a-buck1"; + regulator-min-microvolt =3D <5090000>; + regulator-max-microvolt =3D <5090000>; + regulator-allowed-modes =3D + ; + regulator-boot-on; + regulator-always-on; + }; + buck2 { + regulator-name =3D "vcore"; + regulator-min-microvolt =3D <600000>; + regulator-max-microvolt =3D <1400000>; + regulator-boot-on; + regulator-always-on; + }; + rt5190_buck3: buck3 { + regulator-name =3D "vproc"; + regulator-min-microvolt =3D <600000>; + regulator-max-microvolt =3D <1400000>; + regulator-boot-on; + }; + buck4 { + regulator-name =3D "rt5190a-buck4"; + regulator-min-microvolt =3D <850000>; + regulator-max-microvolt =3D <850000>; + regulator-allowed-modes =3D + ; + regulator-boot-on; + regulator-always-on; + }; + ldo { + regulator-name =3D "rt5190a-ldo"; + regulator-min-microvolt =3D <1200000>; + regulator-max-microvolt =3D <1200000>; + regulator-boot-on; + regulator-always-on; + }; + }; + }; }; =20 &i2c2 { --=20 2.43.0 From nobody Sat Feb 7 11:54:38 2026 Received: from mxout4.routing.net (mxout4.routing.net [134.0.28.9]) (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 B2F1D2036EB; Mon, 2 Dec 2024 12:26:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.0.28.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733142385; cv=none; b=Ji4MNPHGhmf14OGbu5m9VJJcsQ2XynaFYE1jkgT4L8/sFfMilJf1QE5C7xgHoOu48VMWihXycdlFNsjLrwvzKepLrJBZjIg3L1drB4251vCFfnBtccCSagWBqNF96j9Hg98J66DCZgYKH7IICm20HxqwJda0eD7/qdGfFb2c60Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733142385; c=relaxed/simple; bh=YT5WKc9cpizwaQa0z4LOGwWCi7DaITCP6cfL9Y/g2hM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UXed8cpLFDy35LoJJPemHyORrDbbHGYdp22RTgq2dQBOr+P2c1GsN5ZUzDhkEU0F11r8YeCrVVAvFnRvCWScym+ShAP/41mR7WO96xMVzKVQX5hJSgdUYs6dl+D1wtw1NMCIHJn7XYIjcyapkLe0WVtJgqU3M6IQIU9JbkNBH70= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de; spf=pass smtp.mailfrom=fw-web.de; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b=yAJwAZmU; arc=none smtp.client-ip=134.0.28.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fw-web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="yAJwAZmU" Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout4.routing.net (Postfix) with ESMTP id 23A24100DA4; Mon, 2 Dec 2024 12:26:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1733142379; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Mch10DIBi3tXOtxprf8O1i7f4Q2u3NNLnZFSAgGJOjQ=; b=yAJwAZmUyEiu+kekFbdArt27PgsYAE2PyGcJjwWnmwaSoyNPUACPK4BdPeXFB+oJpy1Y2x qx2rb8d7or9W6zXNThLaDic528Bno2IOKKNCxHBrORQq638qqf76qSpGfasxe1WMEEqp1I b00n+BKYvyuMLkS25PnQS2EqluA0Dpo= Received: from frank-u24.. (fttx-pool-217.61.149.104.bambit.de [217.61.149.104]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 981BE360554; Mon, 2 Dec 2024 12:26:18 +0000 (UTC) From: Frank Wunderlich To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2 15/18] arm64: dts: mediatek: mt7988: add proc-supply for cpus on bpi-r4 Date: Mon, 2 Dec 2024 13:25:56 +0100 Message-ID: <20241202122602.30734-16-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241202122602.30734-1-linux@fw-web.de> References: <20241202122602.30734-1-linux@fw-web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mail-ID: 02459d1f-b577-4b20-bd96-fff9427d79dd Content-Type: text/plain; charset="utf-8" From: Frank Wunderlich Add proc-supply property to cpus on Bananapi R4 board. Signed-off-by: Frank Wunderlich Reviewed-by: AngeloGioacchino Del Regno --- .../dts/mediatek/mt7988a-bananapi-bpi-r4.dts | 16 ++++++++++++++++ arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 8 ++++---- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts b/arc= h/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts index bc1ec73b8ddd..550c373b3d70 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts +++ b/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts @@ -35,6 +35,22 @@ reg_3p3v: regulator-3p3v { }; }; =20 +&cpu0 { + proc-supply =3D <&rt5190_buck3>; +}; + +&cpu1 { + proc-supply =3D <&rt5190_buck3>; +}; + +&cpu2 { + proc-supply =3D <&rt5190_buck3>; +}; + +&cpu3 { + proc-supply =3D <&rt5190_buck3>; +}; + &cpu_thermal { trips { cpu_trip_hot: hot { diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dt= s/mediatek/mt7988a.dtsi index eebbdfe55774..93c21a5248fa 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi @@ -16,7 +16,7 @@ cpus { #address-cells =3D <1>; #size-cells =3D <0>; =20 - cpu@0 { + cpu0: cpu@0 { compatible =3D "arm,cortex-a73"; reg =3D <0x0>; device_type =3D "cpu"; @@ -27,7 +27,7 @@ cpu@0 { operating-points-v2 =3D <&cluster0_opp>; }; =20 - cpu@1 { + cpu1: cpu@1 { compatible =3D "arm,cortex-a73"; reg =3D <0x1>; device_type =3D "cpu"; @@ -38,7 +38,7 @@ cpu@1 { operating-points-v2 =3D <&cluster0_opp>; }; =20 - cpu@2 { + cpu2: cpu@2 { compatible =3D "arm,cortex-a73"; reg =3D <0x2>; device_type =3D "cpu"; @@ -49,7 +49,7 @@ cpu@2 { operating-points-v2 =3D <&cluster0_opp>; }; =20 - cpu@3 { + cpu3: cpu@3 { compatible =3D "arm,cortex-a73"; reg =3D <0x3>; device_type =3D "cpu"; --=20 2.43.0 From nobody Sat Feb 7 11:54:38 2026 Received: from mxout2.routing.net (mxout2.routing.net [134.0.28.12]) (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 4D75B2036E2; Mon, 2 Dec 2024 12:26:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.0.28.12 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733142383; cv=none; b=ogvXTW2t4FVvuX6+58FOx3M0lrNnXvmdh0cLeShcogDTUBZ47tSBC+HSILsNWEDeNzfeVQhwIq4IM0grCXiOpYfvmRd5MEJBaxFPX9/3I5bO6Ir17Em14rXRZVHnbkGuHLb/PKASHKIBooqMrSD0a7BcN/jQpJjPiPSCdkucaok= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733142383; c=relaxed/simple; bh=v/lvT40iQkeFihnGl29We4f/Ljx2oLq5cwc5zGdZYVc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CyJfxUOKK5h818X7AOvcXVAyMdf11vyp7ZveDHOQKGrj+Mpj4uKoMwpt7DLZ2fVSi1NAVHPdZw1Bef4mu4IK98E4rCXcJkjav/6v6wnqlFX/5pM6q+Zms2CTfbemOyG776HpKLbeA5Zad043/LroiFrT6QhMs355oWMun0XvBQ8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de; spf=pass smtp.mailfrom=fw-web.de; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b=ve43uN6Z; arc=none smtp.client-ip=134.0.28.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fw-web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="ve43uN6Z" Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout2.routing.net (Postfix) with ESMTP id 9FE8B6046B; Mon, 2 Dec 2024 12:26:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1733142379; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=F+NbD+wZQ6ShmiTE1VBzMI+WZ0I6gWWrVj/25CLxM5M=; b=ve43uN6ZvLOqxl2lmQMnJ2uQBQ+GcRMqa7bX86qX3Rj4PskemQh4N+1kxThe4XiUI/niXd Pgi9K8zr/j6hiFg/Tr7qFLYke3t8Jl5TsGndIEMtlCYkIJ6KhbZx4s7xJzMZ17543iOYGd uWXgm58HtaO5BTDeREfkSZVidlC8rpY= Received: from frank-u24.. (fttx-pool-217.61.149.104.bambit.de [217.61.149.104]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 23765360552; Mon, 2 Dec 2024 12:26:19 +0000 (UTC) From: Frank Wunderlich To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2 16/18] arm64: dts: mediatek: mt7988: add i2c-mux on bpi-r4 Date: Mon, 2 Dec 2024 13:25:57 +0100 Message-ID: <20241202122602.30734-17-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241202122602.30734-1-linux@fw-web.de> References: <20241202122602.30734-1-linux@fw-web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mail-ID: e9fef51d-d790-4f4a-a033-1e5bd1d942c1 Content-Type: text/plain; charset="utf-8" From: Frank Wunderlich Bananapi R4 uses an i2c multiplexer for SFP slots, rtc and eeprom. Add its node to the right i2c controller. Signed-off-by: Frank Wunderlich Reviewed-by: AngeloGioacchino Del Regno --- --- .../dts/mediatek/mt7988a-bananapi-bpi-r4.dts | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts b/arc= h/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts index 550c373b3d70..9ceefc990000 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts +++ b/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts @@ -2,6 +2,7 @@ =20 /dts-v1/; =20 +#include #include =20 #include "mt7988a.dtsi" @@ -138,6 +139,45 @@ &i2c2 { pinctrl-names =3D "default"; pinctrl-0 =3D <&i2c2_1_pins>; status =3D "okay"; + + pca9545: i2c-mux@70 { + reg =3D <0x70>; + compatible =3D "nxp,pca9545"; + reset-gpios =3D <&pio 5 GPIO_ACTIVE_LOW>; + #address-cells =3D <1>; + #size-cells =3D <0>; + + i2c@0 { + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <0>; + + pcf8563: rtc@51 { + compatible =3D "nxp,pcf8563"; + reg =3D <0x51>; + #clock-cells =3D <0>; + }; + + eeprom@57 { + compatible =3D "atmel,24c02"; + reg =3D <0x57>; + size =3D <256>; + }; + + }; + + i2c_sfp1: i2c@1 { + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <1>; + }; + + i2c_sfp2: i2c@2 { + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <2>; + }; + }; }; =20 &pio { --=20 2.43.0 From nobody Sat Feb 7 11:54:38 2026 Received: from mxout4.routing.net (mxout4.routing.net [134.0.28.9]) (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 D4BD61FECAC; Mon, 2 Dec 2024 12:26:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.0.28.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733142386; cv=none; b=htl80RoPuEezZpLNH7rMlfkyqTFXjcLl6jbOT7xrJh4cj3bjnxXByHGyfFjXAppbEJ9/pFs3qC8Yql8IeREOcWI1jqVXSeZx54tBqoODR5Mlrekk7FXH9SOjGsvuZ0e8xYgMGfCdT6+xevT3ysN2iFcD+l6y7ubOqjs3wfvuiII= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733142386; c=relaxed/simple; bh=xLprQlIqNKxyVeP42J/u1rSD08lzXU1wrf6cPOyrbuk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=LxCEXJOEMgHc4cnrlwdNr3UiW7vAQ3HbqJWpNc5y0JKBxSoZVsSHlx44+dRHZrKMfAB70Slg11jmKaW4TY9uGxc2SiCedHSVA2F2FWm9cz4yfHOXdJl9RnaXkB79V5+BMqyvx254KVU7iwsgPj+qlXyVf2q9VvTmA/Ci24xpSuo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de; spf=pass smtp.mailfrom=fw-web.de; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b=hrLB8VeH; arc=none smtp.client-ip=134.0.28.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fw-web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="hrLB8VeH" Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout4.routing.net (Postfix) with ESMTP id 2B90B100942; Mon, 2 Dec 2024 12:26:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1733142380; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZnCQcuap27aQvWaJkwaLNH/UmeyU0Tp7uQ2SHxBdKYo=; b=hrLB8VeH2sW2jHCznKzHfXlutYsYdI9gbBFN7R5KpeWJQEC3PwJXZgh/xXKBZ+yXdq1Z8Y rJgCEWrnUttDz3idjcFVDtcOgwQUxJZVyBr8VcbBcN5aI54I28Xk3dgu6gdE0Swrnq56xj WgC+gyRJhJpks9J2OD1Jq3vfcMELUZs= Received: from frank-u24.. (fttx-pool-217.61.149.104.bambit.de [217.61.149.104]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 9D2A73600C0; Mon, 2 Dec 2024 12:26:19 +0000 (UTC) From: Frank Wunderlich To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2 17/18] arm64: dts: mediatek: mt7988: enable ssusb1 on bpi-r4 Date: Mon, 2 Dec 2024 13:25:58 +0100 Message-ID: <20241202122602.30734-18-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241202122602.30734-1-linux@fw-web.de> References: <20241202122602.30734-1-linux@fw-web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mail-ID: 1f99d702-05b9-4d36-a621-a42fdbb3903e Content-Type: text/plain; charset="utf-8" From: Frank Wunderlich Enable front-usb on Bananapi R4 board. Signed-off-by: Frank Wunderlich Reviewed-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts | 4 ++++ arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts b/arc= h/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts index 9ceefc990000..12b45b18955b 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts +++ b/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts @@ -373,6 +373,10 @@ &serial0 { status =3D "okay"; }; =20 +&ssusb1 { + status =3D "okay"; +}; + &watchdog { status =3D "okay"; }; diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dt= s/mediatek/mt7988a.dtsi index 93c21a5248fa..2be84acac06a 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi @@ -336,7 +336,7 @@ usb@11190000 { clock-names =3D "sys_ck", "ref_ck", "mcu_ck", "dma_ck", "xhci_ck"; }; =20 - usb@11200000 { + ssusb1: usb@11200000 { compatible =3D "mediatek,mt7988-xhci", "mediatek,mtk-xhci"; reg =3D <0 0x11200000 0 0x2e00>, <0 0x11203e00 0 0x0100>; --=20 2.43.0 From nobody Sat Feb 7 11:54:38 2026 Received: from mxout3.routing.net (mxout3.routing.net [134.0.28.8]) (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 4CC5E1FECA2; Mon, 2 Dec 2024 12:26:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.0.28.8 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733142383; cv=none; b=TnJo9z1+PNqgPxev9wXZoWXLdE/fLqeqFGJzNzAKQXYZQnj3bBFc1o8t9Jwtqistco6pzMNmjzGcJyyq37HTZOx45Njo/X2SwnwuWu8m66ZYcsh+mhW0pDAPPSsuSSX2fmkaU/Bwyy/C9cexRF2q11kH4fL8sVawGop1Gd/XXuQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733142383; c=relaxed/simple; bh=tXmGE50YOIz5SzcYHsKev2mYhOC/YO1vLvPg1XfuhQo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=U/AgMvGxDLiTA2Z8xWI1W5DDkNGsFeg8BTo5v4s/dhuijTllApa4AAJeFoe4/hVL/ZpO8AkLmPDcb4fPqxwJqJ08OYQ+fNYP6AzLOech9FVg0vmJgrDEaMLBndmR9F6xwvBv+Paa1SuNQQy+2UgJSKSgbNxDhBmPTEuxQtjaL6c= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de; spf=pass smtp.mailfrom=fw-web.de; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b=miO23gm/; arc=none smtp.client-ip=134.0.28.8 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fw-web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="miO23gm/" Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout3.routing.net (Postfix) with ESMTP id DB71A613E1; Mon, 2 Dec 2024 12:26:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1733142380; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RLz82rdcKDrgd4xoVhfZ0YMlDvGMQtoiJXXkans2pP0=; b=miO23gm/nSsZ0oaYi8oGEcKaTVbGDLIaibifAiQnTfcQ+/HVeFzS8Ecbj7B/tmd76ZdQVh g/gCLu2HYWBaWGbGtAs/NRBB2pO9bf/JZ0kpF6UzKZm2+fS2iMyc+qtRedSdHP3bJ+RUkp 4shDPCZ6jPdOMXcWZWOud8ReGk1yb/8= Received: from frank-u24.. (fttx-pool-217.61.149.104.bambit.de [217.61.149.104]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 28516360552; Mon, 2 Dec 2024 12:26:20 +0000 (UTC) From: Frank Wunderlich To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2 18/18] arm64: dts: mediatek: mt7988: enable pwm on bpi-r4 Date: Mon, 2 Dec 2024 13:25:59 +0100 Message-ID: <20241202122602.30734-19-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241202122602.30734-1-linux@fw-web.de> References: <20241202122602.30734-1-linux@fw-web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mail-ID: 4134b58f-ee95-4f76-aa1e-472263d0e3cf Content-Type: text/plain; charset="utf-8" From: Frank Wunderlich Enable pwm on Bananapi R4 board. Signed-off-by: Frank Wunderlich Reviewed-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts | 4 ++++ arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts b/arc= h/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts index 12b45b18955b..181bb997cd8d 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts +++ b/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts @@ -369,6 +369,10 @@ mux { }; }; =20 +&pwm { + status =3D "okay"; +}; + &serial0 { status =3D "okay"; }; diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dt= s/mediatek/mt7988a.dtsi index 2be84acac06a..11651f5e167d 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi @@ -211,7 +211,7 @@ mux { }; }; =20 - pwm@10048000 { + pwm: pwm@10048000 { compatible =3D "mediatek,mt7988-pwm"; reg =3D <0 0x10048000 0 0x1000>; clocks =3D <&infracfg CLK_INFRA_66M_PWM_BCK>, --=20 2.43.0