Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp897437rdg; Fri, 13 Oct 2023 04:48:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFitGorDwAbE5aPmXfnl9/VLZovRAtb9zeFiKegPatouOTrtYhz6yXmhxMZoJj92a3Ullq5 X-Received: by 2002:aca:1b13:0:b0:3ae:2b43:dd4a with SMTP id b19-20020aca1b13000000b003ae2b43dd4amr27282524oib.45.1697197708097; Fri, 13 Oct 2023 04:48:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697197708; cv=none; d=google.com; s=arc-20160816; b=AVL3qdDscu4yEUPLK5+bqdxJERMFBchf2vuUo93nijBiXDCQFhhkm9rD1n7svrg00G WDGvU9yAuRg7YVD+2Pn2cd0xaOlQRftSh7bV7vTElrkrKoxQonpzp8VvDbbrRccdzKFA tS3I4rlnxqeKOr1tz/MEvyTUaVlxSCGQYLZZ4al2peP3lG5Lr01vJqR06XY34UXBCb+A gQSiFVZ8qvo3QO9KAgqOYklJRrtGFZyZ4kwYqBk7XDU7B7h53YQGJJE2zjV6xDO7CCNf z5Ji8kyrMpOu586Oe9p/BBWwJ6lbVaA9hSBTl/JuXillhflOHTQRUYA6mqUnFgJERnAX RHvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=w0MAIirjq03pRQs/H2YVl+L51QfyeQlydrq5+uo3IAY=; fh=nimfgIOaDpoUb80xDDINQtuEWLbAN3oljIDQQZBBaoc=; b=LsoEB8bF552TLqlIW+j3Vp4TgfPWGHuuQgJso16Cj+M5WDLQUFZVaAfVcqrxCK1O4K nEyAsGl4dguXqLg/ZYzzeGmjs/+OtthT7RYuIAr97LOY0RHbBcswyRGN+GR5iNwSiBR5 aUuhYAVQ7WcTNZ/+aADYKCLoPTSHQAZZRxVkMugxvWIedJLUxl4xNNh3cdX04fkgFqvJ uVbm9IDT5+bFD8YABX/W5xRSPV7gtijOtbp6rOpu6n4L1EIOfwSUHj3e6Pl5XpT12ebz sUJroMo5rqtqJkqMrWsX7dHPmcd4fnjNUoIBbpdJBh0G2ZgLPo3XVXSFKdWLTn9MthgA xc9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=XN2hI3fY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id fh26-20020a056a00391a00b0068e2b901138si17247035pfb.158.2023.10.13.04.48.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 04:48:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=XN2hI3fY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 9BFA283A63EA; Fri, 13 Oct 2023 04:48:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231409AbjJMLrz (ORCPT + 99 others); Fri, 13 Oct 2023 07:47:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231283AbjJMLrv (ORCPT ); Fri, 13 Oct 2023 07:47:51 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 821FFBF; Fri, 13 Oct 2023 04:47:49 -0700 (PDT) Received: from obbardc-t14.home (unknown [IPv6:2a00:23c8:b70a:ae01:c2e1:3bb7:ed5c:6a0d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: obbardc) by madras.collabora.co.uk (Postfix) with ESMTPSA id 24893660735E; Fri, 13 Oct 2023 12:47:48 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1697197668; bh=CCYO2Nxk6wHQeFOamNkL/4O7unR6kwkhjTCQuRoEydY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XN2hI3fYED/cM0FKRFyzVDLMLuOThRPGfqH52Baig1uVi93sCyF8orvE3K3/wyciY aTS3P6U34nJKMd4bIw94gbKZ3tS6O/3CXTLqLqH8RreEWYVVUzk4/PjRvWZ9V4LMle BCmwQY8zEhnTacnUQd0jkK9iIjgaoRskGmDNUl81/Gp24lVEBIWVgqTfu2OD+Wki63 5TmLyj6gQTDowHkDOuj5S7eD8+/R0xsViFXcCp6ZRRar37ixnfPBUSDsyJjwgrhsMh UyiMdWzRBVN4zmyrYH+TtYadA5v0mcApRkiLgQdEdrh46GXHfmFhbOpW8Sy6+KiOyy BsCRc9JizbPvg== From: Christopher Obbard To: linux-rockchip@lists.infradead.org Cc: kernel@collabora.com, Christopher Obbard , Brian Norris , Conor Dooley , FUKAUMI Naoki , Heiko Stuebner , Jagan Teki , Judy Hsiao , Krzysztof Kozlowski , Rob Herring , Yogesh Hegde , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 2/2] arm64: dts: rockchip: Fix i2s0 pin conflict on ROCK Pi 4 boards Date: Fri, 13 Oct 2023 12:47:27 +0100 Message-ID: <20231013114737.494410-3-chris.obbard@collabora.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231013114737.494410-1-chris.obbard@collabora.com> References: <20231013114737.494410-1-chris.obbard@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 13 Oct 2023 04:48:25 -0700 (PDT) Commit 91419ae0420f ("arm64: dts: rockchip: use BCLK to GPIO switch on rk3399") modified i2s0 to switch the corresponding pins off when idle. For the ROCK Pi 4 boards, this means that i2s0 has the following pinctrl setting: pinctrl-names = "bclk_on", "bclk_off"; pinctrl-0 = <&i2s0_2ch_bus>; pinctrl-1 = <&i2s0_8ch_bus_bclk_off>; Due to this change, i2s0 fails to probe on my Radxa ROCK 4SE and ROCK Pi 4B boards: rockchip-pinctrl pinctrl: pin gpio3-29 already requested by leds; cannot claim for ff880000.i2s rockchip-pinctrl pinctrl: pin-125 (ff880000.i2s) status -22 rockchip-pinctrl pinctrl: could not request pin 125 (gpio3-29) from group i2s0-8ch-bus-bclk-off on device rockchip-pinctrl rockchip-i2s ff880000.i2s: Error applying setting, reverse things back rockchip-i2s ff880000.i2s: bclk disable failed -22 A pin requested for i2s0_8ch_bus_bclk_off has already been requested by user_led2, so whichever driver probes first will have the pin allocated. The hardware uses 2-channel i2s so fix this error by setting pinctl-1 to i2s0_2ch_bus_bclk_off which doesn't contain the pin allocated to user_led2. I checked the schematics for all Radxa boards based on ROCK Pi 4 and this change is compatible with all boards. Fixes: 91419ae0420f ("arm64: dts: rockchip: use BCLK to GPIO switch on rk3399") Signed-off-by: Christopher Obbard --- arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi index 7dccbe8a93930..f2279aa6ca9e1 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi @@ -492,6 +492,7 @@ &i2c4 { &i2s0 { pinctrl-0 = <&i2s0_2ch_bus>; + pinctrl-1 = <&i2s0_2ch_bus_bclk_off>; rockchip,capture-channels = <2>; rockchip,playback-channels = <2>; status = "okay"; -- 2.42.0