From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 831DA355803 for ; Mon, 12 Oct 2026 10:08:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791799726; cv=none; b=LFflDyGXZZ+DtVP2Ug4Q+V4TL6qSkTjsEE70Is2wOjx/WQaRZKZmOHQRYSB7vMvLI27i9Ad6mgn9YBVmmh1i+Uk3i7FbqkxM5Wpz695QcW8Cejm6Ufjch9pvJRfZlwsht8hDk3W5oPqOsZeh8zjxmvlO5eRMZn5AaRgvwPf2GzY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791799726; c=relaxed/simple; bh=8Mnnl0Z3pOG5cs0RKth4xk3lylmk99qeafTSSPrIRo8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RaN4fUEGgZvdRD3RkAhKZkjxRXjrDqU8dPmJ1j4qkuW2liUq6Gn+7Vy5a2AhSAxBQLmBUmhY2lsdCV9b2BttfZ3GpdinU6J4+KaACiUa+vkwGAOQWqrcyG7hHqdpuxBdlywpCvwhhQuLDCOAh+gBblHg1Ryo4qvCmvcuI20Qi1k= 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=CVPXMP/i; arc=none smtp.client-ip=209.85.128.53 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="CVPXMP/i" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-4a020e65269so10126775e9.2 for ; Mon, 12 Oct 2026 03:08:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791799715; x=1792404515; 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:content-type; bh=58Hpz3IL7+FBFo99aVZrTh8mHeTaosnWqfT/ede3fC0=; b=CVPXMP/iPu2mahMEJGKtCfwXDBu+oYwgjPjTdn1QpAP8FLtKgpofb/Kn6KnN3mOcwn StpFor7oq5E0ajxBdb+o7puJEYmy9MAMN5EWYf0vN2OGlRBmD2ZG5QizP1Gkkci5CED/ x4Xa2WqRBechn+2tl1JCogHlV8SguxYItcAMcopCVc75uyTDgAumJMN6MwmeYOG2ix6x lnNK9BdQ1Jkhhl6f/R7GplusTml/UP6irb9IJpzYIL+gPe6zBkqCPL88WpBET/k4OREG R9KEYQfIMKdPaw52JMUfDozWw+tLS5fo7kQWQq3nri6VOnaHhs4mB8hUTkfXtGjBD4wY Jprg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791799716; x=1792404516; h=content-transfer-encoding:mime-version: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=58Hpz3IL7+FBFo99aVZrTh8mHeTaosnWqfT/ede3fC0=; b=lpIlqVVmGh1YIiyExfnRPrZ9fazuEfVfyWqs4+fde5nlPQ2CwtgV9dCNuyqbrgandm LO+epUbsufTZribuConJpXIofOATyQgdDE4djuya97EkiDwWeFxfvZLNoMOGNxY3ExtJ kHkQhUf9Co0zOKr7RAG4jSHTvF/gNIL4fmEXOn4RvFsxMFAeLUAP+FmpB+6+jp7ZZCJp So/la5jajMEw4QuWsDQB02b/Pkuajjty8divGXn445Z/bxDwzTgVXK+/VexeZL0Hk5fG onix5qlpZHcP+ykaFzI4Uak69Hsep6uN3zeDN1YTbN+xBwXzXyyJodMtH071P1TPRTid ykyg== X-Forwarded-Encrypted: i=1; AKwUvByMeFxvi97nqaxNmWBLKR3OWctrODUXe1Yt2HomyD9bYYtG80iFyubtQ44R4vVNPpQPt9EJnxc6lSeZ@vger.kernel.org X-Gm-Message-State: AFq9FYIOMPNhOhJs10wTriWzjoN0VAKFGE1iT3AxXFLRGMTkUt5zpiaj WEqzaYpvG560EYu93+GOMO/+opA+/2Gs/mgB5eh5iHx7ZKl5NttufnOT X-Gm-Gg: AYBFou38lPLHPGlMc/r3ZrXhPnRo2NbvAvllHIIwbsxv2tKzI6q961Ga5DQbcvjzA0g D2zPmKG9C8BiiVwVEGd1lMVrQn94/1omvnLhuPzVfgFaOpnYR5powRAR4VP9B2I/V4ymzj3bJ9J H8r/Y95QBicILbolqGmrRd/Rm1A6t0XUnXELorRL4KUaOa1OF3/AfrtrIi847TK+/FEF5NP5ZSy 8MXBnluWurXGRr4npFHwNoccFzZKf6K4mPGLVPwYYHcBGgapajU7/iujpYeAAsNa9VN2PhpKibg 78blxqXF9hs/5pXp0pGaCjA5XnYUnSmMjJadNzjY8K9n3Oh7y2wv2z84cEBiHVcuYJtH90m0Qdy +yYLbG6JrurtlEV09YG5HVdGOxuzB1GrohCvftlSOR+nHqZboKspt6ff3BZyf8MpMHq7WSyvpqG yuFvtOH+sYYnH1n2jUdqpyNj5hRvKhN0svHoTLqijEc5MKweZNoWg44ETv3Td7++hKcxTyQ6++Q cUtzn1uuFuo2HkbRh4Jt4RYjsJSsNPJ X-Received: by 2002:a05:600c:64c8:b0:49d:1df6:2592 with SMTP id 5b1f17b1804b1-4a18e4c41b0mr155420775e9.21.1791799713755; Mon, 12 Oct 2026 03:08:33 -0700 (PDT) Received: from debian (ip-78-137-176-146.broadband.digiweb.ie. [78.137.176.146]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a192d3efb6sm166229885e9.1.2026.10.12.03.08.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Oct 2026 03:08:33 -0700 (PDT) From: Pablo Mazzini To: Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: Pablo Mazzini , Andre Przywara , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-watchdog@vger.kernel.org Subject: [PATCH v4 00/11] ARM: sunxi: add Allwinner B288 and the PocketBook Verse Date: Mon, 12 Oct 2026 11:08:05 +0100 Message-ID: <20261012100816.331033-1-pmazzini@gmail.com> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The Allwinner B288 (sun8iw10p1) is a dual Cortex-A7 SoC used in e-book readers. This series adds the CCU and pin controller drivers, the RTC, I2C, NMI and watchdog compatibles, the SoC .dtsi, and one board: the PocketBook Verse (PB629), a 6" reader. The B288 is closest to the A64: most of its PLLs are bit-identical. The clock and pin descriptions come from Allwinner's BSP, cross-checked against ccu-sun50i-a64.c. Tested on a PB629, boots to userspace. The pin controller relies on "pinctrl: sunxi: dt: number the IRQ banks from the first one that has IRQs" for correct PIO interrupt mapping. Changes since v3: - CCU: reference parents with clk_parent_data and clk_hw pointers, as newer sunxi-ng drivers do; add the audio PLL's sigma-delta settings, as on the A64; fix the PLL_24M rate and parent the PLLs to it. - RTC: register the 32 kHz clocks, reusing the A23 data (Sashiko). - DTS: take osc32k from the RTC, as on the A64. - DTS: allow the eMMC up to 150 MHz, as on the A523. Changes since v2: - Drop the MMC binding patch, applied by Ulf. - Rebase onto sunxi/for-next. - Constrain the RTC clock outputs and pinctrl interrupts in the bindings (Sashiko). - Add a B288 watchdog compatible (Andre). - DTS: drop the memory node, the arch timer workaround and the sunxi.c entry; add disable-wp and the eMMC 1.8V modes; DLDO1 no longer always-on; mainline pin function names (Andre). Changes since v1: - Add this cover letter. - Drop both new bindings; add the compatibles to the existing allwinner,sun4i-a10-{ccu,pinctrl}.yaml instead. - Rewrite the pinctrl driver in the DT-provided pinmux style. Pablo Mazzini (11): dt-bindings: clock: sun4i-a10-ccu: add Allwinner B288 clk: sunxi-ng: add Allwinner B288 CCU driver dt-bindings: pinctrl: sun4i-a10: add Allwinner B288 pinctrl: sunxi: add Allwinner B288 pin controller driver dt-bindings: rtc: sun6i-a31: add Allwinner B288 rtc: sun6i: add Allwinner B288 compatible dt-bindings: i2c: mv64xxx: add Allwinner B288 dt-bindings: interrupt-controller: add Allwinner B288 NMI dt-bindings: watchdog: sun4i-a10-wdt: add Allwinner B288 dt-bindings: arm: sunxi: add PocketBook Verse ARM: dts: allwinner: add B288 and the PocketBook Verse .../devicetree/bindings/arm/sunxi.yaml | 5 + .../clock/allwinner,sun4i-a10-ccu.yaml | 1 + .../bindings/i2c/marvell,mv64xxx-i2c.yaml | 1 + .../allwinner,sun7i-a20-sc-nmi.yaml | 1 + .../pinctrl/allwinner,sun4i-a10-pinctrl.yaml | 22 + .../bindings/rtc/allwinner,sun6i-a31-rtc.yaml | 3 + .../watchdog/allwinner,sun4i-a10-wdt.yaml | 1 + arch/arm/boot/dts/allwinner/Makefile | 1 + .../allwinner/sun8i-b288-pocketbook-verse.dts | 114 +++ arch/arm/boot/dts/allwinner/sun8i-b288.dtsi | 292 +++++++ drivers/clk/sunxi-ng/Kconfig | 5 + drivers/clk/sunxi-ng/Makefile | 1 + drivers/clk/sunxi-ng/ccu-sun8i-b288.c | 749 ++++++++++++++++++ drivers/clk/sunxi-ng/ccu-sun8i-b288.h | 10 + drivers/pinctrl/sunxi/Kconfig | 10 + drivers/pinctrl/sunxi/Makefile | 1 + drivers/pinctrl/sunxi/pinctrl-sun8i-b288.c | 49 ++ drivers/rtc/rtc-sun6i.c | 5 + include/dt-bindings/clock/sun8i-b288-ccu.h | 82 ++ include/dt-bindings/reset/sun8i-b288-ccu.h | 45 ++ 20 files changed, 1398 insertions(+) create mode 100644 arch/arm/boot/dts/allwinner/sun8i-b288-pocketbook-verse.dts create mode 100644 arch/arm/boot/dts/allwinner/sun8i-b288.dtsi create mode 100644 drivers/clk/sunxi-ng/ccu-sun8i-b288.c create mode 100644 drivers/clk/sunxi-ng/ccu-sun8i-b288.h create mode 100644 drivers/pinctrl/sunxi/pinctrl-sun8i-b288.c create mode 100644 include/dt-bindings/clock/sun8i-b288-ccu.h create mode 100644 include/dt-bindings/reset/sun8i-b288-ccu.h -- 2.52.0