Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2186017pxb; Fri, 25 Mar 2022 12:37:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWUWvw4Q7mSM2SXM/yxBPYBx0hQR23ij7fTPr42AV1Y8TAI7tJQm6cnopJwIVXhSLKl5yD X-Received: by 2002:a17:902:ecd0:b0:154:8802:7cb1 with SMTP id a16-20020a170902ecd000b0015488027cb1mr13579537plh.132.1648237050309; Fri, 25 Mar 2022 12:37:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648237050; cv=none; d=google.com; s=arc-20160816; b=a3oUZpVULUlK+Vjm6at1FC/F05UMVP0B1LBh4QbIKRiBMDQnKhcqCxA0jl0ZQJFrpO 6Vjr/VcOFS62tluL5gykhIl7UzOEyzDsghDiv197MiYAiQc3AcDtBM3c441FonyxtBKV Sd0+SmzjCjm2YSuI03qi0g9EWZe2ZMM3pZ0hOJ/WUG+1BOR4JNCyQYcOsLyk0FKk/hVn LkViNxIwBtg0K+ZgVj9DrWydrG3JaSWjoawfJ3ig3mZ/4BqQZbYgVPz4Ik28CxPpMdWv tuDiAynmwjqA9UyhXu5GVpk1s3xm+e7lJDecI2226R7yGoPL1gXxcMDE8El0Ee2QS/23 P01A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language:cc:to :subject:from:user-agent:mime-version:date:message-id:dkim-signature; bh=75FAhg7ylyX6XEBGLysUXp5VSnyJLA+NWdXC9mRc8EU=; b=g5CuW0sCqL2XwpYF4RLHoCAo5tyUVxKHsWk4LgEy2zLT6t4aWJNdEHo51kXSCtThQX RC5jfLwOQD71xsj6YSzFdzPkzpLmC3jU87kS9/lVk1KO7i/mC6H5pNhXrYq+YTFwk8BH L/8XhDkGNqGXgtbPnimUzahDJRXlxXZzIsqMVgVN//HvevKqDngaZx6/o/QATaf1/k9r 59k/ot1lSnbGoijjJi8ADEO9J/I78Rqkbsc0oTc2gO97CcOTvhUsotsInZYBVSbBQBJO C0+se7l3vFPbVTC8yziUo7OMC2rquKLKR8AYAhDVKH2Jaeth999W9vNf9MTtIIEvhIho EN9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sudomaker-com.20210112.gappssmtp.com header.s=20210112 header.b=pkT6l00u; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id l3-20020a170902f68300b00153b31d9817si3675236plg.536.2022.03.25.12.37.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 12:37:30 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@sudomaker-com.20210112.gappssmtp.com header.s=20210112 header.b=pkT6l00u; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BCD60268C10; Fri, 25 Mar 2022 11:27:59 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350463AbiCXNeb (ORCPT + 99 others); Thu, 24 Mar 2022 09:34:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347487AbiCXNea (ORCPT ); Thu, 24 Mar 2022 09:34:30 -0400 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35D4C673F5 for ; Thu, 24 Mar 2022 06:32:58 -0700 (PDT) Received: by mail-pj1-x1034.google.com with SMTP id b8so4725675pjb.4 for ; Thu, 24 Mar 2022 06:32:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sudomaker-com.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:from:subject:to:cc :content-language:content-transfer-encoding; bh=75FAhg7ylyX6XEBGLysUXp5VSnyJLA+NWdXC9mRc8EU=; b=pkT6l00uQAYufLH6x0kHxfpvetooqkrAw2dkiXm6VDiWZ5KRP7TSFbVqCDOJFet3oN pMlQnJlo0UoKurs+3+XFhu6Q7cToGDwmXiDu66D/8co2f192WyWuvWq/qSMDS2ieOjJU EBrIB2MWGteb2P3VeXWbKfEUT//bGlIZj0sacaxe0itk7ggoGRUwrG9PmIOW+OtcfBye IOA3xYv78dOebNL1eQiSs82M+Q3RXq8HLNmrUSsAd5w0GwnRMJzeNLrScHB8fEE8sRZp AzfEdIXBWbldTEq3T1Rj1PXhgYxD3ivLueQtU2XsCMMbl9z1/PO24Qx5SFpmtkc5d8XE wrtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:from :subject:to:cc:content-language:content-transfer-encoding; bh=75FAhg7ylyX6XEBGLysUXp5VSnyJLA+NWdXC9mRc8EU=; b=Nt3P3s643/vNiChi34G6JgvEaV+xPyXJZQshsMFMnarf/kXoArSN6byluyamWRKcMr Rr5rsVEMQlWMNPC+z9JUK1dO7WgvnbS4ZFpWpG/nsnXQBKxNkaPFWtqmkIkmkuTMb+Mj FUvER0R5Yf0FIJt/kUZtysn8mrM9KHzIdkWmOyqQmLtxbUvWDrbLvYu5W0q2Hh5kD9V4 fNCmldis/DBIPDqLLX/ISbKdht7X49tgppj12c8hNlh/mPlX0Ia99LablSXIPYahlHYy dezHOlhnp2HGC9ezgVLuofxEzN+ebTwuro13xe1SZDKHDiUpvv7DAHpyiWEpSW9Tdhrd jlqQ== X-Gm-Message-State: AOAM532y95flOT7+3Dpm1goaK+R8QRjNSzYk9vcDeRTxKfzbIlBS9EPn A6UCvH7JZmP/iYmF3YyIlS2O2Q== X-Received: by 2002:a17:90a:7147:b0:1bd:24ac:13bd with SMTP id g7-20020a17090a714700b001bd24ac13bdmr18453689pjs.70.1648128777770; Thu, 24 Mar 2022 06:32:57 -0700 (PDT) Received: from [172.16.24.11] ([91.219.212.226]) by smtp.gmail.com with ESMTPSA id f21-20020a056a00239500b004fb02a7a45bsm489463pfc.214.2022.03.24.06.32.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 24 Mar 2022 06:32:57 -0700 (PDT) Message-ID: Date: Thu, 24 Mar 2022 21:33:56 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 From: Yunian Yang Subject: [PATCH v2] pinctrl: Ingenic: Add missing UART2 group C for X1000/E To: linux-mips@vger.kernel.org Cc: Paul Cercueil , Linus Walleij , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org v2: Define PC31 pin only once, noted by Paul Cercueil Confirmed to work on hardware. Although the Ingenic folks did this twice in their 4.4 kernel fork; not sure why. X1000/E has a third UART2 pin group selection, which uses the TDI(G2) as RX and TDO(G1) as TX. This configuration is becoming increasingly popular in newer core boards, such as the Halley2 v4.1. This is done by enabling function 1 of a "virtual pin" PC31. See section 19.3.3 of the X1000 Programming Manual for details. Signed-off-by: Yunian Yang --- drivers/pinctrl/pinctrl-ingenic.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-ingenic.c b/drivers/pinctrl/pinctrl-ingenic.c index 2712f51eb238..29709059d62b 100644 --- a/drivers/pinctrl/pinctrl-ingenic.c +++ b/drivers/pinctrl/pinctrl-ingenic.c @@ -1982,6 +1982,7 @@ static int x1000_uart1_data_a_pins[] = { 0x04, 0x05, }; static int x1000_uart1_data_d_pins[] = { 0x62, 0x63, }; static int x1000_uart1_hwflow_pins[] = { 0x64, 0x65, }; static int x1000_uart2_data_a_pins[] = { 0x02, 0x03, }; +static int x1000_uart2_data_c_pins[] = { 0x5f, }; static int x1000_uart2_data_d_pins[] = { 0x65, 0x64, }; static int x1000_sfc_data_pins[] = { 0x1d, 0x1c, 0x1e, 0x1f, }; static int x1000_sfc_clk_pins[] = { 0x1a, }; @@ -2058,6 +2059,7 @@ static const struct group_desc x1000_groups[] = { INGENIC_PIN_GROUP("uart1-data-d", x1000_uart1_data_d, 1), INGENIC_PIN_GROUP("uart1-hwflow", x1000_uart1_hwflow, 1), INGENIC_PIN_GROUP("uart2-data-a", x1000_uart2_data_a, 2), + INGENIC_PIN_GROUP("uart2-data-c", x1000_uart2_data_c, 1), INGENIC_PIN_GROUP("uart2-data-d", x1000_uart2_data_d, 0), INGENIC_PIN_GROUP("sfc-data", x1000_sfc_data, 1), INGENIC_PIN_GROUP("sfc-clk", x1000_sfc_clk, 1), @@ -2115,7 +2117,7 @@ static const char *x1000_uart0_groups[] = { "uart0-data", "uart0-hwflow", }; static const char *x1000_uart1_groups[] = { "uart1-data-a", "uart1-data-d", "uart1-hwflow", }; -static const char *x1000_uart2_groups[] = { "uart2-data-a", "uart2-data-d", }; +static const char *x1000_uart2_groups[] = { "uart2-data-a", "uart2-data-c", "uart2-data-d", }; static const char *x1000_sfc_groups[] = { "sfc-data", "sfc-clk", "sfc-ce", }; static const char *x1000_ssi_groups[] = { "ssi-dt-a-22", "ssi-dt-a-29", "ssi-dt-d", -- 2.30.2