From patchwork Mon Dec 2 22:05:31 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: 180651 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp610281ile; Mon, 2 Dec 2019 14:05:48 -0800 (PST) X-Google-Smtp-Source: APXvYqyfAxPRnxgtQTd0qfOJn3EE8CKD0AUeV1uL3+L6Pq6837HO9FMFVD8mXmrq4SAKKSUG3w+G X-Received: by 2002:aa7:c2d3:: with SMTP id m19mr1609667edp.136.1575324348371; Mon, 02 Dec 2019 14:05:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575324348; cv=none; d=google.com; s=arc-20160816; b=s0iOPnUH4B4qilu3khqHHCNq/x64iPBS1g+pIiS91K7Au3cVok45Uvzk8tvDf2pUyF C+HtC/pRtzuHP5cCEcqxb2C9sRXb8JxSRouiDrS0f4z0Wp+Ivr7etIZi6JqvVq+xKEwU QkLjP/VkX5C59d3F52kdSRRgVaLWthk7Qz2Ld0xBrAoSoqhL0sI0YhfCW+DFatm3Bvbw QBWPavoSrt74yK0ysHumlxfk/YSwX+BfyUSF41Ei0Hm8MST1XIhZv9+w7ceoIrL2dVyy 2DAnHVHgHLd+VLnusRe82Ov3BO6BzjciwWYVR2Q1pPuA49CFTSB9iCMj93mZJGaDAhRY BEXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=a/84UTR1x0bb6NDM3o5H//uaOyCD3DK0ZxJpCknSRwM=; b=ug1RIhh9lICLX3l1bb12DljLRBqLd44QDfnDVYcMjorQ9HaWe70uDRTYAc1Z0ZI9+J VRRdRdLzfkpegQcvi8qpOrdU6NmFITNgr+r5Va0tyZbhJQK2dcfRnVCDOIzmyMxAE+Dg rPH2/yyMNR7myUtNO27xctcaQHZhWkp4AFQX7QGq6yxne97bXhFnWS/pP5TizTrSNnSF sHRl+F7U7CEyluDO+46iXJavkBSbxU8ySlvOJVOnLshf3J18Y5ppb3zbPPf76fHZX9hS Gr4fYc5EfiPKCLTV2QeK5IE9C+8x9m2z3Z3dCytikZsAXHZilQSYGIEW6hPMXzNx87N2 /X5Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j19si625558ejv.428.2019.12.02.14.05.48; Mon, 02 Dec 2019 14:05:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726780AbfLBWFr (ORCPT + 8 others); Mon, 2 Dec 2019 17:05:47 -0500 Received: from mx2.suse.de ([195.135.220.15]:49118 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726443AbfLBWFr (ORCPT ); Mon, 2 Dec 2019 17:05:47 -0500 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 3C093B2EC; Mon, 2 Dec 2019 22:05:45 +0000 (UTC) From: =?utf-8?q?Andreas_F=C3=A4rber?= To: linux-realtek-soc@lists.infradead.org Cc: Cheng-Yu Lee , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?q?Andreas_F=C3=A4rber?= , Ohad Ben-Cohen , Bjorn Andersson , Rob Herring , Mark Rutland , linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org Subject: [RFC 1/5] dt-bindings: hwlock: Add Realtek RTD1195 SB2 Date: Mon, 2 Dec 2019 23:05:31 +0100 Message-Id: <20191202220535.6208-2-afaerber@suse.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20191202220535.6208-1-afaerber@suse.de> References: <20191202220535.6208-1-afaerber@suse.de> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Define a binding for Realtek RTD1195 SoC's SB2 hardware semaphore. Signed-off-by: Andreas Färber --- .../bindings/hwlock/realtek,rtd1195-sb2-sem.yaml | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwlock/realtek,rtd1195-sb2-sem.yaml -- 2.16.4 diff --git a/Documentation/devicetree/bindings/hwlock/realtek,rtd1195-sb2-sem.yaml b/Documentation/devicetree/bindings/hwlock/realtek,rtd1195-sb2-sem.yaml new file mode 100644 index 000000000000..8035af02c667 --- /dev/null +++ b/Documentation/devicetree/bindings/hwlock/realtek,rtd1195-sb2-sem.yaml @@ -0,0 +1,42 @@ +# SPDX-License-Identifier: GPL-2.0-or-later OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwlock/realtek,rtd1195-sb2-sem.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Realtek RTD1195 SB2 hardware semaphore device tree binding + +maintainers: + - Andreas Färber + +properties: + compatible: + const: realtek,rtd1195-sb2-sem + + reg: + maxItems: 1 + + "#hwlock-cells": + enum: [ 0, 1 ] + +required: + - compatible + - reg + - "#hwlock-cells" + +additionalProperties: false + +examples: + - | + hwspinlock@9801a000 { + compatible = "realtek,rtd1195-sb2-sem"; + reg = <0x9801a000 0x4>; + #hwlock-cells = <0>; + }; + - | + hwspinlock@9801a620 { + compatible = "realtek,rtd1195-sb2-sem"; + reg = <0x9801a620 0x20>; + #hwlock-cells = <1>; + }; +... From patchwork Mon Dec 2 22:05:35 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: 180652 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp610359ile; Mon, 2 Dec 2019 14:05:52 -0800 (PST) X-Google-Smtp-Source: APXvYqzi7yva5ECFSkyVF22S4FF6k0tZ/8aKBCTZNv7J+GEr+sU9oRhR7+Af5zZMO+b3Mq+PHE+n X-Received: by 2002:a17:906:394:: with SMTP id b20mr1936722eja.188.1575324352273; Mon, 02 Dec 2019 14:05:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575324352; cv=none; d=google.com; s=arc-20160816; b=IEv0/CLau1ZpMwzfrbENdoKLJDbrhCWll/wcHCX9ilJ9Kg2dbHdWuzPcMmW1jVRU3h 5lwiUQQmFSZnlqGnVlhYlHZO1xvopRzfHSVYxmTC6WXN7gYmerSyzHSTQjUCKbKL+tvp qnDDFAcOkfBHcAiTJ6KEVkW/8OoYnRa828Ll747tl9xFPV/umTGHyU7RYY9ZV3jR13Ym Lfy9/pzZoDYOd25w6lWhsSKH1DfBQGVZnMXOL/QGqntvOWJWF1od3/IAA1eZQBetudvp 6nayjUspURCKGCcL/4cVR6qHAv7nIR7YrB/0LlnGmo6ecWwFy+NtTZte+gz+oszrLj5C 4KjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=UXkptsJv0tNvbUoMGAqwLt/ZRBOsyZQ1yWBCLHAPnfE=; b=pNyPMatt6fx95l9LwkxHjIt2emjlviYDUCkhLW+3GwCMZHqAhSYJC3ikeoq0vVqkko UFfj9qgZlb06cmr3TFtpmS1H/UuQyT8Om5UhfI1g1XOQYh7wFxLJbvn7OhSMfmzPVoKG QlrKxUopBTv/rGL3u4OZ8q35a5dkPKj00bUpnjvHhkacwjst5TaYp/+nqyu9oNvyG3P0 sEVtxzJHA2L25fecKVZFEXvhhmuZaK4mV5Ax7ehwCd8E78N0OrZXpBi/A9/y3bTVpAlG 7mEcpGGXBdLGY/Nhe99S9xtcv1UXDvlo4/YOsnBYxkLev8E3MdMPNFaf0EdzJ0oGFB9E ABkw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f13si660455edq.71.2019.12.02.14.05.52; Mon, 02 Dec 2019 14:05:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726318AbfLBWFt (ORCPT + 8 others); Mon, 2 Dec 2019 17:05:49 -0500 Received: from mx2.suse.de ([195.135.220.15]:49178 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726139AbfLBWFs (ORCPT ); Mon, 2 Dec 2019 17:05:48 -0500 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 09520B2F2; Mon, 2 Dec 2019 22:05:47 +0000 (UTC) From: =?utf-8?q?Andreas_F=C3=A4rber?= To: linux-realtek-soc@lists.infradead.org Cc: Cheng-Yu Lee , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?q?Andreas_F=C3=A4rber?= , Rob Herring , Mark Rutland , devicetree@vger.kernel.org Subject: [RFC 5/5] arm64: dts: realtek: rtd139x: Add SB2 sem nodes Date: Mon, 2 Dec 2019 23:05:35 +0100 Message-Id: <20191202220535.6208-6-afaerber@suse.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20191202220535.6208-1-afaerber@suse.de> References: <20191202220535.6208-1-afaerber@suse.de> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add DT nodes to SB2 for hardware semaphores in RTD1395 SoC family. Signed-off-by: Andreas Färber --- arch/arm64/boot/dts/realtek/rtd139x.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) -- 2.16.4 diff --git a/arch/arm64/boot/dts/realtek/rtd139x.dtsi b/arch/arm64/boot/dts/realtek/rtd139x.dtsi index a3c10ceeb586..586b05350274 100644 --- a/arch/arm64/boot/dts/realtek/rtd139x.dtsi +++ b/arch/arm64/boot/dts/realtek/rtd139x.dtsi @@ -191,3 +191,17 @@ status = "disabled"; }; }; + +&sb2 { + sb2_hd_sem: hwspinlock@0 { + compatible = "realtek,rtd1195-sb2-sem"; + reg = <0x0 0x4>; + #hwlock-cells = <0>; + }; + + sb2_hd_sem_new: hwspinlock@620 { + compatible = "realtek,rtd1195-sb2-sem"; + reg = <0x620 0x20>; + #hwlock-cells = <1>; + }; +};