From patchwork Fri Sep 15 12:23:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 723515 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 07A4CDDCC; Fri, 15 Sep 2023 12:23:59 +0000 (UTC) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2077.outbound.protection.outlook.com [40.107.21.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EA1EC1; Fri, 15 Sep 2023 05:23:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Cr6jPuqGBA8lhHVGqv1ciIKr/GcQKY6jP/lETo826SMll6gInfhtD1vBD6t8kMYZfM23FzGaBlqN1tt/8g8I6g4dYoJkm/a5VxyxbzVMKHQBpONPNnkwHe+Q//Rj2ypzAglHSLPx+f/BjIkFhU9ugz++JYt4k/G+cOzOtNV+DR+krM4Q9kejlXXo6BKvQ77ovJVhiMDOUYXRxOrdG5kSFHy3YlrY9EfjdsZ3rmL+YwqpbmvytaBFos1TWgVr14xKyWV8d5Et4/qu8Ff4a0rhNX5WEbv/Vzt9zITpzAR+6mDw4xlDsX8xA1dVpZ7wK9Smo39pMxLNcbX3hd4ceISu9w== 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=Up8UESIfsbWykAWu61O2Utmvi7V24/DRrJG97Pbwxnw=; b=R7kQlP+0to9joMnk6B2wVFOvX+s2zpCb5SeUPf35J14rQQrykG4ivObbtXS5OEyF2rTTRQu/YK3pF5+rttHQPFqrphgP2lv1nyOUNJ/Gqx3xTvcZlQmf6YkV1mcx0qW+ZZG404OpAdGY5wZQZN45KGv9XUnuchQ9KtgPxb+FA0cRmcUtPkTUFuvwxnVNVVcsEoGUQ2tBDuml6ArqNa1h2pELW6rkYGLHGK4oHaGVIjFGF+ilZiYWjiegAFhzO6LwK+vvb/X/wUA5iUfzqZ/1SVVHTAErRXVnqFgkzeVsHoWxIduDg0+qBz+I9knN6kGqEDAIGtCsjtx6H0yUsFILlw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Up8UESIfsbWykAWu61O2Utmvi7V24/DRrJG97Pbwxnw=; b=Dn0pDYJ4QfhRgd4I6QlwTkFzMndkdU6OFDNswbJARdJskxjqO6cr64YQ2Ebl3W1vJbRa5G2YSO2WAw8jQiEg1vgrahCvhpI7/JwwllSBDKNO7h2fc6grp5vUeVEJD0w40QsnCLFhcTLR0Bh+NVzY6KXj16iQcoLojcnacyiPcrs= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) by PAXPR08MB7623.eurprd08.prod.outlook.com (2603:10a6:102:241::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6745.34; Fri, 15 Sep 2023 12:23:56 +0000 Received: from VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::bc92:216b:11ed:db63]) by VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::bc92:216b:11ed:db63%6]) with mapi id 15.20.6792.020; Fri, 15 Sep 2023 12:23:56 +0000 From: Javier Carrasco Subject: [PATCH v2 0/2] usb: typec: tps6598x: add reset gpio support Date: Fri, 15 Sep 2023 14:23:47 +0200 Message-Id: <20230912-topic-tps6598x_reset-v2-0-02a12e2ec50a@wolfvision.net> X-B4-Tracking: v=1; b=H4sIANNMBGUC/4WOQQ6CMBBFr0Jm7Zi2AlJX3sMQA2WQJqQlnYoYw t2teACX7yU/76/AFCwxXLIVAs2WrXcJ1CEDMzTuQWi7xKCEOgktFUY/WYNx4rLQ1XIPxBSxKEj nOqeqzDWkadswYRsaZ4Y0ds9xTHIK1Ntlb93qxIPl6MN7T8/ya/9UZokCz1VnRNuX8qzF9eXH/ vf56ChCvW3bB2jX7cnSAAAA To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bryan O'Donoghue Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Javier Carrasco , Krzysztof Kozlowski X-Mailer: b4 0.12.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1694780635; l=1249; i=javier.carrasco@wolfvision.net; s=20230509; h=from:subject:message-id; bh=JsGXvFGvXTCxZgM4m9tA38S1F/sf1ms2d0xxQc4svcc=; b=UEXO3hZAX7OqZcHpjpoSPMDoJslA8wkFfeBIuZTGe0AZ0xwNA5D9NQxQgRXlWvpVk6jz4SGAx m+KCspQgC0qBt9YhsSJKiFDmSe20g4N203hcAbUM9di4Dx7tzv7lZLt X-Developer-Key: i=javier.carrasco@wolfvision.net; a=ed25519; pk=tIGJV7M+tCizagNijF0eGMBGcOsPD+0cWGfKjl4h6K8= X-ClientProxiedBy: AS9P250CA0001.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:532::7) To VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR08MB4974:EE_|PAXPR08MB7623:EE_ X-MS-Office365-Filtering-Correlation-Id: c1f086b1-5631-48c4-7447-08dbb5e6a187 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DBna5nJoXo5CFtQ/CUBV2QRz9ebJ/p7o3rOuJBQN9QNpvbYQg8po1eEoO5D5sZ4gLnNVmNObvhvDRrxQ9XWKD2WzeDOjSsyyxLruPVsCmVutOZEO14Y+8leFrRcqdB2JWF+MFDyNqqGA0c9O4JCVd4y8oZUIbUJsNej2ZdTekpnIGfXDcfIvp4Gw+oCsUr68MusUT+02kNgFnR9D7tkF6KJwFW1Rf/guhHcYwJzEkr/0VS8/HGTcxBqTSioerP6nzFjAYzf6B6vqdVukxp6rANNxf96CRN+cX0aRbeeJqnxmk0bgkdn0bnbSMctvxupUWwnqsA3A+9fvcpz2Yl8G5JhRlXOK7P+N2vlAFzJ/aZQUUBlYxQPnjmjWbyEMfq/Bj/4mA2ufk4R9GW3PQJdJ0Xe+ewZCPXeesoobcL19wCjYk7eO2QZEInDxui769s+igaxpqpe97kTKiJlfKzmtSkQu2nFduKLPmCP9Vr472V3HDb8KEQCrYcF4BHux+g5lRQCZIaBr1CePFyel5kKf26JQvxob8Nf5evuaTqiUMDZukuB9/GwHcc1Zaeq+4Vo70xieerhEuGR5KWgxE4kgfQlUSbkT3OnEk+1d0SLVIXI= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR08MB4974.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376002)(136003)(346002)(366004)(39850400004)(396003)(186009)(1800799009)(451199024)(6666004)(52116002)(6486002)(6506007)(44832011)(6512007)(966005)(478600001)(2616005)(26005)(2906002)(54906003)(7416002)(66556008)(66946007)(66476007)(110136005)(4326008)(5660300002)(41300700001)(8936002)(316002)(8676002)(38100700002)(36756003)(86362001)(83380400001)(38350700002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?s76eKYSxAWCcK47bRGQZI4oV9KfK?= =?utf-8?q?dlWeZvI/MFRuStgG/uZmqb9kogJWr8OWN7rXHwtVBULdgij3wywTDevrRoPHhJPJa?= =?utf-8?q?t66aWfcla5GLivoJjBlJDE04zMwtFypc849BcriigXbIdIuQYCeX7YGAaY+B/1QVp?= =?utf-8?q?dVHJNqfMa56HS1AJliRpIBVPmwwClM9Pg+puJtpKFQB+pyCb02n91XrWVdQ9C6v5W?= =?utf-8?q?VJ3mX8d1oK+7ft2s4ZOUP2sqaHhYuqhb+HtEaB3BpvP2aK5lAGkzfPop3RHANq7at?= =?utf-8?q?OqhrXLSj7/IsAfm5o/eqDp96WHsNeYE4KIP49xMWpppqwr3ZdL8SD0dKOdPNWWYd3?= =?utf-8?q?zbdiO1peeM7EP2QHLiQjNgmdwkjoHBJSU0V3P0rfyJfI2h4oafsix/tEd69U2gG8j?= =?utf-8?q?3DWsalcHM0ZzrkfwM8UWGsiCWpsHtwYakI9ipQiVjQv38/+YslQNeU3FqxrTeO7Bq?= =?utf-8?q?DCJ7Ov9VwRYFOyXliwvcp3vO7EMtyVwWiMx4YVnD/bBA3hgj71Qv2pnWx6yi7/Sfz?= =?utf-8?q?j2e3j3RuIo3BtPWDY4TLUfHbtP0nsaCQv+fPrg0RXPyTkKUu/sP4PWvESf/rgJEoX?= =?utf-8?q?6+d6eoAlMHl5v1EpJSLqSZCgTeaYQtqDC6lzJavz87kIFUvwiX3tDkSHk09HBGAon?= =?utf-8?q?9fGombz24ufApNQSHEA+7tNm9H32r+goGDEyEj7wIeilvpQMtjtmFgwq4BMzpTyy/?= =?utf-8?q?Klth8UXqt7uJY6htSHHqPYtAm6QsXAmnTbV2ff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f086b1-5631-48c4-7447-08dbb5e6a187 X-MS-Exchange-CrossTenant-AuthSource: VE1PR08MB4974.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Sep 2023 12:23:56.1242 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ZNUdXt82fUAdRT6KhAgo2Am/sSQXrmmW7UDlvxL0889wTRGF++HVnZMecmcHwTlXGnEB6CCwsNLuinMna2TOCddgpUXRhHWNXCOed61kC1g= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR08MB7623 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net The TPS6598x PD controller provides an active-high hardware reset input that reinitializes all device settings. If it is not grounded by design, the driver must be able to de-assert it in order to initialize the device. This series adds and documents the reset signal management. It also includes the basic reset management for initialization and suspend/resume control. Signed-off-by: Javier Carrasco Reviewed-by: Heikki Krogerus --- Changes in v2: - core.c: minor coding style correction ({} in 'else' after 'if {}') - ti,tps6598x.yaml: reference to the device instead of the driver in the commit message. - Link to v1: https://lore.kernel.org/r/20230912-topic-tps6598x_reset-v1-0-78dc0bf61790@wolfvision.net --- Javier Carrasco (2): usb: typec: tps6598x: add reset gpio support dt-bindings: usb: tps6598x: add reset-gpios property .../devicetree/bindings/usb/ti,tps6598x.yaml | 6 ++++++ drivers/usb/typec/tipd/core.c | 20 ++++++++++++++++++++ 2 files changed, 26 insertions(+) --- base-commit: 0bb80ecc33a8fb5a682236443c1e740d5c917d1d change-id: 20230912-topic-tps6598x_reset-55e9494e8649 Best regards,