From patchwork Thu Nov 30 20:13:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 748503 Delivered-To: patch@linaro.org Received: by 2002:adf:e9c2:0:b0:32d:baff:b0ca with SMTP id l2csp1099107wrn; Thu, 30 Nov 2023 12:14:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IHrc71lsrtegHcjS6Ce2iwpyprX2NEEkd+urKNhXZIbKjUxCSm5xgjUB6Cg5H30syNfrMcL X-Received: by 2002:a17:902:f685:b0:1cf:c9c3:e79d with SMTP id l5-20020a170902f68500b001cfc9c3e79dmr18630609plg.59.1701375243852; Thu, 30 Nov 2023 12:14:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701375243; cv=none; d=google.com; s=arc-20160816; b=ffWRcgXb4hjZ+8ePVlXnqBQQ85VnewVXkdOMXfwV85JUWfkazdrETvc2YSQ/4T5suu EfBsvDJn7lazAy63lRo7Zw1KGxcRK0+i7+RMoceBUoiT1mgh99D4rEkoFlgIkSvKXlSQ G7vsvNH4ts1caOaPIWeeCvsXy5OGinMLqjFubAeE046ZlH189bOp+uUFoc44DZ+yKHr0 HyjBVMaf6H64jIZP8utgyJlRVRudpyPCqEDQlRJUsTMYWtLOgAKN2Te5xlWQp6ZyRKk2 kfxsHvjcj2aEoaBLSUKPC1yNAQ2HsIK8EcsovMnYumZnLCg94RxvR0B8AfNckTS/nJic Phww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=nPmQfIrJ4bT4l+z9Oyv1Yv4cGuGx7g4UZJRkiAt10YY=; fh=249O9ROWnprHO+UayzBfuXR6OIgDvHdlAHTtO8OnZEM=; b=l+P5A1hiIkRUX1oGa7qKboMtzdA51ym+v2qDlhBUUN6hPPNVHz5s8QDWAFpsxEKGGF k76dxERaOrvwdKXsshzg0TugGTNhaSCvpITAktaCsr6PzDuwhf3eTQb/JJmSuVpkOl/W BPXIs5iupU4bRrOsd+RUSkNcxxbpzP1tEG6QNYNK+ejTRV3K1fiK+BdocD/X3KXFyR8T n7dLF9BF/8iyJVkgS5Q2awj0RbFwYWVbU/bqx1okhQEvdSW9aMEchTjiOm5gzp24AxI1 WK16lwnsIIdxFGFnekatNoQOAg7fCSEFFsC4fW5ofJU2rcoafgYi7CzmW1jUzocUFMVX /Meg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ljch7vCf; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id jn13-20020a170903050d00b001cfcd30890esi1840181plb.257.2023.11.30.12.14.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 12:14:03 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ljch7vCf; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 592D38763D; Thu, 30 Nov 2023 21:13:58 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="ljch7vCf"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5381D87656; Thu, 30 Nov 2023 21:13:56 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-oa1-x29.google.com (mail-oa1-x29.google.com [IPv6:2001:4860:4864:20::29]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3B8C0875FE for ; Thu, 30 Nov 2023 21:13:54 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=semen.protsenko@linaro.org Received: by mail-oa1-x29.google.com with SMTP id 586e51a60fabf-1fad7d0575bso341306fac.2 for ; Thu, 30 Nov 2023 12:13:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701375233; x=1701980033; darn=lists.denx.de; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=nPmQfIrJ4bT4l+z9Oyv1Yv4cGuGx7g4UZJRkiAt10YY=; b=ljch7vCfnyhQJWZLBfn9ibyY8bs/Rwced8B5AySLoUObfWR6Abzf86xjB1dHw0ZDaX sLBrQ0SC0w3ejwge7oQzYCQVKfeWO/oNdoq2h3yBHnl0bmnzCD7KP9B5RD5pkI7Iz7vu PqMo0hLi1rv/WtkD4pAvJ3CI/L4ECdiiokJV6ONb6cIyFyPTK3bg/DQVIeIvFJLbCYWI Jqmx07e+nigYH0tpz4H0JBb9J5N/AASXcQO/hHj26bUyhVSqNfovKJV0inyYrGy6ecG+ QuUhBWc98N+yV4UoYuj2g1k7hadLgkfcNMgeD2aaJhVXxnnDr2T4ox04PEnXgxvdoFXE 461w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701375233; x=1701980033; 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=nPmQfIrJ4bT4l+z9Oyv1Yv4cGuGx7g4UZJRkiAt10YY=; b=TkXiTX0+YItA7Bue2bC6TQ/5EOTmN2ugdg96eQmvsmORD4dkxEDcZKfLgE6ntFtGgq QKSDcXAkNSzPYRptjlrMSGa9F5GlGMNlj4rXMNrnC9tY6nQ5s5FjCnqgxlx68SYciK1d iSFX5yHisCRB5BqA3cvXY9ikdDK1oh7DBKeFxyxLA3MkJ24+num3hJuZw0s79QngeAtd T3Ee4uw7qv5c5L4Mc6sP/4gn0PulubiXP06g06VKXzqQFy4SUq6uYuumYty7E3ZLbEE0 bKtnQ/LAcPTdjHyRMjV4TdsSGkaNnzoXr1P/GSqlJXeAra0o3Lkh/ONuj+MEBzITd1Bw 7TZw== X-Gm-Message-State: AOJu0YzCTL3GIiU8xr+R6CgFVf7d/nCynNhs4p07K2sQnGC+/g0+m7M1 Q3Sw7ul8AOxBleim4tZH3xuzVQ== X-Received: by 2002:a05:6870:d88d:b0:1fa:25df:4031 with SMTP id oe13-20020a056870d88d00b001fa25df4031mr24867628oac.4.1701375232833; Thu, 30 Nov 2023 12:13:52 -0800 (PST) Received: from localhost ([136.62.192.75]) by smtp.gmail.com with ESMTPSA id gr12-20020a056870aa8c00b001f9e0871eafsm424672oab.21.2023.11.30.12.13.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 12:13:52 -0800 (PST) From: Sam Protsenko To: Minkyu Kang , Tom Rini Cc: Andre Przywara , Simon Glass , u-boot@lists.denx.de Subject: [PATCH 0/7] pinctrl: exynos: Prepare for other SoCs support Date: Thu, 30 Nov 2023 14:13:45 -0600 Message-Id: <20231130201352.6379-1-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Some Exynos SoCs (not supported by pinctrl-exynos driver yet) have different offsets and widths of pin bank registers (i.e. PIN_CON, PIN_PUD and PIN_DRV registers). Rework pinctrl-exynos driver so it allows for different offsets and widths of those registers by adding the corresponding API. That makes it possible to add the support for new Exynos SoCs in pinctrl-exynos driver. The main patch in this series is: pinctrl: exynos: Support different register types in pin banks Other patches are just related cleanups and refactoring commits, required for the clean implementation of the main patch. Sam Protsenko (7): pinctrl: exynos: Improve coding style pinctrl: exynos: Extract pin parsing code into a separate function pinctrl: exynos: Rework pin_to_bank_base() to obtain data by name pinctrl: exynos: Support different register types in pin banks pinctrl: exynos: Refactor handling the pin related dt properties pinctrl: exynos: Reduce variables scope pinctrl: exynos: Convert to use livetree API for fdt access drivers/pinctrl/exynos/pinctrl-exynos.c | 125 ++++++++++++-------- drivers/pinctrl/exynos/pinctrl-exynos.h | 36 +++++- drivers/pinctrl/exynos/pinctrl-exynos7420.c | 2 + 3 files changed, 108 insertions(+), 55 deletions(-)