From patchwork Tue Mar 5 10:07:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 10840533 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 91F001669 for ; Wed, 6 Mar 2019 08:09:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7EF2E2CAFD for ; Wed, 6 Mar 2019 08:09:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7296C2CC68; Wed, 6 Mar 2019 08:09:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DAB522CAFD for ; Wed, 6 Mar 2019 08:09:56 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 84B2D6E099; Wed, 6 Mar 2019 08:09:42 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from esa4.microchip.iphmx.com (esa4.microchip.iphmx.com [68.232.154.123]) by gabe.freedesktop.org (Postfix) with ESMTPS id 976FA8972C for ; Tue, 5 Mar 2019 10:07:42 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.58,443,1544511600"; d="scan'208";a="27273021" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 05 Mar 2019 03:07:41 -0700 Received: from NAM02-CY1-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.76.108) with Microsoft SMTP Server (TLS) id 14.3.352.0; Tue, 5 Mar 2019 03:07:40 -0700 Received: from MWHPR11MB1549.namprd11.prod.outlook.com (10.172.54.17) by MWHPR11MB1647.namprd11.prod.outlook.com (10.172.55.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1643.21; Tue, 5 Mar 2019 10:07:38 +0000 Received: from MWHPR11MB1549.namprd11.prod.outlook.com ([fe80::54fe:95ed:b0cf:55a6]) by MWHPR11MB1549.namprd11.prod.outlook.com ([fe80::54fe:95ed:b0cf:55a6%9]) with mapi id 15.20.1665.020; Tue, 5 Mar 2019 10:07:38 +0000 From: To: , , , , , , , , , Subject: [PATCH v2 1/7] drm: atmel-hlcdc: add config option for clock selection Thread-Topic: [PATCH v2 1/7] drm: atmel-hlcdc: add config option for clock selection Thread-Index: AQHU0ztD+/wMXaZ0tESQW5wKZocGmw== Date: Tue, 5 Mar 2019 10:07:38 +0000 Message-ID: <1551780434-4580-2-git-send-email-claudiu.beznea@microchip.com> References: <1551780434-4580-1-git-send-email-claudiu.beznea@microchip.com> In-Reply-To: <1551780434-4580-1-git-send-email-claudiu.beznea@microchip.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: VI1PR0502CA0011.eurprd05.prod.outlook.com (2603:10a6:803:1::24) To MWHPR11MB1549.namprd11.prod.outlook.com (2603:10b6:301:c::17) x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.7.4 x-originating-ip: [94.177.32.154] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f06c76a5-6c0e-4908-fc09-08d6a152658f x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(2017052603328)(7153060)(7193020); SRVR:MWHPR11MB1647; x-ms-traffictypediagnostic: MWHPR11MB1647: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; MWHPR11MB1647; 23:m1Xx5t+3hGCqxGtM8tbA0gPI+HQZ24zrkOX4+3y?= =?iso-8859-1?q?LzglgRE+3rSMIit?= =?iso-8859-1?q?qTAJM7BuwOIemKz/kqIi0JAMk/oTm0KNjB6YglimR2+bIcrB4cxiKI+gZqcu?= =?iso-8859-1?q?fEQKta0XQIuisDQN3yhhve2odIZeEuBpcelszIMf1mg9MBNnFgnUPqwOOq1K?= =?iso-8859-1?q?gzN+M0AKuvjMDIEkUMJBv/aCFGqjcqRT1ZdN2jB3PuCmSDZo94RteIElopQR?= =?iso-8859-1?q?m13FwXpXgR13rLDnSbUuMO9f7f4psijrvQYoZVpttrpChXHMG0NG6ttrFt4u?= =?iso-8859-1?q?S9/oIAKgjleXLGbuSrehsu64jZjIWrpnIWcnSZH/VCwElvI+xp8zWYNCSVOy?= =?iso-8859-1?q?S1AFpfcjlp429D5Kr2AaCzJDqeSJbQCl+iuYRL/0gloSIobnurT6hnbZlu9X?= =?iso-8859-1?q?udwbneYMTviU3mLhhSvBHHDHoXLt3Lbvjdzl4vaC5y0nTeYNokrun0TmrSAG?= =?iso-8859-1?q?vfmgBkXyHf3qzuLT4DEL5Ivj0mxECPHEyooXnKMUtNGcMP6MXIvp4QbA1Af9?= =?iso-8859-1?q?NA7/bSRkg75vWRMmT5fncDQliFbvUg9mpKtbyczmfRRP6N6MsypTTnwb0MWb?= =?iso-8859-1?q?xpTPmo+pMYCGlV4qwp2V1xQ2NJVBy0jLPDI+vnNlNj0x9CrjrW1UdM1YeKDn?= =?iso-8859-1?q?9nFbLOryK5oMRxvDS+oe3JxXyh8ZDXEc66OuaHhYoLeDNqL4Y2ImTW242Yf0?= =?iso-8859-1?q?mFFeQaPlEByJqs8bGcgv4hQHTtD2YV+03SRKN3uIafW2EEzJZPMu5D/hmjas?= =?iso-8859-1?q?aammJCQG+JKIharjcPBPpiuwpa5pmugjVdU5crfptExgnMV1Z8X+04iEQLy6?= =?iso-8859-1?q?pNciguFpt5MW80BpAwT8CA/gRGTpaOuQjLV8HW+/awUhfRxMRynMO53Alj5b?= =?iso-8859-1?q?QVZDiG1Uxd5urqRA/FyTxWBgsRfF15Q3HM/ZyjAUmi9EZMJ5RShZIsoe60oH?= =?iso-8859-1?q?A/0XPluCkUb1XID8sLslLwbymXdA3ylS+sPu7s/mHNYkZduNuhZTCnDZL8ol?= =?iso-8859-1?q?jcql50Y8IHLScYkYEWZmwC6ZUkbgswkiL1Q5jhmxmB7j6h3JPA/vS7ZceNCK?= =?iso-8859-1?q?FhJu6ThGF+/pZnJwzsvZgyiOwPxf19PR+dDMVqEGjyJ5AZyeXY2yGC/f1ddG?= =?iso-8859-1?q?i/XCrCQHJ4KZsxdMtVXcFRfax8dSYnqh9ADakqTLMRF4KFpGHoBUkCsYGLRA?= =?iso-8859-1?q?KedRGkfs9ZDKxVoAIgkwXIyqcm40b3IHwIfKYluGLrOXHZD/tuet1BDUlF06?= =?iso-8859-1?q?3Y7yOs7dDU78o/tRIqM0EQAruEI+9Xpbo1meulqDEgCT0nQ5q3gek7jHZaKV?= =?iso-8859-1?q?upcZgmf6xYgyNZqo24L9DeHx0vrKg+?= x-microsoft-antispam-prvs: x-forefront-prvs: 0967749BC1 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(396003)(39860400002)(346002)(136003)(366004)(199004)(189003)(106356001)(72206003)(3846002)(99286004)(81156014)(52116002)(36756003)(76176011)(14454004)(81166006)(66066001)(8676002)(110136005)(6116002)(105586002)(6486002)(7736002)(5660300002)(8936002)(305945005)(25786009)(102836004)(54906003)(97736004)(316002)(2906002)(7416002)(2501003)(2616005)(186003)(71190400001)(6506007)(386003)(256004)(476003)(68736007)(11346002)(71200400001)(6512007)(2201001)(107886003)(53936002)(446003)(50226002)(486006)(4326008)(86362001)(6436002)(478600001)(14444005)(26005)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR11MB1647; H:MWHPR11MB1549.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: microchip.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: aLMnhcwbijCslvDfdkdmH0KOsBXeX6yBGleXF76uzeJ48MO1EKGTG+dWagXK3rO7wmFGvQnz1gR8GOA7Y59L/JRYO6ucNZhSWYvA6ZK0ZVg9jMqKqi4GlX/UhAc0il81KRbArGg1YMjUppfKFsmT2L3bwPfTRDiMoXbyd2v6cRSh/5A38EMbOxE4UfCaaYmA2jp4V/mXrSxJFISWUFGJKczLQSQN96HMGGL3lC7GjEuXRgZ3gxdbLKwM52sWbaVFNru23BWTEyq95EUDV8olfuYZBPhtrcNQdzQBl2Bw9nktt7rODcp4JHG2RsnOR6r6kegOCs4nUhEsJXCJnmnuNLk2EgTx/s1JmABRGVvdZbcBBcmWomVeR2KmkXoTdUzHEnQBiz4P+ZfHbGNTP8TSj4Q3lCF1E1IeQYfAWgoFS8s= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: f06c76a5-6c0e-4908-fc09-08d6a152658f X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Mar 2019 10:07:38.6652 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR11MB1647 X-OriginatorOrg: microchip.com X-Mailman-Approved-At: Wed, 06 Mar 2019 08:09:28 +0000 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector1-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HnDJrc2fWj+kuXChfYNe6+4J490v2101XUkGUY/F7c4=; b=T6zWMFnM4h2itcg9To2uLJsqowOpv0qUJvihx+OOeKHN0Qo9DV3qeO1zMkCcJamRChOnn2vyDg2c8RN2nuvtNZlU2nHRs9pesjtXaSLf2jTiHa9i7oNVPN90vrHxTZXZwdHbHWuvohS00tOViryg9tZcalAffELUc4LLof66B1w= X-Mailman-Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Claudiu.Beznea@microchip.com; X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Claudiu.Beznea@microchip.com, linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Claudiu Beznea SAM9x60 LCD Controller has no option to select clock source as previous controllers have. To be able to use the same driver even for this LCD controller add a config option to know if controller supports this. Signed-off-by: Claudiu Beznea Reviewed-by: Sam Ravnborg --- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c | 12 +++++++----- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h | 2 ++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c index 8070a558d7b1..957e6d2fb00f 100644 --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c @@ -78,7 +78,8 @@ static void atmel_hlcdc_crtc_mode_set_nofb(struct drm_crtc *c) unsigned long mode_rate; struct videomode vm; unsigned long prate; - unsigned int cfg; + unsigned int mask = ATMEL_HLCDC_CLKDIV_MASK | ATMEL_HLCDC_CLKPOL; + unsigned int cfg = 0; int div; vm.vfront_porch = adj->crtc_vsync_start - adj->crtc_vdisplay; @@ -101,7 +102,10 @@ static void atmel_hlcdc_crtc_mode_set_nofb(struct drm_crtc *c) (adj->crtc_hdisplay - 1) | ((adj->crtc_vdisplay - 1) << 16)); - cfg = ATMEL_HLCDC_CLKSEL; + if (!crtc->dc->desc->fixed_clksrc) { + cfg |= ATMEL_HLCDC_CLKSEL; + mask |= ATMEL_HLCDC_CLKSEL; + } prate = 2 * clk_get_rate(crtc->dc->hlcdc->sys_clk); mode_rate = adj->crtc_clock * 1000; @@ -132,9 +136,7 @@ static void atmel_hlcdc_crtc_mode_set_nofb(struct drm_crtc *c) cfg |= ATMEL_HLCDC_CLKDIV(div); - regmap_update_bits(regmap, ATMEL_HLCDC_CFG(0), - ATMEL_HLCDC_CLKSEL | ATMEL_HLCDC_CLKDIV_MASK | - ATMEL_HLCDC_CLKPOL, cfg); + regmap_update_bits(regmap, ATMEL_HLCDC_CFG(0), mask, cfg); cfg = 0; diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h index 70bd540d644e..0155efb9c443 100644 --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h @@ -328,6 +328,7 @@ atmel_hlcdc_layer_to_plane(struct atmel_hlcdc_layer *layer) * @max_hpw: maximum horizontal back/front porch width * @conflicting_output_formats: true if RGBXXX output formats conflict with * each other. + * @fixed_clksrc: true if clock source is fixed * @layers: a layer description table describing available layers * @nlayers: layer description table size */ @@ -340,6 +341,7 @@ struct atmel_hlcdc_dc_desc { int max_vpw; int max_hpw; bool conflicting_output_formats; + bool fixed_clksrc; const struct atmel_hlcdc_layer_desc *layers; int nlayers; }; From patchwork Tue Mar 5 10:07:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 10840531 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1342A1669 for ; Wed, 6 Mar 2019 08:09:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 01BFB2CAFD for ; Wed, 6 Mar 2019 08:09:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E9E142CC68; Wed, 6 Mar 2019 08:09:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 97F302CAFD for ; Wed, 6 Mar 2019 08:09:55 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 22A206E0B6; Wed, 6 Mar 2019 08:09:37 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 426 seconds by postgrey-1.36 at gabe; Tue, 05 Mar 2019 10:14:53 UTC Received: from esa3.microchip.iphmx.com (esa3.microchip.iphmx.com [68.232.153.233]) by gabe.freedesktop.org (Postfix) with ESMTPS id D7EC389F2A for ; Tue, 5 Mar 2019 10:14:53 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.58,443,1544511600"; d="scan'208";a="27662189" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 05 Mar 2019 03:07:45 -0700 Received: from NAM02-CY1-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.76.105) with Microsoft SMTP Server (TLS) id 14.3.352.0; Tue, 5 Mar 2019 03:07:45 -0700 Received: from MWHPR11MB1549.namprd11.prod.outlook.com (10.172.54.17) by MWHPR11MB1647.namprd11.prod.outlook.com (10.172.55.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1643.21; Tue, 5 Mar 2019 10:07:43 +0000 Received: from MWHPR11MB1549.namprd11.prod.outlook.com ([fe80::54fe:95ed:b0cf:55a6]) by MWHPR11MB1549.namprd11.prod.outlook.com ([fe80::54fe:95ed:b0cf:55a6%9]) with mapi id 15.20.1665.020; Tue, 5 Mar 2019 10:07:43 +0000 From: To: , , , , , , , , , Subject: [PATCH v2 2/7] drm: atmel-hlcdc: avoid initializing cfg with zero Thread-Topic: [PATCH v2 2/7] drm: atmel-hlcdc: avoid initializing cfg with zero Thread-Index: AQHU0ztG4BRXLYfxrk2A4BtI6D5/UA== Date: Tue, 5 Mar 2019 10:07:43 +0000 Message-ID: <1551780434-4580-3-git-send-email-claudiu.beznea@microchip.com> References: <1551780434-4580-1-git-send-email-claudiu.beznea@microchip.com> In-Reply-To: <1551780434-4580-1-git-send-email-claudiu.beznea@microchip.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: VI1PR0502CA0011.eurprd05.prod.outlook.com (2603:10a6:803:1::24) To MWHPR11MB1549.namprd11.prod.outlook.com (2603:10b6:301:c::17) x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.7.4 x-originating-ip: [94.177.32.154] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: dd1ab314-e2b4-4283-7e6c-08d6a1526860 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(2017052603328)(7153060)(7193020); SRVR:MWHPR11MB1647; x-ms-traffictypediagnostic: MWHPR11MB1647: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; MWHPR11MB1647; 23:D6J8n+GcEgC1qMSW27Z9U8rwoAyiUf7vZt574Vx?= =?iso-8859-1?q?7ouSd5cltFrZi9h?= =?iso-8859-1?q?uiddy76U4EZjtHPJrRMl9qyvYLjICEbCg88Zptzu41YhKPDYqLdOp9lYBuO4?= =?iso-8859-1?q?cPtly7slQM9HK8tNe/5uP+TmjriS0csDnVUT0JKJxr2EBTA6/SjEDyNH1AgG?= =?iso-8859-1?q?pybH7OZDkOOl5Liv1W90uqX0IKzzfHYcm+VDxQVgUlqJhvRT4Cp9m/FHARSb?= =?iso-8859-1?q?q8CEsh4vnqIypBY3rbqhly1DrxNaC38kDdY4hdXGgfC7OUZw4nZjj7BO8Sv/?= =?iso-8859-1?q?e6XaG/ymQhmuBZGKhJpqD59Mr0UH5x2yGVSU3iZzkPmm9+BWOI2oUjMQIrVP?= =?iso-8859-1?q?2Fq70O981RYIPyYc9a2VcG35D42ghV0pSfN3AnsR+MO5M2GrYvHgIQzw90d7?= =?iso-8859-1?q?OU/peGCPaZ6UPbSWdWjS+/LEV0vl5cm588gc7h2OTyXPdiyz9RGl47PpquuD?= =?iso-8859-1?q?2IIcNiWkcRUhA8oslX5vxb3GPzw6kx6bgVgIO/AJbq3SHgWa5eRN9gPFzUtw?= =?iso-8859-1?q?Ii5d8Wpj1HwZcE/8v8aJCABauI4ryuoG1N6II7wv/lXblvsiLy240rUJYrca?= =?iso-8859-1?q?xd4NLZ+jqGEOYE4DdLwDRZmsFcak9YxokTAU8tBcHMCK1z+JkoodJPGVpnw3?= =?iso-8859-1?q?Nyvd28WmPeDl/H5WKu7HOg0YXxdsENPFLc8Og7Rd0XKzMT7w2dwcdlIZYVlu?= =?iso-8859-1?q?dl3PuE0hW6yNp5FC3fPBDTbXVY7hc8OgKBq/7RwVp0TqnnCO+A2M4aukZWc+?= =?iso-8859-1?q?MYAtmSoiKkSp+3SnY6fVeZVuynID+yQCt1isL1J5spfofC1ON6itvvYUuGFN?= =?iso-8859-1?q?qheySo878iyndNz7+DE1N486D7S4Z9EL0ser0G2sNvNkW6CitscReQ9IdiVY?= =?iso-8859-1?q?Ik8EDI09Rrd0pGemrfMwzKenHcd/VKKZUHR+tMmqzj9Eb+/3MlG7PqwBCPky?= =?iso-8859-1?q?kMv0fcEv/cxToSpL0J+1hb/LXul5tmIqH3TchZpa2pLkln2yU4Vkoj9TLveK?= =?iso-8859-1?q?XkFIBG8VmTE+luJQ852RmR4K9QwJ1WMIyb4eQWintZOJLApMvUarKGv7WNEi?= =?iso-8859-1?q?5DsvrwooqHuxJVFYF+3ehMyHo9mIew+PCjaNnxZODiEv33LjL+ISGCiznNPe?= =?iso-8859-1?q?OgV3ubUhuqsjdrHKV3WHajujknygcJoiCAgFKMollpqWODEi54QMSKu6Szzg?= =?iso-8859-1?q?+oNpuCYNMIIlHz6Zo6Gokp/BQqU0FVsRdeYWoAdbhZFfybpoHKYQ8+BpNglB?= =?iso-8859-1?q?nUdyBVF13XmJMgAHk0p748KIcvmCr6mPdRgidfXte2kjjILXqjWk0UbODYdY?= =?iso-8859-1?q?TKNDvgBAS2wtMyCaOQWzRpEXlkBtf6?= x-microsoft-antispam-prvs: x-forefront-prvs: 0967749BC1 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(396003)(39860400002)(346002)(136003)(366004)(199004)(189003)(106356001)(72206003)(3846002)(99286004)(81156014)(52116002)(36756003)(76176011)(14454004)(81166006)(66066001)(8676002)(110136005)(6116002)(105586002)(6486002)(7736002)(5660300002)(8936002)(305945005)(25786009)(102836004)(54906003)(97736004)(316002)(2906002)(7416002)(2501003)(2616005)(186003)(71190400001)(6506007)(386003)(256004)(476003)(68736007)(11346002)(71200400001)(6512007)(2201001)(107886003)(53936002)(446003)(50226002)(486006)(4326008)(86362001)(6436002)(478600001)(14444005)(26005)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR11MB1647; H:MWHPR11MB1549.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: microchip.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: xi2y6bEtQGeZ7/cjrLtOf52mOLRR6dyJ4P7s0XStC/7+oAtiVWfvHTR/GeC0/m7nVmFP5ZG1y541GEA+B1N0rTVkzjVuYiAM6ylRHO6dQpGYea0naN/BMbrHmf7Is+dDhYlB5/TMc2/j0/U1IFubktq8kf6x5AjAe1YST8/pqPpQfifT9pdOSwNnhe7pob/Y1yKDx77KqgxBxjrY2Bav1awcyNJ79srrer58CtSOJXZAxythXtUyG48adEEy9xPIWqqQrY536LWEm/gj+quzJp0C0wcpet5Y82MwoqGAS4NKcM7dXZ/t1ecHaoa8b7yuyZGigto+RdN/ydcloksUU4UZVHHem5GfAyKvRZtnNg3WJR0zWOJ2zFWhNbsiptZBPyNEg7vY6XqeQooeiI+GuJT0h11XFZKh30CZ0YExyDI= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: dd1ab314-e2b4-4283-7e6c-08d6a1526860 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Mar 2019 10:07:43.3501 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR11MB1647 X-OriginatorOrg: microchip.com X-Mailman-Approved-At: Wed, 06 Mar 2019 08:09:28 +0000 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector1-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7zkVpyiWck4iv0VjBI3T28y9cihO2TVG7cnvYn59DdU=; b=bhSAsVO7FOxfLOxKMqq61jTsTdZB5ZFUTm+UFf+kcywHslYko2lkAN6v6eer7XmaZfFxz/9vLa9TC7gzm7wVXOp6N/C0d24FYoV6vTz+AgecbeOEylefIZu07MdstsRUbIxyLv3uDSkX8XbbLn4VNv1vSx5XRucWrmMpUgoKPhw= X-Mailman-Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Claudiu.Beznea@microchip.com; X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Claudiu.Beznea@microchip.com, linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Claudiu Beznea Remove cfg initialization with zero and read state with drm_crtc_state_to_atmel_hlcdc_crtc_state() so that cfg to be initialized with state's output_mode. Signed-off-by: Claudiu Beznea Reviewed-by: Sam Ravnborg --- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c index 957e6d2fb00f..81c50772df05 100644 --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c @@ -138,7 +138,8 @@ static void atmel_hlcdc_crtc_mode_set_nofb(struct drm_crtc *c) regmap_update_bits(regmap, ATMEL_HLCDC_CFG(0), mask, cfg); - cfg = 0; + state = drm_crtc_state_to_atmel_hlcdc_crtc_state(c->state); + cfg = state->output_mode << 8; if (adj->flags & DRM_MODE_FLAG_NVSYNC) cfg |= ATMEL_HLCDC_VSPOL; @@ -146,9 +147,6 @@ static void atmel_hlcdc_crtc_mode_set_nofb(struct drm_crtc *c) if (adj->flags & DRM_MODE_FLAG_NHSYNC) cfg |= ATMEL_HLCDC_HSPOL; - state = drm_crtc_state_to_atmel_hlcdc_crtc_state(c->state); - cfg |= state->output_mode << 8; - regmap_update_bits(regmap, ATMEL_HLCDC_CFG(5), ATMEL_HLCDC_HSPOL | ATMEL_HLCDC_VSPOL | ATMEL_HLCDC_VSPDLYS | ATMEL_HLCDC_VSPDLYE | From patchwork Tue Mar 5 10:07:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 10840521 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9F5341669 for ; Wed, 6 Mar 2019 08:09:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8CE552CAFD for ; Wed, 6 Mar 2019 08:09:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 80C132CBFD; Wed, 6 Mar 2019 08:09:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 789BB2CAFD for ; Wed, 6 Mar 2019 08:09:37 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 75A416E0AB; Wed, 6 Mar 2019 08:09:29 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from esa6.microchip.iphmx.com (esa6.microchip.iphmx.com [216.71.154.253]) by gabe.freedesktop.org (Postfix) with ESMTPS id B7F508972C for ; Tue, 5 Mar 2019 10:07:51 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.58,443,1544511600"; d="scan'208";a="24831768" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa6.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 05 Mar 2019 03:07:50 -0700 Received: from NAM02-CY1-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.76.49) with Microsoft SMTP Server (TLS) id 14.3.352.0; Tue, 5 Mar 2019 03:07:50 -0700 Received: from MWHPR11MB1549.namprd11.prod.outlook.com (10.172.54.17) by MWHPR11MB1647.namprd11.prod.outlook.com (10.172.55.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1643.21; Tue, 5 Mar 2019 10:07:47 +0000 Received: from MWHPR11MB1549.namprd11.prod.outlook.com ([fe80::54fe:95ed:b0cf:55a6]) by MWHPR11MB1549.namprd11.prod.outlook.com ([fe80::54fe:95ed:b0cf:55a6%9]) with mapi id 15.20.1665.020; Tue, 5 Mar 2019 10:07:47 +0000 From: To: , , , , , , , , , Subject: [PATCH v2 3/7] dt-bindings: mfd: add bindings for SAM9X60 HLCD controller Thread-Topic: [PATCH v2 3/7] dt-bindings: mfd: add bindings for SAM9X60 HLCD controller Thread-Index: AQHU0ztIogSP4qcMaU2NRJoCR5xAbQ== Date: Tue, 5 Mar 2019 10:07:47 +0000 Message-ID: <1551780434-4580-4-git-send-email-claudiu.beznea@microchip.com> References: <1551780434-4580-1-git-send-email-claudiu.beznea@microchip.com> In-Reply-To: <1551780434-4580-1-git-send-email-claudiu.beznea@microchip.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: VI1PR0502CA0011.eurprd05.prod.outlook.com (2603:10a6:803:1::24) To MWHPR11MB1549.namprd11.prod.outlook.com (2603:10b6:301:c::17) x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.7.4 x-originating-ip: [94.177.32.154] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 51300ba4-2481-4f69-0061-08d6a1526af3 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(2017052603328)(7153060)(7193020); SRVR:MWHPR11MB1647; x-ms-traffictypediagnostic: MWHPR11MB1647: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; MWHPR11MB1647; 23:VfIeBeeTk/6WSJbykotmj9JSif+iOIOFF1Tfr9f?= =?iso-8859-1?q?ONNTeP8lzhZAZOV?= =?iso-8859-1?q?0xOGU6XNzmkmYnWk5s53IPKg2KzjCYYHL6thjS2vodKA+rZlG85bhCXgo/u7?= =?iso-8859-1?q?g3NtXNImFZWXGIo9RlACrYDO7xFml6Lca9L7pfY/33nuydUhluLNXtLfT+lK?= =?iso-8859-1?q?hgedTz3bV/+YJ93rLokX6p72uxfQk4XKdfuGPZbCX5+p7Gedx/RRlkYpM/uU?= =?iso-8859-1?q?AzyYA8zPQcFKXXTWD4nUwEaOGD5WjIqM4u8jKy6XiKkQIYHgbLh7U09jEEND?= =?iso-8859-1?q?BdL7O7GClIgtqknEAb6pewBBxDnEtljkwNtl5tUjcR+lo1AtQ5We5mcwm0uk?= =?iso-8859-1?q?4zVTzQM7UI0tQ4gxdv52IEK4IcyMqNS+u1X14l8DX3EeVNLNAKzv26nQqR7F?= =?iso-8859-1?q?oOveLHRJSkT2MBg7L1BuQL5gZTpROEfWHVE6wA7ltScGdesxJAe6bpn9bg2N?= =?iso-8859-1?q?wnc27Ss8foMz8K8Ob21Qwmf8vtOr78dtBVzvjsrrGO8P1dvOQyGZzJ6Anukz?= =?iso-8859-1?q?cdNAd1cate77ldRj35ZE+C8cnDyPfzL8HRwI11nL3I4ag4gAcPQ/oy0gHhcf?= =?iso-8859-1?q?FTo1tjWnze96B+PJ6OJDpXOxaIqWnuCsKVhqpq44nf8TUrPhozZOMEjXeBnh?= =?iso-8859-1?q?+jiG5Qry/2zdD7a2gI4gOpfYogoMzbEVD/7HizOKTQdkeUyW6YHgWDF/afZX?= =?iso-8859-1?q?BfWNl8h2Mmh0O0ccJn+h/SGJjiGMAfVXsP/jSL/JLA19EgEm+BsbN+7T8gvy?= =?iso-8859-1?q?+jeUwZoa83b7vRmwSFgm6F0XwKAd2D13w2yaylhJVuuVkgh8pPHoO/nzYFqh?= =?iso-8859-1?q?5vKH9/nnvThuB60hRkes4SwgEueuESVkC1tdzorh2fOJaUgW5B0IayLhSxUR?= =?iso-8859-1?q?nOGY4c40kE4Md3sLeCg4kpnpqt0UwoqvCZgE3v7M325MLbDpW1uAx884/KNu?= =?iso-8859-1?q?ZIk8oJk9wxSB/IfNlUJVGvVuLWqWNYvIQ/YLCnyVec0wtPwI8eKt7nBQt4n1?= =?iso-8859-1?q?OBH91ojCgdMPygBRc9Dh8+0/qr+M1NjsFu0QbSAR4b5/hNrfQIJK2RAfE6dt?= =?iso-8859-1?q?E/+/cqdKO44064OMTZDvA7HEVC2dLtUDZWASyQhpMghf5anrHKfFovKU3e6P?= =?iso-8859-1?q?jdB94VbBXGT1yA2+DT/VTfzLYMWRspgFYMbu3H6F+2HwMdVhtIcRetq6oWwr?= =?iso-8859-1?q?NSYxx5izNO1qBfP5zTT8Nq6OghwtTUBYIPr723nxj8NCmToTj4OMwek11/Qp?= =?iso-8859-1?q?nf4xzZVBBqWxqKm/9Agj8aC7I+WahItCcGUaP+Y/kZXr6a3smo0igtD3nKiz?= =?iso-8859-1?q?2fodIW1jZpzbE53C8lVLKLC/SYncvL?= x-microsoft-antispam-prvs: x-forefront-prvs: 0967749BC1 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(396003)(39860400002)(346002)(136003)(366004)(199004)(189003)(106356001)(72206003)(4744005)(3846002)(99286004)(81156014)(52116002)(36756003)(76176011)(14454004)(81166006)(66066001)(8676002)(110136005)(6116002)(105586002)(6486002)(7736002)(5660300002)(8936002)(305945005)(25786009)(102836004)(54906003)(97736004)(316002)(2906002)(7416002)(2501003)(2616005)(186003)(71190400001)(6506007)(386003)(256004)(476003)(68736007)(11346002)(71200400001)(6512007)(2201001)(107886003)(53936002)(446003)(50226002)(486006)(4326008)(86362001)(6436002)(478600001)(26005)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR11MB1647; H:MWHPR11MB1549.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: microchip.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 9lRHegfMQWU48mWlHW24H/0U1xtRujjDaabY1AuWvqUbPsDTG+ibq4AzFHqdQHLMws64aZEYMG2eAAo4uQQu4yd/RsYkspejRapt6ztsHJg1fYldMCE15gDAKBcfLqDRTvT1zQW7IHXsPu7BFPYexhVlwboUg8W6iTwGKwobscPuLOhU5FJ7+KVqk0A05IrVG+DQkUvEWac/DETdbpvZB/gZJSBoTaZQkd5rcjbbXgVtqFopthXCoUNzBaqUYlfHIW9/dMApfOvHbXwCqDDWPyTId7jKBfyFnAg+UeCOAqWZcUcsybQqfX3RwmMGAE535TH1H+DyI7jlUseUbz9jZ4kJb5qrcA2+66K/ygurKiYyHcOdm6xjItvTXrEhwKCRXjlRL3xYzNbpEpKbvlXZQyF0kPRVfVH1oavWc71cMVQ= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 51300ba4-2481-4f69-0061-08d6a1526af3 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Mar 2019 10:07:47.8558 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR11MB1647 X-OriginatorOrg: microchip.com X-Mailman-Approved-At: Wed, 06 Mar 2019 08:09:28 +0000 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector1-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7DCYhMwJcYpP1s+mG1n8Bq9kKtKO49eT9uS2+vU2zuo=; b=DnwpNLG2dvNzRHFx5sqBVYhXhSurNyYZhw5XVcSW/fopdmfuyUUTx9XZ1Ck5MAXninFsDuBM9yxq2l2kCdvILmPwPPBZbxKDuAkxP+Rw1FDhfyYkMg0EJj7Ga2pqsx/xE36GcjP+I2TblABWoLOc6Hv1jvv8maxh4Lruf8TRDOk= X-Mailman-Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Claudiu.Beznea@microchip.com; X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Claudiu.Beznea@microchip.com, linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Claudiu Beznea Add new compatible string for the HLCD controller on SAM9X60 SoC. Signed-off-by: Claudiu Beznea Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/mfd/atmel-hlcdc.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mfd/atmel-hlcdc.txt b/Documentation/devicetree/bindings/mfd/atmel-hlcdc.txt index 3f643ef121ff..5f8880cc757e 100644 --- a/Documentation/devicetree/bindings/mfd/atmel-hlcdc.txt +++ b/Documentation/devicetree/bindings/mfd/atmel-hlcdc.txt @@ -7,6 +7,7 @@ Required properties: "atmel,sama5d2-hlcdc" "atmel,sama5d3-hlcdc" "atmel,sama5d4-hlcdc" + "microchip,sam9x60-hlcdc" - reg: base address and size of the HLCDC device registers. - clock-names: the name of the 3 clocks requested by the HLCDC device. Should contain "periph_clk", "sys_clk" and "slow_clk". From patchwork Tue Mar 5 10:07:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 10840523 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EAFBA1575 for ; Wed, 6 Mar 2019 08:09:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D75B12CAFD for ; Wed, 6 Mar 2019 08:09:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CB0112CBDB; Wed, 6 Mar 2019 08:09:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 890F32CC68 for ; Wed, 6 Mar 2019 08:09:39 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 90B936E0AF; Wed, 6 Mar 2019 08:09:29 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from esa3.microchip.iphmx.com (esa3.microchip.iphmx.com [68.232.153.233]) by gabe.freedesktop.org (Postfix) with ESMTPS id D70B389F5B for ; Tue, 5 Mar 2019 10:15:01 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.58,443,1544511600"; d="scan'208";a="27662201" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 05 Mar 2019 03:07:55 -0700 Received: from NAM02-CY1-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.76.38) with Microsoft SMTP Server (TLS) id 14.3.352.0; Tue, 5 Mar 2019 03:07:54 -0700 Received: from MWHPR11MB1549.namprd11.prod.outlook.com (10.172.54.17) by MWHPR11MB1647.namprd11.prod.outlook.com (10.172.55.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1643.21; Tue, 5 Mar 2019 10:07:52 +0000 Received: from MWHPR11MB1549.namprd11.prod.outlook.com ([fe80::54fe:95ed:b0cf:55a6]) by MWHPR11MB1549.namprd11.prod.outlook.com ([fe80::54fe:95ed:b0cf:55a6%9]) with mapi id 15.20.1665.020; Tue, 5 Mar 2019 10:07:52 +0000 From: To: , , , , , , , , , Subject: [PATCH v2 4/7] mfd: atmel-hlcdc: add compatible for SAM9X60 HLCD controller Thread-Topic: [PATCH v2 4/7] mfd: atmel-hlcdc: add compatible for SAM9X60 HLCD controller Thread-Index: AQHU0ztLr+BS5iaIUki6hLCocD7pbQ== Date: Tue, 5 Mar 2019 10:07:52 +0000 Message-ID: <1551780434-4580-5-git-send-email-claudiu.beznea@microchip.com> References: <1551780434-4580-1-git-send-email-claudiu.beznea@microchip.com> In-Reply-To: <1551780434-4580-1-git-send-email-claudiu.beznea@microchip.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: VI1PR0502CA0011.eurprd05.prod.outlook.com (2603:10a6:803:1::24) To MWHPR11MB1549.namprd11.prod.outlook.com (2603:10b6:301:c::17) x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.7.4 x-originating-ip: [94.177.32.154] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b034f4a1-0913-4f36-4520-08d6a1526dcf x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(2017052603328)(7153060)(7193020); SRVR:MWHPR11MB1647; x-ms-traffictypediagnostic: MWHPR11MB1647: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; MWHPR11MB1647; 23:GK04IigYwTsybLcWzuE7WonZrUvHR8skz34jQB7?= =?iso-8859-1?q?xZ3UI4RQ+MynlM+?= =?iso-8859-1?q?icCfusb8GDTYxAIu7ezIjlRRPGMjm25l+2dGoulNsy1piwEWd9pTKTxGwEOb?= =?iso-8859-1?q?TXLrhPyyFbg6/Zdrg+5+mr/w8mclbt/mOLgqbCVclJxm/4/h1ncaszLEEUM0?= =?iso-8859-1?q?CcAq0KZ40ztyIV8OauNWCGeaaidtyihqMRghB2dPgY0hnqHVd3PUjqz0QUg0?= =?iso-8859-1?q?nwWb75UoL4nGYEPRt9ezGAMUtbdWAaTQfdyxIUB3o2H+1PzFht71ju03D2sG?= =?iso-8859-1?q?me5bEcL60cP0yKR0berwtnIgXLpXJxp/BzVqDYOwGxtjKabrGDBVJqe1VZXo?= =?iso-8859-1?q?/N64n4Zd5ML4tuInEsVb8DMTs2Jn/ymrTFo74K+n9IFIFnx0qDm3+cPYzuJ0?= =?iso-8859-1?q?OuYXx4ToAjSphTKY1sUYTxRyhql0Jflfk074fCihMT4NHF+mMeik7vusIDmq?= =?iso-8859-1?q?MYbkkPgi4EkGqHK522d2OGaMK9fxfLWD3UTea4DpyK+yQtvqDtfhMbupPjJ7?= =?iso-8859-1?q?JsCJVDEMUWlo0ZRsxLMlUe9cWkcHXBh/Wkx/PbjNFilEOF3SpJd6s7jqW6yx?= =?iso-8859-1?q?8li+o+I7aWYbqikk5ALToUV+2GBCEZ58cigl7ulQnBNXOqzMDNP5C72BOvDJ?= =?iso-8859-1?q?4U7bV5CtBGhCikgEra9E0jse62XaKjg+GNqTUksORkjWBkT76/77pZyyZf2H?= =?iso-8859-1?q?IkGYhSnMDk9K9/TRMKxvJfFpt7jqc/nBztQQZoSuK9QLQFghJpG40TyHsRkm?= =?iso-8859-1?q?4IRaNAOBz+8+VvLZPdOBPYT2G3YwqgQFTcNpKmFVfVwCyjfs3uYneJx6YK1n?= =?iso-8859-1?q?Dw+0Adh9EXimKMqjcvZnptoLUJqSGjGio0QdmVkBNNWxBkJFiEswZME0A3wp?= =?iso-8859-1?q?7iF4TqVllQpbNqVc3q/qUgibrk4RXCoXX+6ruo803zCihf5qKJ/TB2x1wdxs?= =?iso-8859-1?q?XIpsx5mj8/Cm+4hCay2nO6NBIS0nHunu+EVBDcDw+LKcp9AZD+nof6sMWErR?= =?iso-8859-1?q?/doka82XPSNTJWWOH8uG9lN05uGEKTqPoJ4xYZ3P2mgPIUR28k27ZBuDMf0M?= =?iso-8859-1?q?UfADTUaMzipW9gqM9S02KzEjLus+n+WHcH1x7K07BMzxcLyRmrV38JGWKwxy?= =?iso-8859-1?q?gEin+SNegvEfjz3gX3A+wxpbs+DgdaU7qtOE+NLoZZ/n5HamhPDh3xtx6ylq?= =?iso-8859-1?q?pS0IjfA0/C//tQ4QjO53t3JjM8tpxzRcRSgMr4vnM15ST80johPB4J8MQ7eI?= =?iso-8859-1?q?pelwh8Sb6mOMFsRqzd/+6Ofh5rjO/3+v3lwWzpzjRICNNSkAaR10dgM/TSlU?= =?iso-8859-1?q?xdEdMh2vWonz7fv8WonLyQ+L1fBgZA?= x-microsoft-antispam-prvs: x-forefront-prvs: 0967749BC1 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(396003)(39860400002)(346002)(136003)(366004)(199004)(189003)(106356001)(72206003)(4744005)(3846002)(99286004)(81156014)(52116002)(36756003)(76176011)(14454004)(81166006)(66066001)(8676002)(110136005)(6116002)(105586002)(6486002)(7736002)(5660300002)(8936002)(305945005)(25786009)(102836004)(54906003)(97736004)(316002)(2906002)(7416002)(2501003)(2616005)(186003)(71190400001)(6506007)(386003)(256004)(476003)(68736007)(11346002)(71200400001)(6512007)(2201001)(107886003)(53936002)(446003)(50226002)(486006)(4326008)(86362001)(6436002)(478600001)(26005)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR11MB1647; H:MWHPR11MB1549.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: microchip.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: VfxHHWhqZZY65kz95Ff0WS6AepOGF67LLanSFkgfx5XcjahpFpFJKgJr1BFfKPLYh3rrkFbwRztlfuupgYtdZ4BNpl5Tu4q6tPKr41zb2E4XFpI7KzHU/+JRhkJWRedurVJJ0el1PE9lQbN+jFpqX90wQbxDmhpIe1wPhoDwv5GFy/y6xOkjUg0J3WH675lJuSsHDYAQFUUIfXNsg1sc3+/haK3XoApLe8x2L2dwGCvtBXA6RvfmEqiQ+TTvQRhNN/EZJaHlLXGH35sTTdPImIVPBNnxsJCeIsvxzJPZ/xAaMl50zsliB2lnptuTuhk75Wk9o+WFU9HHWQRNva4MpweS0ESDssImMYTU7i3fhCZ/jCoYYq2TNL0508tLbAbMMF7uYfmRV5HTKELb08N4PyNukgUcp4oEcutDgQclvE4= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: b034f4a1-0913-4f36-4520-08d6a1526dcf X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Mar 2019 10:07:52.6458 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR11MB1647 X-OriginatorOrg: microchip.com X-Mailman-Approved-At: Wed, 06 Mar 2019 08:09:28 +0000 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector1-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xwSGtbK7YlE0MWXaYss8ytXvS2vK4pfauPtmUYIt3K0=; b=S4OiWjOTQQUS/r97f0/cTv5NqLzXQM/dbqcgXGbsKZebZyfgycz2y0d4CSi5UteF7GuNHbHLufmQ2f7X+hLhE7hgvMhd8h78aYxrT8QB1yIKu/Zgy7vYsN88FbGmOQ+vLPRZLRxsHsV95WMzYMoTrkNRbZYMM+8ki5m+HZtQag0= X-Mailman-Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Claudiu.Beznea@microchip.com; X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Claudiu.Beznea@microchip.com, linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Claudiu Beznea Add compatible for SAM9X60 HLCD controller. Signed-off-by: Claudiu Beznea --- drivers/mfd/atmel-hlcdc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mfd/atmel-hlcdc.c b/drivers/mfd/atmel-hlcdc.c index e82543bcfdc8..35a9e16f9902 100644 --- a/drivers/mfd/atmel-hlcdc.c +++ b/drivers/mfd/atmel-hlcdc.c @@ -141,6 +141,7 @@ static const struct of_device_id atmel_hlcdc_match[] = { { .compatible = "atmel,sama5d2-hlcdc" }, { .compatible = "atmel,sama5d3-hlcdc" }, { .compatible = "atmel,sama5d4-hlcdc" }, + { .compatible = "microchip,sam9x60-hlcdc" }, { /* sentinel */ }, }; MODULE_DEVICE_TABLE(of, atmel_hlcdc_match); From patchwork Tue Mar 5 10:07:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 10840525 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A52D01669 for ; Wed, 6 Mar 2019 08:09:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 93E212CAFD for ; Wed, 6 Mar 2019 08:09:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 884222CBFD; Wed, 6 Mar 2019 08:09:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 471B32CAFD for ; Wed, 6 Mar 2019 08:09:51 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9AAEF6E0B8; Wed, 6 Mar 2019 08:09:41 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from esa3.microchip.iphmx.com (esa3.microchip.iphmx.com [68.232.153.233]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9C0FD89F2A for ; Tue, 5 Mar 2019 10:15:04 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.58,443,1544511600"; d="scan'208";a="27662207" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 05 Mar 2019 03:08:00 -0700 Received: from NAM02-CY1-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.76.105) with Microsoft SMTP Server (TLS) id 14.3.352.0; Tue, 5 Mar 2019 03:07:59 -0700 Received: from MWHPR11MB1549.namprd11.prod.outlook.com (10.172.54.17) by MWHPR11MB1647.namprd11.prod.outlook.com (10.172.55.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1643.21; Tue, 5 Mar 2019 10:07:57 +0000 Received: from MWHPR11MB1549.namprd11.prod.outlook.com ([fe80::54fe:95ed:b0cf:55a6]) by MWHPR11MB1549.namprd11.prod.outlook.com ([fe80::54fe:95ed:b0cf:55a6%9]) with mapi id 15.20.1665.020; Tue, 5 Mar 2019 10:07:57 +0000 From: To: , , , , , , , , , Subject: [PATCH v2 5/7] pwm: atmel-hlcdc: add compatible for SAM9X60 HLCDC's PWM Thread-Topic: [PATCH v2 5/7] pwm: atmel-hlcdc: add compatible for SAM9X60 HLCDC's PWM Thread-Index: AQHU0ztO/XA/ucaOTEyHzcBvHIJYzw== Date: Tue, 5 Mar 2019 10:07:57 +0000 Message-ID: <1551780434-4580-6-git-send-email-claudiu.beznea@microchip.com> References: <1551780434-4580-1-git-send-email-claudiu.beznea@microchip.com> In-Reply-To: <1551780434-4580-1-git-send-email-claudiu.beznea@microchip.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: VI1PR0502CA0011.eurprd05.prod.outlook.com (2603:10a6:803:1::24) To MWHPR11MB1549.namprd11.prod.outlook.com (2603:10b6:301:c::17) x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.7.4 x-originating-ip: [94.177.32.154] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 204ebf02-85d9-4e9c-4438-08d6a152707d x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(2017052603328)(7153060)(7193020); SRVR:MWHPR11MB1647; x-ms-traffictypediagnostic: MWHPR11MB1647: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; MWHPR11MB1647; 23:ZJQrA1LdURKRxp49Ny4T8ZIQ8/JKqrWAqvrTv3s?= =?iso-8859-1?q?faTQTI3ReyNtsbZ?= =?iso-8859-1?q?+JqoMzd+HGUQYP9Q5OYaYuX7+eV1QddxDINUm8D3OKkpNvDPXZeWyyE075QS?= =?iso-8859-1?q?/+0WX1AHQxWn5ZZhs4Ut5BaIPMEDE+p0Y6vI0yXTk3t+rnoDWlV1PmECDZx3?= =?iso-8859-1?q?An5rt6JL6T5wSTrJwe3edVZOprmUjz84lzXWNrp5ARz0Md4pftP7NNAjbzYq?= =?iso-8859-1?q?8RfVo23FBkHz5RdonUpwBgpwexNHYj12rIV3MgxyX2Wh1HgbiNKHUWWhX21F?= =?iso-8859-1?q?q1moT5mRJQnHoPp5MemOY7XgTLPNNLT9hgzVRP4QMK5gR63vL5iO+tdqjaz7?= =?iso-8859-1?q?LWgpZlCIN3olHCZBd0MZk8ehemITtHsymsNLvJ65MfBt7INS2LC/l1rXM/ny?= =?iso-8859-1?q?9UXM12jX2QeUdyM7ZNawNmWmcVBh8g9AO7wijEt1mbrYQHOYWcze6HKcThhF?= =?iso-8859-1?q?ipBOdPlN4zU8Re8rQ5Z/1CQUn0LHo2XXQn+A1DsHWzbR2iHoJlqYjAI9gFN5?= =?iso-8859-1?q?e1Yl5rDiLPgqDvknbREw1dUhTmZFGlHM7z7ERL4c71tq3qzGpAQVVRUrtwlG?= =?iso-8859-1?q?9m7JI9Gz2C0jGB5QEjQuEghSVLJ3Svzq8iBGJ5mQSCaeJMkteTuMRfmRiugG?= =?iso-8859-1?q?3Hqpv+aBD6DBhKgERo5GgJxARF14NqfouogZdJqFB36Y5nPTjRftXZmKysl1?= =?iso-8859-1?q?f5S5lINLOxMOjIR2CM1omy7eIX7OmuCWDXgeOyCDS913cEkNQCSTHUMGlq8C?= =?iso-8859-1?q?j1WwuujW4b8rAtX6o7g6BjV3Y3VWuvJmA+MSVJS5stLmGLMPlGk3zdjHzYxu?= =?iso-8859-1?q?YcOMWZ1Wyw57gb3MJyREvwBr93N3eyff8kKgykaf7abJ8UnhkopQ5tqhGL5r?= =?iso-8859-1?q?vNFJ4DHR3WUf01GZ9fbVULyehRLCngRC7LE30asjpaHXYG0WmeuOkzJr5s6i?= =?iso-8859-1?q?YyL/P119NhyhuI1F4qTKUOTDLZ0DCoA0rQlyX/CGeaLH8O/7WzLHHkP2K+ai?= =?iso-8859-1?q?OhygUZ/O1MU2GawVDEhZ7YYfFGu1lghz4WBDvk69ODQOd1xD9TAjwDlJry4f?= =?iso-8859-1?q?8F6mz+Q6jdWCGJGA+ehjhS/Xwo/ULEE2OuOSuyP1Hi0IphBcRka3XN/i+uDa?= =?iso-8859-1?q?9wC+PbqorNoVSl8hn1U+OswXMnEn87QqEtHpfvHUIAthw6iClRjBcTi2zM/J?= =?iso-8859-1?q?k3nGbghLFXWpj2hQ0t/YbGwg5+CwWEOfacFtchztxQLA7mROsl/LZhNvAPJS?= =?iso-8859-1?q?CV7ux9epvP4yDNlvK5Ewawv0U0g/W/9kH2rQiJH2hmxYL9fZM/UEpzVNdW4/?= =?iso-8859-1?q?Duix/Xjemksfgh3YxZk1npjgwKc8Bl?= x-microsoft-antispam-prvs: x-forefront-prvs: 0967749BC1 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(396003)(39860400002)(346002)(136003)(366004)(199004)(189003)(106356001)(72206003)(4744005)(3846002)(99286004)(81156014)(52116002)(36756003)(76176011)(14454004)(81166006)(66066001)(8676002)(110136005)(6116002)(105586002)(6486002)(7736002)(5660300002)(8936002)(305945005)(25786009)(102836004)(54906003)(97736004)(316002)(2906002)(7416002)(2501003)(2616005)(186003)(71190400001)(6506007)(386003)(256004)(476003)(68736007)(11346002)(71200400001)(6512007)(2201001)(107886003)(53936002)(446003)(50226002)(486006)(4326008)(86362001)(6436002)(478600001)(26005)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR11MB1647; H:MWHPR11MB1549.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: microchip.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 0SSp634xCIvfUEC303a7jTIiOq/qUrExccqxTy8kzL/8k+9qNjlr7nTtpCDbM2m1D47Xbnwso6hGt64YLMy9lW/9YQRAmI7HpaX7tQQpm3Mikja6KPOpcZyjKjVM4FMqJDYrw2oOP8nd/GPEQrf5SGhtKEyw4NWGrsIw4bCgX4/vIpGdWpfeeLvfI9C9sqYUTLJVgTKqy607j2XnsPeAHX5DMWZOpDmMlNr/F3z5aU4CWMX3lOpZxFEYt3Zx4JzZYgsa14ZrtqSDrkuT3bpk9yFo7ktiMs6y3CKDJAPgOt789V46FT2LD3h0x7u5X6nKJFsd6+5IMRRcj2sWR8XMd2O13XvQSau2PO40fM7nHf3Gt0pTK8GWoH0jr2wCbQuY5mTte/SKyJjVxzy/j0wRp8AGr+REa3QhGJQJgDmflN4= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 204ebf02-85d9-4e9c-4438-08d6a152707d X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Mar 2019 10:07:57.5159 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR11MB1647 X-OriginatorOrg: microchip.com X-Mailman-Approved-At: Wed, 06 Mar 2019 08:09:28 +0000 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector1-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ea+EBmSvyJnwQOyzXeojEjHa9w+k/SkMz8JYNE+A73o=; b=JaR3WV/HWiWlr7BXrAG0ews33dEXtF9f0Z28r9260FEj3LC40KVgi9f7PgJRyuj08051jWt52o1eXtqU32pukSisYQjc4lb/Q9VyAPmlfAQYV3fmMqML/j/yK0VCBy/inC6gGjeO/3XzvbHQzeGJuPvRmGB4ziNBqLwq3eaZR/c= X-Mailman-Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Claudiu.Beznea@microchip.com; X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Claudiu.Beznea@microchip.com, linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Claudiu Beznea Add compatible string for SAM9X60 HLCDC's PWM. Signed-off-by: Claudiu Beznea Acked-by: Thierry Reding --- drivers/pwm/pwm-atmel-hlcdc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/pwm/pwm-atmel-hlcdc.c b/drivers/pwm/pwm-atmel-hlcdc.c index 54c6633d9b5d..331ca0233d9e 100644 --- a/drivers/pwm/pwm-atmel-hlcdc.c +++ b/drivers/pwm/pwm-atmel-hlcdc.c @@ -246,6 +246,9 @@ static const struct of_device_id atmel_hlcdc_dt_ids[] = { .compatible = "atmel,sama5d4-hlcdc", .data = &atmel_hlcdc_pwm_sama5d3_errata, }, + { + .compatible = "microchip,sam9x60-hlcdc", + }, { /* sentinel */ }, }; MODULE_DEVICE_TABLE(of, atmel_hlcdc_dt_ids); From patchwork Tue Mar 5 10:08:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 10840517 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5C72E1669 for ; Wed, 6 Mar 2019 08:09:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4A8252CAFD for ; Wed, 6 Mar 2019 08:09:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3E91F2CBFD; Wed, 6 Mar 2019 08:09:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DC78C2CAFD for ; Wed, 6 Mar 2019 08:09:32 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7D3A66E0AD; Wed, 6 Mar 2019 08:09:29 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from esa1.microchip.iphmx.com (esa1.microchip.iphmx.com [68.232.147.91]) by gabe.freedesktop.org (Postfix) with ESMTPS id 14B3089BF1 for ; Tue, 5 Mar 2019 10:08:10 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.58,443,1544511600"; d="scan'208";a="28727151" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES128-SHA; 05 Mar 2019 03:08:09 -0700 Received: from NAM02-CY1-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.76.37) with Microsoft SMTP Server (TLS) id 14.3.352.0; Tue, 5 Mar 2019 03:08:08 -0700 Received: from MWHPR11MB1549.namprd11.prod.outlook.com (10.172.54.17) by MWHPR11MB1647.namprd11.prod.outlook.com (10.172.55.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1643.21; Tue, 5 Mar 2019 10:08:06 +0000 Received: from MWHPR11MB1549.namprd11.prod.outlook.com ([fe80::54fe:95ed:b0cf:55a6]) by MWHPR11MB1549.namprd11.prod.outlook.com ([fe80::54fe:95ed:b0cf:55a6%9]) with mapi id 15.20.1665.020; Tue, 5 Mar 2019 10:08:06 +0000 From: To: , , , , , , , , , Subject: [PATCH v2 6/7] drm: atmel-hlcdc: enable sys_clk during initalization. Thread-Topic: [PATCH v2 6/7] drm: atmel-hlcdc: enable sys_clk during initalization. Thread-Index: AQHU0ztTj0DTJY9F7UiMYZcuK/OaDw== Date: Tue, 5 Mar 2019 10:08:06 +0000 Message-ID: <1551780434-4580-7-git-send-email-claudiu.beznea@microchip.com> References: <1551780434-4580-1-git-send-email-claudiu.beznea@microchip.com> In-Reply-To: <1551780434-4580-1-git-send-email-claudiu.beznea@microchip.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: VI1PR0502CA0011.eurprd05.prod.outlook.com (2603:10a6:803:1::24) To MWHPR11MB1549.namprd11.prod.outlook.com (2603:10b6:301:c::17) x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.7.4 x-originating-ip: [94.177.32.154] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c8a74836-6dd4-413a-b04b-08d6a15275fc x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(2017052603328)(7153060)(7193020); SRVR:MWHPR11MB1647; x-ms-traffictypediagnostic: MWHPR11MB1647: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; MWHPR11MB1647; 23:BVJdaMVkJizzHuljx4ewjOF/Knbj5Mm/UkDRlvs?= =?iso-8859-1?q?Y/0zfKrA3X3ZRgK?= =?iso-8859-1?q?Y5irBufga/ONMou2VLSk/3QPgvslxpvpBDX/ygWdt3cuPUAhROptOtMe2iFR?= =?iso-8859-1?q?2MLjzDBXYfnXygUFTfTPUiFwdvs5CKAawv4hYfYk79u/d3eOZSdVtY7XISDx?= =?iso-8859-1?q?+FcQ6pN2imlyDVxHxqjAjjHOA+oTG3UV7f24DCuxQ1BOhQjdGjk+vx77sf6l?= =?iso-8859-1?q?K8xG5Cw4R1tZfAdtsvWTeGlNBI4P82LZivaCIRaLRN05mc1vEmImWPU5fWPy?= =?iso-8859-1?q?YUDGM6oGpjVKR0ncRUh2hHrWb6QllrJbfFh3U1kRwiwQuggsdqCm9SFAveFN?= =?iso-8859-1?q?+VZHwGDYyFjEZiWAwmCKdFNnh1DBEnmuzH1MDlulbdupW1tKlSo1jl650JPk?= =?iso-8859-1?q?jMuoEsnJQ0QPOsGueL/1O9J2uf6oF8FoDQE8OGgM9r2+/moOJs37MxWtG225?= =?iso-8859-1?q?gjF7AYX/xHY1zYzKC02II+ASsrw3HKNy6kRje/+3KmFiVGTz6imOH3Ea+OEo?= =?iso-8859-1?q?KvImEpAxkpyyVZDDOJNd04LtaS+M5Uxl9Bghfh3PKTlPXtyXe5xkKi2UgO7H?= =?iso-8859-1?q?GZFw88Db/VlxHRCzJTTvgR9WxMKovxUjz2Iv3U10ktGdWi65ZQC0oIUD8tvh?= =?iso-8859-1?q?blhgF+CHrIw84dz8ouvKeY7CDHOtcQcb3ZSHd0JRqhE/6Yetg0qRitqiJGbl?= =?iso-8859-1?q?ZnwuNFobxZ787WUwdTaz0koi1rdpyQ1Hu3S9IuwCLQYVZWkyeAAZZZlrYjG+?= =?iso-8859-1?q?vCXYmRYUtkjBmu8AVLwF48AH1TuUyMICv/8LYr1F87Ma/qBBMg+IXtWDZxrJ?= =?iso-8859-1?q?/LldEPtC2yNFbI/j3DFFk5PhbfdOwnEE1/lEWjgESWtVd3FE21lrVMSiQU1o?= =?iso-8859-1?q?0n8zPDJOEdnjpON8zTz5ECJfYkdMQS5Iq3/xxWrVmjzaohYP/+C8L7Gf9qDb?= =?iso-8859-1?q?9y/jFo1/5c9U3LOpdz/DutKAscH0l2twjIyAvndnXYcK3UfRYmu2BHIUPEUK?= =?iso-8859-1?q?hKoiBUdpLecRrYxJ50kngitmeLMbCZhoAiS0QDoMhrJNpirn9ukhsunqJ+XB?= =?iso-8859-1?q?oGu1v0+zf6iEwHFu1Yw7wllifSvSqi6p3peKUczFMc1IJlZhb7zpfCQPEPwl?= =?iso-8859-1?q?K/Ffp4BPoUROxTY9wHUGqNBi4uiZOELPxbpA3FnlJbOv0GW35o3G7UswCY3T?= =?iso-8859-1?q?0uBU8wWZG171hKPH1rEW7XEkCftyiOeR+GekRiygwdr7PLbk+G1UQ9yEAVNd?= =?iso-8859-1?q?px7kTNeHgC+mw3pkVyjmNvF15Kz940adE0wlcmJPz6nG8OYf1kihQUa0AcXg?= =?iso-8859-1?q?Md/kYRypGt8TwQMTxNJdwBjzVtC/W0?= x-microsoft-antispam-prvs: x-forefront-prvs: 0967749BC1 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(396003)(39860400002)(346002)(136003)(366004)(199004)(189003)(106356001)(72206003)(3846002)(99286004)(81156014)(52116002)(36756003)(76176011)(14454004)(81166006)(66066001)(8676002)(110136005)(6116002)(105586002)(6486002)(7736002)(5660300002)(8936002)(305945005)(25786009)(102836004)(54906003)(97736004)(316002)(2906002)(7416002)(2501003)(2616005)(186003)(71190400001)(6506007)(386003)(256004)(476003)(68736007)(11346002)(71200400001)(6512007)(2201001)(107886003)(53936002)(446003)(50226002)(486006)(4326008)(86362001)(6436002)(478600001)(14444005)(26005)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR11MB1647; H:MWHPR11MB1549.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: microchip.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: HlP00Fi6Cby7UCgqkDLn9JYuuA+pz3BMZv9ayEAuoAA33IfRwDdjDocvB3VKsXkmmDyp73i0PptxzYNVfB+olp+3+3uQeR5atkmgxZy0xjQCg5DDkAqzRlfigvUKX9cexibsFFfsjHiHotVAW5/U59++s8a25C/lRaqJazwg2tF9pyo5vcIByBdzV9oKZbRw1YlqLdOf4bwZgejT1DeiDha0BO6QbMJcs+c1PAGcZe4MaZra6iT6mAtkmCRHAYmA5Q5YcmIH8LRh0j9fOTQugFkDxRqyHhz5OC9scuoOLEW7NjpTR27AryyFtQL5uW0v6IDLNuRQcjGFA7720KgaAFBA/hOkV/Onf5cMHA5ll3QcTIm0Nw2oeLXaQj8V3oLKw/4yDhXyO5bTNR95z+RhdZTDBT9efIC33MxO7Yn32nw= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: c8a74836-6dd4-413a-b04b-08d6a15275fc X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Mar 2019 10:08:06.2572 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR11MB1647 X-OriginatorOrg: microchip.com X-Mailman-Approved-At: Wed, 06 Mar 2019 08:09:28 +0000 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector1-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=f2LlApE9KLEwvJ1Xgh4TXz5Ls7//fcDvuKAIwlZx2AU=; b=umEs3RHrp3THL2GfaNgs6SMWdxbRQYwcTeKAX+WQ/ofYnVV4V5rf0oFoIbvFK0sqT331vhngXlzbBVVzZL6kVnVCDeOjhadYhmVtMnY/ESKozUrNeYyrJTYJHTvRmz3BoQgg/bIp3RwvPyRcx/5IT83G5mGhAuHVZuZ+z7CeM3k= X-Mailman-Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Claudiu.Beznea@microchip.com; X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Sandeep.Sheriker@microchip.com, Claudiu.Beznea@microchip.com, linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Sandeep Sheriker Mallikarjun For SAM9X60 SoC, sys_clk is through lcd_gclk clock source and this needs to be enabled before enabling lcd_clk. Signed-off-by: Sandeep Sheriker Mallikarjun [claudiu.beznea@microchip.com: add fixed_clksrc checks] Signed-off-by: Claudiu Beznea --- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c index 0be13eceedba..8bf51f853721 100644 --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c @@ -625,10 +625,18 @@ static int atmel_hlcdc_dc_load(struct drm_device *dev) dc->hlcdc = dev_get_drvdata(dev->dev->parent); dev->dev_private = dc; + if (dc->desc->fixed_clksrc) { + ret = clk_prepare_enable(dc->hlcdc->sys_clk); + if (ret) { + dev_err(dev->dev, "failed to enable sys_clk\n"); + goto err_destroy_wq; + } + } + ret = clk_prepare_enable(dc->hlcdc->periph_clk); if (ret) { dev_err(dev->dev, "failed to enable periph_clk\n"); - goto err_destroy_wq; + goto err_sys_clk_disable; } pm_runtime_enable(dev->dev); @@ -664,6 +672,9 @@ static int atmel_hlcdc_dc_load(struct drm_device *dev) err_periph_clk_disable: pm_runtime_disable(dev->dev); clk_disable_unprepare(dc->hlcdc->periph_clk); +err_sys_clk_disable: + if (dc->desc->fixed_clksrc) + clk_disable_unprepare(dc->hlcdc->sys_clk); err_destroy_wq: destroy_workqueue(dc->wq); @@ -688,6 +699,8 @@ static void atmel_hlcdc_dc_unload(struct drm_device *dev) pm_runtime_disable(dev->dev); clk_disable_unprepare(dc->hlcdc->periph_clk); + if (dc->desc->fixed_clksrc) + clk_disable_unprepare(dc->hlcdc->sys_clk); destroy_workqueue(dc->wq); } @@ -805,6 +818,8 @@ static int atmel_hlcdc_dc_drm_suspend(struct device *dev) regmap_read(regmap, ATMEL_HLCDC_IMR, &dc->suspend.imr); regmap_write(regmap, ATMEL_HLCDC_IDR, dc->suspend.imr); clk_disable_unprepare(dc->hlcdc->periph_clk); + if (dc->desc->fixed_clksrc) + clk_disable_unprepare(dc->hlcdc->sys_clk); return 0; } @@ -814,6 +829,8 @@ static int atmel_hlcdc_dc_drm_resume(struct device *dev) struct drm_device *drm_dev = dev_get_drvdata(dev); struct atmel_hlcdc_dc *dc = drm_dev->dev_private; + if (dc->desc->fixed_clksrc) + clk_prepare_enable(dc->hlcdc->sys_clk); clk_prepare_enable(dc->hlcdc->periph_clk); regmap_write(dc->hlcdc->regmap, ATMEL_HLCDC_IER, dc->suspend.imr); From patchwork Tue Mar 5 10:08:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 10840529 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 883271575 for ; Wed, 6 Mar 2019 08:09:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 753362CAFD for ; Wed, 6 Mar 2019 08:09:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 686262CC68; Wed, 6 Mar 2019 08:09:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EAD9A2CAFD for ; Wed, 6 Mar 2019 08:09:53 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B71E36E0B7; Wed, 6 Mar 2019 08:09:36 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from esa1.microchip.iphmx.com (esa1.microchip.iphmx.com [68.232.147.91]) by gabe.freedesktop.org (Postfix) with ESMTPS id D4C1889C53 for ; Tue, 5 Mar 2019 10:08:15 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.58,443,1544511600"; d="scan'208";a="28727168" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 05 Mar 2019 03:08:15 -0700 Received: from NAM02-CY1-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.76.105) with Microsoft SMTP Server (TLS) id 14.3.352.0; Tue, 5 Mar 2019 03:08:13 -0700 Received: from MWHPR11MB1549.namprd11.prod.outlook.com (10.172.54.17) by MWHPR11MB1647.namprd11.prod.outlook.com (10.172.55.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1643.21; Tue, 5 Mar 2019 10:08:11 +0000 Received: from MWHPR11MB1549.namprd11.prod.outlook.com ([fe80::54fe:95ed:b0cf:55a6]) by MWHPR11MB1549.namprd11.prod.outlook.com ([fe80::54fe:95ed:b0cf:55a6%9]) with mapi id 15.20.1665.020; Tue, 5 Mar 2019 10:08:11 +0000 From: To: , , , , , , , , , Subject: [PATCH v2 7/7] drm: atmel-hlcdc: add sam9x60 LCD controller Thread-Topic: [PATCH v2 7/7] drm: atmel-hlcdc: add sam9x60 LCD controller Thread-Index: AQHU0ztWsecK/da2U0+4KoK8RYPaoA== Date: Tue, 5 Mar 2019 10:08:11 +0000 Message-ID: <1551780434-4580-8-git-send-email-claudiu.beznea@microchip.com> References: <1551780434-4580-1-git-send-email-claudiu.beznea@microchip.com> In-Reply-To: <1551780434-4580-1-git-send-email-claudiu.beznea@microchip.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: VI1PR0502CA0011.eurprd05.prod.outlook.com (2603:10a6:803:1::24) To MWHPR11MB1549.namprd11.prod.outlook.com (2603:10b6:301:c::17) x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.7.4 x-originating-ip: [94.177.32.154] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 86ec419d-02b2-4943-fa98-08d6a1527909 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(2017052603328)(7153060)(7193020); SRVR:MWHPR11MB1647; x-ms-traffictypediagnostic: MWHPR11MB1647: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; MWHPR11MB1647; 23:KuDGC6htkbBka4uCi+d6Otr6Tjz3fZljgwc8dOT?= =?iso-8859-1?q?LZBSVnhK+IQVqN2?= =?iso-8859-1?q?lSECLluTLuFr6HVUmYKV28UmuVz8dOoZf0NP6bXN3KCnM9C/5EMbGAW9P2oE?= =?iso-8859-1?q?Bwu9JCzkCAVpsb+ClWLRT8dD9+Ljg3AzEnNwN3n7NHL3X0ByRYqqNs7aP7OD?= =?iso-8859-1?q?173/zlKYGtwzTpMX1Yz8OCgHX8t7Mz2mOanu6x9jfTguvKfVIun8+yzqpkNA?= =?iso-8859-1?q?tmKcPUXdn40QHutpc+92LBrQ+ztpISoymAzVAWg8OjMXSEBIizJonJ1LR9Sa?= =?iso-8859-1?q?AJPFO8+GCf1kNW1y+YiYnbLPpRGqWVmThnWPtuEzw/0JEN8e3EzYNIY/R6tb?= =?iso-8859-1?q?oMSqRBV8k8rhZNr43uv9lBBbBCpi6qJqidGoCK7+IvXsoN3+vA+n4GWFRKIc?= =?iso-8859-1?q?94k4/lYZD7F2bLbcas4B4md0A8qge3iLtNopRVZOIo2XlpUGTqnxcr69w0Pr?= =?iso-8859-1?q?lsCizpUDY8sZbKDWVFjDGZ7UY13R1EVfbgFxbmFn0WEA4ep4Ki17CWOFeaPk?= =?iso-8859-1?q?KClpvTMnhCbegvF51kXX6du1x0+ExIMO0LOSge58O4glZn+CSbFa+hV1voym?= =?iso-8859-1?q?xAbCUBwT8XU1DMM6iWbCmW3eWYAi1uWrtRf9otrHwRPmpx++StE6Hon7nqkp?= =?iso-8859-1?q?JmrIYWzZdR/vFsOIIkXFgLYM5qjKSw8OxiKLKUrO8mAnCETNgeHeYdaG2Jpq?= =?iso-8859-1?q?D8VTY4sFl+QOpfZIwPn22I4M+0CQUlUmoJqaTYXzfxEDKh9m2FH5H07G8E/c?= =?iso-8859-1?q?qUg6L9+rGyAc5QGf2dFFfB7nfhsMMXfMkVBO/EkK+AJiaMKsyvv7jBY2BYJs?= =?iso-8859-1?q?RansFJIR27VLzWX3m3lwtujGm0lvasNsBbnfjEC4nF2qEmEhvMCM1uz9zHPD?= =?iso-8859-1?q?/fMwjEKsIpuEmKS69/NYEYqyg/F62yXn0gpMUW+ZcxoA3TVc6c6ezHL3BL3x?= =?iso-8859-1?q?BwFurouyEPTCiV81y2OVXRmhU+M47lWYKT7szAPBC02ifrb9sL/ctJlWekdS?= =?iso-8859-1?q?FDU2AcAdb6f13bbspUXDFCv2odVd2SPqxM6nLncVsRahS+/9oYqsyPS++VAT?= =?iso-8859-1?q?Cb3dhuu9clE2l+CtYhRqSyf/lj6wcllIxI+cuWz+8zO+hPYC3Vz+s4Vukrss?= =?iso-8859-1?q?gjTDqvI3CK0XK4SaBbVjiGbwCybBq3li8C+nLlx00nqnLuC0lEfooORa6oXU?= =?iso-8859-1?q?xlg4nkjkWHQivWcK7Di10epSvShlMlDYVXo40g3kTIkv72GrOcXsHAfy08ck?= =?iso-8859-1?q?VE6l+BXkcR5CEMUhLWjmsBqCr/up74+X0V7ZveAppxdjfLx/OVuPvoZsXAb1?= =?iso-8859-1?q?B19SaOEyI=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 0967749BC1 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(396003)(39860400002)(346002)(136003)(366004)(199004)(189003)(106356001)(72206003)(3846002)(99286004)(81156014)(52116002)(36756003)(76176011)(14454004)(81166006)(66066001)(8676002)(110136005)(6116002)(105586002)(6486002)(7736002)(5660300002)(8936002)(305945005)(25786009)(102836004)(54906003)(97736004)(316002)(2906002)(7416002)(2501003)(2616005)(186003)(71190400001)(6506007)(386003)(256004)(476003)(68736007)(11346002)(71200400001)(6512007)(2201001)(107886003)(53936002)(446003)(50226002)(486006)(4326008)(86362001)(6436002)(478600001)(26005)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR11MB1647; H:MWHPR11MB1549.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: microchip.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: YEb/z9VzKiG+ejqHmETDzVmNWyQLPp/IIn0vRYDqamnNot7Q15zh/mz524ahq33Vg2B2KI+mVj3jMpvDJQXZGepJs47lU2ZpHJvNBYag6zmrUKziOlNzdEhhysoUM6WZvMYPOGSCB4ziH821UtbZ+wd1KTvb/ffypC03s0uyL952ikcs3zjP7Xfpmio5kdFIK5d6OyydLXS9foyLzmGGTiylKGLqyFt+bYzTRnBazcGV+5Gqjx9CTO633WTYrD6VXQV/fIlQAmkD2j0HjuEqSECP3Q49swe8i1/7rD48/I7DowJUZHH3eZ/jjGTFBBH081k4djMnC6eiy2OvUvTbaSjIAHNGimGAaEh8O0SEjTPxe4teN96JsnImIIf2xGg673zy8E7TMwgrMe+MEBz8eGulVEbSQxgGquLSKmbe0Ww= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 86ec419d-02b2-4943-fa98-08d6a1527909 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Mar 2019 10:08:11.3024 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR11MB1647 X-OriginatorOrg: microchip.com X-Mailman-Approved-At: Wed, 06 Mar 2019 08:09:28 +0000 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector1-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=W+HE41CyiCB05c1+dpayBAnxqXSg/ka725qhPH7sep8=; b=OJEWGUn4sN6MBIYyYCIEcvBwAOL1bwD96NFmCfT9HUZlEpCZj/hY5gvcGIi9pZNvNMD8iXwC3qu/h4ZArCS6DwE45u8NIePlvlvjKpY3iZYYOigtQD6IC08nyXlwiS2c6oQ3S3uhx8bO6QliFPx8ne3kOJ33sJlPgV5072k4ph4= X-Mailman-Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Claudiu.Beznea@microchip.com; X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Sandeep.Sheriker@microchip.com, Claudiu.Beznea@microchip.com, linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Sandeep Sheriker Mallikarjun Add the LCD controller for SAM9X60. Signed-off-by: Sandeep Sheriker Mallikarjun [claudiu.beznea@microchip.com: add fixed_clksrc option to atmel_hlcdc_dc_sam9x60] Signed-off-by: Claudiu Beznea --- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 101 +++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c index 8bf51f853721..fb2e7646daeb 100644 --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c @@ -364,6 +364,103 @@ static const struct atmel_hlcdc_dc_desc atmel_hlcdc_dc_sama5d4 = { .nlayers = ARRAY_SIZE(atmel_hlcdc_sama5d4_layers), .layers = atmel_hlcdc_sama5d4_layers, }; + +static const struct atmel_hlcdc_layer_desc atmel_hlcdc_sam9x60_layers[] = { + { + .name = "base", + .formats = &atmel_hlcdc_plane_rgb_formats, + .regs_offset = 0x60, + .id = 0, + .type = ATMEL_HLCDC_BASE_LAYER, + .cfgs_offset = 0x2c, + .layout = { + .xstride = { 2 }, + .default_color = 3, + .general_config = 4, + .disc_pos = 5, + .disc_size = 6, + }, + .clut_offset = 0x600, + }, + { + .name = "overlay1", + .formats = &atmel_hlcdc_plane_rgb_formats, + .regs_offset = 0x160, + .id = 1, + .type = ATMEL_HLCDC_OVERLAY_LAYER, + .cfgs_offset = 0x2c, + .layout = { + .pos = 2, + .size = 3, + .xstride = { 4 }, + .pstride = { 5 }, + .default_color = 6, + .chroma_key = 7, + .chroma_key_mask = 8, + .general_config = 9, + }, + .clut_offset = 0xa00, + }, + { + .name = "overlay2", + .formats = &atmel_hlcdc_plane_rgb_formats, + .regs_offset = 0x260, + .id = 2, + .type = ATMEL_HLCDC_OVERLAY_LAYER, + .cfgs_offset = 0x2c, + .layout = { + .pos = 2, + .size = 3, + .xstride = { 4 }, + .pstride = { 5 }, + .default_color = 6, + .chroma_key = 7, + .chroma_key_mask = 8, + .general_config = 9, + }, + .clut_offset = 0xe00, + }, + { + .name = "high-end-overlay", + .formats = &atmel_hlcdc_plane_rgb_and_yuv_formats, + .regs_offset = 0x360, + .id = 3, + .type = ATMEL_HLCDC_OVERLAY_LAYER, + .cfgs_offset = 0x4c, + .layout = { + .pos = 2, + .size = 3, + .memsize = 4, + .xstride = { 5, 7 }, + .pstride = { 6, 8 }, + .default_color = 9, + .chroma_key = 10, + .chroma_key_mask = 11, + .general_config = 12, + .scaler_config = 13, + .phicoeffs = { + .x = 17, + .y = 33, + }, + .csc = 14, + }, + .clut_offset = 0x1200, + }, +}; + +static const struct atmel_hlcdc_dc_desc atmel_hlcdc_dc_sam9x60 = { + .min_width = 0, + .min_height = 0, + .max_width = 2048, + .max_height = 2048, + .max_spw = 0xff, + .max_vpw = 0xff, + .max_hpw = 0x3ff, + .fixed_clksrc = true, + .nlayers = ARRAY_SIZE(atmel_hlcdc_sam9x60_layers), + .layers = atmel_hlcdc_sam9x60_layers, +}; + static const struct of_device_id atmel_hlcdc_of_match[] = { { .compatible = "atmel,at91sam9n12-hlcdc", @@ -385,6 +482,10 @@ static const struct of_device_id atmel_hlcdc_of_match[] = { .compatible = "atmel,sama5d4-hlcdc", .data = &atmel_hlcdc_dc_sama5d4, }, + { + .compatible = "microchip,sam9x60-hlcdc", + .data = &atmel_hlcdc_dc_sam9x60, + }, { /* sentinel */ }, }; MODULE_DEVICE_TABLE(of, atmel_hlcdc_of_match);