From patchwork Mon Sep 9 22:34:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 13797653 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 188C5ECE57E for ; Mon, 9 Sep 2024 22:36:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=E140cvL10UklsrWLWZdC2tdM6QeoSr2UBXvSBa3do2U=; b=NsN2q+N5rfrdJc xk9nWlYxVGSFk9/YAFnxlOxnvJDkkBmzXKqkg0uqPpPAqo6U0iMlBQVrAsqMx1Tb9SFaVDbp9uLjI JedSCzVQz97vgjqvlXpqsD6cZ7oN6M7AIHzh/oK2uxumR02DElxL76smFiGbcM4gt/vDx4z2gc5OR +kN4aD2Ede0O18ACjEnCLTwsCZGxYJLXGQxqxV05iCZK2ZP6XWqYH4pJAPsY9Fzh/jvyZexqwKgHB aEMdXrPVaV6HdHztwHV3uCGjLjhOaFhZDO5Leri4GvKbSJwKO+z0D0A6FQrM+ANd3F8effHd7Xyz8 a6n0BzFKjfDFT1yyVMJA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1snmzN-00000003UM7-2GwR; Mon, 09 Sep 2024 22:36:05 +0000 Received: from mail-co1nam11olkn2082c.outbound.protection.outlook.com ([2a01:111:f403:2c16::82c] helo=NAM11-CO1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1snmzJ-00000003UKB-2uYa for linux-riscv@lists.infradead.org; Mon, 09 Sep 2024 22:36:03 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=bOJI8eghTUJFZ8ptEhtwk6cNv1hONE+cWP+pVuf2TsApTB6aOxRuA686umXMObkdWYE3lW3zTPXSHb0iEKRucBZdbWnZuDZFFztbazSsh/GFFsQOLdh/ryhpRFKqGgIFu/8MJabW4D+4i9xHaCFRhexQgxsiQYTbuqe5+RaFmM2mBce4VS7x0517vBYraGm874AQ0BWrWLdbXUGiWXoRTlKHjeoWKUI7e1MYOXHAGIrnMU8ROkbAd3HSKgi3hW1TZ2ErvVVlkiATWark0Aqv+rDAMA8k7rldee7AHLGD5yyzcCqQ7CkMU+4pZYLg3GmVEO/bcI5rC+jA3uN9iVM80w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=5c2aj/TfUE6Fvn9mKZ5dp1a0LZQmZ1Xxq9azDwRQjaM=; b=wjeZfA/15+eEYRnCrQlAUnGZqvgrmHE3v8Y/9h2DBFcuQYIWYNwllWhhF1+I/D9d60gdJoxTL5FjKzt0hV3M4nDg7+7rjY7R65+R/QmPr9yplo/nj+ihKlijdsSWGyMKRqZVMjJz7yBbaGZ2cVpqN+a26cganXX/Cu+BAMbXeLbzDGIutvL12W9P/KI0Yg1OsG0WGleRA1T3+L4mZlJMdIMPJZ6+q2AoEl+LpYCb16ow21Fg8no1wA8hlkdTm6kxrBpgv9dq2qSmo4I9FL1FwsEffaMuevNizS4z8St5MCIzwVFHsYyHBQ/Lqn+TdThipKl/ltJGJrVb3PwkxzVYCQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5c2aj/TfUE6Fvn9mKZ5dp1a0LZQmZ1Xxq9azDwRQjaM=; b=I4SwhRDI7J44gctd1jPsNAN2DWB3dy1X0aRund42SrLvcZTpZCwA8IjAJOYYMZRmot5PGaVYaQpaFFugAkWO+nG67+kQPhOhTw4OJcDo0n+F3P+A1a8fL78XzRY43LHg8uoGavMrIq3UyAhzPZSZJROYlBt12pU00NR4GwvGXUdIYjVcNolappoRXEUiR5rzqDqqtoDBmYoxGVR9EG+DkKw9whjKoKVHXKqqzI7x6CKhFW5fluA4h5oELAeQr6NNRIALnEyk2ZYN4yz5yFpsVEvmDGzuJp+At0t9DfchoxurBIH0bEvKqJu0Z+HA/tiVhw+4LrvpMtWnP78o140Akw== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by PH8PR20MB5195.namprd20.prod.outlook.com (2603:10b6:510:1c6::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.17; Mon, 9 Sep 2024 22:35:41 +0000 Received: from IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::ab0b:c0d3:1f91:d149]) by IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::ab0b:c0d3:1f91:d149%5]) with mapi id 15.20.7939.017; Mon, 9 Sep 2024 22:35:41 +0000 From: Inochi Amaoto To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen Wang , Inochi Amaoto , Paul Walmsley , Palmer Dabbelt , Albert Ou , Jisheng Zhang , Haylen Chu Cc: devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 0/2] riscv: sophgo: Add pinctrl support for CV1800 series SoC Date: Tue, 10 Sep 2024 06:34:27 +0800 Message-ID: X-Mailer: git-send-email 2.46.0 X-TMN: [U4lnD7fs2zrgdyt0qDoC9g9Iv3q4f8A7ssxsX4ALygw=] X-ClientProxiedBy: TYCP286CA0219.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:3c5::15) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20240909223428.31064-1-inochiama@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|PH8PR20MB5195:EE_ X-MS-Office365-Filtering-Correlation-Id: 2320a47b-1cd5-46a8-c094-08dcd11fbc09 X-Microsoft-Antispam: BCL:0;ARA:14566002|19110799003|8060799006|5072599009|461199028|15080799006|1602099012|4302099013|3412199025|440099028|1710799026; X-Microsoft-Antispam-Message-Info: WUZbtRNbh5dmcellRKAxz+Dr/F3rD9rIpizXm7L7pi3oR02Vfoz+88GBzK3iRDBAiHYlE4xsBOA+A1DEDRdevCyLkEYhQK0/2G4AMsMxTh0sx3MSbczaep9EfXrLCjvJjH4uI2BPmKlEhEYRllKVorsEW/v3gFqSuYbnbP8MF9dnI98mGHonUCjkbRDJHorqIq8O3A33hI0jaeenBK7dE0u8chLXyC7Sbyrt/Kk7PhLRgupY0Atp6t4AWtNwG/lDeflr9SclwSPP20ol0jTh1SAY4FaQAJi2XwLNKDL8UgfSQgpdXPAN0KwhR9MGfWrQs0/0FviCNIVdCn1PnEJfTvoeTR/8w6AIEJXrvG2J29Hq9e1XJimMvRC1tdlNxgzEI19OIqIyFLCmzJGhfrd/udSkMSHdigaFIxhkM3dy5pOkdOvZ41WFPX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OfTgdnu9ZyIfTzMO8/5vO2sUvues98caycSIFumW7cjendEOYEPi8snJLnV2z6QpSRM4JD4HGYxSh0xjDICqukqB1g4DaWx8AYLMUQJsH1tHuPi0Lamz2fKuYCM4uXuaWF0rLCxpuhTMKZpGFnnYFEBpLSO7gYhEwOTYs5+sHFfr/GzdHC46sK/Pg43rdXZWibjypCQeDTcu/p7rmSYEZfC5EPGc0vYX/lZyqaJeYZwdfJ6WXP95Egs0/unkDo1pLY9rOHOFvTzNUo7caR8EgfTGfpSY5LTnlBAIqJUyfCDCoX6JVjtC3fZQilqALY5VjFK91w9j+0bIKtLoH2834K9mpOqt+b4ZUUC0lZ0gKj7Gb95sLTVFqvhRaBOky91eIZqoyXxdU7rfKAeYvWtQDajJZR7kk2gXEJKqCCmyygO+JFwXHIXHCsl6EbYyjm97mxLuntxDEM8NNCykDVtYFWdeR6F6iO+8a63+nb1RIDuJcgDmC0UhpZea9taFH1JhQ8xYObBeXNSb4vivCWo1l05BiJyGDfZ3dDfONKo7dErzRQhBp2krRBDgCjwCJnWmEBISj14wDzuwqK8ttSEfkHG3/4O7ZrMp/Qiz55tkNQ9/aQY2fnIB/x/1kNwbLVYo/rFbg8lM+5XEQUU9PAlZjP4yEd4s0cEPbCG3iQn1bLuf3+yfWukWjI7Gv0vk3hSOVFUtFVWKnfuQ1ovUITN4iWHXaT9IGoRY1wGD3v X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2320a47b-1cd5-46a8-c094-08dcd11fbc09 X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Sep 2024 22:35:41.0397 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR20MB5195 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240909_153601_748981_9E89D8C8 X-CRM114-Status: GOOD ( 10.16 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Add basic pinctrl driver for Sophgo CV1800 series SoCs. This patch series aims to replace the previous patch from Jisheng [1]. Since the pinctrl of cv1800 has nested mux and its pin definination is discrete, it is not suitable to use "pinctrl-single" to cover the pinctrl device. This patch require another patch [2] that provides standard attribute "input-schmitt-microvolt" The v4 version is from [3] Note: As current documentation is not enough to guess the pin configuration of Huashan Pi, only the pinctrl node is added. [1] https://lore.kernel.org/linux-riscv/20231113005702.2467-1-jszhang@kernel.org/ [2] https://lore.kernel.org/all/IA1PR20MB495346246245074234D337A6BBAC2@IA1PR20MB4953.namprd20.prod.outlook.com/ [3] https://lore.kernel.org/all/IA1PR20MB4953DC78BB0FE0C57EA94F91BBB32@IA1PR20MB4953.namprd20.prod.outlook.com/ Changed from v5: 1. fix dts node address. Changed from v4: 1. remove the alreay applied patch 2. fix 1812h header file problem. Changed from v3: 1. binding: drop unnecessary type 2. binding: use right ref for pin node. 3. binding: remove mixed spaces and tabs. Changed from v2: 1. remove unused export function. 2. drop "drive-strength" and only use "drive-strength-microamp" in the binding. 3. drop unnecessary ref in the binding. 4. drop unnecessary entry for binding example. Changed from v1: 1. replace attribute "sophgo,bus-holder" with standard "bias-bus-hold". 2. replace attribute "input-schmitt" with "input-schmitt-microvolt". 3. add vddio operations support to report pin state. Inochi Amaoto (2): riscv: dts: sophgo: cv1800b: add pinctrl support riscv: dts: sophgo: cv1812h: add pinctrl support .../boot/dts/sophgo/cv1800b-milkv-duo.dts | 49 +++++++++++++++++++ arch/riscv/boot/dts/sophgo/cv1800b.dtsi | 10 ++++ arch/riscv/boot/dts/sophgo/cv1812h.dtsi | 10 ++++ 3 files changed, 69 insertions(+) --- 2.46.0