From patchwork Thu Mar 30 08:49:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 76978 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp986695vqo; Thu, 30 Mar 2023 02:12:55 -0700 (PDT) X-Google-Smtp-Source: AKy350aVGFN2/BwfeWeUgd4xA+TCoxq/2Hk8jFUmN/gVQ3jgJ+n+SH0stwzgn386aMg7f5vLxtsu X-Received: by 2002:a50:e619:0:b0:4af:6a7e:9218 with SMTP id y25-20020a50e619000000b004af6a7e9218mr20696212edm.42.1680167575080; Thu, 30 Mar 2023 02:12:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680167575; cv=none; d=google.com; s=arc-20160816; b=bq0CrNMZNbnC9hQMAXWz7iRLVgCzmgTFkl+2cZPBIdt3GImpYlG+IaGAEcZodAZ12K FxCICO5e0uBvY7a3GcDIxgoy8vcnLzdndcIHyWXawdVu3Yv7JD0r8lgrvxmKiAkj9UZf geB0nnTtFu9AsztuZ3vp9VpxroQ4jQXhJl4QrNsXx/2epIaQ/EtlOefGWpZwolEIWih3 n8dV218AjH93IdMlTOdSW3Zkw3TAyNVFQH4flzqDMDHjENnVz9AnDO5T5ebBpEijtwBc ydw/l7lT4kzRkdu6tgm/JgwgIe1STycCVwE0jMegDLo2E9iuw2xAagzqb9r3j/UHrppr gxKw== 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=u6jSuTP1o/cVFuVUxfr8FNBa6pwwVuHf042ZiaDPhoM=; b=cpHW4wihWKEFUWqCLtnyXsTjNNOPW1nPcx5fWg4XcE2r/L8EZiu/ZHYmc6V4nJLppj r4mbrZuEu6YvcZUSI4su/k37JwJcs3a/vBbcv1/Qi5oWHdGutJO1HpTWh3jHgTQyur5j BKt4i4qMYIyhUE7L71ZB5QtmsO6VaRK0yIyQK1Zw9MjzzWu4kg4zinKpLIyBHfpLxDpp 4+pTZ+TBZ7cQUdcqMGNtkC58QNYCKHidCepnCt9ZYcjwV+eEUJOZscBT5HTghggolx65 e9fPXBxmxUz7tR6s0NbA+8CUJiICb5B5iimtFDGNOqTxHYOrwBZvr1hTIssLetB3AOnZ ts/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oLJD8jmb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e19-20020a056402089300b00501da709743si26762261edy.531.2023.03.30.02.12.28; Thu, 30 Mar 2023 02:12:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oLJD8jmb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229568AbjC3IuU (ORCPT + 99 others); Thu, 30 Mar 2023 04:50:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230245AbjC3IuL (ORCPT ); Thu, 30 Mar 2023 04:50:11 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A208B7AB2; Thu, 30 Mar 2023 01:50:04 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3F69B61F46; Thu, 30 Mar 2023 08:50:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 19038C4339B; Thu, 30 Mar 2023 08:50:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680166203; bh=PbVK8hEsU/pH2vkw9lfbR9b5VjLWZjOk4C9N4xsA4JA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oLJD8jmbeJyUA5IVZwuOF1Cw5OrJfMSUqcNwtRgBHLO2pcEv/OmeKdtaCOnoY/38y kzLDj8su8nwnI0dWhZvZd/gNRFPoiUQDnNNHZ4aj8p8rlyF/rr+MAWRt6RmolLJMtT tDf/QgN1HsKcKaM5+hEmTxiw0tJVr85VqxwxwGtSyn4f38zAHEZ6Gr63q9UF4FzpkS yfqAXCh3jHBripssF3tmiFkELcinzb0LnqLB5PTD+LmFHqqquH8cNG+2yj5LbeK/hR KOBSBuTfSiCNEvk7d0kRW2cSEBJu6yKvQDZND7JSRoaoWOxiSbVyeaJRMvrenDMrJ3 t2bRpQR6HwDog== From: Roger Quadros To: nm@ti.com, vigneshr@ti.com Cc: kristo@kernel.org, srk@ti.com, r-gunasekaran@ti.com, linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Dhruva Gole , Roger Quadros Subject: [PATCH v3 1/3] arm64: dts: ti: k3-am625-sk: Add ti,vbus-divider property to usbss1 Date: Thu, 30 Mar 2023 11:49:52 +0300 Message-Id: <20230330084954.49763-2-rogerq@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230330084954.49763-1-rogerq@kernel.org> References: <20230330084954.49763-1-rogerq@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761783395581358689?= X-GMAIL-MSGID: =?utf-8?q?1761783395581358689?= From: Dhruva Gole The property "ti,vbus-divider" is needed for both usbss0 and usbss1 as both USB0 and USB1 have the same external voltage divider circuit. Fixes: 2d94dfc43885 ("arm64: dts: ti: k3-am625-sk: Add support for USB") Signed-off-by: Dhruva Gole Signed-off-by: Roger Quadros --- arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi b/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi index 54318a07d50c..80e8b9b9a5f5 100644 --- a/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi @@ -261,6 +261,7 @@ &usbss0 { &usbss1 { status = "okay"; + ti,vbus-divider; }; &usb0 { From patchwork Thu Mar 30 08:49:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 76976 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp978611vqo; Thu, 30 Mar 2023 01:57:23 -0700 (PDT) X-Google-Smtp-Source: AKy350aDNtkCN1iZZOCKtn8LkNeuKnqbxDULX6vUJYOXAQK1WbKccGOyOftZV0bUNfB9AENOnPjP X-Received: by 2002:a17:907:3183:b0:947:76b4:f243 with SMTP id xe3-20020a170907318300b0094776b4f243mr459191ejb.39.1680166643669; Thu, 30 Mar 2023 01:57:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680166643; cv=none; d=google.com; s=arc-20160816; b=inuTwZ3o3GU7sCcLKgmGnTFqCC+fXu1Hf5LyOAYYNXa3/2UCicGMC613Nja5aI2HOp p5cDHKAAKpEwT2zOYiFXXjNMDqnvKqLWk/wHC/QYuNxuWZGsEYzTK/SBwZlNx7nBHmMu HMLYVgj6hDDBC1XsvPBSNC/KFZIpHT7x9XopKEHTLqllcatrsfjBfFy4gNz03bRvCZic vn9NclCTdO59Z6KiVzTVecYLxO2nmCT6z18GXUVKaRMZwTZ83AYlex9WKnOYlvkdfuqp y7ofLu2aiGxeLqoSc+VZ6MEAq8L8yS2jTjeANIqwRt0FSoxa8rwY44v1BKE+GnIzZ24p MWgQ== 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=qS6A3NxP5IP0uKPXT3cCTpqGIQwdvr1Pw2rHL0SMNvg=; b=U/iLxwo91zqPxflf1bD/encUbKAjLlVuPMqy4lbaNbTmLDvf3xH7zsBhzQKhgmTDzy Tx1j9d6WIMpmlvNyLy4HQlVk2UImgCuepwa1Q31SqrcIKIYvUUhs6OIfizdlaa96lM1c tXicI6p3MN4rIHIQ1d4+SWEgcZ2pY6ao/3i2Xkr0PoqOHgFj/AgINTMKaG7c+k+3YzG+ dH2YL7pHNPxvRNGKZjMaBo6FTpdspfBtzBeRRaOaKE5jkYrXP6p1YIGEK8xw4YcGrRW4 ATGUPATSx8xUac8572ZMKFKvHwz/Lzv8y1/ml0EjS1UFIIfvPaFkNta6R7ZK84eLqzJa ykPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PaC7ibN4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s4-20020a1709060c0400b0093349208719si28069700ejf.768.2023.03.30.01.56.59; Thu, 30 Mar 2023 01:57:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PaC7ibN4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230413AbjC3Iu2 (ORCPT + 99 others); Thu, 30 Mar 2023 04:50:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230282AbjC3IuM (ORCPT ); Thu, 30 Mar 2023 04:50:12 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A9D77A82; Thu, 30 Mar 2023 01:50:09 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id B7CA5B81D7A; Thu, 30 Mar 2023 08:50:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26A1AC433EF; Thu, 30 Mar 2023 08:50:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680166206; bh=KEK5moVX0SHU97cua/KWwyNRaSV84QY94bnoxXMtLwM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PaC7ibN4tH6VpjOuLAvrGigDLPSOAB8W8LMtNMsXBPSk1ZCWPYcW+6x5gniNjvwFt WOH7b51Q4/xpuJ90NpL4FofFmTYXiRiEYkQQKe1XK/Rm8g9eCrEYefep/Z903kHspk KkmfIxgi8FlB5b5TiMG3gx+/tWUrVqiV29GOrua8TiZoKCLYj37h+daENcrUXPi4Re 666CrAxy7HTg9l7ziGyn3h3kNyYSxfCBl8cCgENAczNfxq2HLf21Qb4/AeSueJtsEz 7qVpeMabXNcXpp9obcMxceAIwfpLiQfWsnptrsDARXgFKCn1lzMlAOPJrLzmIPS0PD xSTieu1G8QF4A== From: Roger Quadros To: nm@ti.com, vigneshr@ti.com Cc: kristo@kernel.org, srk@ti.com, r-gunasekaran@ti.com, linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Roger Quadros Subject: [PATCH v3 2/3] arm64: dts: ti: k3-am625: Enable Type-C port for USB0 Date: Thu, 30 Mar 2023 11:49:53 +0300 Message-Id: <20230330084954.49763-3-rogerq@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230330084954.49763-1-rogerq@kernel.org> References: <20230330084954.49763-1-rogerq@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761782418211331498?= X-GMAIL-MSGID: =?utf-8?q?1761782418211331498?= USB0 is a Type-C port with dual data role and power sink. Signed-off-by: Roger Quadros --- arch/arm64/boot/dts/ti/k3-am625-sk.dts | 2 +- .../arm64/boot/dts/ti/k3-am62x-sk-common.dtsi | 35 ++++++++++++++++++- 2 files changed, 35 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/ti/k3-am625-sk.dts b/arch/arm64/boot/dts/ti/k3-am625-sk.dts index cdc0858dd1b2..467e17e28916 100644 --- a/arch/arm64/boot/dts/ti/k3-am625-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am625-sk.dts @@ -150,7 +150,7 @@ exp1: gpio@22 { "UART1_FET_BUF_EN", "WL_LT_EN", "GPIO_HDMI_RSTn", "CSI_GPIO1", "CSI_GPIO2", "PRU_3V3_EN", - "HDMI_INTn", "TEST_GPIO2", + "HDMI_INTn", "PD_I2C_IRQ", "MCASP1_FET_EN", "MCASP1_BUF_BT_EN", "MCASP1_FET_SEL", "UART1_FET_SEL", "TSINT#", "IO_EXP_TEST_LED"; diff --git a/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi b/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi index 80e8b9b9a5f5..db7fa20e8fe2 100644 --- a/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi @@ -198,6 +198,30 @@ &main_i2c0 { pinctrl-names = "default"; pinctrl-0 = <&main_i2c0_pins_default>; clock-frequency = <400000>; + + typec_pd0: tps6598x@3f { + compatible = "ti,tps6598x"; + reg = <0x3f>; + + connector { + compatible = "usb-c-connector"; + label = "USB-C"; + self-powered; + data-role = "dual"; + power-role = "sink"; + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + usb_con_hs: endpoint { + remote-endpoint = <&usb0_hs_ep>; + }; + }; + }; + }; + }; }; &main_i2c1 { @@ -265,7 +289,16 @@ &usbss1 { }; &usb0 { - dr_mode = "peripheral"; + #address-cells = <1>; + #size-cells = <0>; + usb-role-switch; + + port@0 { + reg = <0>; + usb0_hs_ep: endpoint { + remote-endpoint = <&usb_con_hs>; + }; + }; }; &usb1 { From patchwork Thu Mar 30 08:49:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 76983 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp988330vqo; Thu, 30 Mar 2023 02:16:31 -0700 (PDT) X-Google-Smtp-Source: AKy350ZrEgDnaqz7BIAP4D4iaSGLS5L6jgj3gXxMCrD80pIxhxA1D2Tm06BMr2VgW0fIfd1+3njx X-Received: by 2002:a17:907:cf8c:b0:93d:e132:9122 with SMTP id ux12-20020a170907cf8c00b0093de1329122mr22263479ejc.35.1680167791791; Thu, 30 Mar 2023 02:16:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680167791; cv=none; d=google.com; s=arc-20160816; b=GLLhIJ77MA01MMN7UO8quH/8WjOtpmUESnRe5fK+zlodQzUpJ8+uVPteJR7ua1n8+C NFDJu7fsGFSuzuLRSOwmSrNYYmg8Zr+noqUkYzo25il7n6Y3WUnk4K++d1BKQTSG9nKI eKSSL0VazFk/54hcH9JxvjyVw/+/x9wykQAdQNWxQpxn/9sN/n8plzQ43SuS5HoDNAsv N/wT/BnGetoivsdYYL5M7RfZo6lJeJEtCEgptUeIUHTB50gz/Mw9f1SRdz80teevvLbO mhcDfm+ibfbwOZEzf75qQR5WcaU3ZMBKA3F1OIY7oGLkrhVHovnH/evRBdgbm89CXLIy bOnQ== 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=N9mfQX90aT1R572WMYsc/gBY/uhBr2I3JtmozUk50xI=; b=y29c0SrSvkZzr3b1z75jF8KzGZ7S9YOLtimTW6xvN+oQPnYKXwoOcl+S6w7SjZd3tO S1YEoEreEASVFJSt56Zdf/pCNfamNCaObDeialYJk1ZWxMwU3E/DDUg0+HFodmN6/oj3 YsZgc4OnA+1c9xsZFg15kgUO4nKHZ4EOuUdnVs9zJtWauIqgjuO3nTK84kucM8fqLUJJ 1Ukv7K+DZ9XbqBAttXEnNbKnlExTbbenpFFwu95Qs2SMF/72XAOkAk91QgmYfWdbR+8L 3QNnSzAFNDMwpXvqQ9rWl9lcnxpQhq4nbhElWEHeuKqYxyO9Dq0ApKHEzc+e4WlSvJCf spCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Z36FJkPv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sq12-20020a170907388c00b0093429d37a34si31729551ejc.272.2023.03.30.02.16.07; Thu, 30 Mar 2023 02:16:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Z36FJkPv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230326AbjC3Iub (ORCPT + 99 others); Thu, 30 Mar 2023 04:50:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230209AbjC3IuO (ORCPT ); Thu, 30 Mar 2023 04:50:14 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D72F4EFE; Thu, 30 Mar 2023 01:50:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 955CAB8268A; Thu, 30 Mar 2023 08:50:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 026D9C433D2; Thu, 30 Mar 2023 08:50:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680166209; bh=torgI06B/J0R66UMOhGDjGUeyg08LmEJEdr+FuzGCms=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Z36FJkPvEKhY9/yZVCZlogoD6cMdcQ+fOGHaZohYd9pjXv/MjH3pFtRzdKVI5PQHA na+I8m8bw+IEfzNKObO3BBNE4LZ+w3pBvTaKqYpqgQoMmUl40Xzhpn+pgfEzi2m2Hk Z2XPV95NyiWRXRe8k0mU+pFva4YURdf5NmGU+NYJyuANtnz3TkTwt+v7xwuE9JV6xF X8J8scGiX++7CNXJ6DVFM7hU3DcOoT7ZZ+YN8bMiJ1W4r4K0MRleapyPL1lthZdOfJ Zi3Hn8KoGrKVBOStzzCMWEgXfW1fpDKYiOepiy3IztVwdA5pSq0ELQhl0DoOSzc2mg Leq6ng5ip5euA== From: Roger Quadros To: nm@ti.com, vigneshr@ti.com Cc: kristo@kernel.org, srk@ti.com, r-gunasekaran@ti.com, linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Roger Quadros Subject: [PATCH v3 3/3] arm64: dts: ti: k3-am625: Use interrupt line for Type-C chip Date: Thu, 30 Mar 2023 11:49:54 +0300 Message-Id: <20230330084954.49763-4-rogerq@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230330084954.49763-1-rogerq@kernel.org> References: <20230330084954.49763-1-rogerq@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761783622763522740?= X-GMAIL-MSGID: =?utf-8?q?1761783622763522740?= Since revision 1.3 the Type-C chip's interrupt line is available. This will break Type-C role swap on older boards, and it will remain in Peripheral mode. Signed-off-by: Roger Quadros --- arch/arm64/boot/dts/ti/k3-am625-sk.dts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am625-sk.dts b/arch/arm64/boot/dts/ti/k3-am625-sk.dts index 467e17e28916..5d899b56aed6 100644 --- a/arch/arm64/boot/dts/ti/k3-am625-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am625-sk.dts @@ -256,3 +256,9 @@ partition@3fc0000 { }; }; }; + +&typec_pd0 { + interrupt-parent = <&exp1>; + interrupts = <17 IRQ_TYPE_EDGE_FALLING>; + interrupt-names = "irq"; +};