Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp960195rwr; Wed, 3 May 2023 08:23:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4VCG8smp7TEEe57yT137GwpwNXDKSLsig3u9UUbl1mlJONb73uH00d6TmJzEYU7kSWaayg X-Received: by 2002:a17:90a:19d6:b0:236:1ec1:6d30 with SMTP id 22-20020a17090a19d600b002361ec16d30mr5605473pjj.3.1683127401309; Wed, 03 May 2023 08:23:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1683127401; cv=pass; d=google.com; s=arc-20160816; b=aN31zexXKl7bjs8ky3UUNEBB9JeofT+jEYTV3Bz/BgZ1XnofgefLc8LxMQwn7n681B i0fYrGLpIugwal8O3XGpJeRcvDfcK9CX0H0X3jdYTheICoLiJ9y8Yyz4iTm3k8WGIFNK y8Ju59eQRzPR1Djnhn+tpD9faD2jgLyP87shOxPFqP1gnnqjGM25rvdTOIXzKJ3+EzaW JLdUWl0/i+8bL6VymWBYrQbSU+EyXwy8xupXc96cXAKX4906fsMHun+0A/oLZcTpPzQM Fk4rr9IF7iusVarxGT+zPvY2MAQLMZZVquVNV5oWAbUE2LyTOXdYf7IsB7KjYmSbWUaN zYWQ== 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 :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=BMlLWH9DCuVSZtYj/iQawVgACTeeOBJ7o9JdK9o4aNI=; b=EIzFQjbdDMRWzjOEwUFU9tPHHZ1ggSHjEXTSWta8gHXNSr3fbsrkc6QtsuDyKwh+DV 4nOcsf+lVb5CPojAk/JI4sTybugHWpiBhpnpEUHexd1TfWkbH++4CptzCtpQyxWWyCnj SNAkKNQ70duLMXua7F/UdkfwE/u1fB2zZyV6aQLS99OAwe4ZWyxSqU6+CXH6d2yqv9Vf TkavdkhE0Q0D6W164s122dNX0Fa/0kazWLo2+TjPnGSYW2zlW7Nk2NozKURl7JgdMv4z 9Cv2j5/GQVNPcbvAZTDid5z8HwmgYTkVXzmJQMpH+3Z3nk/YVdgnLE/vv9tBQxzgs8dm fAqw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mysnt.onmicrosoft.com header.s=selector2-mysnt-onmicrosoft-com header.b=ZJyoB1A7; arc=pass (i=1 spf=pass spfdomain=kontron.de dkim=pass dkdomain=kontron.de dmarc=pass fromdomain=kontron.de); 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a7-20020a17090a854700b002340e454213si13140080pjw.190.2023.05.03.08.23.09; Wed, 03 May 2023 08:23:21 -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=@mysnt.onmicrosoft.com header.s=selector2-mysnt-onmicrosoft-com header.b=ZJyoB1A7; arc=pass (i=1 spf=pass spfdomain=kontron.de dkim=pass dkdomain=kontron.de dmarc=pass fromdomain=kontron.de); 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230298AbjECPSs (ORCPT + 99 others); Wed, 3 May 2023 11:18:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229490AbjECPSq (ORCPT ); Wed, 3 May 2023 11:18:46 -0400 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2121.outbound.protection.outlook.com [40.107.22.121]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 214C146AE for ; Wed, 3 May 2023 08:18:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BJCuYbpJAIvdAKREqWwt6vMp1kfyG0YRka51i+cwfBMfkQ0zQ5mP3IAz23/0yKAsRRQ4NcqawvBnzJR1SxRkZLs5GvYfAm0dNMllPYyS4PJwz06Pu9Gy2ZRYBvl6Qr20RyPBZ5a/Sa7cJaDVzblBCT8rdtQURfwxdhgsmkoyUk/+yEAK7mOrdhbO797+zt9+F/2TLWzjQrmr/4iQupvS9yLHcxx72KhH82/OItOFowaWfVCt36TuVE1nsaJUS+QN0guKRRDvaZw1JFxSmcxzO30UUOBAxLaLty3yjmAydr1Jw6w4Sz2f1JEUC3ecE9x3lex1p0EA9opII6Gag0UmGQ== 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=BMlLWH9DCuVSZtYj/iQawVgACTeeOBJ7o9JdK9o4aNI=; b=MbswC3yIV9g0oPCV2PLHllaEXw3KVSMk1FGxcbkqBxEqdTwY3+DflEAGOBBOGlqso7sPu/+f3haFGLmdNK0pQWuu13++m/X6XkJGnstz5UjW2gXTHiMsCQT53a8ixcrQvGjIIbmPecOf9FhFiEaa4Cfqwib6TXNiOYc5zh2m2rgoIG81krbEjfHsbe+9h3vsdkfKoH9XmUlGadPzUJ6HIq3ndabvPJ0SutPfPukAcIkUo2tGdhcEE9WO8zsnf84GGlKmk/0/ZrOLM2jnu5eHjGkfcwGU56y202+B+gNWtzIfnjbJEioAtE2Ojnj2s9ePxr3b84QH5xIw+23kG6Vp8Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=kontron.de; dmarc=pass action=none header.from=kontron.de; dkim=pass header.d=kontron.de; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mysnt.onmicrosoft.com; s=selector2-mysnt-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BMlLWH9DCuVSZtYj/iQawVgACTeeOBJ7o9JdK9o4aNI=; b=ZJyoB1A77KL/Ae3jVsJHFdATSoVHgndiBTfzHwIo6U6qyv0ZDsfMBYXlVpb9CSGogazUKwdqXWxTuf2nb4QCOTfKnrvpFOAMzLp2Oz371LYD9Qz9OdjCS/G0KlWwjSNnrHP0jx8232SWUKiezwc++y2P4TDVwBH6dTCu7PzOw2A= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=kontron.de; Received: from PA4PR10MB5681.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:102:263::10) by VI1PR10MB3487.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:800:132::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.21; Wed, 3 May 2023 15:18:42 +0000 Received: from PA4PR10MB5681.EURPRD10.PROD.OUTLOOK.COM ([fe80::e6fd:d174:5710:fb3a]) by PA4PR10MB5681.EURPRD10.PROD.OUTLOOK.COM ([fe80::e6fd:d174:5710:fb3a%2]) with mapi id 15.20.6340.031; Wed, 3 May 2023 15:18:42 +0000 Message-ID: <61ff6865-41bb-85af-2fdd-ff80e3c2b67f@kontron.de> Date: Wed, 3 May 2023 17:18:40 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH V3 2/7] drm: bridge: samsung-dsim: Fix PMS Calculator on imx8m[mnp] Content-Language: en-US, de-DE To: Adam Ford , dri-devel@lists.freedesktop.org Cc: marex@denx.de, aford@beaconembedded.com, Lucas Stach , Chen-Yu Tsai , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , Inki Dae , Jagan Teki , Marek Szyprowski , linux-kernel@vger.kernel.org References: <20230502010759.17282-1-aford173@gmail.com> <20230502010759.17282-3-aford173@gmail.com> From: Frieder Schrempf In-Reply-To: <20230502010759.17282-3-aford173@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: AM3PR07CA0085.eurprd07.prod.outlook.com (2603:10a6:207:6::19) To PA4PR10MB5681.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:102:263::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA4PR10MB5681:EE_|VI1PR10MB3487:EE_ X-MS-Office365-Filtering-Correlation-Id: 0f7789a4-1e51-45d5-0827-08db4be9ae05 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OE3ldttlah85TryTpRoN/FADnZsmU8WMv4vZhKBjAz7OatnLRn+QELuunQvgvhsxgfLlT72oyL/EmSbVRGbwV8DVwO70KIm+AiSqtpNf5KfqQf/eF72JES9bXuWLHNrBvH4GSYvICgVwsJtYQdE2p9Rv476B6X+XlFl+sRNUO35FmvJHG7QqqphiJuzQy1hqkO6vcac86ELrKTQbNPJbKWC6XcncX+AB8Cq2kngSjX34hHpF4jho0jUsHCKALIxSRm9yctfY2R5KMojOz//BbzYA8582Wyzw1948YiFGhHlSuOnaXQu/+ZX96CI3H37561QN7rHAUlFNtHUpNynLwSR92CS5mCjYm/Ym38a6CKL+KyDJYG0JIKMe89afX1MLe38CmHkv0HAvYwJjrxQqd6qJTiZWHuXlGFqHSka2byYryOdCl/i5hsz0/3Y03WA5CgmrIT2BbNNHhHo9F8XOkH7PDGaWzNRl/AhleOb5cFS9qPPv4lLPqQnWi8AlzGuZfAahQqATnrIRPX/Cx4yo4mtEBfnErU5OZbXm/ORf0NDlKExeAUeEIKU9QXdK637+2Zslxfd7XJmKXWwCLT3gR9mMSyDHZKD14AxFppVXxWgtueiXAvtf0Uc4YwqozXdjRzimI7qJ4Bf9HjMYPagfEcNwnNl/ZMAAZ3P+3HirEwc= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PA4PR10MB5681.EURPRD10.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(366004)(376002)(346002)(396003)(136003)(451199021)(38100700002)(86362001)(316002)(2906002)(36756003)(7416002)(44832011)(31686004)(8936002)(83380400001)(8676002)(41300700001)(31696002)(5660300002)(2616005)(4326008)(6512007)(26005)(6506007)(66946007)(186003)(66476007)(53546011)(478600001)(6486002)(66556008)(54906003)(32563001)(45980500001)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Z3c3d2JsZ2FHazYydjd2Ymo1RXd6cGpWM3NFbEJteGRKc3hYUSs5Y3dzamQ5?= =?utf-8?B?SCtYK2Vicmo3U1JVcXpMYnQvcVRlQW91LzNDRW9xRXEyZzhFKzR4WWcvbThz?= =?utf-8?B?eUxxRVFuV0ZITktJYXJMVDA1cHdXOUx0WW51ZWxzTU90WGxrcHROQm5TQ0pP?= =?utf-8?B?enZBV1pJNUtDV3NtS1cwVjVzeTZUZlFWdWVIS1JhY3dkbGt1dVQ0YzhHQkVV?= =?utf-8?B?N083UTN3Wm56YldEb1lraDRWdXRYQWYvT3dxenJBcEcxeXBmb2F2ZlJjNkg3?= =?utf-8?B?bE9wYTJvZk9CZlcrUFd3WjMyTlVrOTdaZkpRZXgrS0hWbUlJdWc0SEdueE1o?= =?utf-8?B?MFY4U1VnZk16U1VUWE4vMEp1RzRZQmU0eXdpSDU1dzEwLzREM0lCYXJFbUdU?=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ginatorOrg: kontron.de X-MS-Exchange-CrossTenant-Network-Message-Id: 0f7789a4-1e51-45d5-0827-08db4be9ae05 X-MS-Exchange-CrossTenant-AuthSource: PA4PR10MB5681.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 May 2023 15:18:42.3869 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8c9d3c97-3fd9-41c8-a2b1-646f3942daf1 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: dB8xcn5+JqXW2VDMgHLXxHKUW9figuG/lEp9ev0+R/csrBoFr/kegzkO2uJXADznemSKe7yHydc8uPQwfN08hfAKKlc81BZ5sidoz/BzUN8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR10MB3487 X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On 02.05.23 03:07, Adam Ford wrote: > According to Table 13-45 of the i.MX8M Mini Reference Manual, the min > and max values for M and the frequency range for the VCO_out > calculator were incorrect. This information was contradicted in other > parts of the mini, nano and plus manuals. After reaching out to my > NXP Rep, when confronting him about discrepencies in the Nano manual, > he responded with: > "Yes it is definitely wrong, the one that is part > of the NOTE in MIPI_DPHY_M_PLLPMS register table against PMS_P, > PMS_M and PMS_S is not correct. I will report this to Doc team, > the one customer should be take into account is the Table 13-40 > DPHY PLL Parameters and the Note above." > > These updated values also match what is used in the NXP downstream > kernel. > > To fix this, make new variables to hold the min and max values of m > and the minimum value of VCO_out, and update the PMS calculator to > use these new variables instead of using hard-coded values to keep > the backwards compatibility with other parts using this driver. > > Fixes: 4d562c70c4dc ("drm: bridge: samsung-dsim: Add i.MX8M Mini/Nano support") > Signed-off-by: Adam Ford > Reviewed-by: Lucas Stach > Tested-by: Chen-Yu Tsai Tested on Kontron BL i.MX8MM with SN65DSI84 and ADV7535 bridges. Tested-by: Frieder Schrempf Reviewed-by: Frieder Schrempf