From patchwork Mon Feb 13 23:19:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bastian Germann X-Patchwork-Id: 13139190 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C60A6C64EC7 for ; Mon, 13 Feb 2023 23:20:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230364AbjBMXU3 (ORCPT ); Mon, 13 Feb 2023 18:20:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229740AbjBMXU1 (ORCPT ); Mon, 13 Feb 2023 18:20:27 -0500 Received: from stravinsky.debian.org (stravinsky.debian.org [IPv6:2001:41b8:202:deb::311:108]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F347413DFD; Mon, 13 Feb 2023 15:20:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; s=smtpauto.stravinsky; h=X-Debian-User:Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Reply-To: Content-Type:Content-ID:Content-Description; bh=Ip8yYOYiXurxb61ZwyBAEKSPbZlx8LTZcbbA9RYNzkg=; b=I5LHbyadr/ufKr/KbQiU6hEjmv UX5QVkiqJdDTH5k8ktTPdtyLKYnZb8XzlVt2futbquY5ohiKH8ZHcosF8iA4oUbYH3gNAV7arlJhs Y3mtCJ3fYde+7CjF2nK5LNIeNHzw6e9wrPs4eEmLn9a8S0sCQgufn1M61st+FThHhTqo4f69Tdzvi KYp7Q+opn6ZqGdZlg+DHUBKFinm5MJ2Kek39jJkkszXz9BivOwGqkTPU2DPzFwJ3thrFghd4gizjp zUo8ubkwCtNNvmPEjAWFUSUhfYyS9yTmMg08a8Ag3imEC59gMNrFOzdxaAPRylvO73FtOtf334YhT yOSYloQA==; Received: from authenticated user by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2) (envelope-from ) id 1pRi79-0013qZ-Fx; Mon, 13 Feb 2023 23:20:03 +0000 From: Bastian Germann To: Wilken Gottwalt Cc: Bastian Germann , Ohad Ben-Cohen , Bjorn Andersson , Baolin Wang , Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Samuel Holland , linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, devicetree@vger.kernel.org Subject: [PATCH 1/3] dt-bindings: hwlock: sun6i: Add missing #hwlock-cells Date: Tue, 14 Feb 2023 00:19:28 +0100 Message-Id: <20230213231931.6546-2-bage@debian.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230213231931.6546-1-bage@debian.org> References: <20230213231931.6546-1-bage@debian.org> MIME-Version: 1.0 X-Debian-User: bage Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org The allwinner,sun6i-a31-hwspinlock.yaml binding needs #hwlock-cells which is required by the hwlock type. Fixes: f9e784dcb63f ("dt-bindings: hwlock: add sun6i_hwspinlock") Signed-off-by: Bastian Germann Reviewed-by: Andre Przywara Acked-by: Krzysztof Kozlowski --- .../bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml b/Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml index 10e5a53e447b..01b1bbb3061f 100644 --- a/Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml +++ b/Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml @@ -26,11 +26,15 @@ properties: resets: maxItems: 1 + '#hwlock-cells': + const: 1 + required: - compatible - reg - clocks - resets + - "#hwlock-cells" additionalProperties: false From patchwork Mon Feb 13 23:19:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bastian Germann X-Patchwork-Id: 13139191 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 07034C64ED6 for ; Mon, 13 Feb 2023 23:20:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230381AbjBMXUa (ORCPT ); Mon, 13 Feb 2023 18:20:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230367AbjBMXU3 (ORCPT ); Mon, 13 Feb 2023 18:20:29 -0500 Received: from stravinsky.debian.org (stravinsky.debian.org [IPv6:2001:41b8:202:deb::311:108]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D66431EFEF; Mon, 13 Feb 2023 15:20:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; s=smtpauto.stravinsky; h=X-Debian-User:Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Reply-To: Content-Type:Content-ID:Content-Description; bh=YaAIK2YEg4iTtzlUU+JjTzK5RyfRTBg4vNgZJfMcEqE=; b=wPeUuVdCE0QOKJ/mzSnjkC8XjC R6rRbKqXwe83EhDglqbqyRPogxcTJyzMOxiKdfGPkIIIzpcNKKtKx6P7nNukjvbbNjvAkSJNUL2dI uEWgTDaCydc/RviXYxsCavH4Upfb+2oly2oLM3owwKEHp+CpYeutWPGX9VXClI8+a4/HR+Q/YG/DT hqW4GR3yp2KSOi27QEPReasXszffVXcGi2hykGtwYPiF2BBlpeHO5vKKTu4SNIq9ilXz60GWdEwss +ZQAqrbFibNNgx1zcmAxr+hqSuMJWVDu3lINmsxdCvxG2L36sUG2TUgT8NryKdGoh46SsZFoWTxcp Qs2qVWzw==; Received: from authenticated user by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2) (envelope-from ) id 1pRi79-0013qZ-Q2; Mon, 13 Feb 2023 23:20:03 +0000 From: Bastian Germann To: Wilken Gottwalt Cc: Bastian Germann , Ohad Ben-Cohen , Bjorn Andersson , Baolin Wang , Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Samuel Holland , linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, devicetree@vger.kernel.org Subject: [PATCH 2/3] dt-bindings: hwlock: sun6i: Add missing names Date: Tue, 14 Feb 2023 00:19:29 +0100 Message-Id: <20230213231931.6546-3-bage@debian.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230213231931.6546-1-bage@debian.org> References: <20230213231931.6546-1-bage@debian.org> MIME-Version: 1.0 X-Debian-User: bage Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org The allwinner,sun6i-a31-hwspinlock.yaml binding needs clock-names and reset-names set to "ahb" as required by the driver. Fixes: f9e784dcb63f ("dt-bindings: hwlock: add sun6i_hwspinlock") Signed-off-by: Bastian Germann Reviewed-by: Andre Przywara Acked-by: Krzysztof Kozlowski --- .../hwlock/allwinner,sun6i-a31-hwspinlock.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml b/Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml index 01b1bbb3061f..1f11d9580646 100644 --- a/Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml +++ b/Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml @@ -23,9 +23,17 @@ properties: clocks: maxItems: 1 + clock-names: + items: + - const: ahb + resets: maxItems: 1 + reset-names: + items: + - const: ahb + '#hwlock-cells': const: 1 @@ -33,7 +41,9 @@ required: - compatible - reg - clocks + - clock-names - resets + - reset-names - "#hwlock-cells" additionalProperties: false From patchwork Mon Feb 13 23:19:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bastian Germann X-Patchwork-Id: 13139188 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1596EC636CC for ; Mon, 13 Feb 2023 23:20:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229898AbjBMXU2 (ORCPT ); Mon, 13 Feb 2023 18:20:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229618AbjBMXU1 (ORCPT ); Mon, 13 Feb 2023 18:20:27 -0500 Received: from stravinsky.debian.org (stravinsky.debian.org [IPv6:2001:41b8:202:deb::311:108]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBBF2113C5; Mon, 13 Feb 2023 15:20:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; s=smtpauto.stravinsky; h=X-Debian-User:Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Reply-To: Content-Type:Content-ID:Content-Description; bh=LG/q1WY/U+U/uFSQNISKRuzbP6EKDwVnNYE4h0kB6+M=; b=k/Rwak50+8guCi1PT4i7JvBAZy kF/eKgf6Pk9eAFoU4t+TQJonsFB6Ktzle9rfyOPXz3++9dV24387bFaDQG4ep4m2KgRNJszLvVVbC BmcuHVA9ga1lAra5ojPA7liVIFdkivSUdhMmgVITlu1f0c1d2szXHobTdUrB2/AT6KD/Gz7kLHtJZ RBLeqLjp/CNTKMS+4lUMFUxxJ2tumi/paXpj7kx7He3/TIUPTxXUY+IjsDmIMy8wwNbnUpFlAlbHj BBY4oL/KT8s0UMLdwLZ9w6mgl8G5Dw5EwqTtNceTlY4yKe2YrekAxIe4CnKSKKnFEY+rk1FEDMyrq MWhBNcxw==; Received: from authenticated user by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2) (envelope-from ) id 1pRi7A-0013qZ-48; Mon, 13 Feb 2023 23:20:04 +0000 From: Bastian Germann To: Wilken Gottwalt Cc: Bastian Germann , Ohad Ben-Cohen , Bjorn Andersson , Baolin Wang , Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Samuel Holland , linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, devicetree@vger.kernel.org Subject: [PATCH 3/3] arm64: dts: allwinner: a64: Add hwspinlock node Date: Tue, 14 Feb 2023 00:19:30 +0100 Message-Id: <20230213231931.6546-4-bage@debian.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230213231931.6546-1-bage@debian.org> References: <20230213231931.6546-1-bage@debian.org> MIME-Version: 1.0 X-Debian-User: bage Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org Add the hwspinlock to A64 which is already implemented for A31. Signed-off-by: Bastian Germann --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index 77b5349f6087..d4be8be0f2f3 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -851,6 +851,16 @@ wdt0: watchdog@1c20ca0 { clocks = <&osc24M>; }; + hwspinlock: hwlock@1c18000 { + compatible = "allwinner,sun6i-a31-hwspinlock"; + reg = <0x01c18000 0x1000>; + clocks = <&ccu CLK_BUS_SPINLOCK>; + clock-names = "ahb"; + resets = <&ccu RST_BUS_SPINLOCK>; + reset-names = "ahb"; + #hwlock-cells = <1>; + }; + spdif: spdif@1c21000 { #sound-dai-cells = <0>; compatible = "allwinner,sun50i-a64-spdif",