From patchwork Thu Dec 5 17:41:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 847770 Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E5DC9224AEA for ; Thu, 5 Dec 2024 17:41:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733420503; cv=none; b=odhGqMNmjh/UJoD/EpkTwcDfxbm8ROTQEN9q+S2M6DzPaxplRPgBe+NiU6eQdwripkHX1oTcygeESQVenPZFzMwCu6VtKFWXtglZ91W+dY9fWM3s5rD4a0tuDagouyLcPmpcEkx/TPu1AdVv+AmpdrkglKGnf60cHju6MygdouM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733420503; c=relaxed/simple; bh=w7e0/IyXpIggJ8VXljhBP/mmkdf4tDpn/Mub91QUKx0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mls7iLglrmL9KwkQFEvqrwoVlRqvb/pfwF0nMT/dZSBRas5lewQkBh/CHFLyjDjvxNt0LdS5WmF97IWFStZ9sA53Sgm+r0q3UGA735tq2+P+sMgPJgNlvLYcQ54KVNQTKEMpAJ1eb1zy7i8cFEraowul93DuOi1+K8w+dvPZw4w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=BjAd+k/z; arc=none smtp.client-ip=209.85.221.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="BjAd+k/z" Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-385f06d0c8eso634508f8f.0 for ; Thu, 05 Dec 2024 09:41:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733420500; x=1734025300; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=v3MPhJwBD5oTf6iFoKflaMZpBPCePKADttJt9GkyJFE=; b=BjAd+k/zGtBX/rCrz61pDYfSHeVcLopqaIgoFkQjmI2hWJmVHb4cVeqzpHLDa9Pkij zyvO3Hatsq6pcQJXtFeZuN6JbiKjJ9brAHydK72cmjTHTrF2rNnIDVn5zTw8wl8OVOrD GR07sHC9xHryyUe/g1IdEZI5d/liZF/uJkze/q6SV63AWdgDHt0IoCxcI4m+isNos7xa I9TKt5ofuKYqEbY7VL3zTeYxVzLlOjdUk7ChmDhURMs6dEG+89tDX08fRF+lju/It9J3 nQUg7P+ZCrYVj/vjdwmbexGHHnK2xoc0ZZBbg3/FKtTt+yyBg0xJ4sdz7TIe/8V9x97l L1JQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733420500; x=1734025300; 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=v3MPhJwBD5oTf6iFoKflaMZpBPCePKADttJt9GkyJFE=; b=SdDTRA9yBsr9a7HEaM19J4SrNr/BqIIY79m5ZEPKZOfUdNtDD9XzxfZDVlNUq5GpjJ 7s2CjDrHfuKKAtmly1m2v0aBNhFKhRcwSD0F5gXtqVfXiC7h4PrgJashQQU0llfQtZLS pqBWFhrWznOBAGU0ZSZ9uVM83Yijr5T2DLYBVx6o14qtYqFlT81iyYvyWPMwtFUpj250 fnFHhJIATrxc2eWfXkB0W6xFY9niW2iOPJFmRqR4BmClb+vxw+cHDehfyDfVAMXyBtMG e2oYiDQYJHbLAPpiLCszyOjyb5B1jTY42v5WMfn8S1q/SErLH6N7tEuHEX40arBDvuT2 6lAg== X-Forwarded-Encrypted: i=1; AJvYcCWzEO6yBTqAjIy6ep9yoJc2Hmdchv/yWirDu8oRBgZEl6i7q2xuNnvICD77r2cq5PeZPFLY8A5ufL0WW36cbo6ivw==@vger.kernel.org X-Gm-Message-State: AOJu0YznNthmcn0VEDDJoW7ZhTamq81OX4m+qSeHPV8cG574HDR851H2 vkh4h2YV4LVDxHIhSGnmc1DYq4X//uUxgcqfxjdb3/6u1crMgLzEVVaTzSykcyA= X-Gm-Gg: ASbGncvzmIofywuKn9Q570CIsHZ5eIMXgTtV3CeGm4j5cg3QmM7keVAbkSdoynTubbq qUdBEW5wmjdgoZtiX3+fFFk3Ui8Y+KRON98bsFZ+SoHItkISRsC4R22FD4RRgIIBzv/tkHio4kx d8GT6NsF7b+eK8vE767s5wUMDfrJ+Dh6QImNEZfXfbgbczBvAvQNbGXGEDO+DrdanXE9YgKuTu+ 0xVa7hcLiGNIGYV26pGzPqTE65aV41WgTh7kQvtzKqtcQoPhCA7pB8Tq/dTpZPA23qrPGTdqYaz f/L4uNYNwOVNd0ZlrI60Rk5BSRZ2PPCq X-Google-Smtp-Source: AGHT+IEBZW6n47Yt+s6/TKyzpIN2ITI79WuAEcEJdI/9mAZaVb2ao49SofvZn0pUcMMqVpV+pvnJ3A== X-Received: by 2002:a5d:5f45:0:b0:385:f607:f18a with SMTP id ffacd0b85a97d-385fd435f13mr9178585f8f.55.1733420500330; Thu, 05 Dec 2024 09:41:40 -0800 (PST) Received: from ta2.c.googlers.com.com (32.134.38.34.bc.googleusercontent.com. [34.38.134.32]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-434da0d6961sm30318525e9.12.2024.12.05.09.41.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Dec 2024 09:41:39 -0800 (PST) From: Tudor Ambarus To: jassisinghbrar@gmail.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, alim.akhtar@samsung.com Cc: linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, andre.draszik@linaro.org, kernel-team@android.com, willmcvicker@google.com, peter.griffin@linaro.org, Tudor Ambarus Subject: [PATCH v3 0/3] mailbox: add samsung exynos driver Date: Thu, 5 Dec 2024 17:41:34 +0000 Message-ID: <20241205174137.190545-1-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.47.0.338.g60cca15819-goog Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Hi, The samsung exynos mailbox controller has 16 flag bits for hardware interrupt generation and a shared register for passing mailbox messages. When the controller is used by the ACPM protocol the shared register is ignored and the mailbox controller acts as a doorbell. The controller just raises the interrupt to APM after the ACPM protocol has written the message to SRAM. I mark this as v3 because it is a continuation of: https://lore.kernel.org/linux-arm-kernel/20241017163649.3007062-1-tudor.ambarus@linaro.org/ Changes in v3: - decouple the mailbox controller driver from the ACPM protocol driver - address Krzysztof's eview comments Thanks, ta Tudor Ambarus (3): dt-bindings: mailbox: add bindings for samsung,exynos mailbox: add samsung exynos driver MAINTAINERS: add entry for samsung exynos mailbox driver .../bindings/mailbox/samsung,exynos.yaml | 70 +++++++++ MAINTAINERS | 9 ++ drivers/mailbox/Kconfig | 11 ++ drivers/mailbox/Makefile | 2 + drivers/mailbox/exynos-mailbox.c | 143 ++++++++++++++++++ 5 files changed, 235 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/samsung,exynos.yaml create mode 100644 drivers/mailbox/exynos-mailbox.c