From patchwork Mon Dec 2 22:05:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 11269971 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 03FA6930 for ; Mon, 2 Dec 2019 22:05:58 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id D331920722 for ; Mon, 2 Dec 2019 22:05:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="nHNejLbj" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D331920722 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=OftXdaJy1KJje2FN/RewNNFuP9ppgCJFYPGi7dT5200=; b=nHNejLbj04C+vM uLJXn2D/o/SpAVRvnD+riLsSwtb8Rj+fQrlFVbSiier3xWcMmuLAJekMIEg4Q50IuP3nHxfu3Fj6K fzg/Yd29UbwYfynIRCCQwXWWhJBa7hV1KbGgmwP9X+0/sb0n4yylYW+US/w7mdIRfi5thGGiH7AU5 LHaJH3BQKVyZ4LBvJ+8l1CX4FfFTEJ54ne0Ov2Lmjy2ScHLU5jAUQ/GBP+V5PU+y1A4GDqsmLvdBx ITBy3Pv0WHOZrkzxkUd2mdLVXvulf+w7ni9XwMv+yHz/hw1J71USCLkb5HoNTP4YxZzdBMyma37hw IiCIjX4vN3KdwFREBVeA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ibtpM-00084r-T6; Mon, 02 Dec 2019 22:05:56 +0000 Received: from mx2.suse.de ([195.135.220.15] helo=mx1.suse.de) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ibtpC-0007tU-N9; Mon, 02 Dec 2019 22:05:48 +0000 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id D0290B14F; Mon, 2 Dec 2019 22:05:44 +0000 (UTC) From: =?utf-8?q?Andreas_F=C3=A4rber?= To: linux-realtek-soc@lists.infradead.org Subject: [RFC 0/5] ARM: dts: realtek: SB2 semaphores Date: Mon, 2 Dec 2019 23:05:30 +0100 Message-Id: <20191202220535.6208-1-afaerber@suse.de> X-Mailer: git-send-email 2.16.4 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191202_140546_904460_7EA1295B X-CRM114-Status: UNSURE ( 8.27 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.3 (--) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-2.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [195.135.220.15 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Cheng-Yu Lee , linux-kernel@vger.kernel.org, Rob Herring , =?utf-8?q?A?= =?utf-8?q?ndreas_F=C3=A4rber?= , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Hello, This patch series implements hardware semaphores found in SB2 bridge. Downstream BSP code assigns the same first semaphore to both CRT and Iso nodes, which seems inefficient in light of nine semaphore registers and is therefore deferred in this initial RFC. This series is based on my syscon series [1]. Latest experimental patches at: https://github.com/afaerber/linux/commits/rtd1295-next Have a lot of fun! Cheers, Andreas [1] https://patchwork.kernel.org/cover/11269453/ Cc: devicetree@vger.kernel.org Cc: Rob Herring Cc: Cheng-Yu Lee Andreas Färber (5): dt-bindings: hwlock: Add Realtek RTD1195 SB2 hwspinlock: Add Realtek RTD1195 SB2 ARM: dts: rtd1195: Add SB2 sem nodes arm64: dts: realtek: rtd129x: Add SB2 sem nodes arm64: dts: realtek: rtd139x: Add SB2 sem nodes .../bindings/hwlock/realtek,rtd1195-sb2-sem.yaml | 42 +++++++++ arch/arm/boot/dts/rtd1195.dtsi | 14 +++ arch/arm64/boot/dts/realtek/rtd129x.dtsi | 14 +++ arch/arm64/boot/dts/realtek/rtd139x.dtsi | 14 +++ drivers/hwspinlock/Kconfig | 11 +++ drivers/hwspinlock/Makefile | 1 + drivers/hwspinlock/rtd1195_sb2_sem.c | 101 +++++++++++++++++++++ 7 files changed, 197 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwlock/realtek,rtd1195-sb2-sem.yaml create mode 100644 drivers/hwspinlock/rtd1195_sb2_sem.c