Move DeviceInfoProvider to common code and use it in linux and NRF. (#18687)

* Add and use DeviceInfoProvider for Zephyr. nrfconnect and telink use this

* Restyle

* Make code compile

* Switch new/delete to platform new/delete

* Start moving DeviceInfoProviderImpl into a common example file that all examples can use. Expect other applications to replace these and override

* Add a readme for the directory regarding providers folder

* Make nrf compile with the example providers for the lighting app

* Make sure linux app build also compiles with SetDeviceInfoProvider

* Restyle

* Remove Zephyr from comments

* Update date for license blurb
diff --git a/examples/providers/BUILD.gn b/examples/providers/BUILD.gn
new file mode 100644
index 0000000..244f70d
--- /dev/null
+++ b/examples/providers/BUILD.gn
@@ -0,0 +1,37 @@
+# Copyright (c) 2022 Project CHIP Authors
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import("//build_overrides/build.gni")
+import("//build_overrides/chip.gni")
+
+config("include_providers_dir") {
+  include_dirs = [ "." ]
+}
+
+static_library("device_info_provider") {
+  output_name = "libMatterDeviceInfoProviderExample"
+  output_dir = "${root_out_dir}/lib"
+
+  sources = [
+    "DeviceInfoProviderImpl.cpp",
+    "DeviceInfoProviderImpl.h",
+  ]
+
+  public_deps = [
+    "${chip_root}/src/lib/support",
+    "${chip_root}/src/platform",
+  ]
+
+  public_configs = [ ":include_providers_dir" ]
+}