From patchwork Mon Dec 2 12:25:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 13890515 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8FBADD78312 for ; Mon, 2 Dec 2024 12:27:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=I8v2guR/DqSDPQbSGDrw5WvcAqYbrWwp+FqeYEM2590=; b=EsdXu2O8A0++3TAntrEmN6su0f AcRo2wtt3dNCVEltbGaVU3znUbC8IzFvYWraG5PooHHsRmH2nDXZzgz1mHY2v2A8WSdSyXsxJTXxw mk6uHd5Ij5EhlYvre1UO6VxgObdZiWgdoDkLIvovgewGXzWdODMzoaiNF70n8u03WIcgdKTNvWoUy 3LgYgJt93Mp5j84vyVYGHAz8fhq4VTLMxL8qaiKulVbkvceUIrZJK+riEI+LNG1rx0FkOvQ6PGyFz UNC6OQhta9PZTisrXA020J9lwsYhoYREbW7YILuw3p6z69XtTPCZNhSXhcRh5G98g3BPyaKGEGFEn hX40Btew==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tI5WD-000000064L8-40c6; Mon, 02 Dec 2024 12:27:13 +0000 Received: from mxout3.routing.net ([2a03:2900:1:a::8]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tI5VE-00000006464-3IbZ; Mon, 02 Dec 2024 12:26:14 +0000 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> MIME-Version: 1.0 X-Mail-ID: ee49b488-8f49-4350-aa87-37bdea1244f4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241202_042612_983478_0D1B79BA X-CRM114-Status: UNSURE ( 8.49 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Frank Wunderlich Enable the watchdog on Bananapi R4 board. Signed-off-by: Frank Wunderlich --- 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/arch/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 = "okay"; +}; From patchwork Mon Dec 2 12:25:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 13890516 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 39ECBD78311 for ; Mon, 2 Dec 2024 12:28:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=EZod1ka4k4PMMYK+yDubLbP92ZqquD7GvgNYdPg+tk0=; b=wMEsBbs7hc8OL9RefCJAOOTJQv cEkkZ8XYBqSNzGh7Wzi6o/5AwByODry1jrY+vsChhrwLMghV7O5ZADV5ql5+YGMEdId8680roErUz IZ9Vv+svtOKDIKtDU8zepIzcCU07ShW34EWxprSbGqZrmrlOrxmM56PJLEVkT+mqaQ+f3jUnakUQu MVTJh12elL7nz+oSbuxjX8yQEWKxE1Bbd1430ywWLRINsLSGJ0tDl6HtXXE+qt6t6Ma0wHXGhRWjn +WK+6GpOflzlT43pCia1Yv4Mbylg/NPek7r0Tloa8GnoIheDJYUZcFfWDz+FH09n2x/bM/m2YZZSY /yy57R0Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tI5XB-000000064a5-3WRF; Mon, 02 Dec 2024 12:28:13 +0000 Received: from mxout1.routing.net ([2a03:2900:1:a::a]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tI5VF-0000000646N-1KY2; Mon, 02 Dec 2024 12:26:14 +0000 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> MIME-Version: 1.0 X-Mail-ID: fe7dd4f1-c909-412b-8423-4600a8939fcd X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241202_042613_497032_183C900B X-CRM114-Status: GOOD ( 10.09 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Frank Wunderlich Add devicetree node for MMC controller. Signed-off-by: Frank Wunderlich --- 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/dts/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 = <1>; }; - clock-controller@1001e000 { + apmixedsys: clock-controller@1001e000 { compatible = "mediatek,mt7988-apmixedsys"; reg = <0 0x1001e000 0 0x1000>; #clock-cells = <1>; @@ -278,6 +278,28 @@ usb@11200000 { clock-names = "sys_ck", "ref_ck", "mcu_ck", "dma_ck", "xhci_ck"; }; + mmc0: mmc@11230000 { + compatible = "mediatek,mt7988-mmc"; + reg = <0 0x11230000 0 0x1000>, + <0 0x11D60000 0 0x1000>; + interrupts = ; + clocks = <&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 = <&topckgen CLK_TOP_EMMC_250M_SEL>, + <&topckgen CLK_TOP_EMMC_400M_SEL>; + assigned-clock-parents = <&topckgen CLK_TOP_NET1PLL_D5_D2>, + <&apmixedsys CLK_APMIXED_MSDCPLL>; + clock-names = "source", + "hclk", + "axi_cg", + "ahb_cg"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + clock-controller@11f40000 { compatible = "mediatek,mt7988-xfi-pll"; reg = <0 0x11f40000 0 0x1000>; From patchwork Mon Dec 2 12:25:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 13890524 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 08CD6D78312 for ; Mon, 2 Dec 2024 12:30:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=xvio4qYnn152relW8d8dOOQlvOo0mSc7MB7Rnu0hWEg=; b=yrwbjDAxZjVHgTNn98YYgeQuKM 7zzNMVjNA/ti182OrJ3Z1XYJOITq+JBnNwTlsigoqw9hA6mNFfLH8uuTOrIMHk+kVuzxhJVxSHcsY COnAhrsrOjKErcj3KcI9BtoJ3axDzXhFMRskuT2EezIiWxMMh2mU2vo1tM/HQmy6pipPQf3oqOB9a JCs1Qinja5NPoV3p/hwgKddqiJEtIUgzr+p1aJqta7F6Zb95vSinzSS6x1YawyYMCiuZsTZPuIF5X lnNsnmAN+uymT0QzvEL6HelfItXJj15mZJFcvW/InceCb3/jbKndPgHzOfCFnJdGBfp4mcHxrusBt /eE7Z8mg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tI5Z7-0000000656P-3pg8; Mon, 02 Dec 2024 12:30:13 +0000 Received: from mxout3.routing.net ([2a03:2900:1:a::8]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tI5VF-0000000646O-2MZE; Mon, 02 Dec 2024 12:26:14 +0000 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> MIME-Version: 1.0 X-Mail-ID: f3d04e75-e09a-4074-aa49-cde4d43063c7 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241202_042613_738763_16681825 X-CRM114-Status: UNSURE ( 8.37 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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/arch/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 = "bananapi,bpi-r4", "mediatek,mt7988a"; model = "Banana Pi BPI-R4"; chassis-type = "embedded"; + + reg_1p8v: regulator-1p8v { + compatible = "regulator-fixed"; + regulator-name = "fixed-1.8V"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + + reg_3p3v: regulator-3p3v { + compatible = "regulator-fixed"; + regulator-name = "fixed-3.3V"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; }; &pio { From patchwork Mon Dec 2 12:25:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 13890525 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8F21ED78312 for ; Mon, 2 Dec 2024 12:31:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=5TWzayKwl6vTitRugS2EOw67/+C7PLCqur4K/uzJmtc=; b=F9Qss0LCZ/aUkUbdL76Z3Ph375 ZzAgcb9Sl+4bKheK0OLvVkkndMMN1T2k6S3a7WZRkrE46Idcv5EV682AiqHLtM4qMmBd+JhQLUXPF +iGr7Ev5V1gur63dtHbQq5o4qoV638W44FwPneuXCJ2hDiTYg0GbzCyVgTTIZQZEuhcYh+JMOW3nT czAdlu0XiUgrGos/dVSAvdGPX8WC+8UOeX8ExTBukPWctBF2Ixe08gRHRUUOKsMQdVQyM7GPgWbqL 5UC7qT6PAesFOed7kk6ZvS4P7w5kUSYm30U+LrVkaTdSLrA2fOJi9SHqPYWTb5NR4xrFP+Qly9yKU 3Pc6HPsg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tI5a5-000000065IF-3mBM; Mon, 02 Dec 2024 12:31:13 +0000 Received: from mxout2.routing.net ([2a03:2900:1:a::b]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tI5VG-0000000646r-1Y8m; Mon, 02 Dec 2024 12:26:15 +0000 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> MIME-Version: 1.0 X-Mail-ID: 8b4c00e1-9437-4750-95d9-f1438fe1860c X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241202_042614_551291_A03AEA4E X-CRM114-Status: GOOD ( 10.64 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Frank Wunderlich Add Low Voltage Thermal Sensor (LVTS) node for mt7988 SoC. Signed-off-by: Frank Wunderlich --- changes: v2: squash - "arm64: dts: mediatek: mt7988: add label for efuse" - "arm64: dts: mediatek: mt7988: extend efuse node" (drop other efuse subnodes) --- 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/dts/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 / { compatible = "mediatek,mt7988a"; @@ -85,6 +86,7 @@ infracfg: clock-controller@10001000 { compatible = "mediatek,mt7988-infracfg", "syscon"; reg = <0 0x10001000 0 0x1000>; #clock-cells = <1>; + #reset-cells = <1>; }; topckgen: clock-controller@1001b000 { @@ -250,6 +252,17 @@ i2c@11005000 { status = "disabled"; }; + lvts: lvts@1100a000 { + compatible = "mediatek,mt7988-lvts-ap"; + #thermal-sensor-cells = <1>; + reg = <0 0x1100a000 0 0x1000>; + clocks = <&infracfg CLK_INFRA_26M_THERM_SYSTEM>; + interrupts = ; + resets = <&infracfg MT7988_INFRA_RST1_THERM_CTRL_SWRST>; + nvmem-cells = <&lvts_calibration>; + nvmem-cell-names = "lvts-calib-data-1"; + }; + usb@11190000 { compatible = "mediatek,mt7988-xhci", "mediatek,mtk-xhci"; reg = <0 0x11190000 0 0x2e00>, @@ -307,11 +320,15 @@ clock-controller@11f40000 { #clock-cells = <1>; }; - efuse@11f50000 { + efuse: efuse@11f50000 { compatible = "mediatek,mt7988-efuse", "mediatek,efuse"; reg = <0 0x11f50000 0 0x1000>; #address-cells = <1>; #size-cells = <1>; + + lvts_calibration: calib@918 { + reg = <0x918 0x28>; + }; }; clock-controller@15000000 { From patchwork Mon Dec 2 12:25:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 13890527 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E8792D78312 for ; Mon, 2 Dec 2024 12:33:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=jw+uC3F3A8GgcANM/UNNMs5AkPYbDaHhbB4jkeAKO+o=; b=Q2sHtHWwpcgiJpfzhbStO0fWn/ ob1tEjRKhH+G4hJEjmloe9ZLvyCEpXob//XkW3hgcu1zxJfrBAN2NIgo66dFUi3XaFv5+ulHrzQFr vuFULhHCydOaJGbbTHrLeDlkCbkn15T4D0dHpVWCBVW40RnRUFvphL5RATuOMIQu1WydKi/m2kiU7 MocfFBEdXOLXhUdcUn4fIlrVqofiMxkCy6/jG5NzGeicsU3dI3jylprnnChMYRsr1av1ipHGAAZuZ XsrDImnnZ5+crDfZLbTQhBAhmVjaOZw1t+/ozT515IMIXBn4rxDxRqY9Wc4QMe6PAWpxS5oKyh74r AG+v0K4g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tI5c0-000000065cm-3hea; Mon, 02 Dec 2024 12:33:12 +0000 Received: from mxout1.routing.net ([2a03:2900:1:a::a]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tI5VH-00000006488-3rZh; Mon, 02 Dec 2024 12:26:17 +0000 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> MIME-Version: 1.0 X-Mail-ID: fe9c35d5-daa5-4b69-81e2-3ca66948d589 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241202_042616_107418_DFA07796 X-CRM114-Status: UNSURE ( 8.74 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Frank Wunderlich Add basic thermal-zone node. Signed-off-by: Frank Wunderlich --- 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/dts/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 { }; }; + thermal-zones { + cpu_thermal: cpu-thermal { + polling-delay-passive = <1000>; + polling-delay = <1000>; + thermal-sensors = <&lvts 0>; + trips { + cpu_trip_crit: crit { + temperature = <125000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + }; + timer { compatible = "arm,armv8-timer"; interrupt-parent = <&gic>; From patchwork Mon Dec 2 12:25:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 13890526 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0235ED78312 for ; Mon, 2 Dec 2024 12:32:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=QlHsPSsds4wfVdPuw/KHUgIalps/TN1syiynk/4rlxw=; b=BLoShrwtn0L+nHcup8K76EJaOK e0uGhWUeSOEq1k7TxmaYppYTktlnhmuAWaPvG7h6PZ7SQr5zWGaue/Dk4B+WOCRHnxcrJL+kMl3EB Jbh2zrEzKni12D46Kpxqtnd6BJzSO8j0PaIzYO0H8apRTODwjZrvIY841QSenUedfpqvTlENhDksh HbH/Ua8B48E+fUIR8SYqk15AoF64C+7v+0BNwpY/5n8j6wBMrXgsh16wQEAVy+dYNEcjxnVf2hmXJ eRFjLpYgHTCUhI8bE+bP3u2RoEu53ttEK8/5ZotIOMRJIo5aDhnn2kNLQxpq3+7rcxglRwq3vza9r /WOpYXUw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tI5b2-000000065Qm-3mW9; Mon, 02 Dec 2024 12:32:12 +0000 Received: from mxout2.routing.net ([2a03:2900:1:a::b]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tI5VH-0000000647a-0zUw; Mon, 02 Dec 2024 12:26:16 +0000 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> MIME-Version: 1.0 X-Mail-ID: 6c17b30a-1971-4b14-a2ad-0f3552d83a74 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241202_042615_416918_A0328C89 X-CRM114-Status: UNSURE ( 8.68 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Frank Wunderlich Add additional thermal trips to Bananapi R4 board. SoC only contains the critical trip. Signed-off-by: Frank Wunderlich --- .../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/arch/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 { }; }; +&cpu_thermal { + trips { + cpu_trip_hot: hot { + temperature = <120000>; + hysteresis = <2000>; + type = "hot"; + }; + + cpu_trip_active_high: active-high { + temperature = <115000>; + hysteresis = <2000>; + type = "active"; + }; + + cpu_trip_active_med: active-med { + temperature = <85000>; + hysteresis = <2000>; + type = "active"; + }; + + cpu_trip_active_low: active-low { + temperature = <40000>; + hysteresis = <2000>; + type = "active"; + }; + }; +}; + &pio { mdio0_pins: mdio0-pins { mux { From patchwork Mon Dec 2 12:25:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 13890537 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3D1AFD78311 for ; Mon, 2 Dec 2024 12:34:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=0EXR8idz0jZrwTu0ZraBXOMpYUYvi61Qv1pOwi0q8Gg=; b=uTuiMNDDQF9UVoP+PFjWx91YIb DT8wTYABmFFvzv3F3G1NwUq9AW9ddWtWLEPvnNMJD8QfZLhpZydJw95ScpBiXfAU0J2ZADdeXdRg0 SHXCyajc58GFU/IiyPKsr+B95nPYcVSbERNhJgSivdsF9PaWQ3SWouZkQgTBnEYO61gKUnG8g/Sby 3eyXxhG1mTV3djGYqW6VJybjavyfi4Zt/18lLtGxmgJ1NXmI3tEwt9Fy/Z3CrNXfASlHyF6A7GpLh aFSPNUPzwjo3z+lG0PphU8bRXrN7nhwzadhgQge00qrNdwlw8dZqqawXfWJBvDKCgL4kC8hwAQotf idGJE8wA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tI5cx-000000065lI-36cX; Mon, 02 Dec 2024 12:34:11 +0000 Received: from mxout4.routing.net ([2a03:2900:1:a::9]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tI5VH-00000006487-3vGS; Mon, 02 Dec 2024 12:26:17 +0000 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> MIME-Version: 1.0 X-Mail-ID: d44b10d0-8dcf-40cb-8484-051ea16b9861 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241202_042616_110661_90127FA5 X-CRM114-Status: UNSURE ( 9.58 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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/dts/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 = "smc"; }; + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + /* 320 KiB reserved for ARM Trusted Firmware (BL31 and BL32) */ + secmon_reserved: secmon@43000000 { + reg = <0 0x43000000 0 0x50000>; + no-map; + }; + }; + soc { compatible = "simple-bus"; ranges; From patchwork Mon Dec 2 12:25:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 13890538 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2E34AD78314 for ; Mon, 2 Dec 2024 12:35:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=bf0wU1/QYkNghuSaTTJ0zcYOBhFOpXxvLvBEJ3/2A98=; b=0mSQdoDx13eTnldocDESodD7dm ZhTKlSrbQxRqsBhwvL+VhOCRGZPufoy39LrCFifA/bLKFeJSbyhxEMDmzpaBEIndHZrQqK5N+/XCJ 2jvGKzB7o11hMUHjhxnGpPMAAQG+rzbH349FmT1JKoy13sScqlq+/JYZdOshs3cvaWXKa67fs21js aZAHxECTF+U95rtEsw2O7i6otBN92UhRGE3j7cvUmu76yZGnSwFDwGO2sZNWQwiRj5V1ZqANdicxD 3Y6qIKipr3lecd+mZhUIbXXmlQxiO3uYxILZayeYcQzOFHajv62ibh8RzMmGgLm7j0r8fvTghU2Qk xpjK+EqA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tI5dv-000000065x2-3tTz; Mon, 02 Dec 2024 12:35:11 +0000 Received: from mxout1.routing.net ([2a03:2900:1:a::a]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tI5VI-0000000648Y-321f; Mon, 02 Dec 2024 12:26:17 +0000 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> MIME-Version: 1.0 X-Mail-ID: 1636f77e-5670-4746-b648-6f76788a7fe4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241202_042616_903041_9E09BAF6 X-CRM114-Status: UNSURE ( 9.12 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Frank Wunderlich Add mcu-sys node which is used later as clock-controller for cpus. Signed-off-by: Frank Wunderlich --- 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/dts/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 = "disabled"; }; + mcusys: mcusys@100e0000 { + compatible = "mediatek,mt7988-mcusys", "syscon"; + reg = <0 0x100e0000 0 0x1000>; + #clock-cells = <1>; + }; + serial@11000000 { compatible = "mediatek,mt7988-uart", "mediatek,mt6577-uart"; reg = <0 0x11000000 0 0x100>; From patchwork Mon Dec 2 12:25:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 13890539 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 10DA5D78313 for ; Mon, 2 Dec 2024 12:36:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=lGxVt+qQLZJkkFVJS2L97CoPUefk9As7+zZxbYek0c8=; b=wd7a6xP9FmmA52qX7HXBPuMtUb K7hdgGO94I1xCHgmV+LuGnrpaXBum2D7UwWQViTu3+EbmwoPZufU7QLGf4oMa0p/KJL80Ns9Z3Juj arN1j2qgebrHvR0QA2tWeSKx/l2zPOqS2nC/KIQV/kObYPlTvWQ6ZhaWy6ac0N/KRFVrL95BF9YCR exw9+9t4dvxfGjvvfrFTiiTy6by1g33sHNfXx4nsx9t9RwEBuwK5zM58scmGy+8x2ngV3wu8VRbe3 OYuQ05z8BX8Iitka91AJ0YTlJfL9W1h/VMrBuL8pM0/PPU9Ioss2BPHatdJj/vZFN6oiSRCpFPCOW lHtcJhWw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tI5es-0000000667J-3WR8; Mon, 02 Dec 2024 12:36:10 +0000 Received: from mxout4.routing.net ([2a03:2900:1:a::9]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tI5VJ-00000006494-1Uwx; Mon, 02 Dec 2024 12:26:18 +0000 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> MIME-Version: 1.0 X-Mail-ID: dca3eac9-8f12-478a-ae0e-dd080f463b3a X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241202_042617_534069_64A642EA X-CRM114-Status: UNSURE ( 8.38 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Frank Wunderlich Add operating points defining frequency/voltages of cpu cores. Signed-off-by: Frank Wunderlich --- 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/dts/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 = <0x0>; device_type = "cpu"; enable-method = "psci"; + clocks = <&mcusys CLK_MCU_ARM_DIV_SEL>, + <&topckgen CLK_TOP_XTAL>; + clock-names = "cpu", "intermediate"; + operating-points-v2 = <&cluster0_opp>; }; cpu@1 { @@ -28,6 +32,10 @@ cpu@1 { reg = <0x1>; device_type = "cpu"; enable-method = "psci"; + clocks = <&mcusys CLK_MCU_ARM_DIV_SEL>, + <&topckgen CLK_TOP_XTAL>; + clock-names = "cpu", "intermediate"; + operating-points-v2 = <&cluster0_opp>; }; cpu@2 { @@ -35,6 +43,10 @@ cpu@2 { reg = <0x2>; device_type = "cpu"; enable-method = "psci"; + clocks = <&mcusys CLK_MCU_ARM_DIV_SEL>, + <&topckgen CLK_TOP_XTAL>; + clock-names = "cpu", "intermediate"; + operating-points-v2 = <&cluster0_opp>; }; cpu@3 { @@ -42,6 +54,32 @@ cpu@3 { reg = <0x3>; device_type = "cpu"; enable-method = "psci"; + clocks = <&mcusys CLK_MCU_ARM_DIV_SEL>, + <&topckgen CLK_TOP_XTAL>; + clock-names = "cpu", "intermediate"; + operating-points-v2 = <&cluster0_opp>; + }; + + cluster0_opp: opp-table-0 { + compatible = "operating-points-v2"; + opp-shared; + + opp-800000000 { + opp-hz = /bits/ 64 <800000000>; + opp-microvolt = <850000>; + }; + opp-1100000000 { + opp-hz = /bits/ 64 <1100000000>; + opp-microvolt = <850000>; + }; + opp-1500000000 { + opp-hz = /bits/ 64 <1500000000>; + opp-microvolt = <850000>; + }; + opp-1800000000 { + opp-hz = /bits/ 64 <1800000000>; + opp-microvolt = <900000>; + }; }; }; From patchwork Mon Dec 2 12:25:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 13890541 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 99CDAD78315 for ; Mon, 2 Dec 2024 12:38:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=1g/phwMMSLHAcTlxfi4EX3H4n5UWXwgGPh9P76oN5sc=; b=18oqOFXoE/yDKW9ZOUuXve8Uqn 9G33WipzUTur89ojEl5SPTK4QnBEr3p9icGNRp9BJqNDn2NnBPIITMZs/OvjDhUdWqKMcK+z8tnZ3 obQ5BJtxD5/XXlTrYaKwEd1vO7ThJJc0BTG2DyD+GeVH20Us7BsXSSfeeaSvS3eg6UvAFfvXhOq/V E6EABDKGMlpP2U9ohkvY+wtfbhzJFwMZB2TClqc6OllBz65h7iTSHbRyC+GVc2AGhxIICyGcUaYmr KExv1niqreLKBjXk/yhDursOOXv7vmMYAFP03FMm3xiTmDlPBkcLkXdpb3CJyKA7j3nC5EJD4X+Sr 8LBEiRlg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tI5gn-000000066NN-2p7W; Mon, 02 Dec 2024 12:38:09 +0000 Received: from mxout4.routing.net ([2a03:2900:1:a::9]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tI5VK-000000064A5-49Gc; Mon, 02 Dec 2024 12:26:20 +0000 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> MIME-Version: 1.0 X-Mail-ID: 7457f330-acec-42c3-92df-1cefe89cef19 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241202_042619_165679_00150FFF X-CRM114-Status: GOOD ( 10.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Frank Wunderlich Enable the debug uart on Bananapi R4 board. Signed-off-by: Frank Wunderlich --- 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/arch/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 { }; }; +&serial0 { + status = "okay"; +}; + &watchdog { status = "okay"; }; diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dts/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 = <1>; }; - serial@11000000 { + serial0: serial@11000000 { compatible = "mediatek,mt7988-uart", "mediatek,mt6577-uart"; reg = <0 0x11000000 0 0x100>; interrupts = ; From patchwork Mon Dec 2 12:25:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 13890540 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5E7A5D78315 for ; Mon, 2 Dec 2024 12:37:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=sOTUUuXSqJqOxLQg93hTp4f/UPGOv1pJxXtTWZSbqk0=; b=zV81f6K3jfRF3gs64vfNADjrlh 5OspfW6FziZThJoP4k5hosnQ+bZpI1ZvMo2TAprLRU6w9ZPGb/15QE430MtT/hw92ElXmuTbhM+Ks 2ZgC32AjsBD3B/lm03D6LOv6cSEVCz5dL8H4XSymdERyUFX1+Y/P+usSucFTMGMvopU/bzza50AAO 0sQYAP1Qvk/x8VIaIPo3MbCFaxhI87BcBS2yUq9EFsvZLdeVN4c95Qc9O7gARo2Kk3rua3UmTlY2H pyr/BPpDdZ3CQWJGaW0ze/eXB7ELQAYRNfOYDirm8hXwSYD3gXeKEiGUkl54rCW5Tj0HKXchUiz62 o/FMosgg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tI5fq-000000066FK-32Aa; Mon, 02 Dec 2024 12:37:10 +0000 Received: from mxout1.routing.net ([2a03:2900:1:a::a]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tI5VK-0000000649a-1cjg; Mon, 02 Dec 2024 12:26:19 +0000 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> MIME-Version: 1.0 X-Mail-ID: ce7d2449-692a-46b7-8c22-2fa241136984 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241202_042618_573548_A3F60987 X-CRM114-Status: UNSURE ( 9.60 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Frank Wunderlich Add chosen node on Bananapi R4 board with stdout and default bootargs. Signed-off-by: Frank Wunderlich --- 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/arch/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 = "Banana Pi BPI-R4"; chassis-type = "embedded"; + chosen { + stdout-path = &serial0; + bootargs = "console=ttyS0,115200n1"; + }; + reg_1p8v: regulator-1p8v { compatible = "regulator-fixed"; regulator-name = "fixed-1.8V"; From patchwork Mon Dec 2 12:25:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 13890548 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0DDA6D78315 for ; Mon, 2 Dec 2024 12:39:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=LO38YWQlKDPKx94YytUi0voflSUi444I/+TJIqE+cyA=; b=VQmn/bGqoTKZACvhp7Mdu4/jl1 cLWvdbnugUNnQbVYjD955Q0xcU+JnWxRZpPKwyuB7k64p3eTtdPMMJ+uKGt1nMKt5/xru0HIqLuhX paG+lWzeOoVdXL/ZZN7340b4lgIsjipnSboXNpOp1oDNK1dWALSZtYmBNBM9FeQUxit6ix88ehBUz bP1mIRggv58xq3AhfgSUn8UyzfiId1gTXOU//0SvXgPofhJqstyx+5slqiW0K9086YdC8FqwqO1vj qlt3BwjRRq+yX2hZKuYnoEv82F+KAntQXsyvyr0Vk0/UvFK39wBFnfND3hLbgFPqB4pyiAQfSKIV/ WHy/6Rfw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tI5hl-000000066WI-2JA9; Mon, 02 Dec 2024 12:39:09 +0000 Received: from mxout1.routing.net ([2a03:2900:1:a::a]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tI5VL-000000064A6-0Uds; Mon, 02 Dec 2024 12:26:20 +0000 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> MIME-Version: 1.0 X-Mail-ID: e2d390f3-2774-4bd2-9ab9-5306062dcd01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241202_042619_298078_754F031F X-CRM114-Status: UNSURE ( 8.38 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Frank Wunderlich I2C binding requires clock-div property. Signed-off-by: Frank Wunderlich --- 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/dts/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 = <0 0x11003000 0 0x1000>, <0 0x10217080 0 0x80>; interrupts = ; + clock-div = <1>; clocks = <&infracfg CLK_INFRA_I2C_BCK>, <&infracfg CLK_INFRA_66M_AP_DMA_BCK>; clock-names = "main", "dma"; @@ -287,6 +288,7 @@ i2c@11004000 { reg = <0 0x11004000 0 0x1000>, <0 0x10217100 0 0x80>; interrupts = ; + clock-div = <1>; clocks = <&infracfg CLK_INFRA_I2C_BCK>, <&infracfg CLK_INFRA_66M_AP_DMA_BCK>; clock-names = "main", "dma"; @@ -300,6 +302,7 @@ i2c@11005000 { reg = <0 0x11005000 0 0x1000>, <0 0x10217180 0 0x80>; interrupts = ; + clock-div = <1>; clocks = <&infracfg CLK_INFRA_I2C_BCK>, <&infracfg CLK_INFRA_66M_AP_DMA_BCK>; clock-names = "main", "dma"; From patchwork Mon Dec 2 12:25:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 13890549 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 96FACD78315 for ; Mon, 2 Dec 2024 12:40:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=+ufaR+T2J5dHCsyUEG18rn+qRf8TnwgZpnHT8JFBy00=; b=M7paW/H+R6b7K36O/8AHp+z6Jd dZYrW45C+KZN+/xn0p4FonsPpk7hN5MePxDZIxX2UbkMbLpt0krXGnJKcikrcJb2c8D29ragvv2+o YE1IuBsdXvlFNr/nzncKIKhe1qMWk+rPog8bncZj7HCjnoMjbMaaY4ucOCiCoSEbARYlFYUYGCNuf B7B3ZEafyJ5L/kYjB+GWrXrrBIsIVBUXQJD9ePIqx9SHSpoRfiVKrJZ6bq1UblP+iZgcYwR7j3Vcw 8ad3/aWcOjsVjrumJKMvwc94cR651Zsjvxi9fLsYCuz4nbgBl9MQPrFRyHoABSgMSQ/v98iWfkuQ+ jAHDnugQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tI5ii-000000066eB-1jEm; Mon, 02 Dec 2024 12:40:08 +0000 Received: from mxout2.routing.net ([2a03:2900:1:a::b]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tI5VL-000000064AL-20Ej; Mon, 02 Dec 2024 12:26:20 +0000 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> MIME-Version: 1.0 X-Mail-ID: 8adef2c0-690e-4a13-a2ba-5a41995967bc X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241202_042619_666726_91373ABD X-CRM114-Status: UNSURE ( 9.54 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Frank Wunderlich Add basic i2c nodes to bananapi R4 board. Signed-off-by: Frank Wunderlich --- .../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/arch/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 { }; }; +&i2c0 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins>; + status = "okay"; +}; + +&i2c2 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c2_1_pins>; + status = "okay"; +}; + &pio { mdio0_pins: mdio0-pins { mux { diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dts/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 = "disabled"; }; - i2c@11003000 { + i2c0: i2c@11003000 { compatible = "mediatek,mt7981-i2c"; reg = <0 0x11003000 0 0x1000>, <0 0x10217080 0 0x80>; @@ -283,7 +283,7 @@ i2c@11003000 { status = "disabled"; }; - i2c@11004000 { + i2c1: i2c@11004000 { compatible = "mediatek,mt7981-i2c"; reg = <0 0x11004000 0 0x1000>, <0 0x10217100 0 0x80>; @@ -297,7 +297,7 @@ i2c@11004000 { status = "disabled"; }; - i2c@11005000 { + i2c2: i2c@11005000 { compatible = "mediatek,mt7981-i2c"; reg = <0 0x11005000 0 0x1000>, <0 0x10217180 0 0x80>; From patchwork Mon Dec 2 12:25:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 13890550 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2F93AD78316 for ; Mon, 2 Dec 2024 12:41:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=fWj2a6iJgEyx4JBOUG2+QMrMaM92E+beVv/wDZbE/NU=; b=27dnNOfPVetSJUq7Ok43uEbPi5 XCN8b290VN8XRZ+sginlfxcwH8dlVOSj4i5u2ERNKvHYfH3ZO+sUqwzIHdHZFVb15NeaQQRjH9S86 mU3Tt6Q4JhQ1LtLiV8cI5utHtpJAv0Q0ImOVntlF2oViN0bRzpM8bfCTjDWn3Q8R+HvyilUCy06BO 6/C8tyUkOlSkG+TlcYU772aunp1KBmMqpywiAkXV2PEB7r8Ya9LQQOrMgA8p9hPMJBDYcv8MEY4t0 1G1t22qItNxJ+DgRs6yoPt4kVjfMm2DQp0ZI8YcdoGF0MsucP3FAFDPrsvKW4N5JN21rRWiQYTYnk KsRGSYEA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tI5jf-000000066o6-2Ubu; Mon, 02 Dec 2024 12:41:07 +0000 Received: from mxout4.routing.net ([2a03:2900:1:a::9]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tI5VL-000000064Ag-3nyQ; Mon, 02 Dec 2024 12:26:21 +0000 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> MIME-Version: 1.0 X-Mail-ID: f2d1cb1f-9525-4d8c-b392-7f5c855564c5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241202_042620_084598_DC631BAB X-CRM114-Status: UNSURE ( 8.86 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 --- .../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/arch/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 @@ /dts-v1/; +#include + #include "mt7988a.dtsi" / { @@ -65,6 +67,55 @@ &i2c0 { pinctrl-names = "default"; pinctrl-0 = <&i2c0_pins>; status = "okay"; + + rt5190a_64: rt5190a@64 { + compatible = "richtek,rt5190a"; + reg = <0x64>; + vin2-supply = <&rt5190_buck1>; + vin3-supply = <&rt5190_buck1>; + vin4-supply = <&rt5190_buck1>; + + regulators { + rt5190_buck1: buck1 { + regulator-name = "rt5190a-buck1"; + regulator-min-microvolt = <5090000>; + regulator-max-microvolt = <5090000>; + regulator-allowed-modes = + ; + regulator-boot-on; + regulator-always-on; + }; + buck2 { + regulator-name = "vcore"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1400000>; + regulator-boot-on; + regulator-always-on; + }; + rt5190_buck3: buck3 { + regulator-name = "vproc"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1400000>; + regulator-boot-on; + }; + buck4 { + regulator-name = "rt5190a-buck4"; + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <850000>; + regulator-allowed-modes = + ; + regulator-boot-on; + regulator-always-on; + }; + ldo { + regulator-name = "rt5190a-ldo"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-boot-on; + regulator-always-on; + }; + }; + }; }; &i2c2 { From patchwork Mon Dec 2 12:25:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 13890552 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 55FF6D78311 for ; Mon, 2 Dec 2024 12:43:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Mch10DIBi3tXOtxprf8O1i7f4Q2u3NNLnZFSAgGJOjQ=; b=CXTc4FUHd4qTht69N358NOQwsU 1WUNX8nKdeFu7DFfLKE76Tm96SQ3kH9d5KrjEqhRm+YE1qTW6bSWMAMTngWolTzqzawfcI8kL2Y43 VoDuVILzVVu7By+cUcJ9fNTjF68QFlGt4nfL280OL1tWPEn+84fMamhg5rfWAK9GlwpchSemm44GW YE2RDwXwzVdpKQMH7ykOwr1nKKnT7No0Uwkko7Fva7C8XI2Uoi2afje0jYmDzETGbVb9fvfLZIO7+ TrhH17l+QNGberi9OQTTkAVwWZrmw6BtHKZ0O32/3xHC6QZZ44LBBOA5//jcw53654dvZ9Cl2xyhI nGXB2elA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tI5la-000000067AL-1ehd; Mon, 02 Dec 2024 12:43:06 +0000 Received: from mxout4.routing.net ([2a03:2900:1:a::9]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tI5VN-000000064CJ-1zDX; Mon, 02 Dec 2024 12:26:22 +0000 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> MIME-Version: 1.0 X-Mail-ID: 02459d1f-b577-4b20-bd96-fff9427d79dd X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241202_042621_650555_2D3D0575 X-CRM114-Status: GOOD ( 10.77 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Frank Wunderlich Add proc-supply property to cpus on Bananapi R4 board. Signed-off-by: Frank Wunderlich --- .../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/arch/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 { }; }; +&cpu0 { + proc-supply = <&rt5190_buck3>; +}; + +&cpu1 { + proc-supply = <&rt5190_buck3>; +}; + +&cpu2 { + proc-supply = <&rt5190_buck3>; +}; + +&cpu3 { + proc-supply = <&rt5190_buck3>; +}; + &cpu_thermal { trips { cpu_trip_hot: hot { diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dts/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 = <1>; #size-cells = <0>; - cpu@0 { + cpu0: cpu@0 { compatible = "arm,cortex-a73"; reg = <0x0>; device_type = "cpu"; @@ -27,7 +27,7 @@ cpu@0 { operating-points-v2 = <&cluster0_opp>; }; - cpu@1 { + cpu1: cpu@1 { compatible = "arm,cortex-a73"; reg = <0x1>; device_type = "cpu"; @@ -38,7 +38,7 @@ cpu@1 { operating-points-v2 = <&cluster0_opp>; }; - cpu@2 { + cpu2: cpu@2 { compatible = "arm,cortex-a73"; reg = <0x2>; device_type = "cpu"; @@ -49,7 +49,7 @@ cpu@2 { operating-points-v2 = <&cluster0_opp>; }; - cpu@3 { + cpu3: cpu@3 { compatible = "arm,cortex-a73"; reg = <0x3>; device_type = "cpu"; From patchwork Mon Dec 2 12:25:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 13890551 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 444FCD78316 for ; Mon, 2 Dec 2024 12:42:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=F+NbD+wZQ6ShmiTE1VBzMI+WZ0I6gWWrVj/25CLxM5M=; b=w7vLdNHdgptT9ZDjpZiFZJxTb7 wDig8+EeBzzDtGbs/MH6iPWcVH3Z3RrphOZY2zJZHdyJB813jQe/OySk7ZbrnYPtG31ZNUWF6k3v7 fUmVW34eLhFCsKUkZIQTrxqaLcTuwffx9sMQ+TcT06UAqI9wxtbqtDqMQXplniJi5gKlWEtL3KuqM JfCEiT9e5zVEIn3UA0unHkTK1ygjLAjV/g1hENpKqEUQ/pfv1quR1YPHow8lKnAd255CmtWVshbH4 HMcDgK6ItknrAV8A9gxAHa8ar/aaIpY5NcFfbvFyY1ODh84QkTUqU32m6FnfpmhLOiJ9reIr6t6cu 2AnzOypQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tI5kd-000000066xL-25pr; Mon, 02 Dec 2024 12:42:07 +0000 Received: from mxout2.routing.net ([2a03:2900:1:a::b]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tI5VN-000000064Br-03RS; Mon, 02 Dec 2024 12:26:22 +0000 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> MIME-Version: 1.0 X-Mail-ID: e9fef51d-d790-4f4a-a033-1e5bd1d942c1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241202_042621_195690_19464611 X-CRM114-Status: GOOD ( 10.06 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 --- --- .../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/arch/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 @@ /dts-v1/; +#include #include #include "mt7988a.dtsi" @@ -138,6 +139,45 @@ &i2c2 { pinctrl-names = "default"; pinctrl-0 = <&i2c2_1_pins>; status = "okay"; + + pca9545: i2c-mux@70 { + reg = <0x70>; + compatible = "nxp,pca9545"; + reset-gpios = <&pio 5 GPIO_ACTIVE_LOW>; + #address-cells = <1>; + #size-cells = <0>; + + i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + pcf8563: rtc@51 { + compatible = "nxp,pcf8563"; + reg = <0x51>; + #clock-cells = <0>; + }; + + eeprom@57 { + compatible = "atmel,24c02"; + reg = <0x57>; + size = <256>; + }; + + }; + + i2c_sfp1: i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + }; + + i2c_sfp2: i2c@2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + }; + }; }; &pio { From patchwork Mon Dec 2 12:25:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 13890557 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 521CAD78311 for ; Mon, 2 Dec 2024 12:45:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ZnCQcuap27aQvWaJkwaLNH/UmeyU0Tp7uQ2SHxBdKYo=; b=A7BaAw1byZ54aDWMF2ycTtECs+ H1m6rqpb4rc2nwkwlMO3e9Zgnlt12RHvn1iQc3dguz8VDFxBRV8zYnvv/DtfHCPqDsDCL0KgXPuGs vqPYKA9Mjtdv16S2G/KPkSyy17lWYOJ5axi57qU9JeKAhzI5ElPzF8PV70d/gM7mfLVk1IagURYTf rgUEXhFdxtdWu5kZf9FJNlD5v/671Lux4DQcdOnNzPukrBxgmElCPnt4ej2sj2x1wDN6DPvHnr1Do NMJdZXs/i34Mj7hpbmN2DW5RE/2g6dQwTtiXQM9VVwTpeZYeMy4oYt8zxrx23Ff27XBJCuDBP+nYf Zo5LnbjQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tI5nV-000000067Ru-1okT; Mon, 02 Dec 2024 12:45:05 +0000 Received: from mxout4.routing.net ([2a03:2900:1:a::9]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tI5VO-000000064D4-1oZb; Mon, 02 Dec 2024 12:26:23 +0000 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> MIME-Version: 1.0 X-Mail-ID: 1f99d702-05b9-4d36-a621-a42fdbb3903e X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241202_042622_610984_E49EFE35 X-CRM114-Status: UNSURE ( 9.94 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Frank Wunderlich Enable front-usb on Bananapi R4 board. Signed-off-by: Frank Wunderlich --- 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/arch/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 = "okay"; }; +&ssusb1 { + status = "okay"; +}; + &watchdog { status = "okay"; }; diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dts/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 = "sys_ck", "ref_ck", "mcu_ck", "dma_ck", "xhci_ck"; }; - usb@11200000 { + ssusb1: usb@11200000 { compatible = "mediatek,mt7988-xhci", "mediatek,mtk-xhci"; reg = <0 0x11200000 0 0x2e00>, <0 0x11203e00 0 0x0100>; From patchwork Mon Dec 2 12:25:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 13890556 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 95EE9D78316 for ; Mon, 2 Dec 2024 12:44:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=RLz82rdcKDrgd4xoVhfZ0YMlDvGMQtoiJXXkans2pP0=; b=rBMjFnf7PBNwnHkkUZY/5DdizC LgRo4q01cfruYX0/ghG8cuNBAFCEcvlRojVVric08Dxm7luTh+kQyNhfRpOgHyRFpkqgqtmBfX2E8 NWGPZRg3lMEF9ehm9hVoEi/Q0zJKOFwbr0tjbCaXO4DdWTvSPeLbhl6ukvAsG03pdbAFEN5QdRfhZ yOAkVVLV8VN3glgSkKyjn0QKfRWQAlGW1sxPDFsRUwpIDQSBMrWu7wCQSF5T7ag6lTQaqx1x3LI/K cdnbnfjcfIBR6moSkp5WvHE7co7cZ/qK85HmfH2gRJWTyDRAyAU1LliHPGi6/y2SzFXzht/oyuhCS /U4inS/w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tI5mY-000000067He-1z9A; Mon, 02 Dec 2024 12:44:06 +0000 Received: from mxout3.routing.net ([2a03:2900:1:a::8]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tI5VO-000000064Cx-11yi; Mon, 02 Dec 2024 12:26:23 +0000 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> MIME-Version: 1.0 X-Mail-ID: 4134b58f-ee95-4f76-aa1e-472263d0e3cf X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241202_042622_431005_B8CDA9BA X-CRM114-Status: GOOD ( 10.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Frank Wunderlich Enable pwm on Bananapi R4 board. Signed-off-by: Frank Wunderlich --- 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/arch/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 { }; }; +&pwm { + status = "okay"; +}; + &serial0 { status = "okay"; }; diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dts/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 { }; }; - pwm@10048000 { + pwm: pwm@10048000 { compatible = "mediatek,mt7988-pwm"; reg = <0 0x10048000 0 0x1000>; clocks = <&infracfg CLK_INFRA_66M_PWM_BCK>,