From patchwork Thu Jul 2 21:47:47 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Justin Suess X-Patchwork-Id: 2512 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mxe881.netcup.net (Postfix) with ESMTPS id 99D181C3FFA for ; Thu, 2 Jul 2026 23:48:05 +0200 (CEST) Authentication-Results: mxe881; dkim=pass header.d=gmail.com; spf=pass (sender IP is 104.64.211.4) smtp.mailfrom=linux-sunxi+bounces-24094-noreply=patchwork.local@lists.linux.dev smtp.helo=sin.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 104.64.211.4 as permitted sender) client-ip=104.64.211.4; envelope-from=linux-sunxi+bounces-24094-noreply=patchwork.local@lists.linux.dev; helo=sin.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sin.lore.kernel.org (Postfix) with ESMTP id 8868F300F632 for ; Thu, 2 Jul 2026 21:48:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 30589380FE0; Thu, 2 Jul 2026 21:48:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="r/K6XG5V" X-Original-To: linux-sunxi@lists.linux.dev Received: from mail-yx1-f54.google.com (mail-yx1-f54.google.com [74.125.224.54]) (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 DEEB0312834 for ; Thu, 2 Jul 2026 21:48:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.224.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783028882; cv=none; b=OnvsyXa998bbCjZkbgd1iCrtzOTc7W51Fs3pnNenBWNTyzjnvWqrqNXvD3uX5UXtHOdNJAaZ7ydqAgCP/7E76T9AFHj1FjMIr6tKiwubdv5/HVGPvmuRFoj2l+Up5Sg1zFjLHjWqf/q9wEnDwvshq5BPvCZ0Q3DU5LQICjT5sFw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783028882; c=relaxed/simple; bh=zjILW9Q86QgNkyAX/V+hLv/MYkNtg71tImXI0XhySLo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=syhMS0NfwEYXytYCzZax8b47knbCWglYvvuT0AjSdzFuC6yltLieCIMH4cpkDYO2dN5C2aa0EnLTBtdHIg8VmJEivMcz1KVFbp9CGYXOud4X+2VLQo+22Yp69yiDNJi8oT/4YZRI+1k8ClqRCDg/4Znpfsdv8YSxVouYRxiKS9Y= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=r/K6XG5V; arc=none smtp.client-ip=74.125.224.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yx1-f54.google.com with SMTP id 956f58d0204a3-6649ffb1d01so3410956d50.1 for ; Thu, 02 Jul 2026 14:48:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783028880; x=1783633680; darn=lists.linux.dev; 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=5hvq8f3W/S8SM2hfryHlRDSpp/ikQu+f+Y5+keswTDg=; b=r/K6XG5V8K4D0k+4AlXIZh8quKuSV/nvGSUa2aUJle1y8EZRYnMQiuSki2dFV5amCG 5Tkmo76eJgsWK9PFi5EgbqbWH429uiVyhESGSraYHTK5OT4lkntETKpRLtHerBcPbleB KQ2gwK+XqqRNjhOQ8gcHo0j24s4TJyVZqNdi8t9WtVBSF4AKJSSQEk1bVAxNLsmnDl25 g2ufGV42tG5lbBQ8lb7woN2+jV2DFoAwIeMLGX8TykXaPLp+0lTAHRj8kLYkGSctZobA h68OT/e0pyvtnO6Or5mZCotdl/YdjY3DWLGzY2iQW4IEM4m5wSS9gqmzXO18PpzkSOHA 4w5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783028880; x=1783633680; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=5hvq8f3W/S8SM2hfryHlRDSpp/ikQu+f+Y5+keswTDg=; b=rdFw+eUfvTm+rOfmQeP9sE+2xRBFnfAfmU2ZTa8xz+39v9z2JXWZTTEmaVdydgxev7 +aQH4Oka8FzeSgX1JW/+lNjNCyrIdik1dgrLQKyjkisMcchZZgTZYYphfi0CtjGEGxuL Eo6NWZ1/Id6GgqUjB9uOc32Ou4yMzv5AMw1JG1t+HKDrCItgr5mbPj0yYRCOMYfM7mfv l2A0mrZJ8tOEeRkuWVjuNJWOcxglrdV9pob4qWPgh+k3LeBSg0XE9wkU1h0cwv0xUoHS jhNNI0kDyHLMt+D+q6mcz1Ym0EEtPIZkM4viqS9SiIgCnDCpy6A6hXaXM8Ms2ICsBn/6 Ls8A== X-Forwarded-Encrypted: i=1; AHgh+Rq2kUGdI3kI4bzXnOGUft2EcCxTvQKkKPbnAgJ7MFUZvmhqMN46/cw/X0v0TfeXnhGoY3t9oo271blyYA==@lists.linux.dev X-Gm-Message-State: AOJu0Yw29SkImz+te/SXf0ULEJrZ/KX5k1uWPhe3iE0LOzbIFmAqopPF rFEhfJNZY2/TjmT/cPrB9po8G7dC0vl8per1sTGiODe76hkfAP+0St26 X-Gm-Gg: AfdE7cnvNvX1wc6/LdlQi60Vz/O2TmznvJuX+wd5zJTbEHF6V5LzwTmw9Ny3DAu9kCW jp2RzySC5LVkZULFEevUtGPWQGYiaCkP5cobK5gBk2fhtFrQam04x16J+bQT3QHMuVI0sfVaWkH /bJYeYwMNum4GMHkvqN4DxBnzn8I2Cl1HDqdUJ/598L/NnynYYPLlHs8BNlRmu2R5aUoyL6b/tN Hsoxduo/9QoVAl8W1TGXYSOda5DmshI7a6zzxePdsINScuBfoqoIE1mibYIYlPspUdJs9lhUVF/ UFqwp5M8RnWgifkfTEZABhsgdmUbROr8uMVovlYyLCA90NnqBf1BoAfYLgKbqg9qXOyvPO/pW2T nC1MNbPi0niHQMo4GI+ShMkVMIeUpRet8hqZ7R6yMLz5itkNLkAFw68aMgtsl2hNV4Plbcu0YNi tDfcbSnqKI6+LfaID2fZEoQ2ouXo0Xw6GMaFX1WA8xdeh8ElE= X-Received: by 2002:a05:690e:4397:b0:664:ae67:b674 with SMTP id 956f58d0204a3-66521bca8b7mr5877472d50.80.1783028879729; Thu, 02 Jul 2026 14:47:59 -0700 (PDT) Received: from zenbox ([2600:1700:18fb:6011:169a:36bf:d0a4:1d7c]) by smtp.gmail.com with ESMTPSA id 956f58d0204a3-66624021a75sm1631772d50.11.2026.07.02.14.47.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jul 2026 14:47:59 -0700 (PDT) From: Justin Suess To: Sean Young , Mauro Carvalho Chehab , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Ripard Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, Sashiko , Justin Suess Subject: [PATCH 1/4] media: dt-bindings: allwinner,sun4i-a10-ir: add A523 compatible Date: Thu, 2 Jul 2026 17:47:47 -0400 Message-ID: <20260702214750.3428694-2-utilityemal77@gmail.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260702214750.3428694-1-utilityemal77@gmail.com> References: <20260702214750.3428694-1-utilityemal77@gmail.com> Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= The A523 (sun55i) contains a newer revision of the sunxi CIR receiver. It is not backwards-compatible with the A31 programming model: the control register has a pulse capture mode field (bits [7:6]) that resets to a value which captures no pulses at all, and the sample clock divider is now selectable via SPLCFG bits [1:0] instead of being fixed at the old module clock / 64. Since a kernel driving it as an A31 CIR receives nothing, add the compatible as a standalone entry rather than under the allwinner,sun6i-a31-ir fallback. Signed-off-by: Justin Suess Acked-by: Krzysztof Kozlowski --- .../devicetree/bindings/media/allwinner,sun4i-a10-ir.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/media/allwinner,sun4i-a10-ir.yaml b/Documentation/devicetree/bindings/media/allwinner,sun4i-a10-ir.yaml index 42dfe22ad5f1..06656058ce91 100644 --- a/Documentation/devicetree/bindings/media/allwinner,sun4i-a10-ir.yaml +++ b/Documentation/devicetree/bindings/media/allwinner,sun4i-a10-ir.yaml @@ -19,6 +19,7 @@ properties: - const: allwinner,sun4i-a10-ir - const: allwinner,sun5i-a13-ir - const: allwinner,sun6i-a31-ir + - const: allwinner,sun55i-a523-ir - items: - enum: - allwinner,suniv-f1c100s-ir From patchwork Thu Jul 2 21:47:48 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Justin Suess X-Patchwork-Id: 2513 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mxe881.netcup.net (Postfix) with ESMTPS id 850891C00A4 for ; Thu, 2 Jul 2026 23:48:08 +0200 (CEST) Authentication-Results: mxe881; dkim=pass header.d=gmail.com; spf=pass (sender IP is 172.105.105.114) smtp.mailfrom=linux-sunxi+bounces-24095-noreply=patchwork.local@lists.linux.dev smtp.helo=tor.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.105.105.114 as permitted sender) client-ip=172.105.105.114; envelope-from=linux-sunxi+bounces-24095-noreply=patchwork.local@lists.linux.dev; helo=tor.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by tor.lore.kernel.org (Postfix) with ESMTP id 2B82E3015869 for ; Thu, 2 Jul 2026 21:48:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ED539312834; Thu, 2 Jul 2026 21:48:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="myJvm1/9" X-Original-To: linux-sunxi@lists.linux.dev Received: from mail-yx1-f52.google.com (mail-yx1-f52.google.com [74.125.224.52]) (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 1875638B12A for ; Thu, 2 Jul 2026 21:48:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.224.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783028886; cv=none; b=Ck1kLNL4aIFBNV86leG3ZsPKJAniI+pbQtLnSiRUu4eMLUkyjRGu53FexZd6oT0UNO8kpjX3idM3lwbE+i1B0c6WtbvMyHaCzsyLcKMAjVkVMvSP5PXhroeR7KJRZkDDaT2i+F6gKNzjoyw3tLXTr69kBBY5v6BXBCZou9PfJ1c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783028886; c=relaxed/simple; bh=Be/cWPQ59xpS4zI4d7uyaSUlPTVzJY+oz2ilnWbcb+Q=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=cpEJSGQByQLs35RKBHeF+m07BFqISNySbTBwIqATZsnPM6dytXrf4Q010fIz1YEnttq/4MJ5ekuR5M3RR6Mr3oL9EB4gYUy6y34a/ZFewm8jTVyYBf4uCAjYH22awMJUrJOm2khvHGGPuWromFkI1ryCTHl3curRipxNYydWtM0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=myJvm1/9; arc=none smtp.client-ip=74.125.224.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yx1-f52.google.com with SMTP id 956f58d0204a3-664eb8cb631so2060651d50.3 for ; Thu, 02 Jul 2026 14:48:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783028883; x=1783633683; darn=lists.linux.dev; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=b5Ik/jaiyxGq/K61KC4YWGXGDB1yT8F48WMWIyoKQXM=; b=myJvm1/9+D7ceJjAbIBN4JL9J545TFs/tkpgPORHpabIxg/bxge2+5PKuUj7PlIG7l A/SERJzOkM/byP5RLOsdd/atohv2eH7fen1TgFAvqcNFGa44xUI5IQqmjn24PcJcWELA EczrTdooY7qnPh5Zufm3/YvZ6ew8uV8L2vQ54KpooY2nfxHXdwlf7qwK317Iw9IXSKij /xhuGnNwEYRmvsm644mKSjAVHnHrpmMfoGHfN634NXHM7M1M31U9UkvQaS/lktuM4K9t xSeu0RtufAYm7E1Z3f+FjX58rxQ3yWiEQs8Dp4DEG0UtjYzLqfLqS2FLg7JzSppiOggp Iiew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783028883; x=1783633683; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=b5Ik/jaiyxGq/K61KC4YWGXGDB1yT8F48WMWIyoKQXM=; b=Ma6iZnGMLKuWICPRug2NJgoAXTUZgIm6DPEWrxTeP56HbOgbLCTu/FONhGMO8tbQl8 SQa8OpE/W3NTSMy8iGb7kXIzO0UdOdEEDTq4F+TS6T3SenOXRiQ1tn2BE64pF6Z2yXVH 6MI2KJepGLE5LpDP934YNBJBKfcaDMyDDQMndhvrGx8LfwFmxPWGKHUxiUaC7KD9Pihz OzhI4zvQv3Drooy+hx8MmAgXmMRktGnPVF2FnOGBUnLCnWUn5bgZRE7c8HV3NKyM+xyT Gt7rtQyoZtS0gxao+h5AmHQ/oSCpzkYdGsrZVvs5TuktMXt0vae/tUszH4CbsWEU+ptH Lj4Q== X-Forwarded-Encrypted: i=1; AHgh+RoCmWjY1L7/FAfP4vZcOwK60Op5mW9teqge77fw4EpPzYVIcy7K8hAElzdU+nXrdfylSbOOc8KnEHUD0w==@lists.linux.dev X-Gm-Message-State: AOJu0YyeioisxRf6PyHikFwDwkZE3cHtMjycwZHSdU6xmlmnvIuAJY2f Ne7dZrSoLdgqOGDKf8kEfFt7Bpg5H9GB/4cqeiiIpBQWoSO5rKbCVGkw X-Gm-Gg: AfdE7cnZmUEcH2Bw2tadSGskFEj/HDProhnsEy/8jjtTsxIkzl1g8QzasBzK1jZbI7u 6zOExXe3tK70Vhq4iBF8nUE8VDbATjTBiiFiLfGNg0AvgWPqzZWCJ13x40Ohi25Dmz6n/rn9jZx tMjMjyO7+AioPvJcYGVoATwyUWsv8hyhoLcxfJU1XTXsq+zPQFFEjyVPHkYcYUUJ8zlAcoh+EPR cipqnXLNUrKvECz/PNuYA0wU+CWwyzHBiuL0Cueb1xKrONZ3ZQXUpE0iBq17Ht1QaEI/DBMgsnJ oqwpTk+CqF05dtof3vQYGJhzS5U2HUJ1/qxXvisDnvIa0x8XqTSnOaEqpVZWphm9N+yUGEAg11X q19J799c/qTGzot8ed53qLKm2TdQqHQ0CLZ9c7aH8De+yPKhmX9j/D+bwYyiAfUEkq80+MNCIWQ rbmiHyfrI5AB052PLU+NxUv22Gk5UB9ShpWF8AZzVjdSzT25s= X-Received: by 2002:a05:690e:4089:b0:664:ae6a:ef2 with SMTP id 956f58d0204a3-66596695a62mr6927006d50.80.1783028882666; Thu, 02 Jul 2026 14:48:02 -0700 (PDT) Received: from zenbox ([2600:1700:18fb:6011:169a:36bf:d0a4:1d7c]) by smtp.gmail.com with ESMTPSA id 956f58d0204a3-66624021a75sm1631772d50.11.2026.07.02.14.48.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jul 2026 14:48:02 -0700 (PDT) From: Justin Suess To: Sean Young , Mauro Carvalho Chehab , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Ripard Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, Sashiko , Justin Suess Subject: [PATCH 2/4] media: rc: sunxi-cir: add support for the A523 Date: Thu, 2 Jul 2026 17:47:48 -0400 Message-ID: <20260702214750.3428694-3-utilityemal77@gmail.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260702214750.3428694-1-utilityemal77@gmail.com> References: <20260702214750.3428694-1-utilityemal77@gmail.com> Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [-0.16 / 15.00]; BAYES_HAM(-5.50)[100.00%]; RBL_SENDERSCORE(2.00)[172.105.105.114:from]; SUSPICIOUS_RECIPS(1.50)[]; MID_CONTAINS_FROM(1.00)[]; DMARC_POLICY_SOFTFAIL(1.00)[gmail.com : SPF not aligned (relaxed), No valid DKIM,none]; MAILLIST(-0.15)[generic]; BAD_REP_POLICIES(0.10)[]; MIME_GOOD(-0.10)[text/plain]; HAS_LIST_UNSUB(-0.01)[]; RCPT_COUNT_TWELVE(0.00)[15]; FREEMAIL_FROM(0.00)[gmail.com]; DBL_BLOCKED_OPENRESOLVER(0.00)[tor.lore.kernel.org:rdns,tor.lore.kernel.org:helo]; TO_DN_SOME(0.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; FORGED_SENDER_MAILLIST(0.00)[]; FREEMAIL_CC(0.00)[vger.kernel.org,lists.infradead.org,lists.linux.dev,kernel.org,gmail.com]; FREEMAIL_TO(0.00)[mess.org,kernel.org,gmail.com,sholland.org]; TAGGED_RCPT(0.00)[dt]; FROM_HAS_DN(0.00)[]; RCVD_TLS_LAST(0.00)[]; ARC_ALLOW(0.00)[subspace.kernel.org:s=arc-20240116:i=1]; MIME_TRACE(0.00)[0:+]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; PRECEDENCE_BULK(0.00)[]; ASN(0.00)[asn:63949, ipnet:172.105.96.0/20, country:SG]; FROM_NEQ_ENVFROM(0.00)[utilityemal77@gmail.com,linux-sunxi@lists.linux.dev]; TAGGED_FROM(0.00)[bounces-24095-noreply=patchwork.local]; R_SPF_ALLOW(0.00)[+ip4:172.105.105.114]; RCVD_COUNT_FIVE(0.00)[6]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Queue-Id: 850891C00A4 X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= The A523 (sun55i) has a newer revision of the CIR receiver IP. Two register fields that do not exist on older SoCs must be programmed for reception to work: - CTL bits [7:6] select which pulse polarities are captured into the RX FIFO. The reset value of 0 captures nothing, so program "both pulse" mode, which captures regardless of header polarity. - SPLCFG (the sample configuration register) bits [1:0] select the sample clock as a division of the module clock, replacing the fixed module clock / 64 sample rate of the older IP. Select module clock / 256, which together with the 24 MHz module clock used on the A523 gives a 10.7 μs sample period, close to the 8 μs of the previous 8 MHz / 64 configuration, and keeps the default 125 ms idle timeout representable in the 8-bit idle threshold field. Parameterize the sample divisor in the resolution/timeout calculations, which older SoCs keep at the fixed 64, and add the A523 quirks and compatible. Signed-off-by: Justin Suess --- drivers/media/rc/sunxi-cir.c | 76 ++++++++++++++++++++++++++++++------ 1 file changed, 63 insertions(+), 13 deletions(-) diff --git a/drivers/media/rc/sunxi-cir.c b/drivers/media/rc/sunxi-cir.c index cb4c56bf0752..82ada9dc0347 100644 --- a/drivers/media/rc/sunxi-cir.c +++ b/drivers/media/rc/sunxi-cir.c @@ -31,6 +31,11 @@ /* CIR mode */ #define REG_CTL_MD (BIT(4) | BIT(5)) +/* Pulse mode selector (bits [7:6]) */ +#define REG_CTL_PMD(m) ((m) << 6) +/* Capture both pulse polarities */ +#define REG_CTL_PMD_BOTH REG_CTL_PMD(1) + /* Rx Config */ #define SUNXI_IR_RXCTL_REG 0x10 /* Pulse Polarity Invert flag */ @@ -66,6 +71,13 @@ /* IR Sample Config */ #define SUNXI_IR_CIR_REG 0x34 +/* + * Sample clock divider select (bits [1:0]), present on newer IP revisions + * (e.g. sun55i). Selects the sample clock as a fraction of the module clock; + * must be programmed for the sampler to run. Older SoCs lack the field and + * use a fixed module-clock/64 sample rate, so they leave it 0. + */ +#define REG_CIR_SDIV(val) ((val) & GENMASK(1, 0)) /* CIR_REG register noise threshold */ #define REG_CIR_NTHR(val) (((val) << 2) & (GENMASK(7, 2))) /* CIR_REG register idle threshold */ @@ -73,6 +85,8 @@ /* Required frequency for IR0 or IR1 clock in CIR mode (default) */ #define SUNXI_IR_BASE_CLK 8000000 +/* Default sample clock divisor: module clock / 64 (legacy fixed rate) */ +#define SUNXI_IR_SAMPLE_DIV 64 /* Noise threshold in samples */ #define SUNXI_IR_RXNOISE 1 @@ -81,10 +95,18 @@ * * @has_reset: SoC needs reset deasserted. * @fifo_size: size of the fifo. + * @both_pulse: program the CTRL pulse-mode field (newer IP revisions). + * @sample_div_sel: value for the SPLCFG sample-clock divider field (0 on + * legacy SoCs that lack the field). + * @sample_divisor: module-clock divisor that yields the sample clock; matches + * @sample_div_sel on newer IP, or the fixed /64 on legacy SoCs. */ struct sunxi_ir_quirks { bool has_reset; int fifo_size; + bool both_pulse; + u8 sample_div_sel; + u32 sample_divisor; }; struct sunxi_ir { @@ -92,6 +114,9 @@ struct sunxi_ir { void __iomem *base; int irq; int fifo_size; + bool both_pulse; + u8 sample_div_sel; + u32 sample_divisor; struct clk *clk; struct clk *apb_clk; struct reset_control *rst; @@ -140,17 +165,19 @@ static irqreturn_t sunxi_ir_irq(int irqno, void *dev_id) } /* Convert idle threshold to usec */ -static unsigned int sunxi_ithr_to_usec(unsigned int base_clk, unsigned int ithr) +static unsigned int sunxi_ithr_to_usec(unsigned int base_clk, unsigned int div, + unsigned int ithr) { return DIV_ROUND_CLOSEST(USEC_PER_SEC * (ithr + 1), - base_clk / (128 * 64)); + base_clk / (128 * div)); } /* Convert usec to idle threshold */ -static unsigned int sunxi_usec_to_ithr(unsigned int base_clk, unsigned int usec) +static unsigned int sunxi_usec_to_ithr(unsigned int base_clk, unsigned int div, + unsigned int usec) { /* make sure we don't end up with a timeout less than requested */ - return DIV_ROUND_UP((base_clk / (128 * 64)) * usec, USEC_PER_SEC) - 1; + return DIV_ROUND_UP((base_clk / (128 * div)) * usec, USEC_PER_SEC) - 1; } static int sunxi_ir_set_timeout(struct rc_dev *rc_dev, unsigned int timeout) @@ -158,15 +185,17 @@ static int sunxi_ir_set_timeout(struct rc_dev *rc_dev, unsigned int timeout) struct sunxi_ir *ir = rc_dev->priv; unsigned int base_clk = clk_get_rate(ir->clk); - unsigned int ithr = sunxi_usec_to_ithr(base_clk, timeout); + unsigned int ithr = sunxi_usec_to_ithr(base_clk, ir->sample_divisor, + timeout); dev_dbg(rc_dev->dev.parent, "setting idle threshold to %u\n", ithr); - /* Set noise threshold and idle threshold */ - writel(REG_CIR_NTHR(SUNXI_IR_RXNOISE) | REG_CIR_ITHR(ithr), + /* Set sample clock divider, noise threshold and idle threshold */ + writel(REG_CIR_SDIV(ir->sample_div_sel) | + REG_CIR_NTHR(SUNXI_IR_RXNOISE) | REG_CIR_ITHR(ithr), ir->base + SUNXI_IR_CIR_REG); - rc_dev->timeout = sunxi_ithr_to_usec(base_clk, ithr); + rc_dev->timeout = sunxi_ithr_to_usec(base_clk, ir->sample_divisor, ithr); return 0; } @@ -193,8 +222,14 @@ static int sunxi_ir_hw_init(struct device *dev) goto exit_disable_apb_clk; } - /* Enable CIR Mode */ - writel(REG_CTL_MD, ir->base + SUNXI_IR_CTL_REG); + /* + * Enable CIR Mode. On newer IP revisions the pulse-mode field must + * also be set, otherwise no pulses are captured into the RX FIFO. + */ + tmp = REG_CTL_MD; + if (ir->both_pulse) + tmp |= REG_CTL_PMD_BOTH; + writel(tmp, ir->base + SUNXI_IR_CTL_REG); /* Set noise threshold and idle threshold */ sunxi_ir_set_timeout(ir->rc, ir->rc->timeout); @@ -271,6 +306,9 @@ static int sunxi_ir_probe(struct platform_device *pdev) } ir->fifo_size = quirks->fifo_size; + ir->both_pulse = quirks->both_pulse; + ir->sample_div_sel = quirks->sample_div_sel; + ir->sample_divisor = quirks->sample_divisor ?: SUNXI_IR_SAMPLE_DIV; /* Clock */ ir->apb_clk = devm_clk_get(dev, "apb"); @@ -325,10 +363,10 @@ static int sunxi_ir_probe(struct platform_device *pdev) ir->rc->dev.parent = dev; ir->rc->allowed_protocols = RC_PROTO_BIT_ALL_IR_DECODER; /* Frequency after IR internal divider with sample period in us */ - ir->rc->rx_resolution = (USEC_PER_SEC / (b_clk_freq / 64)); + ir->rc->rx_resolution = (USEC_PER_SEC / (b_clk_freq / ir->sample_divisor)); ir->rc->timeout = IR_DEFAULT_TIMEOUT; - ir->rc->min_timeout = sunxi_ithr_to_usec(b_clk_freq, 0); - ir->rc->max_timeout = sunxi_ithr_to_usec(b_clk_freq, 255); + ir->rc->min_timeout = sunxi_ithr_to_usec(b_clk_freq, ir->sample_divisor, 0); + ir->rc->max_timeout = sunxi_ithr_to_usec(b_clk_freq, ir->sample_divisor, 255); ir->rc->s_timeout = sunxi_ir_set_timeout; ir->rc->driver_name = SUNXI_IR_DEV; @@ -395,6 +433,14 @@ static const struct sunxi_ir_quirks sun6i_a31_ir_quirks = { .fifo_size = 64, }; +static const struct sunxi_ir_quirks sun55i_a523_ir_quirks = { + .has_reset = true, + .fifo_size = 64, + .both_pulse = true, + .sample_div_sel = 2, /* sample clock = module clock / 256 */ + .sample_divisor = 256, +}; + static const struct of_device_id sunxi_ir_match[] = { { .compatible = "allwinner,sun4i-a10-ir", @@ -408,6 +454,10 @@ static const struct of_device_id sunxi_ir_match[] = { .compatible = "allwinner,sun6i-a31-ir", .data = &sun6i_a31_ir_quirks, }, + { + .compatible = "allwinner,sun55i-a523-ir", + .data = &sun55i_a523_ir_quirks, + }, {} }; MODULE_DEVICE_TABLE(of, sunxi_ir_match); From patchwork Thu Jul 2 21:47:49 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Justin Suess X-Patchwork-Id: 2514 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mxe881.netcup.net (Postfix) with ESMTPS id 664FE1C00A4 for ; Thu, 2 Jul 2026 23:48:58 +0200 (CEST) Authentication-Results: mxe881; dkim=pass header.d=gmail.com; spf=pass (sender IP is 172.234.253.10) smtp.mailfrom=linux-sunxi+bounces-24096-noreply=patchwork.local@lists.linux.dev smtp.helo=sea.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.234.253.10 as permitted sender) client-ip=172.234.253.10; envelope-from=linux-sunxi+bounces-24096-noreply=patchwork.local@lists.linux.dev; helo=sea.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 757773044800 for ; Thu, 2 Jul 2026 21:48:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 564C23AE1BC; Thu, 2 Jul 2026 21:48:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="q8oHXT1H" X-Original-To: linux-sunxi@lists.linux.dev Received: from mail-yx1-f44.google.com (mail-yx1-f44.google.com [74.125.224.44]) (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 0A98D3ABD80 for ; Thu, 2 Jul 2026 21:48:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.224.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783028887; cv=none; b=QonTFb+jWBbBQ30IjEKi5KDK4Y5TqWETGjz928UV5b1T9/BM3mvP/17707zuLG3fGVHHeOpbiJHq1XXNAx55+9mIgS57jcmgkjxxE3/kumn5AKRU6vmGLc2MtXRSl3Q1o+7+pcyvX+b0TlWT0tmPuSAgEBc5utZ3P4rNlQqTyps= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783028887; c=relaxed/simple; bh=GwobjMKNuoBExZjl/NvFuogoEu7HMJewkr2hte/pKZQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=D7c97mEH1Tu+NVEwwc7Sw8AB6A/fG0iVxsO/I35x9lCyJPoVBsRZ8puO3xjcMtSDQ83J9Vf6pF1AC1wDssoD7R8/+8uRpndnchB/og1ir3pDYriwtulUrtd5cENsgJX4BPj+vAbwf/5128rqYLy8Gb6lIDdiHuDoeud0potlzDk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=q8oHXT1H; arc=none smtp.client-ip=74.125.224.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yx1-f44.google.com with SMTP id 956f58d0204a3-664ee752958so3124195d50.1 for ; Thu, 02 Jul 2026 14:48:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783028885; x=1783633685; darn=lists.linux.dev; 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=/TChm7zMrIm1e2zF/qvsCr3qRkxhMbyISPQm5ZZUS90=; b=q8oHXT1Hz/O1+pPsNruZI5a0MyAzZcpIylhHwveDm0XfRlncC8x7ljl9KVYn6kBch0 VFPvcsvYSyLEKEbjXZEKmJBuZCHTBvWJqvXtyrZPMp+rJaDkKbtiVg5hvxwyKEee7BMN tfQ6JPoLv1cS1ERMLGqgSB4aP2A2RwWZaxzJHZzCy7AGrFGdsPEv5rS0eDavbE9ZnzcJ fFsql+qeNE/cXLSLUHM0FA40w2hm5q4PKEBt074ZiPaLE9snyxUm4/0tVQokliQhvfhG kaLr3Wg9Si558impsu2I6Rfum5/WO0GDhxR1HYoJwEOPGcQJU7XknTcOwBQKfCcVut9q LZkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783028885; x=1783633685; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=/TChm7zMrIm1e2zF/qvsCr3qRkxhMbyISPQm5ZZUS90=; b=Y5sRiCOosPlKXcLyDM5QhPKefhKpVAjJFvo58cks0KDAoPCuGAX0xbZMRxjJGRbz05 xSXH1MsHVTD71Jv5fDM2QxjnEjYQnvW6XU2h6/hsLnq6wwyrh/tb2OKyaTP5zAMGCcFt zEpBXqnG3z4Hd+ywHnhKaPzb1yu/lYrRwlfBDG3JXmaNM4iJP6Lb7yOeVDtBUYtH58uK rJ08aX6e79xE+UCtffvxYKdeUfPRXO45aY6yLvlw5PQ3ZrNuTs4/4toypZRMK/7QjG2f cLNfyZ09rOv+Gp8Ux2jvJli+3hzrsres7jDDpfK3s2ifOfR21E3m5JVjGbNYKMiKgx7r jJ6A== X-Forwarded-Encrypted: i=1; AHgh+RoOmZd9WWXIEfifjfnrL3lfMLtau0eao/ez50Q81T6mGsuNmR631eIKjrmUO6ihquJXQmouyHCt2Hg0bw==@lists.linux.dev X-Gm-Message-State: AOJu0YxdyjQyeFJ0IoEpJp43mcagFtxIs6sOBklQNAQU8fVC1txr0TTi NuyMydjhaIHHGJ3zLQklQBuOmA7SvsESdbq8/kGAo+/J4vZ3ilDuYEXB X-Gm-Gg: AfdE7cln3LhTNcpBWiMk9Yj0CAuWA0TFERKFQyZEquBORKMHKHfwWIZYOQX30b4ncF1 fzrjfaE9oY+Jut4LU6qBDD10w8OF1YeNlfH6VMV2OLwOdDclGjnHEET3pNuELZXuFhZr8uC3eE2 O513aXQMTMoJRbJEym4impF/uqckdU/FVUwgumn6yklRjRqefzJQ021Cv41ymuKb/58qOAkjL0k zmH2tmsW2a3ps/LK9j19syD1zZg07nOAfjIY5dFRIGB17KNEgB5PVfy8umjpRAADj8beATcoQXN KFGRNjCSbu16tziD+MuZo/WiOC7LgH+262Vdb5sjHQFYyIlgACQjKKUDy1GKNrrpAwb3GRq9gOp 17CdwW6JJETXR+7YZ21FZz0klkGIkN/p702ukJIV8fk8a6b4bd/tmIwA5/LrGZrOgqp0VGLX1tK clhoNbO4WESBoIzfNwhSEJL+Y2J6yOHd2ROPr0No/oz2z2DEw= X-Received: by 2002:a53:ac96:0:b0:665:a0c:654a with SMTP id 956f58d0204a3-66521a0c7cdmr9753722d50.27.1783028884812; Thu, 02 Jul 2026 14:48:04 -0700 (PDT) Received: from zenbox ([2600:1700:18fb:6011:169a:36bf:d0a4:1d7c]) by smtp.gmail.com with ESMTPSA id 956f58d0204a3-66624021a75sm1631772d50.11.2026.07.02.14.48.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jul 2026 14:48:04 -0700 (PDT) From: Justin Suess To: Sean Young , Mauro Carvalho Chehab , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Ripard Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, Sashiko , Justin Suess Subject: [PATCH 3/4] arm64: dts: allwinner: a523: add IR receiver node Date: Thu, 2 Jul 2026 17:47:49 -0400 Message-ID: <20260702214750.3428694-4-utilityemal77@gmail.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260702214750.3428694-1-utilityemal77@gmail.com> References: <20260702214750.3428694-1-utilityemal77@gmail.com> Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= The A523 has a CIR receiver in the RTC power domain, clocked from the R-CCU, with its RX signal available on PL11. Clock the module directly from the 24 MHz host oscillator; the driver selects a /256 sample divider on this SoC, giving a sample period close to the legacy 8 MHz / 64 configuration of older SoCs. Keep the node disabled by default; boards with an IR receiver can enable it. Signed-off-by: Justin Suess --- .../arm64/boot/dts/allwinner/sun55i-a523.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi b/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi index ca6a16807049..5e46c4b1ee61 100644 --- a/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi @@ -927,6 +927,25 @@ r_i2c_pins: r-i2c-pins { allwinner,pinmux = <2>; function = "r_i2c0"; }; + + r_ir_rx_pin: r-ir-rx-pin { + pins = "PL11"; + allwinner,pinmux = <2>; + function = "s_cir"; + }; + }; + + r_ir: ir@7040000 { + compatible = "allwinner,sun55i-a523-ir"; + reg = <0x07040000 0x400>; + interrupts = ; + clocks = <&r_ccu CLK_BUS_R_IR_RX>, <&r_ccu CLK_R_IR_RX>; + clock-names = "apb", "ir"; + clock-frequency = <24000000>; + resets = <&r_ccu RST_BUS_R_IR_RX>; + pinctrl-names = "default"; + pinctrl-0 = <&r_ir_rx_pin>; + status = "disabled"; }; pck600: power-controller@7060000 { From patchwork Thu Jul 2 21:47:50 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Justin Suess X-Patchwork-Id: 2515 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mxe881.netcup.net (Postfix) with ESMTPS id E9A031C00A4 for ; Thu, 2 Jul 2026 23:49:16 +0200 (CEST) Authentication-Results: mxe881; dkim=pass header.d=gmail.com; spf=pass (sender IP is 172.234.253.10) smtp.mailfrom=linux-sunxi+bounces-24097-noreply=patchwork.local@lists.linux.dev smtp.helo=sea.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.234.253.10 as permitted sender) client-ip=172.234.253.10; envelope-from=linux-sunxi+bounces-24097-noreply=patchwork.local@lists.linux.dev; helo=sea.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 8D0903051A4A for ; Thu, 2 Jul 2026 21:48:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 41015312834; Thu, 2 Jul 2026 21:48:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="SC47Sln6" X-Original-To: linux-sunxi@lists.linux.dev Received: from mail-yx1-f43.google.com (mail-yx1-f43.google.com [74.125.224.43]) (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 DEF4D3AEF51 for ; Thu, 2 Jul 2026 21:48:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.224.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783028889; cv=none; b=e2wAnr7iipfQ0vod/i2daJD3p7JXtnKhveyDdiOV3guFbA8myi1X1SBiLOP+UzsTzZBpcuX2Gj3dkOTAG55q/CqjRTSm5DYQWXvyrj5DMDgPZekI8WRNXZZjQPSZlDEAeCvJ+JfMDjFWy0ww8+klVKIBoU//jPUp9n8SbPiDp5M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783028889; c=relaxed/simple; bh=+HAMBaZcdBrjRhj9S5KxkVE10MrfH1DGewIu3JXAVXE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=r2JkUePnIT1FIbm4pqfpNyevM4KnguVhCaqO5Bt0Hb7b9PhBW1DNYM4qLV0F0kC9G1pYjked1qxdqm2oKOpjS8F0gls0iTXjCSzUytmVEsMvXyRL33hFe7ZeXvibegBdgVD/8aYhns/rbdm3Xqk1HFt+I4ZOXtoBlK+sPlkapoM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=SC47Sln6; arc=none smtp.client-ip=74.125.224.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yx1-f43.google.com with SMTP id 956f58d0204a3-664c6304683so2584300d50.2 for ; Thu, 02 Jul 2026 14:48:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783028887; x=1783633687; darn=lists.linux.dev; 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:content-type; bh=Tpj+MtbD1Voe05dyT9Fd9S36++WsVidg7tbKtFQLZbU=; b=SC47Sln6P4mFekvwgSIjSRTfH2oSsuzUe+mVy2rSzp43tMqDjMlmG+JgYw3mC4nYzL EvvOw5UYm6uAVIObvPRHIQ7zXPXrb/oPQGrBDauE1XMsZRDa6A9PjOx9jtBfGuD4+E5P ocz+j/EU5pKExJD7ztTzlchUkk9PTtnN0vD3nEiVxON62klm30jGzoToSVks1YxT80vE 9PDtnxOq4+iZftNLXeXcilMmYVjfqshINdSZgZJlBdA3Wy1sG7h5pKJL8sP/yZO6Y3Cw sELyYTzIif6nJ1LXcyVzmvn+3MKpABAQy+MW5BLHqn+i/2y1gsGRrE2xyudARRrvw7Ze 1mbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783028887; x=1783633687; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=Tpj+MtbD1Voe05dyT9Fd9S36++WsVidg7tbKtFQLZbU=; b=KuyfB2tNXaceuN7OvvCuknj5qq739ScgqNIKSw3pvm0JUW5zZs07/YMVRwmyqaG995 3tEy430O7Y4txiBykcgBMHuku7FLuhr2WfKwE5thZDl54U2HUUAGALJAFTXRZpsbIen+ lsf67K97+Xyjv10/V8kXPDvGv4/yLbZHuhTi/R+BSSVYqnZ/V7goxAFvcTAc7XHbd8gT KL0OiYaUZahNfzuu+ddidC0U9T8hbuX9m4LAV5O+Ur1bEORXcFwdCw5TMkaYpUndnoQG NnIe/e2jTEcr8ywYbprD9owkZn3gG8mYSk2ESZF/aX1+4oGGYj8OX3bwbRQuL1d5QsZF s2og== X-Forwarded-Encrypted: i=1; AHgh+Rprwu8vxI3/pE80amUY0Ifg9HpKWRWK4DAbx9KzYpVVd0P7wZzG7rnz6mTk3WvjkpKCo+/A50om97KR7g==@lists.linux.dev X-Gm-Message-State: AOJu0YwLVVNUUeXIIJNo6AgTlPQXyNp0dYjo5jbtVpGJ2DEP9LRe8Zpj G/rUeHsPkwOc1UYKy7vgck1iaLfPwCPfz3tDfAjBIMcleTIs3U+5sE5q X-Gm-Gg: AfdE7cm5g95TqaI9iJjL4tGaL9mTnhY62avGRX0sTQIac+EJHqb9oUoG/GswdMG/aY4 7QNCB/Nc7MoQT3IZgY3dEO5obaXRUD1u2guUqz4GG3k3J+y1Z6Ea6t+4J/DOz3ZEN3AbN+590wf gxMoQhwYRdfXCJz6pjcdjwFyx5cRTp94EnEYOlcwGXPhSBiUaQUB2bKJI1vXJNJh811IASkbMyx ORQCDy6trggqzR4tvX4KP49esZ56FrwvVWiXFztnxraHv9nXRva5lUHfaghWIlOn8VBheoL6X2q VJ3+mN88zFJ4oJYccw4BGC3L7WNf6J+ueHPSDfz2L0gqjpHHYdqwE+bs/rQo+YCVTd9nMPxHNdP SPKKeOu4XeNqA18v9biw0L3D4PjUkP63ABBry3BA1qo2FLJV1wrY/DZm316cZKjRRpughw/Ikbb HgP0P9AYisJPGQDvCSySRRGrFv8IFx7kIAbDHldzobJBeEegg= X-Received: by 2002:a05:690e:440c:b0:664:a0c8:f956 with SMTP id 956f58d0204a3-665916762d3mr4471470d50.15.1783028886926; Thu, 02 Jul 2026 14:48:06 -0700 (PDT) Received: from zenbox ([2600:1700:18fb:6011:169a:36bf:d0a4:1d7c]) by smtp.gmail.com with ESMTPSA id 956f58d0204a3-66624021a75sm1631772d50.11.2026.07.02.14.48.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jul 2026 14:48:06 -0700 (PDT) From: Justin Suess To: Sean Young , Mauro Carvalho Chehab , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Ripard Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, Sashiko , Justin Suess Subject: [PATCH 4/4] arm64: dts: allwinner: a523: enable IR receiver on the X96Q Pro+ Date: Thu, 2 Jul 2026 17:47:50 -0400 Message-ID: <20260702214750.3428694-5-utilityemal77@gmail.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260702214750.3428694-1-utilityemal77@gmail.com> References: <20260702214750.3428694-1-utilityemal77@gmail.com> Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= The X96Q Pro+ TV box has an IR receiver window on the front panel, wired to the SoC CIR input on PL11. Enable the CIR receiver. Signed-off-by: Justin Suess --- arch/arm64/boot/dts/allwinner/sun55i-h728-x96qpro+.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun55i-h728-x96qpro+.dts b/arch/arm64/boot/dts/allwinner/sun55i-h728-x96qpro+.dts index a96927fbdadd..de2bdc21c781 100644 --- a/arch/arm64/boot/dts/allwinner/sun55i-h728-x96qpro+.dts +++ b/arch/arm64/boot/dts/allwinner/sun55i-h728-x96qpro+.dts @@ -266,6 +266,10 @@ reg_dcdc3_323: dcdc3 { }; }; +&r_ir { + status = "okay"; +}; + &r_pio { /* * Specifying the supply would create a circular dependency.