From patchwork Fri May 5 16:32:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Xiwen X-Patchwork-Id: 90497 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp545071vqo; Fri, 5 May 2023 09:43:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4RfKYD+zZsWV/KQw12w/eX3F73FHu979P2DSErjWR9YHe/7egcqIP1BaIbvDD+J12PGCAO X-Received: by 2002:a17:902:b195:b0:1a0:76e8:a4d with SMTP id s21-20020a170902b19500b001a076e80a4dmr6926027plr.14.1683305029885; Fri, 05 May 2023 09:43:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1683305029; cv=pass; d=google.com; s=arc-20160816; b=wbFUuIGHpNX00jW4MVZBj8wsXsENJXSpuBe/bifz/I2kBjht4aiVhGW8d20vegqvuJ VuhM7Qfvi8z8N+3rNDMG9yw4gIhk82akALpCKujljYkSmypaJjZoDSn6qml4WO8ANfJB SAC1dFPq+3VqddE54+839e8DQBYGyfO+yRphhuJjNfvqvTW1xNaeTQqeabtzKuRcMIoN /a73e1W8CT6lFl/DwOibMn/wR3GWyLoJ0oN2pXWNEIfB3B16intECIvPl8mXM38HzZLx lyh/HaDB31NrXT/MVsdkV2/8pS/usdFuXR/rkl+9YSIoGEPwR4Bk52YXjw1EF3KO6trY 8rzw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding:cc:to :subject:from:content-language:user-agent:date:message-id :dkim-signature; bh=FmmJlFEHkMywz6UToheMMZe15STn7UpGGw4Hfy2dtEw=; b=MgfliNsAlfdIyKvbJihpx7Xxmvy7saU0/F+2CstYi/VJWM9p/9LdbOoNh5d9fJO4VP pePGJ2H+43HZGkd1WLC9S56XE9L1w7sgZ5RzrAncaA2jE/zkyi3ee1wq4zSXPSZZdV2Z IdBa+D1z2IjU60PoxeZsWNFl/go+6Eyhn11YOehPjUAmKKNk0sG0ahVpC3uL0E/5aGuy 635Z3G36aX2YEuyjIj5pi0NtcRv08nnUF02QT2IWqVecUsFzVWJfjk3nUzMkFv2s0Nb/ pagDuAL6Vq92NykdFERfJ5lg6DGhaQiXhQQ08o7BG5mKBRBAGjZd/VCgmxIG8qtnjfj0 nRqw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=M5g6urH4; arc=pass (i=1); 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=QUARANTINE dis=NONE) header.from=outlook.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ja5-20020a170902efc500b001ab13016a76si1969427plb.601.2023.05.05.09.43.34; Fri, 05 May 2023 09:43:49 -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=@outlook.com header.s=selector1 header.b=M5g6urH4; arc=pass (i=1); 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=QUARANTINE dis=NONE) header.from=outlook.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232943AbjEEQdL (ORCPT + 99 others); Fri, 5 May 2023 12:33:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232583AbjEEQdJ (ORCPT ); Fri, 5 May 2023 12:33:09 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01olkn2075.outbound.protection.outlook.com [40.92.52.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3B2614E60; Fri, 5 May 2023 09:33:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PhZVkgy2sajp3ToDjkIjFRcJpsGvObnxOcFzo57e3TmJxFSFd1Qz4nXTk/bv8qJTnOkdhbeG0JIPD3xxOsV63FVrgjBurwEfCj33h394sB0tTiUpdhnk3S/pE7cW/4HYIQuZdy11UoyYmp6cpUQ3YrVV642jy48rC7jmxCI9Db9NkBY26m0/J6T4fpuUsJZGDQ/ec8rh3i6MTFfkmrqpoSTXLjc1QGfmZXXIXBdsTXfiotwjsHbtsQkHiDyioGGx1NuVjxb9fAMqmzZpyubRhzFivxiJUp56h9sPx6ccAUi0wTc2Bs47iWaQi4BaadM5c3yeQ65MTbb04F7S7t9iBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=FmmJlFEHkMywz6UToheMMZe15STn7UpGGw4Hfy2dtEw=; b=DuZ1xr6VFamizh+m/VJkyvVp7U8fuaFWLUNJJutVIGgerSnWeoDjfVpxKS9y3dj8ay1OM0nW7dTqo6fjHkAaCEwhhXO/LA6fSLdAc4aZQ+UoWoSFeYcDJh0FGB03N6P7sMbAbkQFhPewVkDPhIODiNpBWTotvXGlc1jgmXKJRwHF7RELq34o//kv6+1+swuUdhNK+Z7gutVX8MyKmrCQL7Oo8r7OW/EJpbgMfCbC0EnmXGMt7al17xtcLVnDdTsE+zI3rxnZDo4XYaOUA7UiPhVO4UXSIJCYXfz7Uvj/d7AUgpCPOkdxSLYSmxcFkjZ+QhFuV1C4HzI4/vOajPxBhg== 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=FmmJlFEHkMywz6UToheMMZe15STn7UpGGw4Hfy2dtEw=; b=M5g6urH4IgRf9CWTKWX+3HWRZQwxNqYR4FgnWipvDm8b9rCA2ebFvacMZfPQpkG63477Kmlv/2WUhD6Xn+qvP0RC3Lw4+8FkN7OvuujWg8ceQTjCPMrYlLjhsIlqfKhHktUZp8sNWxlFvu0SRsyVCc/KOGD1QGds1bPx/RlM2HC/rALG3dM3Dqb3ehM3y5cUC3GLEZPGvUJH7xAjjGe30xF5Ldh0T08yBtYOyG3ZnDZmbkOjDDbsLFOATqND3ed68fx5u6eJcrD3C8achx8cJBZ6Lsu/ji53ZQ/g7HavReG4GTT8VNraa9Bz+CreiV4PNrrxhFX/neNPkUYSpZz78g== Received: from TYZPR04MB6321.apcprd04.prod.outlook.com (2603:1096:400:28a::14) by TYZPR04MB6150.apcprd04.prod.outlook.com (2603:1096:400:25c::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.21; Fri, 5 May 2023 16:33:00 +0000 Received: from TYZPR04MB6321.apcprd04.prod.outlook.com ([fe80::4705:d219:7cf0:46f4]) by TYZPR04MB6321.apcprd04.prod.outlook.com ([fe80::4705:d219:7cf0:46f4%3]) with mapi id 15.20.6363.027; Fri, 5 May 2023 16:33:00 +0000 Message-ID: Date: Sat, 6 May 2023 00:32:51 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Content-Language: en-US From: Yang Xiwen Subject: [PATCH] arm64: dts: qcom: msm8916-ufi: make UDC dual mode To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: Nikita Travkin , ~postmarketos/upstreaming@lists.sr.ht, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org X-TMN: [Mu4cyeDXvI424nx6WbXR1VAq42WJTvme1cxIQT9Mw3oq+agK60s5Y/HX5Fsha9NM] X-ClientProxiedBy: SJ0PR13CA0123.namprd13.prod.outlook.com (2603:10b6:a03:2c6::8) To TYZPR04MB6321.apcprd04.prod.outlook.com (2603:1096:400:28a::14) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR04MB6321:EE_|TYZPR04MB6150:EE_ X-MS-Office365-Filtering-Correlation-Id: 1e9e391f-ad4c-4022-f8af-08db4d8663d1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Qknd/WSK+nvp0PYn/fsDE4S3gAF8kPPrzzt0tS495i/y8zBEwtps/VHlF8rK8rcKScfB/h++/kfcib1f1C+JOtv+Wok8HJUioV1fp5OCfHZb0X4NZcMUIjPeR32i/wFCWhLZSolRqVQ8l15zPdVVXt3Ly7P2cAxd3QUGQwHR08b062Rb1HQ6QPTpdw9SFDZ/t3f6yXAK4TvlYZB7dWkYsb+yscIFT3sgMmjzWDm6gf6AR3AIpEY6lHuM/JTnapONwkst8K8DZKDLFItPERQkPu06ufczHl9GCHp28NUBn++wFntSXmCUad1YzEbJbRkqiCtZlrtdtLjusd9qaEwbFeFQqJPFyHHfRJWh5xghb7oKZG6/dd3le3fBlet/rQ2qmnwPKXJ7v5bdE6SQzd0gIxcy1PeOdCZGBzOobK4xepRolpF5QLgxqLqB3MVoKBTk2BTBrDhq8MUv+2DwTez/sa0UK0c16O1jVEhFwQ+xjN0xXPfJMzdxtS7VoFqD8/wZrBNyTJeXkqBhxpwbjvdzx6ZN4cmDwqNuwQ0NF717grFyocU1mZuh+E7h+Jo+3HVG X-MS-Exchange-AntiSpam-MessageData-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SxhyhmP4mzDXkzopCPuHG8ytun44jkAlPCBqwp4aDi4b16kzlq4mMZl8MGad2?= =?utf-8?q?BSupyrUTbbM17XaMQdd9mbUwopPzHt+4ztcN5F3YSGZsOYIsLeOXbQ5cwuqxZkwP8?= =?utf-8?q?dTmE7pDTC0IDQLhmElzK/1eoPX3Zh9JfcWcG8ayQX3yX0IGONVfoYa2KC4TiXQvqx?= =?utf-8?q?eZ/RdmDwtfQGqkqH4Tk7Gvt7/yg9xZDNo6DsEW2uQOZ6ESfUmcAp11uoI4dVzTRbd?= =?utf-8?q?HdIlZ5eO4OyE6l3lHTqXBsVnlt3DpmMcombk9D5CWRB350hqltMdp9tXGaM4x5q0T?= =?utf-8?q?6q/3jM1LITn8Lx4bbYPHbY7IsQA9+vRtCwvDoKpi1aBIFW5M+UHJUza1KJGyXRxTY?= =?utf-8?q?JApflJkzpDucppVpbq97SUrMICskMxgnGknCtgE3dm4ef0aisy3tUpPOSr4Y=3D?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1e9e391f-ad4c-4022-f8af-08db4d8663d1 X-MS-Exchange-CrossTenant-AuthSource: TYZPR04MB6321.apcprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 May 2023 16:33:00.2909 (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: TYZPR04MB6150 X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_MUA_MOZILLA, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765073254814617770?= X-GMAIL-MSGID: =?utf-8?q?1765073254814617770?= It's possible to use this device with a (non-standard) hub to get USB working in host mode, but dr_mode="peripheral" prevents the UDC to do so. Remove dr_mode="peripheral" and add usb-role-switch so that it defaults to otg mode and can be switched to host mode in userspace. Signed-off-by: Yang Xiwen --- arch/arm64/boot/dts/qcom/msm8916-ufi.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/msm8916-ufi.dtsi b/arch/arm64/boot/dts/qcom/msm8916-ufi.dtsi index 50bae6f214f1f..08ecd901c1af6 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-ufi.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916-ufi.dtsi @@ -109,7 +109,7 @@ &sdhc_1 { &usb { extcon = <&pm8916_usbin>; - dr_mode = "peripheral"; + usb-role-switch; status = "okay"; };