From patchwork Fri Jun 28 10:55:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 13715975 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 238A3C2BBCA for ; Fri, 28 Jun 2024 11:18:37 +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: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:In-Reply-To:References:List-Owner; bh=Xfb8qh56GtYXoD9jZvOPRH85DxPa0JeSyiOdHUBDC38=; b=aNLwx+Sh8RB+ctpXFWGL97aNOl o+F+LzwjAKaKXrUf20nSrkEbM6+wZ6v7tE4c6hMBfJJiJfNNN982DTXbIupp1qkQoVq3wwEcc/Nwd JRH/+jA/7wZaaozKCKnrW0dWdgwLSYQruPFOOpu4Jc8lX7GMlThxrAxV/GmMUKR9pGwcKO7TBnzGL TZOFMwHSC/LiFCvs1HnoDyhk258gJ0xSnMoJhIUUx1ZrfZ2RYxr2Xyw6+hXGia8/K8viWgrud5bS8 frXF4/RIXmL7mvATIp05vTW+dBZ7sQF5RiwF0z9ZPlCDQCNEA7RIGHrxMey4FhYpjJcFMfLjUZOHh //au0urw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sN9cU-0000000DW1g-3KGP; Fri, 28 Jun 2024 11:18:22 +0000 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sN9cM-0000000DW0Y-2z8H; Fri, 28 Jun 2024 11:18:15 +0000 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-42574064b16so547055e9.2; Fri, 28 Jun 2024 04:18:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719573493; x=1720178293; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Xfb8qh56GtYXoD9jZvOPRH85DxPa0JeSyiOdHUBDC38=; b=UEOFejCs/2RnbLY/+l1TChOJwTI0WD0/u/zMM1zBfbsZAMctt+v8ZdYKr2349eGvCQ oCFS4rr0X9dZSJP9kbCTv2fc7cAiVNv/S9JWrul/X2h/beQOedbXEXE2MzfvHJEy9ygD dt7HD6acWdexYvVWSSkv5NThP80dsa1ICeeEmPc7dRsO2x3ChEqtxeIbjs0sbiHr3yZr zbKTxLfGqVoL0qCbrlfNEyNnFBa82cvY9+iBCeV3aMKTl7ZI6sfWOEh9enaw5B319aqQ sRscJxtLbAdTuqVMt0spTwbovbocwKWvubMfMPnwJyuOqDlBTgRX7HXmfT5jcaaOgV6J 0k9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719573493; x=1720178293; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Xfb8qh56GtYXoD9jZvOPRH85DxPa0JeSyiOdHUBDC38=; b=lxEGx3Mk/hdysgx+LyxJW5i3LUg8Y4XaRF11Z0iBk2cwkVr4ch1MXkp6KovTX5kPug ho+AU78ptJFcSNs7X/5G8wjQln5Wr6HZpOtPPQgpAJkjZ/Gw3g3B7B0OdD1GvEfZKcTU cRrSOuNI54DIFzyrabigP4WLle7Pb7J0D3MOjUFq788PXIC3QBaZMSSTq8x0LU7DbTz8 clSqrPBDHoqRGYo3MnQZqKxoYBFBsf4NrgAPdKROvHGREn6S/rwmZ2TwJuYocLfpe0VG RWu4Z6QQSpArru3vvXabUb/QDf0emVuAx0mB7sR9BxInzqTh3SqXDIjSmOWhNfajhCed Os1g== X-Forwarded-Encrypted: i=1; AJvYcCXm9EyHY7NdyAtVSA34UDLO+YC4UMbXTTtjmnNL00Te1HqmKAAz/eiZ9ttF99OJaxnPp4aVsTtjLAQOjlSMZ1Dj+t2mRf2PLGX06AJl/OUXdl0wTXhPu+LFVRNPkiwsznWLxjA7zRgH42gxdiUT7C+3y8mfWJ8uCFk= X-Gm-Message-State: AOJu0YwnX0PCpC+UFJfjwiOdsdIOnsmZegK/AoCgU85vAcy0YHvoTvNu He3eJkb6xFUOZkZ9Ng1DnLgeNjkUka8kXNUI3IT666WBY6Gn27qDHFEl2Q== X-Google-Smtp-Source: AGHT+IEgaXUd+94Izm1S8dyRGK9F05m7nglJMAYA5JVpVKSGCoyzmAAlgx33pqSiP1IHukiCb84uNQ== X-Received: by 2002:a05:600c:2d84:b0:425:622e:32f4 with SMTP id 5b1f17b1804b1-425622e3408mr45368885e9.26.1719573492849; Fri, 28 Jun 2024 04:18:12 -0700 (PDT) Received: from localhost.localdomain (93-34-90-105.ip49.fastwebnet.it. [93.34.90.105]) by smtp.googlemail.com with ESMTPSA id ffacd0b85a97d-3675a1055b9sm1979495f8f.95.2024.06.28.04.18.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jun 2024 04:18:12 -0700 (PDT) From: Christian Marangi To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Cc: Christian Marangi , Frank Wunderlich , stable@vger.kernel.org Subject: [PATCH v2 1/2] arm64: dts: mediatek: mt7622: readd syscon to pciesys node Date: Fri, 28 Jun 2024 12:55:40 +0200 Message-ID: <20240628105542.5456-1-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.45.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240628_041814_758548_75A092DA X-CRM114-Status: GOOD ( 13.30 ) 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 Sata node reference the pciesys with the property mediatek,phy-node and that is used as a syscon to access the pciesys regs. Readd the syscon compatible to pciesys node to restore correct functionality of the SATA interface. Fixes: 3ba5a6159434 ("arm64: dts: mediatek: mt7622: fix clock controllers") Reported-by: Frank Wunderlich Co-developed-by: Frank Wunderlich Signed-off-by: Frank Wunderlich Signed-off-by: Christian Marangi Cc: stable@vger.kernel.org --- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi index 917fa39a74f8..bb0ec1edbe5b 100644 --- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi @@ -790,7 +790,7 @@ u2port1: usb-phy@1a0c5000 { }; pciesys: clock-controller@1a100800 { - compatible = "mediatek,mt7622-pciesys"; + compatible = "mediatek,mt7622-pciesys", "syscon"; reg = <0 0x1a100800 0 0x1000>; #clock-cells = <1>; #reset-cells = <1>; From patchwork Fri Jun 28 10:55:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 13715976 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 AB733C3064D for ; Fri, 28 Jun 2024 11:18:39 +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=jGjvAzjDwlAq0rCpEO+mGer2SS+9hXiF0BPt0Wfq6d0=; b=VbCHdlvWs7OpcXEIztq2VNAleL cB2FzlUpHDfhwqqKAlkBvObSl+Co9VpEkXB2BOGoYW0/wgY2UKXLGD3L4pbtcLt0bq7soXP8lTrk9 1NPyrgNvCcyb915r0AJTOzUlMoGsSkmGasJhltqKOWyWl7P14d6NtREb5JTdpBW4dqaUj64KqdERV 68zVpvPkOQhqDdUV6LkdqfT0AK21rXB4IxLl+l3ZnZhr4y9HZBBmz2ZGIXjiNYoKJ81VvU7N21w1o 17zuK4JW83Wxu9k+MriFXncqD4va0Yc1iGfFmlCcG9YW9dAkiJOBXafupL8e+2+DoXKQoAzTM3esA zmW2tpcg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sN9cb-0000000DW3r-3wTP; Fri, 28 Jun 2024 11:18:29 +0000 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sN9cO-0000000DW0r-0dgc; Fri, 28 Jun 2024 11:18:17 +0000 Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-3674e1931b7so386256f8f.2; Fri, 28 Jun 2024 04:18:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719573494; x=1720178294; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=jGjvAzjDwlAq0rCpEO+mGer2SS+9hXiF0BPt0Wfq6d0=; b=KP2PCYxhFsGxPWzxYG5LsLuu9zVax4nJMf3hDhRXzshYlvqOKzx+ZOscFcLy/+qjSs 0w5C5PBSS9LGlnKCE0qDkprkVZGH+iqs/LsbD6lwl0OY+fsa/oqyrwumdL/vRnO2bx4e 2DfArRZhYwlL4BhnztMOqXKSAs3hcarlHV2Dp1Sxtu+/XUvCZzwlvmt6jiKZVkPP6/Ly 3p+/cf5Xd8sM635xFsT6FTA67nPfGDotyzOV2LnM8fo/+rgn6QzIzV5xl2QG/yKJXItC aX8c3ZHsFvIYCU5uEyaIq+2xpB1wS0xE8HQxylqRlsoXnYaLiNpI5+D5Lgxu1UKc30z/ Ht8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719573494; x=1720178294; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jGjvAzjDwlAq0rCpEO+mGer2SS+9hXiF0BPt0Wfq6d0=; b=kK4Ch44UmjxiIdiQhkNMdhWYSkOZ0HkAxt+6w41JT/+NGJzoSW2BPKuREr5swxSm/u gNgo79HpmZO2MODulUWS1/bbxknnpL+6i9vzu6zibjZ1yy/InkMFGxJdA6lZDRquDV5Z DtKKkXesrjeMKj9Nd1HcEVT2YPBEsJFKpWVnyVaL2H7X/bd6ASVGv6EeuQZ7QzGk4UMz WOULQQApg0eQAOlPD7KjiprvP7qHzU82Mc7NFPJS0akdUpKbUdUwZWQxwWnzp9HDVlvJ 6YX79wdVC60/iMiHNjbQDC5LgmiXfi2aLs27lrB9NBcclq6cWZkcs2kzNa8l1hE6OMrC yQIQ== X-Forwarded-Encrypted: i=1; AJvYcCWO4D2mpvpmIkExkqjg9MBzVTqaTErFLeRvnQ2yzwrwLQx9M/rIlFj+BTau1STr9944KKLi3nk+PCPtoANrwSIFSHutCvSdIH8OLgBX3kH5a8YQ1XmzqlIisbYz2InwF5jhl0YRxBsRtgWcfSrTGu1RvoRVoFLawCA= X-Gm-Message-State: AOJu0YwSFocFWbsR/svfjVdX5X2w0t2LqWT3ykyREOWcDwijZd4u1zrl M/IVkreCLpPb65sRmhdWv2P546qFH/V3I2xausjAOqq3U5LZYa8z X-Google-Smtp-Source: AGHT+IGpmgVVWhDU6L0Eg9bKaM5Un6mfYJKGEM6lzS/aXInSUCuH83Z2b5aWXKfw/hIZ/mcUBgHX5w== X-Received: by 2002:adf:e507:0:b0:367:4165:ad4 with SMTP id ffacd0b85a97d-36741650be0mr3754348f8f.16.1719573494282; Fri, 28 Jun 2024 04:18:14 -0700 (PDT) Received: from localhost.localdomain (93-34-90-105.ip49.fastwebnet.it. [93.34.90.105]) by smtp.googlemail.com with ESMTPSA id ffacd0b85a97d-3675a1055b9sm1979495f8f.95.2024.06.28.04.18.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jun 2024 04:18:13 -0700 (PDT) From: Christian Marangi To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Cc: Christian Marangi Subject: [PATCH v2 2/2] dt-bindings: clock: mediatek: add syscon compatible for mt7622 pciesys Date: Fri, 28 Jun 2024 12:55:41 +0200 Message-ID: <20240628105542.5456-2-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240628105542.5456-1-ansuelsmth@gmail.com> References: <20240628105542.5456-1-ansuelsmth@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240628_041816_217686_02152929 X-CRM114-Status: GOOD ( 11.36 ) 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 Add required syscon compatible for mt7622 pciesys. This is required for SATA interface as the regs are shared. Signed-off-by: Christian Marangi Reviewed-by: Krzysztof Kozlowski --- Changes v2: - Fix broken schema example .../bindings/clock/mediatek,mt7622-pciesys.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/clock/mediatek,mt7622-pciesys.yaml b/Documentation/devicetree/bindings/clock/mediatek,mt7622-pciesys.yaml index c77111d10f90..9c3913f9092c 100644 --- a/Documentation/devicetree/bindings/clock/mediatek,mt7622-pciesys.yaml +++ b/Documentation/devicetree/bindings/clock/mediatek,mt7622-pciesys.yaml @@ -14,9 +14,11 @@ maintainers: properties: compatible: - enum: - - mediatek,mt7622-pciesys - - mediatek,mt7629-pciesys + oneOf: + - items: + - const: mediatek,mt7622-pciesys + - const: syscon + - const: mediatek,mt7629-pciesys reg: maxItems: 1 @@ -38,7 +40,7 @@ additionalProperties: false examples: - | clock-controller@1a100800 { - compatible = "mediatek,mt7622-pciesys"; + compatible = "mediatek,mt7622-pciesys", "syscon"; reg = <0x1a100800 0x1000>; #clock-cells = <1>; #reset-cells = <1>;