Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp3276974lqo; Wed, 15 May 2024 05:17:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWPOkZBrgXvYtd3rpnPg9a/caHAdtybfUkwdiyX1CaoF7bkyiQU+BfgXpvYM/UwGZBZ1ctk3tMKX2XTPRvQb3yGWhcpoFVNnHcCkT1R9Q== X-Google-Smtp-Source: AGHT+IF559cMRfOCXaAJmeGkrjAS+iIt3pgJBFryB1X49gkjOCQC28UKmcA1kAApEBlgdW7cH/NZ X-Received: by 2002:a05:6512:3987:b0:51a:f48d:7b31 with SMTP id 2adb3069b0e04-5220fc6e5e9mr17225527e87.13.1715775478206; Wed, 15 May 2024 05:17:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715775478; cv=pass; d=google.com; s=arc-20160816; b=fh8l4Izy4ZeG4+cwgZv3tXWGeuIxUZj0WDVNZ6GZHvI8QbxBxZ10/Pw7rwfBk/0aJW 1U58jHJhBkPHxa/PA5oOnmux8SjVGnSIl3yMiK5uWGOejmEBCpR3W36kJYkwrxvsVzfy hVoud78tZTOdW8CSYAnnFDqQunmh0Gs+QaREY+OMb3ZTnv3J1e8zt1/vcgf8x3kyBt2v xzpJ7KqrgVK1+pZFf3mAIzVlbNIl8VQHTNwZf/T6KHncw47UrzvCKckB+d0b6zq54Z+s A250o4rYLLDQxujqLJX7/sPl+sSAn9g5oOHlh69r3FNBl0b1XTzMMfYtIHCeUApQ2MRf XZhw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=d0aAEbXdgajt50FIPOAy30WPXnBHXkZn9O/zxN8IbEU=; fh=5iccWhYcBZJRo9L6dy4Yk+xY6pTZTWMSxJ3w/CFYS0Q=; b=xsZs+MNR8/KqAj+FaBvnC5SPM84/pY/GYVkFdxLCMVKBJFGjoHjB2ojw3+t89UJ+AH yFWk6aeRqAdRpspysYoRXDUmKoWpDIVU0EmM/+1qo4ROCx0pCacb8/Mvy+wCEkrDQHVX RhYufFVfA3c0pNO3cr++tzAjsDKbN3ApCb6yO5vXK9JU99bS1wuKlh2cMMJqmv+tLdFU R58P+3dhMRlEsZJO8kftjni/6TI1Rt71K/X/G7b61mvw/g+vN/+62hWND3hn/XLQfUuu fxuqqX5jwvUEQ3fH9kPsUDnVNvsURgYwPos71ap8da/b8Js2eO9NYz8S5qkPSR4VqywY NyLQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="f/hDoivy"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-179838-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179838-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c2d530esi7867414a12.315.2024.05.15.05.17.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 05:17:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-179838-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="f/hDoivy"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-179838-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179838-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C28681F23192 for ; Wed, 15 May 2024 12:17:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CBDCF74E3A; Wed, 15 May 2024 12:17:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="f/hDoivy" Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (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 6D4DA14AB4; Wed, 15 May 2024 12:17:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715775468; cv=none; b=HmJISdRmbCryjDon7rpkfFG1PEATBhIGVt+IABTf3VqAW8aRlOMLBlSrmiFPme+ckcNeKrDID3WPjXr3W682CTFU/kIyhI80y8MgfPZ5oTnRUmtQrlSLnhMff5Mk57f0ATAA7rtkDw3gmU/F7E2FTpGT7RowJ03YvWVfeWMjUwI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715775468; c=relaxed/simple; bh=Q2y9O+8MQgFUY1TFrbqsl53M1XGtWJlJDpF/18mcmIE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=j6yhMcGthOdiMrnaJaBPF6cEZwDDT5TOu12uc2vTldYaAL6xaG0qDNZfkbwF+MuGMn2tNone7AyO9qEuFUFYrrqYSOgGMECxg+wHqZNUl8+NUo4ZAgm8pXo3oJDUQoc7IK+WBrAZjbNuaLQhHUsFqq+o0NZO3D4eSweHuSbmnUU= 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=f/hDoivy; arc=none smtp.client-ip=209.85.167.42 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-lf1-f42.google.com with SMTP id 2adb3069b0e04-51f0b6b682fso7332565e87.1; Wed, 15 May 2024 05:17:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715775464; x=1716380264; 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=d0aAEbXdgajt50FIPOAy30WPXnBHXkZn9O/zxN8IbEU=; b=f/hDoivy6J3btMafQLocUW/DJo0FK3hK8YSYfgFG89B1R5voVaTP2dGcI2QHV4UGEB pjOGe1EZng9xH2sE39CIjFIKeJy01X7dxe/ifNQbjTzbFA3EODuzFn9mUplP4IdHd5WA FZ7fVwV3VYntfptsqaX5dMptaKKaveJBgJDH+F23ZWJm1QWYpPAkYKHtctsgOnzqqp7P c+darUDx/kajHUJH/4aTnmnwT/1yM8NCjpXLrtvsLRoK96wuks59RjKAPrphY+VJGYnJ y65F6bsmYISWjCJi+YOe5IFal6aI6Oz33OigJA99ETf1UhLqzBEud8uvn2rbTEguFNQB S0Hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715775464; x=1716380264; 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=d0aAEbXdgajt50FIPOAy30WPXnBHXkZn9O/zxN8IbEU=; b=RuuQcugd7oqrEk/zjj2SYO5hrqIJmB6fWyxHn6V+iXrhOyknDMtanEj5wK9x4rT/mJ 71J+hI3h13CFmxXW10vh+kF40zZ+Ry7B5TlFe89lY2Xje16brjp4SOK6EknCf9viHl5p Ohz3XOiO+VoRGFVsPx/310Z9ij6SEsDPbGL6gFvLWQQtMBQ6D4ByIVukQew2aTp47K13 5PZ1SYYdR3wWR5K02XO6TCtiLCG8KlzQiCKV7ZbMdwwk5t18pgf6+EM14AaioZgg2KbC MgCe+rzXvNf1fS742iwRKmhz6hJicTunhUZYO6BBrsTNy+iuqtpXvCzR30/uuJwExyln BnSg== X-Forwarded-Encrypted: i=1; AJvYcCVeyBeE43z7VoY5BsUvUOELe0hgcP+lQ10PSL6FCukRKAJbHReYffKR8vuvgOlt5s31j7Vq1Lr5b0Ylqnk2Y5oV+DnB258vOlVIO1He4yniQtxz8r81xZReyZTDZWcMNTr4igd2GAR4mPLLsTXjsnZWdJSoj6SOIplVgdIJ58w+DwQwXOg= X-Gm-Message-State: AOJu0YxgT2UM6P2aJb5jSYo65q7WgaGTktVSs2UW1P+ddzBRrtmsqkJj 27E93rv7oNO653KTwy05wk30ILBIX5OVk7M0rtFgD89e8puxa3PF X-Received: by 2002:a05:6512:124d:b0:516:cf23:588 with SMTP id 2adb3069b0e04-5220fc7bef6mr16714600e87.27.1715775464345; Wed, 15 May 2024 05:17:44 -0700 (PDT) Received: from yoga-710.tas.nnz-ipc.net ([178.218.200.115]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-521f35ad684sm2515614e87.3.2024.05.15.05.17.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 05:17:44 -0700 (PDT) From: Dmitry Yashin To: Linus Walleij , Heiko Stuebner , Krzysztof Kozlowski , Conor Dooley , Rob Herring Cc: Luca Ceresoli , Jianqun Xu , devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Dmitry Yashin Subject: [PATCH 0/3] pinctrl: rockchip: add rk3308b SoC support Date: Wed, 15 May 2024 17:16:31 +0500 Message-ID: <20240515121634.23945-1-dmt.yashin@gmail.com> X-Mailer: git-send-email 2.45.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This patch series fixes iomux routes on rk3308 and adds support for pin controller found on rk3308b. According to rk3308b TRM, this pinctrl much the same as rk3308's, but with additional iomux routes and 3bit iomuxes selected via gpio##_sel_src_ctrl registers. Downstream kernel [1] managed this SoC's with rk3308b_soc_data_init, wich picked configuration based on cpuid. Upstream pinctrl patches droped soc init function. The function rk3308b_soc_sel_src_init sets up gpio##_sel_src_ctrl registers, making SoC to use 3bit iomuxes over some 2bit old ones. These patches have been tested on Radxa's ROCK Pi S, one based on rk3308 and the other on rk3308b (from the latest batches). For the new boards fixes broken spi1 clk. Similar effort [2] was made several years ago, but without keeping base rk3308 SoC pinctrl support. [1] https://github.com/radxa/kernel/blob/stable-4.4-rockpis/drivers/pinctrl/pinctrl-rockchip.c#L4388 [2] https://lore.kernel.org/linux-rockchip/20220930102620.1568864-1-jay.xu@rock-chips.com/ Dmitry Yashin (3): pinctrl: rockchip: update rk3308 iomux routes dt-bindings: pinctrl: rockchip: add rk3308b pinctrl: rockchip: add rk3308b SoC support .../bindings/pinctrl/rockchip,pinctrl.yaml | 1 + drivers/pinctrl/pinctrl-rockchip.c | 187 ++++++++++++++++++ drivers/pinctrl/pinctrl-rockchip.h | 1 + 3 files changed, 189 insertions(+) base-commit: ed30a4a51bb196781c8058073ea720133a65596f -- 2.39.2