Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2403070lqt; Mon, 22 Apr 2024 09:41:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUWHG5rJg1DBIkDVuPsDK194aZYoBDWaJHTssDkXusbHQwFpPWnv0VrAyDaTrVeNjW4Vgm6UsLGx1iDWcUiRPitfj+PuozhEQWsXF1LGg== X-Google-Smtp-Source: AGHT+IEj6xeAkaOSV/mIk0JcbxBwTur2AI+1KdYkHjN/VxUBtjXIjlvI3PnNaVDmiL/GQiFzP2lT X-Received: by 2002:a17:90a:5d04:b0:2a0:4c3b:2c39 with SMTP id s4-20020a17090a5d0400b002a04c3b2c39mr10329727pji.23.1713804100329; Mon, 22 Apr 2024 09:41:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713804100; cv=pass; d=google.com; s=arc-20160816; b=D4EEPIoi+gcMzA1QG6mxrDCk0w4EnFydXw7moHwBa81qJJ9j4iI98bS3MRPb1vk8hk 7QTi8Oxir4tqkiNQVG8EX6Uvg9l1lZGjUU2LhnGQ4MlF7fnaKG5NT1yeV2P6u7f29rO1 GpSOEW1pxh+jYi5MWmUMT3RVC3ItYefpxwS7UksJt5dTIPctybeB/AztlhHsxCA8Zm4i Hp/VGDzV3qfAzJM01tg7shlBKF8rz9RublmQEwOImM2j1PKqi6y/CzqlydQo0+bD5d39 rf0cqaBgwmL4hT0d16ArRakU8OIBPSJD8hJuhwLWqOTHnXu11M7P+YZYylsJMsWH62vT nqmA== 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:references:in-reply-to:message-id :date:subject:cc:to:from; bh=pQbn7OwKbLiUNtU0Ff9kV2xyi9aMMG6FH+rqdGEvjlQ=; fh=5sGA35n7zigtFlmq1mADrfJQ3jGu/uSz/HAiY46yR+s=; b=aho6hE82oVc5CzhOpwzQs/aSZJrOWK+ryeHOIuQ3qgNYYi2bBGcFD5hCTMrMj1MbLn B/zzYSOaFf98gCd6grNjRCcZA9+RbOhXGuuGvbyId3voYj0x5tlMQODpDU+GP663cnNi /+RJxgyklUDft14MCiN5qSf8UMIcMIVRHpn8NKbH7vzUBfu9fdo1UPop6dE4HCjHmXbq 0X0NAHeTK9Jv8/eVOtW5PVv/bzGA9mL7BSvfKnhTUfP3cPxAxOIYMGbnbFzKByGRq9NZ dC5ATWtgFPKPj4YrMFf9N6zEhQTvlrkptbCb1E2otQSS4rD1SBcM5XKI4aB03n1nIpYg n6aQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sntech.de dmarc=pass fromdomain=sntech.de); spf=pass (google.com: domain of linux-kernel+bounces-153723-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153723-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id w19-20020a17090aea1300b002a2c84a00afsi7974803pjy.64.2024.04.22.09.41.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 09:41:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153723-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sntech.de dmarc=pass fromdomain=sntech.de); spf=pass (google.com: domain of linux-kernel+bounces-153723-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153723-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id A1324286F22 for ; Mon, 22 Apr 2024 16:40:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 810FA15443A; Mon, 22 Apr 2024 16:39:59 +0000 (UTC) Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 59188153BF2 for ; Mon, 22 Apr 2024 16:39:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.11.138.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713803999; cv=none; b=YTr5wIlQlbTUSpoeWlaVdAZxitM+3i+IwD7+X7OeDvl6bZEOezOt5teDcHq+eWqMn+IfYx1+oJbhlPhHgnnto6v5ynVe7zuJslidlcOoQQcMkxSpF8jC09Xhyn/jJ7F/wEKZ8qX37sQ3BBfCZy4mQSHNGlMn7ZvhvFGK00ZL4Dc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713803999; c=relaxed/simple; bh=kZNavWYYidN/BDo0KlYmAF2Oswc+CdDFe5fZnkY1NZQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ijBLcGDVYe7EF38SmfKpBbQ+Y4XhHavAMnfx6kLcTArZMoDr4K6kkc4rEBlOWVzsv7AQBB5ClS/Jisx2+3OE/cAABJmrsVC/ihawNE+JCjIr0qlFBQCnTNeKcCQ0xK/aQ/b/8kqhLBfuSRtwdybgjCR5yw3gjt3oqmg8bLSZDOc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de; spf=pass smtp.mailfrom=sntech.de; arc=none smtp.client-ip=185.11.138.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sntech.de Received: from i5e861d85.versanet.de ([94.134.29.133] helo=phil.lan) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rywhu-0004gq-B1; Mon, 22 Apr 2024 18:39:54 +0200 From: Heiko Stuebner To: heiko@sntech.de Cc: quentin.schulz@theobroma-systems.com, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Heiko Stuebner Subject: [PATCH v2 2/3] arm64: dts: rockchip: add usb-id extcon on rk3588 tiger Date: Mon, 22 Apr 2024 18:39:50 +0200 Message-Id: <20240422163951.2604273-3-heiko@sntech.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240422163951.2604273-1-heiko@sntech.de> References: <20240422163951.2604273-1-heiko@sntech.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Heiko Stuebner The Q7 standard specifies a usb-id pin on the connector to distiuish between host and device mode. Model this via the usb-id extcon binding. While the pin is part of the Q7 standard, so part of the module, the extcon stays disabled in the som dtsi and will only be enabled in a baseboard using it. Signed-off-by: Heiko Stuebner --- arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi b/arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi index 4984e36a8c2d..cafb40283882 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi @@ -23,6 +23,14 @@ emmc_pwrseq: emmc-pwrseq { reset-gpios = <&gpio2 RK_PA3 GPIO_ACTIVE_HIGH>; }; + extcon_usb3: extcon-usb3 { + compatible = "linux,extcon-usb-gpio"; + id-gpios = <&gpio3 RK_PC0 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&usb3_id>; + status = "disabled"; + }; + leds { compatible = "gpio-leds"; pinctrl-names = "default"; @@ -327,6 +335,13 @@ module_led_pin: module-led-pin { rockchip,pins = <1 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>; }; }; + + usb3 { + usb3_id: usb3-id { + rockchip,pins = + <3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; }; &saradc { -- 2.39.2