From patchwork Sun Jun 5 16:57:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Trimarchi X-Patchwork-Id: 2004 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 050533F0FB for ; Sun, 5 Jun 2022 18:57:09 +0200 (CEST) Received: by mail-ed1-f70.google.com with SMTP id q12-20020a056402040c00b0042a84f9939dsf8976231edv.7 for ; Sun, 05 Jun 2022 09:57:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1654448228; cv=pass; d=google.com; s=arc-20160816; b=P7oEiJuF29cHsFHCcyPDcq4cC0M6XXtmr7XCB+LV18vAAAlZ7n9iHDKNFQN/B8LRmX yZIuEYSvRfHoH9C9qFD4Aw7HPSNhdUr8T4qANezz047ETfAQAQSXYVZGIsYeLpqdoHq2 +bn1KvT3wpzu/+mU9VqZ+mCeK3Iq7PwAQc6cq77/tJEZ0lZNrQ962TAmiwQMk+HHZaJs 5oxHnMszsC5kFRii1G+2OP9iH7JHzYXXcRxH0HM8ApOSa+A9ZksWIWz+KMY0aE/Id6cV TKEup8P2H9efaAv39MtCBXzsMz4E1P8un5QtwaxkNuF9GdoNRk4aAX3MNc9ps6XZUNaZ Uy7A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=5lx9RWdG68EcIDqhYxLV9JGkCpj67BAUaPooxwml4gw=; b=T5I1LpAOlOUwCDKLXZ6iezvuSMoH/FjJQCzB1xwkEcMtUa6K8ly/3N56hKYQ0ioM4m z9T67JXg+2TUQUOwM0q00s2LMDz/Y635HKG20X/fgIx3eAY+YRHubYgArDJepxucWgxy POnF6ueHAJBizJuHqndwMOc3X3zrUwDN0xzA6ss464D9eD3l0FJUo2r+sxEwcasouOUD 7R8cTF1cAPfUdBpoeitWXBXyoZfSZb7UKkvKzsFAFRvtHt05rPl2mcSH99zu0nFRya42 AACkJ6JXiyBo3aTBjcHCtG3mv6jqou/PU9FxS/feAfeCmxkItKv4JvywLZYaHp9ok4kS AF6g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="ojRc85/i"; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=5lx9RWdG68EcIDqhYxLV9JGkCpj67BAUaPooxwml4gw=; b=Bk3L1VwtJQvwtnRmiQiIpL4YbUiVHn7hjuQBW9yMy0IdYatRo6D1Wv+Vankx6jiK2E FFaonVfX7JcfGteG5WTBwgvzUB478hv+TIQUCXkk29ddmaLPlGQHEKZaEsgUrSqjbQ6v LR/owtDW8WnLX4ewEdNCJ+/jCqBXtTkL439wA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-unsubscribe; bh=5lx9RWdG68EcIDqhYxLV9JGkCpj67BAUaPooxwml4gw=; b=NjalJFpDe3t41vndPOAEtpdNxTZpQMo7t49D10w55Q2owOvfkOjkIJ0oAFidA9M/sn IpSr/4k1ZxDVpXt98nn3aP3K5bjWRVf0RxT1YE50L9kEEmkL1ZYI9/W+tFFeVWrf1qPu 2K9ovdjPdG6E6lVJlUuPMuV/kUWVsSiI+uouu4J0MuMgR2jjDmzEnOF7IoDPUgLeeZWG jDG2XDrDBqF3LHy7BZQlyR/ZgJxxyWS6pa4hGVFNB21BRTrQ5O2DL6vltLKMTnG0vhJg xQg4RO1QX0TfOEfG5pjIkfZFBdJSRtqbk0hxR1DsDtyG95uTg4jyXNaBOZxxftqSeIHA DN8g== X-Gm-Message-State: AOAM532R9AHadhgsggn286H8Kz9mpg56dALkBW5ChOq5wcbHk3wffAG6 c8h4cR8Vsi5iWUtVuRHmj+UGE7I9 X-Google-Smtp-Source: ABdhPJyqcsJs316ibi8aZmJnvfu2z1QFgqKC9PKVenlNl0gc+MlLPDPDawIcy7r1XRdhE+dzCW11OQ== X-Received: by 2002:a17:907:7b8a:b0:707:59d4:14a3 with SMTP id ne10-20020a1709077b8a00b0070759d414a3mr17795383ejc.51.1654448228566; Sun, 05 Jun 2022 09:57:08 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:906:6a26:b0:70a:1088:57d1 with SMTP id qw38-20020a1709066a2600b0070a108857d1ls359546ejc.3.gmail; Sun, 05 Jun 2022 09:57:07 -0700 (PDT) X-Received: by 2002:a17:907:724a:b0:6ff:2ed0:960 with SMTP id ds10-20020a170907724a00b006ff2ed00960mr18222921ejc.480.1654448227170; Sun, 05 Jun 2022 09:57:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654448227; cv=none; d=google.com; s=arc-20160816; b=tpeSEqJjyXBdSqc7pUO7HmJlJ/2JAWVLdg0JFMEjiXl+LLdTDP36XpGKrj3m9dwt6P 7E2fd1dDNetfPh9I9QQ/z0UUuIAd8ZaUHYQisHloiNsyKYwc0Xgh+puG5GLyUt/rPRN8 fh8rL6WE7KyFPdUWhbUKCDhdGmZwQ4p2dAy4xELg/mJoq2bQuEc68lxbbF4KVnCiHyJX qeoF/CxsbkqUkcTOTQXTptrsVvuFSv7PnjJvlm0nKNo6iaksBCC0B9o63L+KmJnecArb ZD5O0Para/yL8IiaK6Oe4r5pnFpYkbtRap+79md9bfvUUDRMq/Dz0XtOHvRTBYGr5lda NTmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=N5b25hqu/oE4geFfetpQJ/jX/t8e9orYohIiTzR/6iw=; b=FhnW4uYzaly3twO9lRmyIBQgkgNoc50TIQ3B/FVp5l/rfSHHmWeiLH9odZWtwC04Ik Csqa2riNtS82HfMlEcGElKggUXUWVScFpiF7vBPZJUi4kgfIHW7IcbTMj59iUaSnCnuk vyBCau0iJSktvhxzClAUqWu7TdAwPO6/rX2QIbBEIFTQIP8RB7mZkPYI0/vCzaojsCEZ +yUMXIdf5VSeVJdrAtKEVCmqNJ+VkEPX4h52fa8o9XlMwUNJEopl/WpaquQnoV6og9YR /PNYQhmrUPfDfNSpTsdvuN0lHBkLTmzwL00Nh8rj4xl2pBmXnucei2sKPPSxXdN/N5y1 assw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="ojRc85/i"; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id g1-20020a170906954100b006e04f1efcb8sor5665135ejy.41.2022.06.05.09.57.07 for (Google Transport Security); Sun, 05 Jun 2022 09:57:07 -0700 (PDT) Received-SPF: pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:907:6e01:b0:704:8c0e:872f with SMTP id sd1-20020a1709076e0100b007048c0e872fmr18057173ejc.387.1654448226755; Sun, 05 Jun 2022 09:57:06 -0700 (PDT) Received: from localhost.localdomain (mob-83-225-9-201.net.vodafone.it. [83.225.9.201]) by smtp.gmail.com with ESMTPSA id b12-20020a170906660c00b0070e3f58ed5csm3260761ejp.48.2022.06.05.09.57.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 09:57:05 -0700 (PDT) From: Michael Trimarchi To: Cc: Dario Binacchi , linux-amarula@amarulasolutions.com Subject: [RFC PATCH 0/3] Enable clk-critical to bd718x7 Date: Sun, 5 Jun 2022 18:57:00 +0200 Message-Id: <20220605165703.1565234-1-michael@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Original-Sender: michael@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="ojRc85/i"; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The imx8mn cpu smms2 module is clocked by the pmic that provides clk32K. If the pmic clk driver is loaded the device can not boot. This series try to make this configuration possible. We mark the pmic clock as critical. Open question: clock-critical is not documentated as dts properties and could be clock-critical can be changed as no-int one. This is a follow up of [1] [1] https://lore.kernel.org/linux-devicetree/20220604183905.1025201-1-michael@amarulasolutions.com/T/#u Michael Trimarchi (3): clk: bd718x7: Clean up the code, no functional changes clk: bd718x7: Enable the possibility to mark the clock as critical arm64: dts: imx8mn-bsh-smm-s2/pro: Add pmic clock connection .../freescale/imx8mn-bsh-smm-s2-common.dtsi | 5 ++++ drivers/clk/clk-bd718x7.c | 23 +++++++++++-------- 2 files changed, 19 insertions(+), 9 deletions(-)